/* ReplyRate — premium motion design system
   暖白画布 + 单深绿强调 + Geist 字族。
   动效语言：入场 easeOutExpo（cubic-bezier(.16,1,.3,1)）、微交互 spring、缓慢光晕漂移、
   鼠标 spotlight、自定义光标、demo 自动演示（showreel）、滚动 reveal（blur+rise）。
   性能纪律：动画只动 transform/opacity（唯一例外：入场一次性 blur）；永不 transition:all。 */

@font-face {
  font-family: 'Geist Sans';
  src: url('fonts/geist-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Sans';
  src: url('fonts/geist-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Sans';
  src: url('fonts/geist-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #FAFAF8; --surface: #FFFFFF; --surface-subtle: #F2F2EF;
  --ink: #171717; --ink-secondary: #4D4D4D; --muted: #6E737B; /* M3: ≥4.5:1 on canvas */
  --hairline: #E6E6E1; --hairline-strong: #D4D4CF;
  --accent: #0C7D55; --accent-hover: #0A6848; --accent-tint: #EAF6F0; --accent-ring: #BFE0D0; /* M3: accent ≥4.5:1 on white/tint */
  --accent-glow: rgba(15, 138, 95, 0.10);
  --btn-ink: #171717; --btn-ink-hover: #000000;
  --dark-bg: #171717; --dark-surface: #1F1F1F;
  --dark-text: #F7F8F8; --dark-text-2: #D0D6E0; --dark-text-3: #8A8F98;
  --dark-hairline: rgba(255, 255, 255, 0.08); --accent-on-dark: #3ECF8E;
  --error: #D93025; --success: #0F8A5F;
  --font-sans: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  /* 动效语言 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);                 /* 通用舒缓 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);              /* easeOutExpo：入场/大位移 */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);       /* 小元素 pop（chip/对勾） */
  --demo-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; color: var(--muted); margin-top: 10px; }
/* 免费额度用尽提示（配额门返回 402 前就告知用户，避免“点击没反应”的困惑） */
.quota-banner {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  animation: fadeIn 0.3s var(--ease) both;
}
.quota-banner.hidden { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.accent { color: var(--accent); }

/* ---------- 自定义光标（fine pointer 由 JS 启用；dot + 滞后 ring） ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transition: opacity 0.25s var(--ease);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(15, 138, 95, 0.40);
  transition: opacity 0.25s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cursor-ring.is-hover { width: 52px; height: 52px; border-color: rgba(15, 138, 95, 0.75); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
html:not(.js) .cursor-dot, html:not(.js) .cursor-ring { display: none; }

/* ---------- Nav（sticky blur + 链接下划线生长 + logo 点呼吸） ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; }
.logo:hover { text-decoration: none; }
.logo-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; position: relative;
}
.logo-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ringPulse 3s var(--ease-out) infinite;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
  position: relative;
  transition: color 0.15s var(--ease);
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.btn-nav { height: 36px; padding: 0 18px; }

/* ---------- I2：checkout 成功提示条 ---------- */
.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  position: sticky;
  top: 64px;
  z-index: 49;
  animation: riseIn 0.4s var(--ease) both;
}
.upgrade-banner-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.85;
}
.upgrade-banner-close:hover { opacity: 1; }

/* ---------- Buttons（pill；主按钮墨黑 + 光扫过 + 磁吸由 JS 驱动） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-ink); color: #ffffff; }
.btn-primary:hover { background: var(--btn-ink-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { background: var(--surface-subtle); border-color: var(--hairline-strong); }
.btn-lg { height: 44px; padding: 0 26px; }
.btn-block { display: flex; width: 100%; }
/* 主按钮光扫过（hover 一次斜向亮线） */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.6s var(--ease-out);
}
.btn-primary:hover::after { left: 130%; }
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  font-family: inherit;
  transition: color 0.15s var(--ease);
}
.link-btn:hover { text-decoration: underline; }

/* ---------- Hero（左对齐 + 动态背景 + spotlight + 分层入场演出） ---------- */
.hero {
  padding: 48px 0 28px; /* 首屏策略：压实上部，让 demo 面板真正上叠进第一屏 */
  position: relative;
  overflow: hidden;
}
/* 动态背景：细网格（渐变遮罩渐隐）+ 三团缓慢漂移的光晕 */
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 23, 23, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 95% 72% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 95% 72% at 50% 0%, #000 25%, transparent 75%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.blob-1 {
  width: 560px; height: 560px; left: -180px; top: -240px;
  background: radial-gradient(circle, rgba(12, 125, 85, 0.15), transparent 65%);
  animation: drift1 42s ease-in-out infinite alternate;
}
.blob-2 {
  width: 440px; height: 440px; right: -160px; top: -100px;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.10), transparent 65%);
  animation: drift2 56s ease-in-out infinite alternate;
}
.blob-3 {
  width: 300px; height: 300px; left: 38%; top: 130px;
  background: radial-gradient(circle, rgba(240, 180, 60, 0.06), transparent 65%);
  animation: drift3 64s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(110px, 80px) scale(1.08); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-90px, 110px) scale(0.96); } }
@keyframes drift3 { from { transform: translate(0, 0); } to { transform: translate(-140px, -60px); } }
/* 鼠标 spotlight（JS 写 --mx/--my） */
.spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(15, 138, 95, 0.09), transparent 70%);
}
.spot.on { opacity: 1; }

.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid rgba(15, 138, 95, 0.25);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  position: relative;
  vertical-align: 1px;
}
.badge-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ringPulse 2.8s var(--ease-out) infinite;
}
.hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
/* 逐行蒙版入场（每行从下沿滑出） */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-inner { display: block; animation: lineUp 0.9s var(--ease-out) both; }
.hero h1 .line:nth-child(1) .line-inner { animation-delay: 200ms; }
.hero h1 .line:nth-child(2) .line-inner { animation-delay: 330ms; }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: translateY(0); } }
.hero .sub {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin-bottom: 18px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* 入场演出：badge→H1(行内)→副标→CTA→小字，clipRise 渐显 + 错峰 */
@keyframes clipRise {
  from { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 40% 0); filter: blur(10px); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); filter: blur(0); }
}
.hero-in { animation: clipRise 0.8s var(--ease-out) both; }
.hero-in:nth-child(1) { animation-delay: 80ms; }
.hero-in:nth-child(2) { animation-delay: 200ms; }
.hero-in:nth-child(3) { animation-delay: 380ms; }
.hero-in:nth-child(4) { animation-delay: 540ms; }
.hero-in:nth-child(5) { animation-delay: 680ms; }
.hero h1.hero-in { animation: none; } /* h1 由 .line 蒙版负责 */

/* ---------- Sections ---------- */
section { padding: 96px 0; }
#demo { scroll-margin-top: 80px; } /* M4: hero CTA 锚点落在 sticky nav 下方 */
.section-title { font-size: clamp(28px, 4vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.section-sub { color: var(--ink-secondary); font-size: 16px; max-width: 640px; margin-bottom: 40px; }

/* ---------- 滚动显现（blur+rise；M5：无 JS 时默认可见，html.js 才隐藏） ---------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
/* 同组错峰（--d 覆盖 transition-delay） */
.demo-wrap .section-sub { --d: 100ms; }
.pricing .section-sub { --d: 100ms; }
.steps .step:nth-child(2) { --d: 130ms; }
.steps .step:nth-child(3) { --d: 260ms; }
.plans .plan:nth-child(2) { --d: 140ms; }
.plans .plan:nth-child(3) { --d: 280ms; }

/* ---------- Demo 面板（hero 下叠 48px；入场上浮 + spotlight + 循环演出） ---------- */
.demo-wrap { max-width: 1200px; margin: -64px auto 0; padding: 0 24px; position: relative; }
.demo-wrap .section-title { margin-bottom: 4px; }
.demo-wrap .section-sub { margin-bottom: 16px; }
.demo { padding: 0 0 96px; }
@keyframes panelUp {
  from { opacity: 0; transform: translateY(48px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.demo-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: var(--demo-shadow); /* 全局唯一阴影档 */
  overflow: hidden;
  animation: panelUp 1s var(--ease-out) both;
  animation-delay: 820ms;
}
.demo-panel .spot { z-index: 1; }
.demo-chrome {
  position: relative;
  z-index: 2;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.demo-chrome .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline-strong); }
.demo-chrome .demo-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
/* LIVE 呼吸点（真实 AI 演示） */
.live-dot {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ringPulse 2.2s var(--ease-out) infinite;
}
.demo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 38% 44px 1fr;
  gap: 16px;
  padding: 24px;
  align-items: stretch;
}
.demo-left {
  background: rgba(23, 23, 23, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.demo-left .eyebrow { color: var(--muted); align-self: flex-end; margin-bottom: 12px; }
.field-label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-secondary); margin: 12px 0 6px; }
.demo-left textarea, #slopText {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  resize: vertical;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.demo-left textarea:focus, #slopText:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.demo-left #analyzeBtn { margin-top: 16px; }
#demoStatus { color: var(--muted); font-size: 13px; text-align: right; margin-top: 8px; }
/* 中央箭头：绿圆 + 呼吸环（与 showreel 节奏呼应） */
.demo-arrow {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.demo-arrow svg { display: block; position: relative; z-index: 1; }
.demo-arrow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: ringPulse 3.2s var(--ease-out) infinite;
}
.demo-right {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px;
  min-width: 0;
}

/* Tabs（当前 tab 2px 绿下划线滑动指示条 + mono 小字） */
.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin-bottom: 18px; }
.tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 14px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); }
.tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(0);
  transition: transform 0.35s var(--ease-out), width 0.35s var(--ease-out);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: riseIn 0.35s var(--ease); }

/* 空态（12px 圆角 + 虚线 accent-ring 边框） */
.placeholder {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  padding: 28px 16px;
  border: 1px dashed var(--accent-ring);
  border-radius: 12px;
}

/* 结果卡片 + 分段渐显 */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.result-card {
  background: var(--surface-subtle);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  animation: riseIn 0.5s var(--ease) both;
}
.result-card h4 { margin: 0 0 4px; font-size: 15px; }
.result-card p { margin: 0; font-size: 14px; color: var(--ink-secondary); }
.analysis-group { margin-bottom: 18px; }
.analysis-group h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.analysis-group ul { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-secondary); }
.analysis-group li { margin-bottom: 4px; }

/* 前两行变体：衬线渲染成真实提案文档感 */
.variant {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  white-space: pre-wrap;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
  animation: riseIn 0.5s var(--ease) both;
}
.variant:hover { transform: translateY(-2px); border-color: var(--hairline-strong); }
.variant-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.variant-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.variant > div:last-child {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.copy-btn {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { border-color: var(--success); color: var(--success); }

/* 分数进度条（M8：只动 transform scaleX；JS 插入后下一帧触发动画 + 数字滚动） */
.score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.score-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-subtle); border: 1px solid var(--hairline); overflow: hidden; }
.score-fill {
  height: 100%;
  border-radius: 999px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out);
}
.score-num { font-weight: 600; font-size: 18px; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.score-good { color: var(--success); }
.score-warn { color: #B45309; }
.score-bad { color: var(--error); }
.flag-card { border-left: 3px solid var(--hairline-strong); background: var(--surface-subtle); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; animation: riseIn 0.5s var(--ease) both; }
.flag-card.bad { border-left-color: var(--error); }
.flag-quote { font-weight: 500; font-size: 14px; font-style: italic; margin-bottom: 4px; }
.flag-card p { font-size: 13.5px; color: var(--ink-secondary); margin: 2px 0; }
.flag-fix { color: var(--accent); }

/* 面板底部微数据条（真实数据，绿色对勾 SVG；chip spring pop） */
.micro-data {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  padding: 14px 24px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  flex-wrap: wrap;
}
.micro-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  animation: popIn 0.45s var(--ease-spring) both;
}
.micro-chip svg { flex-shrink: 0; color: var(--accent); }

/* ---------- 真实数据跑马灯（双份内容 translateX(-50%) 无缝循环） ---------- */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marqueeMove 34s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  white-space: nowrap;
}
.mq-item svg { color: var(--accent); flex-shrink: 0; }
@keyframes marqueeMove { to { transform: translateX(-50%); } }
html:not(.js) .marquee { display: none; }

/* ---------- How it works（01/02/03 mono 编号 editorial 行；编号滑入） ---------- */
.how .section-title { margin-bottom: 48px; }
.steps { display: flex; flex-direction: column; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 8px;
  border-bottom: 1px solid var(--hairline);
}
.step:first-child { border-top: 1px solid var(--hairline); }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  line-height: 1.4;
  flex-shrink: 0;
  padding-top: 4px;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.5s var(--ease-out) 0.25s, transform 0.5s var(--ease-out) 0.25s;
}
html.js .step.visible .step-num { opacity: 1; transform: translateX(0); }
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 17px; color: var(--ink-secondary); margin: 0; max-width: 560px; }

/* ---------- Pricing（featured 呼吸环 + 3D tilt 由 JS 写内联 transform） ---------- */
.pricing .section-sub { margin-top: 12px; }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 1200px;
  perspective: 1200px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
html.js .plan.reveal.visible { transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); transition-delay: 0ms; } /* tilt 用 0.2s，不被 reveal 的 0.7s 拖慢 */
.plan:hover { border-color: var(--hairline-strong); }
.plan.featured { border: 1.5px solid var(--accent); }
/* featured 外扩呼吸环（transform/opacity only） */
.plan.featured::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 21px;
  border: 1px solid rgba(15, 138, 95, 0.4);
  opacity: 0;
  pointer-events: none;
  animation: ringPulse 3.6s var(--ease-out) infinite;
}
.plan .tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}
.plan h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 4px; }
.price { font-size: 48px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 20px; }
.price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 16px;
  color: var(--ink-secondary);
}
.plan li svg { flex-shrink: 0; margin-top: 5px; color: var(--accent); }

/* ---------- Waitlist + 深色 Final CTA + Footer 合并区（缓慢光晕呼吸） ---------- */
.waitlist {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 96px 0 0;
  text-align: center;
}
.waitlist::before {
  content: '';
  position: absolute;
  width: 720px;
  height: 720px;
  left: 50%;
  top: -380px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(62, 207, 142, 0.10), transparent 65%);
  pointer-events: none;
  animation: glowDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}
.waitlist::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  top: 40px;
  background: radial-gradient(circle, rgba(12, 125, 85, 0.12), transparent 65%);
  pointer-events: none;
  animation: glowDrift2 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes glowDrift { from { transform: translateX(-50%) translateY(0) scale(1); } to { transform: translateX(-50%) translateY(48px) scale(1.1); } }
@keyframes glowDrift2 { from { transform: translate(0, 0); } to { transform: translate(-60px, 90px); } }
.waitlist .wrap { position: relative; z-index: 1; }
.waitlist h2 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.02em; }
.waitlist p { max-width: 560px; margin: 0 auto 28px; color: var(--dark-text-2); }
.waitlist-form { display: flex; gap: 10px; justify-content: center; max-width: 480px; margin: 0 auto; }
.waitlist-form input {
  flex: 1;
  height: 48px;
  border: 1px solid var(--dark-hairline);
  border-radius: 10px;
  padding: 0 16px;
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--dark-text);
  background: var(--dark-surface);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.waitlist-form input::placeholder { color: var(--dark-text-3); }
.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent-on-dark);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.2);
}
#waitlistMsg { margin-top: 16px; font-size: 14px; font-weight: 500; }
#waitlistMsg.success { color: var(--accent-on-dark); }
.check-svg { display: inline-block; vertical-align: -2px; margin-right: 8px; }
.check-svg path {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  animation: checkDraw 0.5s var(--ease-out) 0.1s forwards;
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

.footer {
  margin-top: 96px;
  padding: 48px 0 32px;
  background: var(--dark-bg);
  color: var(--dark-text-2);
  position: relative;
  z-index: 1;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-size: 18px; font-weight: 600; color: var(--dark-text); display: flex; align-items: center; gap: 6px; }
.footer-brand .logo-dot { background: var(--accent-on-dark); }
.footer-links { display: flex; gap: 18px; font-size: 14px; }
.footer-links a { color: var(--dark-text-2); transition: color 0.15s var(--ease); }
.footer-links a:hover { color: var(--dark-text); text-decoration: none; }
.footer-legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-hairline);
  font-size: 13px;
  color: var(--dark-text-3);
  text-align: center;
}

/* ---------- Modal（免费额度用完 → 付费引导；backdrop 淡入 + 卡片 spring 弹出） ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23, 23, 23, 0.55); backdrop-filter: blur(3px); animation: fadeIn 0.25s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--demo-shadow);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: modalPop 0.4s var(--ease-spring) both;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.modal-card h3 { font-size: 24px; letter-spacing: -0.02em; }
.modal-card p { color: var(--ink-secondary); font-size: 15px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Terms / Privacy ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 96px 24px 96px; }
.legal h1 { font-size: 36px; letter-spacing: -0.02em; }
.legal .updated { color: var(--muted); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; }
.legal h2 { font-size: 20px; letter-spacing: -0.01em; margin-top: 40px; }
.legal p, .legal li { font-size: 17px; color: var(--ink-secondary); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }

/* ---------- 通用装饰动效 ---------- */
/* 呼吸环（logo/箭头/live/featured 共用；transform/opacity only） */
@keyframes ringPulse {
  0%   { transform: scale(0.7); opacity: 0.8; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .demo-wrap { margin-top: -32px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-arrow { transform: rotate(90deg); align-self: flex-start; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan.featured { margin-top: 20px; }
}
@media (max-width: 640px) {
  section { padding: 48px 0; }
  .hero h1 { font-size: 32px; }
  .hero .sub { font-size: 17px; }
  .wrap, .nav-inner, .demo-wrap { padding-left: 20px; padding-right: 20px; }
  .nav-links a:not(.btn) { display: none; }
  .step { flex-direction: column; gap: 10px; padding: 28px 4px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
  .demo-grid { padding: 16px; }
  .micro-data { gap: 12px; padding: 12px 16px; }
}

/* ---------- Motion：prefers-reduced-motion 全部归零 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; filter: none; }
  .step-num { opacity: 1; transform: none; }
}
