/* =====================================================================
   贸小秘 · 官网 v2
   设计令牌严格对齐 saas-app/marketing/docs/DESIGN_SYSTEM.md v1.0
   ink / brand / accent / success · 自托管字体 · 8 点网格 · 4 档圆角
   ===================================================================== */

/* ---------- Fonts (self-hosted, zero external CDN) ---------- */
@font-face { font-family: 'Instrument Sans'; src: url('assets/fonts/instrument-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('assets/fonts/instrument-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('assets/fonts/instrument-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('assets/fonts/instrument-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('assets/fonts/geist-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('assets/fonts/geist-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink-950: #050816;
  --ink-900: #0A0E27;
  --ink-800: #0F1730;
  --ink-700: #1A2342;
  --ink-500: #475569;
  --ink-400: #64748B;
  --ink-300: #94A3B8;
  --ink-200: #CBD5E1;
  --ink-100: #E2E8F0;
  --ink-50:  #F8FAFC;

  --brand-50:  #EBF2FF;
  --brand-100: #D6E4FF;
  --brand-500: #005DEB;
  --brand-600: #0050C9;
  --brand-700: #0043A6;

  --accent-50:  #E6FCF5;
  --accent-500: #00D4AA;
  --accent-600: #00B894;

  --success-50:  #ECFDF5;
  --success-100: #D1FAE5;
  --success-500: #10B981;
  --success-600: #047857;
  --success-700: #065F46;

  --font-cn: 'PingFang SC', 'HarmonyOS Sans SC', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-display: 'Instrument Sans', var(--font-cn);
  --font-body: 'Inter', var(--font-cn);
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --feat-latin: 'cv11' 1, 'ss01' 1, 'calt' 1;

  --ls-display: -0.010em;
  --ls-heading: -0.004em;
  --ls-num: -0.035em;
  --ls-cn: 0.012em;
  --lh-tight: 1.14;
  --lh-snug: 1.34;
  --lh-normal: 1.62;
  --lh-relaxed: 1.80;

  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 1px 2px rgba(10, 14, 39, .04), 0 12px 32px -12px rgba(10, 14, 39, .18);
  --shadow-float: 0 24px 60px -20px rgba(10, 14, 39, .30), 0 2px 8px rgba(10, 14, 39, .06);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-feature-settings: var(--feat-latin);
  font-size: 15px;
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-snug);
  font-feature-settings: var(--feat-latin);
  text-wrap: pretty;
}
h2, h3 { text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
code, pre, kbd, samp { font-synthesis: none; }
::selection { background: var(--success-600); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-num); font-synthesis: none; }
.dim { color: var(--ink-400); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.br-md { display: none; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.text-brand { color: var(--brand-500); }
@media (min-width: 768px) { .section { padding-block: 128px; } .container { padding-inline: 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  padding: 8px 16px; border-radius: var(--r-lg);
  background: var(--brand-500); color: #fff; font-weight: 600; font-size: 14px; line-height: 1;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Shared components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: #fff; color: var(--ink-500);
  border: 1px solid var(--ink-100);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--font-display);
}
.eyebrow .icon { width: 14px; height: 14px; color: var(--brand-500); }
.eyebrow-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: #CBD5E1;
  border: 1px solid rgba(255,255,255,.14);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success-600); animation: pulse-soft 2.5s ease-in-out infinite; }
.eyebrow-dark .pulse-dot, .window-badge .pulse-dot { background: var(--accent-500); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding-inline: 24px; border-radius: var(--r-xl);
  font-size: 15px; font-weight: 600; letter-spacing: var(--ls-heading);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink-900); color: #fff; box-shadow: 0 6px 16px -8px rgba(10,14,39,.55); }
.btn-primary:hover { background: var(--ink-800); box-shadow: 0 14px 28px -12px rgba(10,14,39,.55); }
.btn-accent { background: var(--accent-500); color: var(--ink-900); }
.btn-accent:hover { background: var(--accent-600); box-shadow: 0 14px 28px -12px rgba(0,212,170,.5); }
.btn-ghost { color: var(--ink-900); background: transparent; padding-inline: 16px; }
.btn-ghost:hover { color: var(--brand-500); }
.btn-sm { height: 40px; padding-inline: 16px; font-size: 14px; }

.mini-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--ink-50); border: 1px solid var(--ink-100);
  color: var(--ink-500); font-size: 11px; font-weight: 500;
  font-family: var(--font-mono); letter-spacing: 0;
  white-space: nowrap;
}
.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding-inline: 14px; border-radius: var(--r-lg);
  border: 1px solid var(--ink-200); background: #fff; color: var(--ink-700);
  font-size: 12px; font-weight: 600;
  transition: all .2s ease;
}
.mini-btn:hover { border-color: var(--brand-500); color: var(--brand-500); transform: translateY(-1px); }
.mini-btn-solid { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.mini-btn-solid:hover { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.mini-btn .icon { width: 14px; height: 14px; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-top: 20px; font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: var(--ls-display); line-height: var(--lh-tight); }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--ink-500); line-height: var(--lh-normal); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow, .section-head.center .eyebrow-dark { margin-inline: auto; }
/* 桌面端：蓝色强调短语不跨行拆词（中文标题末行不落单字） */
@media (min-width: 900px) { .section-head h2 .text-brand { white-space: nowrap; } }
/* 小屏：H1 收紧到一行放得下 7 字渐变短语，避免折成三行 */
@media (max-width: 639px) {
  .hero h1 { font-size: clamp(38px, 10.5vw, 48px); }
  .gradient-text { white-space: nowrap; }
}

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-reveal-stagger] > *:nth-child(1) { --reveal-delay: 0ms; }
[data-reveal-stagger] > *:nth-child(2) { --reveal-delay: 80ms; }
[data-reveal-stagger] > *:nth-child(3) { --reveal-delay: 160ms; }
[data-reveal-stagger] > *:nth-child(4) { --reveal-delay: 240ms; }
[data-reveal-stagger] > *:nth-child(5) { --reveal-delay: 320ms; }
[data-reveal-stagger] > *:nth-child(6) { --reveal-delay: 400ms; }

/* spotlight (cursor-follow highlight) */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0,93,235,.09), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ---------- Scroll progress / header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand-500), var(--accent-500)); box-shadow: 0 0 12px rgba(0,93,235,.5); transition: width .08s linear; }
.site-header { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.78); backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--ink-100); transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled { background: rgba(255,255,255,.92); box-shadow: 0 6px 20px -16px rgba(10,14,39,.30); }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .3s ease; }
.site-header.is-scrolled .header-inner { height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 36px; height: 36px; border-radius: var(--r-lg); transition: transform .25s var(--ease-out); }
.brand:hover img { transform: rotate(-7deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: var(--ls-heading); }
.brand-text small { font-size: 10px; color: var(--ink-400); letter-spacing: .08em; }
.desktop-nav { display: none; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; color: var(--ink-500); }
.desktop-nav a { position: relative; padding-block: 6px; transition: color .2s ease; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand-500); transition: right .3s var(--ease-out); }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--ink-900); }
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-lg); border: 1px solid var(--ink-100); background: #fff; color: var(--ink-900); transition: all .2s ease; }
.menu-toggle:hover { border-color: var(--brand-500); color: var(--brand-500); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r-lg); border: 1px solid var(--ink-100); background: #fff; color: var(--ink-900); }
@media (min-width: 900px) { .desktop-nav { display: flex; } .menu-toggle { display: none; } }

.nav-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(5,8,22,.45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.nav-overlay.is-open { opacity: 1; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 96;
  background: #fff; padding: 20px; border-left: 1px solid var(--ink-100);
  display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%); transition: transform .4s var(--ease-out);
  box-shadow: -20px 0 60px -30px rgba(10,14,39,.4);
}
.mobile-nav.is-open { transform: none; }
.mobile-nav[hidden], .nav-overlay[hidden] { display: none; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--ink-100); font-size: 16px; font-weight: 600; }
.mobile-nav nav a .icon { width: 16px; height: 16px; color: var(--ink-400); }
.mobile-cta { margin-top: auto; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fff 42%, var(--ink-50) 100%); padding-top: 72px; padding-bottom: 88px; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(to right, rgba(10,14,39,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(10,14,39,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 20%, transparent 100%);
}
.hero-glow {
  position: absolute; width: 720px; height: 720px; border-radius: 50%; pointer-events: none;
  left: var(--gx, 50%); top: var(--gy, 30%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,93,235,.10) 0%, rgba(0,212,170,.05) 35%, transparent 68%);
  opacity: 0; transition: opacity .5s ease; z-index: 0;
}
.hero-glow.is-active { opacity: 1; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 680px; }
.hero h1 { margin-top: 28px; font-size: clamp(48px, 8vw, 88px); font-weight: 700; letter-spacing: var(--ls-display); line-height: var(--lh-tight); }
.gradient-text { background: linear-gradient(135deg, var(--ink-900) 0%, var(--brand-500) 48%, var(--success-600) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1-dot { color: var(--ink-300); }
.hero-sub { margin-top: 28px; max-width: 600px; font-size: 19px; line-height: 1.72; color: var(--ink-500); }
.hero-sub strong { color: var(--ink-900); font-weight: 600; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.play-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand-500); }
.play-badge .icon { width: 12px; height: 12px; margin-left: 2px; }
.hero-trust { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; color: var(--ink-500); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { width: 15px; height: 15px; color: var(--success-600); }

/* demo window */
.hero-visual { position: relative; min-width: 0; }
.demo-window { position: relative; border-radius: var(--r-3xl); background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--shadow-float); overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.window-bar, .wb-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding-inline: 16px; background: var(--ink-900); color: #fff; }
.window-dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); }
.window-dots i:first-child { background: rgba(255,255,255,.42); }
.window-title { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.82); }
.window-title .icon { width: 13px; height: 13px; color: var(--accent-500); }
.window-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 10px; font-family: var(--font-mono); color: #CBD5E1; }
.window-body { display: grid; grid-template-columns: 1fr; }
.demo-side { display: none; padding: 18px 14px; background: var(--ink-50); border-right: 1px solid var(--ink-100); }
.side-label { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 10px; }
.side-label-gap { margin-top: 24px; }
.side-item { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px; border: 0; border-radius: var(--r-lg); background: transparent; text-align: left; color: var(--ink-700); }
.side-item.is-active { background: #fff; box-shadow: 0 1px 4px rgba(10,14,39,.08); }
.side-item strong { display: block; font-size: 11px; font-weight: 600; }
.side-item small { display: block; font-size: 10px; color: var(--ink-400); }
.side-avatar { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-family: var(--font-display); font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.side-channel { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 11px; color: var(--ink-500); }
.side-channel .icon { width: 13px; height: 13px; color: var(--success-600); }
.demo-main { padding: 18px; min-width: 0; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.demo-head .mono { font-size: 10px; }
.demo-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 11px; font-weight: 600; transition: background-color .3s ease, color .3s ease; }
.demo-status .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.demo-status.is-done { background: var(--success-50); color: var(--success-700); }
.inbound { border: 1px solid var(--ink-100); border-radius: var(--r-2xl); padding: 12px 14px; background: var(--ink-50); }
.inbound-top { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.inbound-top .side-avatar { width: 22px; height: 22px; font-size: 10px; }
.inbound-top .mono { margin-left: auto; font-size: 10px; }
.inbound p { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--ink-700); }
.demo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.demo-step { padding: 7px 4px; border: 1px solid var(--ink-100); border-radius: var(--r-lg); background: #fff; color: var(--ink-400); font-size: 11px; font-weight: 600; transition: all .25s ease; }
.demo-step .mono { display: block; font-size: 9px; opacity: .7; }
.demo-step:hover { border-color: var(--brand-100); color: var(--brand-500); }
.demo-step.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; box-shadow: 0 6px 14px -8px rgba(10,14,39,.7); }
.demo-panels { position: relative; min-height: 148px; margin-top: 14px; }
.demo-panel { display: none; animation: fade-up .5s var(--ease-out) both; }
.demo-panel.is-active { display: block; }
.panel-line { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12px; color: var(--ink-700); border-bottom: 1px dashed var(--ink-100); }
.panel-line .icon { width: 15px; height: 15px; color: var(--success-600); }
.panel-line code, .panel-note code { font-family: var(--font-mono); font-size: 11px; color: var(--brand-700); background: var(--brand-50); padding: 1px 5px; border-radius: 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.draft-box { border: 1px solid var(--brand-100); border-radius: var(--r-2xl); background: linear-gradient(135deg, #fff, var(--brand-50)); padding: 14px; }
.draft-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--brand-700); }
.draft-label .icon { width: 14px; height: 14px; }
.draft-label .mono { margin-left: auto; font-size: 9px; font-weight: 400; }
.draft-box p { margin-top: 10px; min-height: 44px; font-size: 12px; line-height: 1.65; color: var(--ink-700); }
.caret { display: inline-block; width: 2px; height: 13px; background: var(--brand-500); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.panel-note { margin-top: 10px; font-size: 11px; color: var(--ink-400); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.review-grid > div { border: 1px solid var(--ink-100); border-radius: var(--r-lg); padding: 10px; background: #fff; }
.review-grid p { margin-top: 8px; font-size: 11px; line-height: 1.6; color: var(--ink-500); }
.review-actions { display: flex; gap: 8px; margin-top: 12px; }
.done-card { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: var(--r-2xl); background: var(--success-50); border: 1px solid var(--success-100); font-size: 12px; color: var(--success-700); }
.done-card .icon { width: 18px; height: 18px; }
.done-card .mini-chip { margin-left: auto; background: #fff; color: var(--success-700); border-color: var(--success-100); }
.done-card strong { font-family: var(--font-mono); }
.demo-controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ink-100); }
.ctrl-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink-100); background: #fff; color: var(--ink-500); transition: all .2s ease; flex: 0 0 auto; }
.ctrl-btn:hover { color: var(--brand-500); border-color: var(--brand-500); transform: scale(1.08); }
.ctrl-btn .icon { width: 12px; height: 12px; }
.demo-progress { flex: 1; height: 4px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.demo-progress span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--accent-500)); transition: width .12s linear; }
.demo-controls .mono { font-size: 10px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-xl); background: rgba(255,255,255,.94); border: 1px solid var(--ink-100); box-shadow: var(--shadow-card); backdrop-filter: blur(12px); z-index: 3; }
.float-card > div { display: flex; flex-direction: column; line-height: 1.35; }
.float-card .mono { font-size: 9px; }
.float-card strong { font-size: 11px; font-family: var(--font-mono); font-weight: 500; color: var(--ink-900); }
.float-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--r-lg); background: var(--brand-50); color: var(--brand-500); }
.float-icon.green { background: var(--success-50); color: var(--success-600); }
.float-icon .icon { width: 16px; height: 16px; }
.float-a { top: -58px; left: 6%; animation: float-y 6s ease-in-out infinite; }
.float-b { bottom: -58px; right: 6%; animation: float-y 6s ease-in-out infinite 1.2s; }
@media (max-width: 900px) { .float-card { display: none; } }
@media (min-width: 900px) { .window-body { grid-template-columns: 172px 1fr; } .demo-side { display: block; } }
@media (min-width: 1100px) {
  .hero { padding-top: 108px; padding-bottom: 128px; }
  .hero-inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; }
  .hero h1 { font-size: clamp(52px, 4.6vw, 70px); }
  .gradient-text { white-space: nowrap; }
}

/* ---------- 2. Trust ---------- */
.trust { background: var(--ink-50); border-block: 1px solid var(--ink-100); padding-block: 40px; }
.trust-inner { display: grid; gap: 32px; align-items: center; }
.trust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-mono); font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: var(--ls-num); color: var(--ink-900); font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 15px; margin-left: 2px; color: var(--ink-400); }
.stat strong { font-size: 13px; font-weight: 600; color: var(--ink-700); }
.stat > span { font-size: 11px; color: var(--ink-400); line-height: 1.5; }
.trust-eco { min-width: 0; }
.eco-label { font-size: 10px; color: var(--ink-400); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.marquee { overflow: hidden; }
.mask-fade { -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 42s linear infinite; }
.eco-group { display: flex; gap: 10px; padding-right: 10px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.eco-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--ink-100); font-size: 11px; font-weight: 500; color: var(--ink-500); white-space: nowrap; }
.eco-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--success-500); }
@media (min-width: 1024px) { .trust-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; } .trust-stats { border-right: 1px solid var(--ink-200); padding-right: 48px; } }

/* ---------- 3. Comparison ---------- */
.compare { background: #fff; }
.compare-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.compare-card { position: relative; overflow: hidden; border-radius: var(--r-3xl); padding: 28px; border: 1px solid var(--ink-100); background: #fff; }
.compare-card.compare-new { border: 2px solid var(--ink-900); background: linear-gradient(150deg, #fff 10%, var(--brand-50) 65%, var(--success-50) 140%); box-shadow: var(--shadow-card); }
.inline-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; padding: 5px 12px; border-radius: 999px; background: var(--ink-900); color: #fff; font-size: 11px; font-weight: 600; }
.inline-badge .icon { width: 13px; height: 13px; color: var(--accent-500); }
.compare-head { margin-bottom: 20px; }
.compare-index { display: block; font-size: 10px; color: var(--ink-400); letter-spacing: .18em; margin-bottom: 8px; }
.compare-head h3 { font-size: 28px; font-weight: 700; }
.compare-head p { margin-top: 6px; font-size: 13px; color: var(--ink-500); }
.pain-list, .gain-list { display: flex; flex-direction: column; gap: 6px; }
.pain-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--r-xl); background: var(--ink-50); color: var(--ink-500); font-size: 13px; text-align: left; transition: all .25s ease; }
.pain-item:hover { color: var(--ink-900); border-color: var(--ink-200); }
.pain-item.is-active { background: #fff; border-color: var(--ink-200); color: var(--ink-900); box-shadow: 0 4px 14px -8px rgba(10,14,39,.35); font-weight: 600; }
.pain-x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #FEE2E2; color: #B91C1C; font-size: 13px; font-weight: 700; flex: 0 0 auto; line-height: 1; }
.pain-item .icon { width: 14px; height: 14px; margin-left: auto; opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.pain-item.is-active .icon, .pain-item:hover .icon { opacity: 1; color: var(--brand-500); transform: translateX(2px); }
.gain-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 13px; border-radius: var(--r-xl); opacity: .42; transition: opacity .3s ease, background-color .3s ease, transform .3s var(--ease-out), box-shadow .3s ease; }
.gain-list li.is-active { opacity: 1; background: rgba(255,255,255,.85); box-shadow: 0 6px 20px -12px rgba(10,14,39,.4); transform: translateX(4px); }
.gain-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--success-600); color: #fff; flex: 0 0 auto; }
.gain-check .icon { width: 13px; height: 13px; }
.gain-list strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink-900); }
.gain-list small { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-500); line-height: 1.5; }
.compare-foot { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ink-200); font-size: 11px; color: var(--ink-500); }
.compare-foot .icon { width: 14px; height: 14px; color: var(--success-600); }
@media (min-width: 1024px) { .compare-grid { grid-template-columns: 1fr 1fr; } .compare-card { padding: 32px; } .pain-item, .gain-list li { font-size: 14px; } }

/* ---------- 4. Features ---------- */
.features { background: var(--ink-50); }
.workbench { border-radius: var(--r-3xl); background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--shadow-card); overflow: hidden; }
.wb-bar { height: 46px; }
.wb-title { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85); }
.wb-mode { margin-left: auto; font-size: 10px; color: var(--ink-300); }
.wb-tabs { display: flex; overflow-x: auto; gap: 4px; padding: 12px 16px 0; background: #fff; border-bottom: 1px solid var(--ink-100); scrollbar-width: none; }
.wb-tabs::-webkit-scrollbar { display: none; }
.wb-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 12px 16px; border: 0; background: transparent; color: var(--ink-400); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .2s ease; }
.wb-tab .icon { width: 15px; height: 15px; }
.wb-tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand-500); transform: scaleX(0); transition: transform .3s var(--ease-out); }
.wb-tab:hover { color: var(--ink-900); }
.wb-tab.is-active { color: var(--brand-500); }
.wb-tab.is-active::after { transform: scaleX(1); }
.wb-panels { padding: 32px; }
.wb-panel { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; animation: fade-up .55s var(--ease-out) both; }
.wb-panel[hidden] { display: none; }
.wb-copy h3 { margin-top: 14px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; text-wrap: pretty; }
.wb-copy p { margin-top: 12px; font-size: 14px; color: var(--ink-500); line-height: var(--lh-normal); max-width: 460px; }
.wb-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.wb-points span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-700); }
.wb-points .icon { width: 14px; height: 14px; color: var(--success-600); }
.wb-visual { border-radius: var(--r-2xl); border: 1px solid var(--ink-100); background: var(--ink-50); padding: 22px; min-width: 0; }
.state-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.state-pill { padding: 5px 9px; border-radius: 999px; border: 1px solid var(--ink-200); background: #fff; font-family: var(--font-mono); font-size: 10px; color: var(--ink-400); }
.state-pill.done { background: var(--success-50); border-color: var(--success-100); color: var(--success-700); }
.state-pill.current { background: var(--brand-500); border-color: var(--brand-500); color: #fff; box-shadow: 0 4px 12px -6px rgba(0,93,235,.8); }
.state-flow i { flex: 1; min-width: 8px; height: 1px; background: var(--ink-200); }
.draft-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.draft-col { padding: 12px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--ink-100); }
.draft-col p { margin-top: 8px; font-size: 11px; line-height: 1.6; color: var(--ink-500); }
.wb-note { display: flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 11px; color: var(--ink-500); }
.wb-note .icon { width: 14px; height: 14px; color: var(--success-600); }
.axis-row { display: grid; grid-template-columns: 40px 1fr 84px; align-items: center; gap: 12px; margin-bottom: 16px; }
.axis-name { font-size: 12px; font-weight: 600; color: var(--ink-700); }
.axis-track { height: 8px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.axis-track i { display: block; height: 100%; width: var(--fill); border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--accent-500)); transform-origin: left; animation: grow-x 1.1s var(--ease-out) both; }
.axis-row strong { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink-700); text-align: right; }
.order-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding: 12px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--ink-100); font-size: 11px; }
.version-chain { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.version { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--ink-200); font-family: var(--font-mono); font-size: 13px; color: var(--ink-400); }
.version small { font-size: 9px; letter-spacing: 0; }
.version.v-old { opacity: .6; text-decoration: line-through; }
.version.v-current { background: var(--ink-900); border-color: var(--ink-900); color: #fff; box-shadow: 0 8px 20px -10px rgba(10,14,39,.7); }
.version.v-current small { color: var(--accent-500); }
.version-chain i { flex: 1; min-width: 10px; height: 1px; background: var(--ink-200); }
.quote-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }
.quote-meta > span:first-child { color: var(--ink-900); font-weight: 500; }
.wb-loading { display: flex; flex-direction: column; gap: 14px; }
.iso-wrap { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--ink-100); padding: 8px; }
.iso-svg { width: 100%; height: auto; color: var(--ink-300); display: block; }
.iso-frame { color: var(--ink-400); }
.iso-box { fill: var(--brand-100); stroke: var(--brand-500); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.iso-box.is-in { animation: box-in .5s var(--ease-out) forwards; }
.iso-box:nth-child(3n) { fill: var(--success-100); stroke: var(--success-600); }
.loading-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.util { display: flex; flex-direction: column; align-items: flex-end; font-size: 10px; color: var(--ink-400); }
.util strong { font-family: var(--font-mono); font-size: 20px; color: var(--ink-900); letter-spacing: var(--ls-num); }
@media (min-width: 900px) { .wb-panels { padding: 40px; } .wb-panel { grid-template-columns: 1fr 1fr; gap: 40px; } }

.cap-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
.cap-card { padding: 24px; border-radius: var(--r-3xl); background: #fff; border: 1px solid var(--ink-100); transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease; }
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--ink-200); }
.cap-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-xl); background: var(--brand-50); color: var(--brand-500); }
.cap-icon.dark { background: var(--ink-900); color: #fff; }
.cap-icon.green { background: var(--success-50); color: var(--success-600); }
.cap-card h3 { margin-top: 16px; font-size: 18px; font-weight: 700; }
.cap-card p { margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--ink-500); }
.cap-tag { display: inline-block; margin-top: 16px; font-size: 10px; color: var(--ink-400); letter-spacing: .06em; }
@media (min-width: 640px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cap-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 5. Workflow ---------- */
.workflow { background: #fff; }
.steps { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; }
.steps::before { content: ''; position: absolute; left: 20px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--ink-100); }
.steps::after { content: ''; position: absolute; left: 20px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-500), var(--accent-500)); transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease-out); }
.steps.is-drawn::after { transform: scaleY(1); }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: start; }
.step-node { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-100); color: var(--ink-400); font-size: 13px; font-weight: 500; transition: all .4s var(--ease-out); }
.step.is-visible .step-node { border-color: var(--brand-500); color: var(--brand-500); box-shadow: 0 0 0 5px var(--brand-50); }
.step-body { padding-bottom: 8px; }
.step-body h3 { font-size: 20px; font-weight: 700; }
.step-body p { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--ink-500); }
.step-code { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: var(--r-lg); background: var(--ink-50); border: 1px solid var(--ink-100); font-size: 10px; color: var(--ink-500); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  /* 连线止于最后一个节点中心：4 列等分、gap 24、节点宽 42 */
  .steps::before { left: 21px; right: calc(25% - 39px); top: 20px; bottom: auto; width: auto; height: 2px; }
  .steps::after { left: 21px; right: calc(25% - 39px); top: 20px; bottom: auto; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
  .steps.is-drawn::after { transform: scaleX(1); }
  .step { grid-template-columns: 1fr; gap: 20px; }
  .step-body { padding-right: 8px; }
}

/* ---------- 6. Pricing (唯一整段深色) ---------- */
.pricing { position: relative; overflow: hidden; background: var(--ink-950); color: #fff; }
.pricing-glow { position: absolute; top: -30%; left: 50%; width: 900px; height: 700px; transform: translateX(-50%); background: radial-gradient(circle, rgba(0,93,235,.20), rgba(0,212,170,.05) 40%, transparent 70%); pointer-events: none; }
.pricing .container { position: relative; }
.pricing .section-head h2 { color: #fff; }
.pricing .section-head p { color: var(--ink-300); }
.price-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1080px; margin-inline: auto; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-3xl); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease; }
.price-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.28); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.price-card.is-featured { background: #fff; border-color: var(--accent-500); color: var(--ink-900); box-shadow: 0 0 0 1px rgba(0,212,170,.35), 0 30px 70px -30px rgba(0,212,170,.35); }
.price-badge { position: absolute; top: 20px; right: 20px; padding: 4px 12px; border-radius: 999px; background: var(--ink-900); color: #fff; font-size: 11px; font-weight: 600; }
.price-name { font-size: 14px; font-weight: 600; color: var(--ink-300); }
.is-featured .price-name { color: var(--success-700); }
.price-value { margin-top: 14px; font-family: var(--font-mono); font-size: 42px; font-weight: 500; line-height: 1.1; letter-spacing: var(--ls-num); color: #fff; font-variant-numeric: tabular-nums; }
.is-featured .price-value { color: var(--ink-900); }
.price-value span { margin-left: 8px; font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--ink-300); }
.is-featured .price-value span { color: var(--ink-500); }
.price-desc { margin-top: 10px; min-height: 44px; font-size: 12px; color: var(--ink-300); line-height: 1.6; }
.is-featured .price-desc { color: var(--ink-500); }
.price-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: 20px; border-radius: var(--r-xl); border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.06); color: #fff; font-size: 14px; font-weight: 600; transition: all .2s ease; }
.price-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.price-btn.is-filled { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.price-btn.is-filled:hover { background: var(--brand-500); border-color: var(--brand-500); }
.price-card:not(.is-featured) .price-btn:not(.is-filled) { color: #fff; }
.price-btn .icon { width: 15px; height: 15px; }
.price-card ul { margin-top: 24px; display: flex; flex-direction: column; gap: 11px; }
.price-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.55; color: var(--ink-300); }
.price-card li::before { content: ''; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: rgba(0,212,170,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 13 4 4L19 7' fill='none' stroke='%2300D4AA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.is-featured li { color: var(--ink-500); }
.is-featured li::before { background-color: var(--success-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 13 4 4L19 7' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.price-foot { margin-top: 40px; text-align: center; font-size: 12px; color: var(--ink-400); }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } .price-card { padding: 32px; } }

/* ---------- 7. Architecture ---------- */
.architecture { background: var(--ink-50); }
.arch-board { border-radius: var(--r-3xl); background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--shadow-card); overflow: hidden; }
.arch-flow { display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px; padding: 28px; }
.arch-node { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px; border-radius: var(--r-2xl); border: 1px solid var(--ink-100); background: var(--ink-50); color: var(--ink-900); text-align: center; transition: all .3s var(--ease-out); }
.arch-node:hover { transform: translateY(-3px); border-color: var(--brand-100); box-shadow: var(--shadow-card); }
.arch-node.is-active { background: #fff; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50), var(--shadow-card); }
.arch-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--ink-100); color: var(--brand-500); }
.arch-node.is-active .arch-icon { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.arch-icon .icon { width: 20px; height: 20px; }
.arch-node-name { margin-top: 6px; font-size: 15px; font-weight: 700; }
.arch-node-sub { font-size: 9px; color: var(--ink-400); letter-spacing: .08em; }
.arch-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; }
.link-line { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--ink-200) 20%, var(--ink-200) 80%, transparent); }
.arch-link .link-line i { position: absolute; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 10px rgba(0,93,235,.7); animation: flow-x 2.6s linear infinite; }
.arch-link .link-line i:nth-child(2) { animation-delay: .85s; }
.arch-link .link-line i:nth-child(3) { animation-delay: 1.7s; }
.link-label { font-size: 9px; color: var(--ink-400); letter-spacing: .06em; }
.arch-detail { padding: 28px 32px 32px; background: var(--ink-900); color: #fff; position: relative; overflow: hidden; }
.arch-detail::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(0,93,235,.25), transparent 55%); pointer-events: none; }
.arch-detail > * { position: relative; }
.arch-detail .mini-chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--accent-500); }
.arch-detail h3 { margin-top: 14px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; }
.arch-detail p { margin-top: 12px; max-width: 780px; font-size: 14px; line-height: 1.75; color: var(--ink-300); }
.arch-principles { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
.principle { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--ink-100); }
.principle .icon { width: 18px; height: 18px; color: var(--success-600); }
.principle strong { font-size: 13px; }
.principle span { font-size: 11px; color: var(--ink-400); }
@media (min-width: 900px) {
  .arch-flow { grid-template-columns: 1fr 120px 1fr 120px 1fr; padding: 36px; }
  .arch-link .link-line { height: 2px; }
  .arch-link .link-line i { animation-name: flow-x; }
  .arch-principles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 899px) {
  .arch-link { transform: rotate(90deg); height: 40px; padding: 0; }
  .arch-link .link-line { width: 40px; }
  .arch-link .link-line i { animation-name: flow-x; }
  .link-label { display: none; }
}

/* ---------- 8. FAQ ---------- */
.faq { background: #fff; }
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--ink-100); border-radius: var(--r-2xl); background: #fff; overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease; }
.faq-item:hover { border-color: var(--ink-200); }
.faq-item[open] { border-color: var(--brand-100); box-shadow: 0 10px 28px -20px rgba(0,93,235,.7); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink-900); transition: color .2s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--brand-500); }
.faq-item summary .icon { width: 18px; height: 18px; color: var(--ink-400); transition: transform .3s var(--ease-out), color .2s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--brand-500); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 22px 20px; font-size: 13px; line-height: 1.8; color: var(--ink-500); }

/* ---------- 9. CTA ---------- */
.cta { background: var(--ink-50); }
.cta-card { position: relative; overflow: hidden; border-radius: var(--r-3xl); background: var(--ink-900); color: #fff; padding: 56px 28px; text-align: center; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(0,93,235,.32), transparent 62%); pointer-events: none; }
.cta-grid-lines { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent); mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent); pointer-events: none; }
.cta-content { position: relative; max-width: 900px; margin-inline: auto; }
.cta-contact { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; text-align: center; }
.cta-copy { max-width: 520px; margin-inline: auto; }
.cta h2 { margin-top: 24px; font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; line-height: var(--lh-tight); }
.cta-copy p { margin-top: 18px; font-size: 15px; line-height: 1.8; color: var(--ink-300); }
.qr-card { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 16px 18px; border-radius: var(--r-2xl); background: #fff; box-shadow: 0 24px 60px -24px rgba(0,0,0,.65); }
.qr-card img { display: block; width: 180px; height: 180px; border-radius: var(--r-lg); }
.qr-card strong { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink-900); letter-spacing: var(--ls-heading); }
.qr-card span { font-size: 11px; color: var(--ink-500); }
.cta-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; font-size: 12px; color: var(--ink-300); }
.cta-meta a { display: inline-flex; align-items: center; gap: 4px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.cta-meta a .icon { width: 12px; height: 12px; }
.cta-sep { width: 1px; height: 12px; background: rgba(255,255,255,.2); }
@media (min-width: 768px) {
  .cta-card { padding: 72px 56px; }
  .cta-contact { grid-template-columns: 1fr auto; gap: 56px; text-align: left; }
  .cta-copy { margin-inline: 0; }
  .cta-contact .cta-meta { justify-content: flex-start; }
  .qr-card { padding: 18px 18px 20px; }
  .qr-card img { width: 200px; height: 200px; }
  .br-md { display: inline; }
}

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--ink-100); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 180px; height: auto; }
.footer-brand p { margin-top: 16px; font-size: 12px; line-height: 1.8; color: var(--ink-400); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { font-size: 12px; font-weight: 700; color: var(--ink-900); }
.footer-links a { font-size: 12px; color: var(--ink-500); transition: color .2s ease; }
.footer-links a:hover { color: var(--brand-500); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; border-top: 1px solid var(--ink-100); font-size: 11px; color: var(--ink-400); }
.footer-bottom .mono { font-size: 10px; letter-spacing: .06em; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.2fr 1fr; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ink-100); background: #fff; color: var(--ink-900); box-shadow: var(--shadow-card); opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .3s var(--ease-out); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--brand-500); border-color: var(--brand-500); transform: translateY(-3px); }
.to-top .icon { width: 18px; height: 18px; }

/* ---------- Keyframes ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flow-x { from { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes box-in { from { opacity: 0; transform: translateY(-14px) scale(.7); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .steps::after { transform: scaleX(1) scaleY(1); }
  .iso-box { opacity: 1; }
}
