/* ── design tokens ───────────────────────────────────────── */
:root {
  --bg:          #faf9f5;
  --bg-raise:    #fff;
  --bg-sunken:   #f3f2ee;
  --ink:         #16161A;
  --ink-soft:    #555;
  --muted:       #999;
  --accent:      #6EE7B7;
  --accent-deep: #3FB58A;
  --hairline:    rgba(0,0,0,0.08);
  --sh-sm:       0 1px 4px rgba(0,0,0,.06);
  --sh-md:       0 4px 16px rgba(0,0,0,.08);
  --sh-lg:       0 12px 40px rgba(0,0,0,.10);
  --maxw:        1120px;
  --font-sans:   -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono:   ui-monospace, "SF Mono", "Cascadia Code", monospace;
  --r-card:      16px;
  --r-btn:       10px;
}

/* ── reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; }

/* ── typography ─────────────────────────────────────────── */
.display  { font-size: clamp(40px, 6vw, 68px);   font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.headline { font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; letter-spacing: -.022em; line-height: 1.1; }
.title    { font-size: 22px; font-weight: 700; }
.lede     { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); font-weight: 450; line-height: 1.62; }
.kicker   { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.meta     { font-size: 13px; color: var(--muted); }

/* ── layout ─────────────────────────────────────────────── */
.wrap        { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section     { padding: 96px 0; }
.section-sm  { padding: 56px 0; }

/* ── eyebrow ────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.eyebrow .line {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--accent-deep);
  border-radius: 1px;
}

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  line-height: 1;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-disabled,
.btn-disabled:hover {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: .72;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.btn-secondary {
  background: var(--bg-raise);
  color: var(--ink);
  border: 1.5px solid var(--hairline);
}
.btn-secondary:hover {
  border-color: rgba(0,0,0,.22);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.btn-outline-white {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* ── nav ────────────────────────────────────────────────── */
nav#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  transition: background .22s, box-shadow .22s;
}
nav#nav.scrolled {
  background: rgba(250,249,245,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.nav-brand svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color .12s, background .12s;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(0,0,0,0.05);
}

.nav-cta { flex-shrink: 0; padding: 9px 18px; font-size: 14px; }

/* mobile menu toggle */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  color: var(--ink);
  border-radius: 6px;
  transition: background .12s;
}
.nav-hamburger:hover { background: rgba(0,0,0,.05); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-raise);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 20px 18px;
  gap: 2px;
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 199;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 10px;
  border-radius: 8px;
  transition: background .12s;
}
.mobile-nav a:hover { background: var(--bg-sunken); }
.mobile-nav .btn { margin-top: 10px; justify-content: center; }

/* ── hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 148px 0 96px;
  text-align: center;
  overflow: hidden;
}

/* aurora blobs */
.aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 700px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(60px);
  opacity: .52;
  animation: aurora-drift 18s ease-in-out infinite;
}
.aurora .a1 { width: 520px; height: 520px; background: #9af0cf; left: 6%;  top:  0px; }
.aurora .a2 { width: 460px; height: 460px; background: #bfe3ff; right: 8%; top: 40px; animation-delay: -6s; }
.aurora .a3 { width: 400px; height: 400px; background: #e9dcff; left: 40%; top: 160px; animation-delay: -11s; }

@keyframes aurora-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(40px,30px) scale(1.08); }
  66%       { transform: translate(-30px,20px) scale(.96); }
}
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

.hero-content { position: relative; z-index: 1; }

/* hero title — big CJK display */
.hero-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(60px, 10vw, 122px);
  letter-spacing: -.05em;
  line-height: .94;
  margin-bottom: 28px;
}
.hero-title .g { color: var(--accent-deep); }

.hero-sub {
  max-width: 40ch;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-trust {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .01em;
}
.hero-trust .sep { margin: 0 8px; }

/* ── demo section ────────────────────────────────────────── */
.demo-widget {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-sunken);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: block;
}
.demo-dots .dd1 { background: #ff5f57; }
.demo-dots .dd2 { background: #ffbd2e; }
.demo-dots .dd3 { background: #28c840; }
.demo-app-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 4px;
}

.demo-body  { padding: 28px 28px 24px; }
.demo-stage {
  position: relative;
  min-height: 152px;
}
.demo-stage > div {
  width: 100%;
}

/* state: idle */
.demo-idle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0;
  min-height: 152px;
}
.mic-ring {
  position: relative;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.mic-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: .35;
  animation: ring-pulse 1.8s ease-out infinite;
}
@keyframes ring-pulse {
  0%   { transform: scale(.85); opacity: .55; }
  100% { transform: scale(1.5);  opacity: 0; }
}
.mic-btn {
  width: 48px; height: 48px;
  background: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mic-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; }

.demo-hint { font-size: 13px; color: var(--muted); }

/* state: streaming */
.demo-streaming {
  display: none;
  min-height: 152px;
}

.stream-bubble {
  background: var(--bg-sunken);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  min-height: 56px;
}
.stream-cursor {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  background: var(--muted);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink .85s step-end infinite;
}
@keyframes blink { 0%,100%{ opacity:1; } 50%{ opacity:0; } }

.stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.stream-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink .85s step-end infinite;
}

/* state: polished */
.demo-polished {
  display: none;
  min-height: 152px;
}

.polish-bubble {
  background: rgba(62,181,138,.07);
  border: 1px solid rgba(62,181,138,.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--accent-deep);
  line-height: 1.5;
}
.polish-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
  background: rgba(62,181,138,.1);
  padding: 4px 10px;
  border-radius: 20px;
}
.polish-badge svg { width: 12px; height: 12px; stroke: var(--accent-deep); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* state: sent */
.demo-sent {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  min-height: 152px;
}
.sent-check {
  width: 48px; height: 48px;
  background: var(--accent-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sent-check svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sent-label { font-size: 16px; font-weight: 700; color: var(--ink); }
.sent-sub   { font-size: 13px; color: var(--muted); }

/* progress bar */
.demo-progress {
  display: flex;
  gap: 6px;
  margin-top: 22px;
}
.dp {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--hairline);
  overflow: hidden;
}
.dp.done { background: var(--accent-deep); }
.dp.active { position: relative; }
.dp.active::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  animation: dp-fill var(--dur, 2s) linear forwards;
}
@keyframes dp-fill {
  to { transform: scaleX(1); }
}

/* ── features ────────────────────────────────────────────── */
#features { background: var(--bg-sunken); }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat-card {
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.feat-icon {
  width: 44px; height: 44px;
  background: var(--bg-sunken);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--hairline);
}
.feat-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent-deep);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.feat-desc  { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ── stats band ──────────────────────────────────────────── */
.stats-band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 40px 20px;
  text-align: center;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; height: 60%;
  width: 1px;
  background: var(--hairline);
}
.stat-n {
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-n small { font-size: .45em; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.stat-text-n  { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; }
.stat-l { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

/* ── pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.plan-card {
  background: var(--bg-raise);
  border: 1.5px solid var(--hairline);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.plan-card.featured {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 1px var(--accent-deep), var(--sh-md);
}
.plan-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent-deep);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name  { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.plan-desc  { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.plan-price {
  font-size: 52px; font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
  margin: 18px 0 4px;
}
.plan-price sup { font-size: .42em; font-weight: 700; vertical-align: top; margin-top: .3em; }
.plan-price sub { font-size: .28em; font-weight: 500; vertical-align: baseline; color: var(--ink-soft); }
.plan-quota {
  font-size: 13px; color: var(--muted);
  margin-bottom: 22px; padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}
.plan-feats {
  list-style: none;
  display: flex; flex-direction: column; gap: 11px;
  margin-bottom: 28px;
}
.plan-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-soft); line-height: 1.4;
}
.plan-feats li::before {
  content: '';
  width: 17px; height: 17px; flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(62,181,138,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' fill='none'%3E%3Cpath d='M4 8.5l3 3 6-6' stroke='%233FB58A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
.plan-btn { width: 100%; justify-content: center; }
.plan-note { text-align: center; margin-top: 32px; }

/* ── CTA section ─────────────────────────────────────────── */
.cta-dark {
  background: var(--ink);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}
.cta-dark .headline { color: #fff; }
.cta-dark .lede     { color: rgba(255,255,255,.55); max-width: 36ch; margin: 14px auto 0; }
.cta-dark-btns {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-top: 38px;
}

/* ── footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 40px;
}
.foot-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700; font-size: 16px;
  margin-bottom: 12px;
}
.foot-brand svg { width: 26px; height: 26px; }
.foot-links {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.foot-links a {
  font-size: 14px; color: var(--ink-soft);
  transition: color .12s;
}
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-size: 13px; color: var(--muted); }
.foot-qr-col { margin-left: auto; text-align: center; }
.foot-qr {
  width: 72px; height: 72px;
  border-radius: 10px;
  background: var(--bg-raise);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 7px;
}
.foot-qr svg { width: 36px; height: 36px; stroke: var(--muted); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.foot-qr-label { font-size: 11px; color: var(--muted); }

/* legal pages */
.legal-main {
  padding: 132px 0 88px;
}
.legal-hero {
  max-width: 760px;
  margin: 0 auto 44px;
}
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin-top: 12px;
}
.legal-hero p {
  margin-top: 16px;
}
.legal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.legal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg-raise);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
}
.legal-section {
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
}
.legal-section h2 {
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.legal-section h3 {
  font-size: 16px;
  font-weight: 720;
  margin: 20px 0 8px;
}
.legal-section p,
.legal-section li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}
.legal-section ul {
  padding-left: 1.2em;
}
.legal-section li + li {
  margin-top: 6px;
}
.legal-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(62,181,138,.22);
  border-radius: 12px;
  background: rgba(62,181,138,.07);
  color: var(--accent-deep);
  font-size: 14px;
  line-height: 1.75;
}
.legal-section a {
  color: var(--accent-deep);
  font-weight: 650;
}

/* ── scroll-reveal ───────────────────────────────────────── */
[data-rise] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
}
[data-rise].visible { opacity: 1; transform: none; }
[data-rise][data-delay="1"] { transition-delay: .08s; }
[data-rise][data-delay="2"] { transition-delay: .16s; }
[data-rise][data-delay="3"] { transition-delay: .24s; }
[data-rise][data-delay="4"] { transition-delay: .32s; }
[data-rise][data-delay="5"] { transition-delay: .40s; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }

  .feat-grid    { grid-template-columns: repeat(2, 1fr); }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(odd)::before { display: none; }
  .stat-item:nth-child(3)::before,
  .stat-item:nth-child(4)::before { display: none; }
  .stat-item:nth-child(4)::before { display: block; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .foot-inner   { flex-direction: column; gap: 28px; }
  .foot-qr-col  { margin-left: 0; }
}
@media (max-width: 600px) {
  .hero { padding: 110px 0 72px; }
  .feat-grid  { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .demo-body { padding: 22px 18px 22px; }
  .demo-stage,
  .demo-idle,
  .demo-streaming,
  .demo-polished,
  .demo-sent {
    min-height: 190px;
  }
}

@media (max-width: 920px) {
  .legal-nav .nav-cta {
    display: inline-flex;
    margin-left: auto;
  }
}
