/* 原启 · Yuanqi — product site */

:root {
  --bg: #f4f4f5;
  --bg-soft: #ebebed;
  --surface: #ffffff;
  --ink: #0c0c0e;
  --ink-2: #2c2c32;
  --muted: #6e6e78;
  --line: #e0e0e5;
  --conmate: #9ec528;
  --treewo: #0885ff;
  --font: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 64px;
  --max: 1080px;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  margin: 0;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(244, 244, 245, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--ink);
}

.nav {
  display: none;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  z-index: 49;
  display: grid;
  padding: 0.75rem 1.25rem 1.25rem;
  background: rgba(244, 244, 245, 0.98);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: #bbb;
}

/* Hero */

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding:
    calc(var(--header) + 2.75rem)
    clamp(1.25rem, 4vw, 2.5rem)
    3.25rem;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-brand {
  font-size: clamp(3.2rem, 10vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero-en {
  margin: 0.4rem 0 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.85rem;
}

.hero-lead {
  max-width: 28rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 2.5rem 1.5rem;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 50% 35%, #ffffff 0%, #ececef 58%, #e4e4e8 100%);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 68%);
  top: 12%;
}

.hero-device {
  position: relative;
  width: min(78%, 360px);
  filter: drop-shadow(0 32px 52px rgba(12, 12, 14, 0.2));
  animation: float 6s var(--ease) infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
}

/* Sections shared */

.section {
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-intro {
  width: min(100%, var(--max));
  margin: 0 auto 2.5rem;
  max-width: 36rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section-intro h2,
.app-copy h2,
.about h2,
.contact h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.lede,
.app-copy > p,
.about > p,
.contact > p,
.feature-row p,
.next-grid p {
  color: var(--muted);
}

/* Device */

.device {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 20%, transparent);
}

.device-stage {
  width: min(100%, var(--max));
  margin: 0 auto 3rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.device-stage > img {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--bg-soft) 70%);
  filter: drop-shadow(0 24px 40px rgba(12, 12, 14, 0.12));
}

.device-life {
  margin: 0;
  justify-self: center;
  width: min(100%, 280px);
}

.device-life img {
  width: 100%;
  border-radius: 28px;
  box-shadow:
    0 0 0 8px #1a1a1c,
    0 24px 48px rgba(12, 12, 14, 0.2);
}

.device-life figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .device-stage {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }

  .device-stage > img {
    width: 100%;
    max-width: none;
  }

  .device-life {
    width: min(100%, 260px);
  }
}

.feature-row {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.feature-row article {
  background: var(--surface);
  padding: 1.5rem 1.35rem;
}

.feature-row h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

@media (min-width: 760px) {
  .feature-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* App sections */

.app-section {
  background: var(--surface);
}

.app-conmate {
  border-block: 1px solid var(--line);
}

.app-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: #f2f5e8;
  font-weight: 600;
  font-size: 0.9rem;
}

.app-badge img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.app-badge--blue {
  background: #eaf3ff;
}

.app-points {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.app-points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.app-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--conmate);
  flex-shrink: 0;
}

.app-treewo .app-points li::before {
  background: var(--treewo);
}

.phone-stack {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.phone {
  margin: 0;
  width: min(52%, 220px);
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  box-shadow:
    0 0 0 8px #1a1a1c,
    0 24px 50px rgba(12, 12, 14, 0.22);
}

.phone img {
  width: 100%;
  display: block;
}

.phone--back {
  position: absolute;
  transform: translate(-18%, 4%) rotate(-6deg);
  opacity: 0.92;
  z-index: 1;
}

.phone--front {
  position: relative;
  z-index: 2;
  transform: translate(12%, 0);
}

.treewo-visual {
  display: grid;
  place-items: center;
  gap: 1rem;
}

.treewo-orb {
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0a0a0c;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(12, 12, 14, 0.25);
}

.treewo-orb img {
  width: 78%;
}

.treewo-caption {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .app-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .app-grid--reverse .app-copy {
    order: 2;
  }

  .app-grid--reverse .treewo-visual {
    order: 1;
  }

  .phone-stack {
    min-height: 520px;
  }

  .phone {
    width: 230px;
  }
}

/* Next */

.next-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.next-grid article {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.next-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-grid h3 {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}

@media (min-width: 700px) {
  .next-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* About / contact */

.about,
.contact {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  text-align: left;
}

.about {
  padding-bottom: 2rem;
}

.contact {
  padding-top: 1rem;
  padding-bottom: clamp(4rem, 8vw, 5.5rem);
}

.contact h2,
.contact p,
.about h2,
.about p {
  text-align: left;
}

.contact .btn {
  justify-content: flex-start;
}

.contact p {
  margin-bottom: 1.35rem;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-device {
    animation: none;
  }
}
