/* Nerva website r4 — Calm Control. Self-hosted, no external fonts or resource references. */
:root {
  color-scheme: light;
  --bg: #FAF9F7; --bg-2: #F3F1EC; --bg-3: #ECE9E3;
  --ink: #16161A; --ink-2: #45454D; --ink-3: #6A6A73; --ink-4: #9B9AA1;
  --line: rgba(22, 22, 26, .08); --line-2: rgba(22, 22, 26, .14);
  --panel: rgba(255, 255, 255, .72); --panel-solid: #FFFFFF; --panel-2: rgba(255, 255, 255, .55);
  --brand: #1F6BFF; --brand-2: #1AB4F0; --brand-ink: #1C5FE6;
  --ico-l: inline-block; --ico-d: none;
  --codex: #3E9C82; --claude: #C9764B; --dsh: #5A63C9; --openclaw: #2E9FB0; --hermes: #8C63C9;
  --ok: #2F9E6A; --warn: #D98A2B;
  --shadow-sm: 0 1px 2px rgba(40, 32, 20, .05), 0 2px 8px rgba(40, 32, 20, .04);
  --shadow: 0 1px 2px rgba(40, 32, 20, .04), 0 12px 32px -8px rgba(60, 44, 24, .12), 0 40px 80px -24px rgba(60, 44, 24, .16);
  --shadow-xl: 0 2px 4px rgba(40, 32, 20, .04), 0 24px 48px -12px rgba(60, 44, 24, .16), 0 80px 140px -40px rgba(60, 44, 24, .28);
  --light-a: rgba(255, 214, 168, .55); --light-b: rgba(255, 236, 214, .7); --light-c: rgba(120, 180, 255, .34);
  --ui-bg: #FFFFFF; --ui-side: #F6F5F2; --ui-line: rgba(22, 22, 26, .07); --ui-ink: #1B1B20; --ui-ink-2: #6C6C75; --ui-bubble: #F1EFEA; --ui-code: #F4F3EF; --ui-active: rgba(31, 107, 255, .09);
  --dark-section: #0F1012; --dark-ink: #F2F0EC; --dark-ink-2: #A9A6A0;
  --radius: 16px; --radius-lg: 28px; --radius-xl: 40px;
  --ease: cubic-bezier(.2, .7, .1, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not(:has(#theme-light:checked)):not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1012; --bg-2: #141518; --bg-3: #1B1C20;
    --ink: #F2F0EC; --ink-2: #C4C1BA; --ink-3: #9C9992; --ink-4: #6E6C68;
    --line: rgba(242, 240, 236, .08); --line-2: rgba(242, 240, 236, .14);
    --panel: rgba(28, 29, 33, .72); --panel-solid: #1A1B1F; --panel-2: rgba(32, 33, 38, .55);
    --brand-ink: #7DB2FF; --ico-l: none; --ico-d: inline-block;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -10px rgba(0, 0, 0, .5), 0 40px 80px -24px rgba(0, 0, 0, .6);
    --shadow-xl: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -12px rgba(0, 0, 0, .6), 0 80px 140px -40px rgba(0, 0, 0, .7);
    --light-a: rgba(40, 120, 255, .16); --light-b: rgba(120, 200, 255, .05); --light-c: rgba(26, 180, 240, .14);
    --ui-bg: #17181B; --ui-side: #121316; --ui-line: rgba(242, 240, 236, .07); --ui-ink: #EDEBE6; --ui-ink-2: #8F8C86; --ui-bubble: #24252A; --ui-code: #1E1F23; --ui-active: rgba(80, 150, 255, .16);
    --dark-section: #08090B;
  }
}
:root:has(#theme-dark:checked), :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1012; --bg-2: #141518; --bg-3: #1B1C20;
  --ink: #F2F0EC; --ink-2: #C4C1BA; --ink-3: #9C9992; --ink-4: #6E6C68;
  --line: rgba(242, 240, 236, .08); --line-2: rgba(242, 240, 236, .14);
  --panel: rgba(28, 29, 33, .72); --panel-solid: #1A1B1F; --panel-2: rgba(32, 33, 38, .55);
  --brand-ink: #7DB2FF; --ico-l: none; --ico-d: inline-block;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -10px rgba(0, 0, 0, .5), 0 40px 80px -24px rgba(0, 0, 0, .6);
  --shadow-xl: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -12px rgba(0, 0, 0, .6), 0 80px 140px -40px rgba(0, 0, 0, .7);
  --light-a: rgba(40, 120, 255, .16); --light-b: rgba(120, 200, 255, .05); --light-c: rgba(26, 180, 240, .14);
  --ui-bg: #17181B; --ui-side: #121316; --ui-line: rgba(242, 240, 236, .07); --ui-ink: #EDEBE6; --ui-ink-2: #8F8C86; --ui-bubble: #24252A; --ui-code: #1E1F23; --ui-active: rgba(80, 150, 255, .16);
  --dark-section: #08090B;
}

:root:has(#theme-light:checked), :root[data-theme="light"] { color-scheme: light; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; transition: background-color .4s var(--ease), color .4s var(--ease); }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); }
svg { display: block; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: rgba(31, 107, 255, .22); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; transition: top .2s var(--ease); }
.skip-link:focus { top: 16px; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* Reading progress */
.reading-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.reading-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* Header */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: clamp(12px, 3vw, 32px); pointer-events: none; }
.header-inner { pointer-events: auto; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 8px 0 18px; border-radius: 999px; border: 1px solid transparent; transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
html.scrolled .header-inner, .page-downloads .header-inner, .page-privacy .header-inner, .page-terms .header-inner { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
.wordmark .mark { width: 28px; height: 28px; transition: transform .5s var(--ease-out); }
.site-nav { display: flex; gap: 4px; margin: 0 auto; }
.site-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: color .2s var(--ease), background-color .2s var(--ease); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--line); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.theme-control { display: flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); }
.theme-radio { position: absolute; opacity: 0; pointer-events: none; }
.theme-control label { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: var(--ink-3); cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease); }
.theme-control svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.theme-control svg .fill, .theme-control label[for="theme-dark"] svg path { fill: currentColor; stroke: none; }
.theme-control label[for="theme-dark"] svg path { fill: none; stroke: currentColor; }
.theme-radio:checked + label { background: var(--panel-solid); color: var(--ink); box-shadow: var(--shadow-sm); }
.theme-radio:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 1px; }
.language { padding: 8px 10px; font-size: 13px; font-weight: 550; color: var(--ink-2); border-radius: 999px; transition: color .2s var(--ease); }
.nav-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 550; transition: transform .25s var(--ease-out), opacity .2s; }

/* Shared type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2); font-size: 13px; font-weight: 500; letter-spacing: .01em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
h2 { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.08; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
:lang(zh-CN) h2 { letter-spacing: -.02em; line-height: 1.16; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.reveal-title > span { display: inline; }
.reveal-word { display: inline-block; white-space: pre; }
.split-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.split-head .eyebrow { margin-bottom: 22px; }
.split-head h2 { font-size: clamp(32px, 4.4vw, 58px); }

/* Buttons */
.button { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px 0 28px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 16px; font-weight: 600; letter-spacing: -.005em; box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 10px 30px -10px rgba(22, 22, 26, .5); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); will-change: transform; }
.i-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.ghost-link, .text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; color: var(--ink); }
.ghost-link { height: 54px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 16px; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.text-link { font-size: 15px; color: var(--brand-ink); }

/* Hero */
.hero { position: relative; padding-top: clamp(120px, 16vh, 168px); overflow-x: clip; overflow-y: visible; }
.hero-light { position: absolute; inset: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%); mask-image: linear-gradient(180deg, #000 55%, transparent 96%); }
.hero-light i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .9; }
.hero-light i:nth-child(1) { width: 62vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(closest-side, var(--light-a), transparent); animation: drift 26s var(--ease) infinite alternate; }
.hero-light i:nth-child(2) { width: 54vw; height: 44vw; right: -16vw; top: 4vw; background: radial-gradient(closest-side, var(--light-c), transparent); animation: drift 32s var(--ease) infinite alternate-reverse; }
.hero-light i:nth-child(3) { width: 120vw; height: 60vw; left: -10vw; top: 26vw; background: repeating-linear-gradient(112deg, transparent 0 7vw, var(--light-b) 7vw 10vw, transparent 10vw 15vw); filter: blur(28px); opacity: .55; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); animation: blinds 40s linear infinite alternate; }
@keyframes drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.08); } }
@keyframes blinds { to { transform: translate3d(-8vw, 0, 0); } }
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(47, 158, 106, .5); animation: breathe 2.6s var(--ease) infinite; }
@keyframes breathe { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 106, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(47, 158, 106, 0); } }
.hero h1 { margin-top: 28px; font-size: clamp(48px, 8.6vw, 120px); line-height: .98; letter-spacing: -.05em; font-weight: 680; }
:lang(zh-CN) .hero h1 { letter-spacing: -.035em; line-height: 1.06; font-size: clamp(50px, 8.8vw, 124px); }
.h1-line { display: block; overflow: hidden; padding: .02em .04em .14em; margin-bottom: -.1em; }
.h1-line > span { display: inline-block; }
.h1-line:nth-child(2) > span { background: linear-gradient(100deg, var(--ink) 18%, var(--brand-ink) 58%, #14A3E6 94%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-intro { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Hero icon — the real app icon with Signal rings */
.hero-icon { position: relative; width: 92px; height: 92px; margin-bottom: 26px; }
.hero-icon img { position: relative; width: 100%; height: 100%; border-radius: 21px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 20px 50px -14px rgba(31, 107, 255, .55), 0 0 0 .5px var(--line); animation: float 7s var(--ease) infinite alternate; }
.hi-ring { position: absolute; inset: -10px; border-radius: 30px; border: 1px solid rgba(31, 107, 255, .22); animation: ring 3.6s var(--ease-out) infinite; }
.hi-ring.r2 { animation-delay: 1.8s; }
@keyframes ring { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
@keyframes float { to { transform: translate3d(0, -6px, 0); } }
html:not(.signal-running) .hi-ring, html:not(.signal-running) .hero-icon img { animation-play-state: paused; }

.stage-glow { position: absolute; left: 46%; top: 42%; width: 84%; height: auto; transform: translate(-50%, -50%); filter: blur(110px) saturate(1.3); opacity: .32; pointer-events: none; z-index: 0; }
.mac, .hero-phone, .float-pill, .stage-signal { z-index: 1; }
.hero-phone { z-index: 3; } .float-pill { z-index: 4; }

/* Agent strip — app-icon tiles, always light like real icons */
.strip { padding-block: 0 clamp(48px, 7vw, 88px); text-align: center; }
.strip-title { font-size: 14px; color: var(--ink-3); letter-spacing: .01em; }
.strip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px clamp(20px, 4.4vw, 64px); margin-top: 30px; }
.strip-item { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 76px; }
.strip-tile { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 17px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 24px -10px rgba(40, 32, 20, .22), 0 0 0 .5px rgba(22, 22, 26, .1); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.strip-tile .strip-ico { width: 38px; height: 38px; vertical-align: 0; }
.strip-tile .ico-d { display: none !important; }
.strip-tile .ico-l { display: inline-block !important; }
.strip-tile .ico-codex { width: 64px; height: 64px; }
.strip-tile .ico-codex img { border-radius: 17px; transform: scale(1.12); }
.strip-item b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.strip-status { margin-top: -4px; font-size: 12px; color: var(--ink-3); }
.strip-item.is-soon .strip-tile { opacity: .7; }
.strip-item.is-soon b { color: var(--ink-3); }

/* Stage */
.stage { position: relative; max-width: 1240px; margin: clamp(56px, 8vw, 96px) auto 0; padding: 0 clamp(16px, 4vw, 48px) clamp(80px, 10vw, 140px); --p: 1; }
.stage-inner { position: relative; transform-origin: 50% 0; transform: perspective(1800px) rotateX(calc(14deg * (1 - var(--p)))) scale(calc(.92 + .08 * var(--p))); will-change: transform; }
.stage-signal { position: absolute; left: 50%; top: 62%; width: 27%; height: 16%; overflow: visible; z-index: 2; pointer-events: none; }
.stage-signal path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sig-base { stroke: var(--line-2); stroke-dasharray: 3 5; }
.sig-pulse { stroke: var(--brand); stroke-dasharray: 60 600; stroke-linecap: round; animation: travel 3.2s var(--ease) infinite; }
@keyframes travel { from { stroke-dashoffset: 660; } to { stroke-dashoffset: 0; } }

/* Mac mock — sized in em; font-size scales with width. */
.mac { position: relative; font-size: clamp(5.6px, .92vw, 11.6px); width: 81%; max-width: 980px; margin: 0; aspect-ratio: 16 / 9.8; border-radius: 1.4em; background: var(--ui-bg); color: var(--ui-ink); box-shadow: var(--shadow-xl), 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; line-height: 1.45; }
.mac-bar { position: relative; display: flex; align-items: center; height: 3.4em; flex: none; padding: 0 1.3em; border-bottom: 1px solid var(--ui-line); background: var(--ui-side); }
.lights { display: flex; gap: .62em; }
.lights i { width: 1em; height: 1em; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.mac-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 1.05em; font-weight: 600; color: var(--ui-ink-2); white-space: nowrap; }
.mac-body { flex: 1; display: grid; grid-template-columns: 22em 1fr; min-height: 0; }
.mac-side { padding: 1.3em 1.1em; background: var(--ui-side); border-right: 1px solid var(--ui-line); display: flex; flex-direction: column; gap: .3em; overflow: hidden; }
.side-brand { display: flex; align-items: center; gap: .6em; margin: .1em .3em .9em; font-weight: 650; font-size: 1.15em; }
.side-mark { width: 1.7em; height: 1.7em; border-radius: .45em; }
.side-new { display: flex; align-items: center; justify-content: center; gap: .5em; height: 2.8em; border-radius: .9em; border: 1px solid var(--ui-line); background: var(--ui-bg); font-weight: 600; font-size: 1.05em; }
.side-new b { font-weight: 500; color: var(--ui-ink-2); }
.side-search { height: 2.6em; margin: .5em 0 .4em; padding: 0 .9em; display: flex; align-items: center; border-radius: .8em; background: var(--ui-line); color: var(--ui-ink-2); }
.side-label { margin: .9em .4em .3em; font-size: .9em; font-weight: 600; color: var(--ui-ink-2); letter-spacing: .02em; }
.t-device, .t-agent, .t-project, .t-conv { display: flex; align-items: center; gap: .55em; min-height: 2.3em; padding: 0 .6em; border-radius: .7em; white-space: nowrap; }
.t-device { font-weight: 600; }
.t-device em { font-style: normal; font-weight: 400; color: var(--ui-ink-2); font-size: .9em; }
.st { width: .62em; height: .62em; border-radius: 50%; background: var(--ui-ink-2); opacity: .5; }
.st.on { background: var(--ok); opacity: 1; box-shadow: 0 0 0 .22em rgba(47, 158, 106, .16); }
.t-agent { padding-left: 1.6em; }
.ico { position: relative; display: inline-block; flex: none; width: 1.25em; height: 1.25em; vertical-align: -.22em; }
.ico img { width: 100%; height: 100%; object-fit: contain; border-radius: 22%; }
.ico .ico-l { display: var(--ico-l); }
.ico .ico-d { display: var(--ico-d); }
.ico-dsh img, .ico-hermes img { border-radius: 0; }
.ico-codex img { transform: scale(1.32); }
svg.ico { overflow: visible; }
.t-project { padding-left: 2.9em; color: var(--ui-ink-2); }
.t-conv { padding-left: 4em; color: var(--ui-ink-2); }
.t-conv.is-active { background: var(--ui-active); color: var(--ui-ink); font-weight: 550; }
.side-account { margin-top: auto; display: flex; align-items: center; gap: .7em; padding: .8em .4em 0; border-top: 1px solid var(--ui-line); color: var(--ui-ink-2); }
.avatar { width: 2em; height: 2em; border-radius: 50%; background: linear-gradient(135deg, #F2C9A8, #C9A8F2); }
.mac-chat { position: relative; display: flex; flex-direction: column; min-width: 0; }
.chat-col { flex: 1; width: min(46em, 88%); margin: 0 auto; padding: 2.4em 0 1em; display: flex; flex-direction: column; gap: 1.2em; overflow: hidden; }
.msg-user { align-self: flex-end; max-width: 78%; padding: .85em 1.15em; border-radius: 1.3em 1.3em .4em 1.3em; background: var(--ui-bubble); font-size: 1.08em; }
.msg-agent { display: flex; flex-direction: column; gap: .7em; }
.think { color: var(--ui-ink-2); font-size: .95em; }
.think::before { content: "✦ "; color: var(--brand); }
.tool { display: flex; align-items: center; gap: .6em; width: fit-content; max-width: 100%; padding: .45em .8em; border-radius: .7em; background: var(--ui-code); border: 1px solid var(--ui-line); font-size: .95em; white-space: nowrap; }
.tool span { color: var(--ui-ink-2); }
.tool code { font-size: .95em; }
.tool b { font-weight: 600; font-family: var(--mono); font-size: .9em; }
.add, .ok { color: var(--ok); }
.del { color: #D9534F; }
.reply { font-size: 1.08em; line-height: 1.6; }
.caret { display: inline-block; width: .5em; height: 1.05em; margin-left: .15em; vertical-align: -.15em; border-radius: .1em; background: var(--brand); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.approval { margin-top: .2em; padding: 1em 1.1em; border-radius: 1.1em; border: 1px solid rgba(217, 138, 43, .35); background: linear-gradient(180deg, rgba(217, 138, 43, .08), rgba(217, 138, 43, .02)); display: flex; flex-direction: column; gap: .7em; }
.ap-title { display: flex; align-items: center; gap: .6em; font-weight: 600; }
.ap-title i { width: .7em; height: .7em; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 .25em rgba(217, 138, 43, .18); animation: breathe-warn 2.2s var(--ease) infinite; }
@keyframes breathe-warn { 50% { box-shadow: 0 0 0 .45em rgba(217, 138, 43, 0); } }
.approval code { padding: .55em .8em; border-radius: .6em; background: var(--ui-code); font-size: .95em; }
.ap-actions { display: flex; justify-content: flex-end; gap: .6em; }
.ap-actions span { padding: .5em 1.2em; border-radius: 999px; border: 1px solid var(--ui-line); font-weight: 600; }
.ap-actions .primary { background: var(--ui-ink); color: var(--ui-bg); border-color: transparent; }
.composer { width: min(46em, 88%); margin: 0 auto 1.6em; height: 4em; padding: 0 .6em 0 1.3em; display: flex; align-items: center; justify-content: space-between; border-radius: 1.4em; border: 1px solid var(--ui-line); background: var(--ui-bg); box-shadow: 0 .4em 1.6em -.6em rgba(0, 0, 0, .14); color: var(--ui-ink-2); }
.send { width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--ui-ink); position: relative; flex: none; }
.send::after { content: ""; position: absolute; left: 50%; top: 50%; width: .7em; height: .7em; border: solid var(--ui-bg); border-width: .16em 0 0 .16em; transform: translate(-50%, -30%) rotate(45deg); }

/* Phone mock */
.phone { font-size: 10px; width: 30em; aspect-ratio: 9 / 19.4; }
.ph-frame { position: relative; width: 100%; height: 100%; border-radius: 4.8em; padding: 1em; background: linear-gradient(145deg, #2A2B30, #0B0B0D 60%, #2A2B30); box-shadow: var(--shadow-xl), inset 0 0 0 .2em rgba(255, 255, 255, .06); }
.island { position: absolute; z-index: 3; left: 50%; top: 2.1em; width: 9.2em; height: 2.7em; border-radius: 2em; background: #000; transform: translateX(-50%); }
.ph-screen { position: absolute; inset: 1em; border-radius: 3.9em; overflow: hidden; background: var(--ui-bg); color: var(--ui-ink); display: flex; flex-direction: column; line-height: 1.45; opacity: 0; transition: opacity .6s var(--ease), transform .7s var(--ease-out); transform: scale(.985); }
.ph-status { flex: none; height: 5.2em; display: flex; align-items: center; justify-content: space-between; padding: 0 2.6em 0 3em; font-size: 1.3em; font-weight: 600; }
.ph-status { font-size: 1.25em; height: 4.4em; }
.ph-icons { display: flex; gap: .3em; }
.ph-icons i { width: .95em; height: .7em; border-radius: .15em; background: currentColor; opacity: .85; }
.ph-icons i:last-child { width: 1.6em; border-radius: .25em; }
.ph-lock { background: radial-gradient(120% 70% at 20% 0%, #F4C9A0 0%, transparent 60%), radial-gradient(120% 80% at 100% 100%, #9AA4FF 0%, transparent 55%), linear-gradient(180deg, #E8D9C8, #B7B4E6); color: #fff; }
.ph-lock .ph-status { color: #fff; }
.lock-date { margin-top: 1.2em; text-align: center; font-size: 1.6em; font-weight: 550; opacity: .92; }
.lock-time { text-align: center; font-size: 7.6em; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.notif { margin: 2.4em 1.4em 0; padding: 1.2em 1.3em; display: flex; gap: 1em; border-radius: 2em; background: rgba(255, 255, 255, .58); color: #18181C; -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 .6em 2em -.6em rgba(0, 0, 0, .25); font-size: 1.3em; line-height: 1.35; }
.notif-2 { margin-top: .8em; opacity: .82; transform: scale(.97); }
.n-icon img { width: 3.2em; height: 3.2em; flex: none; display: block; border-radius: .8em; }
.n-head { display: flex; justify-content: space-between; gap: 1em; }
.n-head span { color: rgba(24, 24, 28, .55); font-size: .9em; }
.ph-nav { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .6em 1.6em 1em; border-bottom: 1px solid var(--ui-line); font-size: 1.3em; }
.ph-back { color: var(--brand-ink); white-space: nowrap; }
.ph-title { display: flex; align-items: center; gap: .45em; font-weight: 600; white-space: nowrap; }
.ph-body { flex: 1; padding: 1.6em 1.6em 0; display: flex; flex-direction: column; gap: 1.1em; font-size: 1.3em; overflow: hidden; }
.ph-body .msg-user { font-size: 1em; max-width: 86%; }
.ph-body .tool { font-size: .9em; }
.ph-body .reply { font-size: 1em; }
.ph-body .approval { font-size: .98em; }
.ph-body .ap-actions { justify-content: stretch; }
.ph-body .ap-actions span { flex: 1; text-align: center; padding: .65em 0; }
.done-chip { width: fit-content; padding: .35em .9em; border-radius: 999px; background: rgba(47, 158, 106, .12); color: var(--ok); font-weight: 600; font-size: .9em; }
.ph-composer { flex: none; margin: 1em 1.4em 2.6em; height: 4.4em; padding: 0 .6em 0 1.4em; display: flex; align-items: center; justify-content: space-between; border-radius: 2.2em; border: 1px solid var(--ui-line); color: var(--ui-ink-2); font-size: 1.2em; }
.ph-composer .send { width: 3.1em; height: 3.1em; }
.ph-frame::after { content: ""; position: absolute; left: 50%; bottom: 1.9em; z-index: 3; width: 11em; height: .45em; border-radius: 1em; background: var(--ui-ink); opacity: .4; transform: translateX(-50%); }
.hero-phone { position: absolute; right: 0; bottom: -10%; z-index: 3; font-size: clamp(3.9px, .66vw, 9px); transform: translate3d(0, calc(70px * (1 - var(--p))), 0); }
.hero-phone .ph-screen { opacity: 1; transform: none; }

/* Manifesto */
.manifesto { padding-block: clamp(80px, 14vw, 200px); text-align: left; max-width: 1080px; }
.manifesto .eyebrow { margin-bottom: 36px; }
.manifesto-text { font-size: clamp(28px, 4.1vw, 54px); line-height: 1.34; letter-spacing: -.025em; font-weight: 600; text-wrap: pretty; }
:lang(zh-CN) .manifesto-text { letter-spacing: 0; line-height: 1.5; }
.mw { transition: opacity .5s var(--ease), color .5s var(--ease); }
.key { display: inline-flex; align-items: center; gap: .26em; padding: 0 .3em; margin: 0 .06em; border-radius: .28em; white-space: nowrap; }
.key .key-ico { width: .82em; height: .82em; vertical-align: 0; border-radius: .2em; }
.key img.key-ico { box-shadow: 0 0 0 .5px var(--line); }
.key-brand { color: var(--brand-ink); background: rgba(31, 107, 255, .09); }
.key-codex { color: var(--codex); background: rgba(62, 156, 130, .1); }
.key-claude { color: var(--claude); background: rgba(201, 118, 75, .1); }
.key-dsh { color: var(--dsh); background: rgba(90, 99, 201, .1); }
html.motion-ready .mw { opacity: .16; }
html.motion-ready .mw.lit { opacity: 1; }

/* Story (sticky scroll) */
.story { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.story-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: clamp(24px, 4vw, 48px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.steps { position: relative; padding-left: 36px; }
.steps::before { content: ""; position: absolute; left: 0; top: 44vh; bottom: 44vh; width: 1px; background: var(--line-2); }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -40px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.step.is-active::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 5px rgba(31, 107, 255, .14); }
.step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; transition: opacity .5s var(--ease); }
html.motion-ready .step { opacity: .28; }
html.motion-ready .step.is-active { opacity: 1; }
.step-num { font: 500 14px/1 var(--mono); color: var(--brand-ink); margin-bottom: 20px; letter-spacing: .06em; }
.step h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.03em; font-weight: 650; margin-bottom: 18px; }
:lang(zh-CN) .step h3 { letter-spacing: -.01em; }
.step p:last-child { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.7; }
.story-device { position: relative; }
.story-sticky { position: sticky; top: calc(50vh - min(37vh, 320px)); height: min(74vh, 640px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.story-glow { position: absolute; inset: 0 -20%; border-radius: 50%; background: radial-gradient(closest-side, var(--light-a), transparent 75%); filter: blur(30px); transition: background .8s var(--ease); }
.story-sticky[data-active="2"] .story-glow { background: radial-gradient(closest-side, rgba(217, 138, 43, .2), transparent 75%); }
.story-sticky[data-active="3"] .story-glow { background: radial-gradient(closest-side, var(--light-c), transparent 75%); }
.story-phone { position: relative; font-size: min(1.02vh, 9.6px); }
.story-sticky[data-active="1"] [data-screen="1"], .story-sticky[data-active="2"] [data-screen="2"], .story-sticky[data-active="3"] [data-screen="3"] { opacity: 1; transform: none; }
.story-dots { display: flex; gap: 8px; position: relative; }
.story-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line-2); transition: width .4s var(--ease-out), background-color .4s var(--ease); }
.story-sticky[data-active="1"] .story-dots i:nth-child(1), .story-sticky[data-active="2"] .story-dots i:nth-child(2), .story-sticky[data-active="3"] .story-dots i:nth-child(3) { width: 22px; background: var(--ink); }

/* Tree */
.tree-section { padding-block: clamp(80px, 10vw, 140px); }
.tree-panel { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.tree-rail { position: absolute; inset: 0 0 auto; height: 2px; background: var(--line); }
.tree-rail span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
html.motion-ready .tree-rail span.run { animation: rail 3.2s linear forwards; }
@keyframes rail { to { transform: scaleX(1); } }
.tree-col { position: relative; padding: clamp(20px, 2.4vw, 32px) clamp(14px, 1.6vw, 24px); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tree-col + .tree-col { border-left: 1px solid var(--line); }
.tree-col + .tree-col::before { content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); }
.tree-head { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 10px 10px; }
.tree-item { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .45s var(--ease), color .45s var(--ease), transform .45s var(--ease-out), box-shadow .45s var(--ease); }
.tree-item em { font-style: normal; color: var(--ink-4); font-size: 13px; }
.tree-item.on { background: var(--panel-solid); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transform: translateX(4px); font-weight: 550; }
.tree-item .ico { width: 20px; height: 20px; }

/* Native bento */
.native { padding-block: clamp(40px, 6vw, 80px) clamp(100px, 12vw, 160px); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 380px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel-solid); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); --mx: 50%; --my: 0%; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(31, 107, 255, .08), transparent 60%); transition: opacity .4s var(--ease); }
.card-1 { grid-column: span 2; }
.card > div { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 180px; margin-bottom: 24px; }
.card h3 { font-size: 21px; letter-spacing: -.02em; font-weight: 650; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 32em; }
.v-history { position: relative; flex: none !important; height: 230px; align-self: stretch; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.h-track { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin: 0 auto; animation: scrollup 22s linear infinite; }
@keyframes scrollup { to { transform: translateY(-50%); } }
.h-group { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 10px 14px 2px; letter-spacing: .04em; }
.h-row { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--bg-2); font-size: 14.5px; color: var(--ink) !important; max-width: none !important; }
.h-row .ico { width: 18px; height: 18px; }
.v-sync { position: relative; display: flex !important; gap: 0; }
.sync-dev { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.sync-dev .platform-icon { width: 28px; height: 28px; }
.sync-line { position: relative; width: 56px; height: 2px; background: var(--line-2); overflow: hidden; }
.sync-line i { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: shuttle 2.4s var(--ease) infinite alternate; }
@keyframes shuttle { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.sync-bubble { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); white-space: nowrap; padding: 8px 14px; border-radius: 14px 14px 4px 14px; background: var(--ui-bubble); font-size: 13.5px !important; color: var(--ink) !important; box-shadow: var(--shadow-sm); }
.v-actions { flex-wrap: wrap; gap: 10px; }
.v-actions span { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; }
.v-actions .pill-ok { background: var(--ink); color: var(--bg); border-color: transparent; }
.v-actions .pill-stop { display: inline-flex; align-items: center; gap: 8px; }
.pill-stop i { width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.v-cache { position: relative; align-self: stretch; display: block !important; max-width: 340px; width: 100%; margin-inline: auto; }
.cache-sk, .cache-real { position: absolute; inset: 50% 0 auto; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.cache-sk { gap: 26px; padding-inline: 14px; animation: cache-out 5s var(--ease) infinite; }
.cache-real { animation: cache-in 5s var(--ease) infinite; }
@keyframes cache-in { 0%, 18% { opacity: 0; transform: translateY(calc(-50% + 8px)); } 30%, 88% { opacity: 1; transform: translateY(-50%); } 100% { opacity: 0; transform: translateY(-50%); } }
@keyframes cache-out { 0%, 16% { opacity: 1; } 28%, 92% { opacity: 0; } 100% { opacity: 1; } }
.sk { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--bg-3) 0%, var(--bg-2) 40%, var(--bg-3) 80%); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; max-width: none !important; }
.sk.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.v-modes { gap: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); align-self: stretch; margin-inline: 4px; }
.v-modes > div { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.v-modes b { font-size: 52px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.v-modes i { width: 34px; height: 6px; border-radius: 3px; background: var(--brand); }
.mode-l { background: #F6F5F2; color: #1B1B20; }
.mode-d { background: #17181B; color: #EDEBE6; }
.mode-d i { background: var(--brand-2); }
.float-pill { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px; color: var(--ink-2); white-space: nowrap; -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); animation: bob 6s var(--ease) infinite alternate; }
.float-pill b { color: var(--ink); font-weight: 600; }
.float-pill .ico { width: 18px; height: 18px; }
.float-pill::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); order: -1; margin-right: 2px; animation: breathe 2.6s var(--ease) infinite; }
.fp-2::after { background: var(--brand); animation: none; }
.fp-1 { left: -1.5%; top: 24%; }
.fp-2 { left: 58%; top: -3.5%; animation-delay: -3s; }
@keyframes bob { to { transform: translate3d(0, -10px, 0); } }

/* Security (always dark) */
.security { position: relative; padding-block: clamp(100px, 13vw, 180px); background: var(--dark-section); color: var(--dark-ink); overflow: hidden; isolation: isolate; }
.security::before { content: ""; position: absolute; inset: -20% -10% auto; height: 80%; z-index: -1; background: radial-gradient(50% 60% at 50% 0%, rgba(31, 107, 255, .22), transparent 70%); }
.security::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 65%); }
.security .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow-dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); color: var(--dark-ink-2); }
.security h2 { margin-top: 24px; max-width: 14em; }
.security .lede { margin-top: 24px; color: var(--dark-ink-2); text-align: center; }
.cipher { display: grid; grid-template-columns: 1fr minmax(24px, 80px) 1.15fr minmax(24px, 80px) 1fr; align-items: center; width: 100%; max-width: 1040px; margin-top: clamp(56px, 7vw, 88px); }
.c-node { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 18px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); min-width: 0; }
.c-node p { font-size: 13px; color: var(--dark-ink-2); }
.c-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .06); color: var(--dark-ink); }
.c-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.c-relay { border-color: rgba(26, 180, 240, .35); background: linear-gradient(180deg, rgba(31, 107, 255, .12), rgba(31, 107, 255, .02)); box-shadow: 0 0 60px -10px rgba(31, 107, 255, .35); }
.c-mark { position: relative; width: 64px; height: 64px; background: rgba(255, 255, 255, .04); }
.c-mark img { width: 46px; height: 46px; filter: drop-shadow(0 6px 18px rgba(31, 107, 255, .55)); }
.c-lock { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0F1012; border: 1px solid rgba(255, 255, 255, .14); }
.c-lock svg { width: 13px; height: 13px; }
.cipher code { display: block; max-width: 100%; font-size: 13px; line-height: 1.5; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-plain { color: var(--dark-ink); }
.c-scramble { color: #8CC8FF; letter-spacing: .02em; }
.c-wire { position: relative; height: 1px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.c-wire i { position: absolute; inset: -1px 0; width: 50%; background: linear-gradient(90deg, transparent, #8CC8FF, transparent); animation: shuttle 2.2s linear infinite; }
.c-wire + .c-relay + .c-wire i { animation-delay: 1.1s; }
.sec-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); width: 100%; max-width: 1040px; margin-top: clamp(56px, 7vw, 88px); text-align: left; }
.sec-points li { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sec-points h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.sec-points p { color: var(--dark-ink-2); font-size: 15.5px; line-height: 1.6; }
.sec-note { margin-top: 48px; font-size: 14px; color: var(--dark-ink-2); }
.sec-note .text-link { color: #9CCBFF; font-size: 14px; margin-left: 6px; }

/* Finale */
.finale { padding-block: clamp(100px, 12vw, 160px) clamp(40px, 6vw, 80px); }
.finale-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 64px); border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; isolation: isolate; }
.finale-light { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 15% 0%, var(--light-a), transparent 70%), radial-gradient(50% 60% at 100% 100%, var(--light-c), transparent 70%); }
.finale-light::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(112deg, transparent 0 80px, var(--light-b) 80px 130px, transparent 130px 210px); opacity: .5; filter: blur(18px); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.finale-mark { width: 112px; height: 112px; margin-bottom: 36px; border-radius: 25px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 24px 60px -16px rgba(31, 107, 255, .55), 0 0 0 .5px var(--line); }
.page-icon { display: block; width: 80px; height: 80px; border-radius: 18px; margin-bottom: 28px; box-shadow: 0 18px 44px -14px rgba(31, 107, 255, .5), 0 0 0 .5px var(--line); }
.not-found .page-icon { margin-inline: auto; }
.finale-card h2 { max-width: 12em; }
.finale-card > p { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.platform-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 36px 0 32px; }
.platform-list li { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; }
.platform-list b { font-weight: 600; }
.platform-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.download-status { color: var(--ink-3); font-size: 14px; }

/* FAQ */
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px clamp(32px, 6vw, 96px); padding-block: clamp(60px, 8vw, 120px) clamp(100px, 12vw, 160px); }
.faq-section h2 { font-size: clamp(30px, 3.6vw, 46px); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item:first-child { border-top: 1px solid var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--ease-out), background-color .3s var(--ease); }
.faq-chevron::before, .faq-chevron::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq-chevron::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease-out); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: var(--ink); color: var(--bg); border-color: transparent; }
.faq-item[open] .faq-chevron::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item p { padding: 0 56px 28px 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }

/* Footer */
.site-footer { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 48px) 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-top p { margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--ink-2); }
.footer-top nav a { transition: color .2s var(--ease); }
.footer-giant { margin: 40px 0 0; font-size: clamp(96px, 23vw, 330px); line-height: .8; font-weight: 700; letter-spacing: -.06em; text-align: center; background: linear-gradient(180deg, var(--line-2), transparent 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-legal { margin-top: 12px; font-size: 12.5px; color: var(--ink-4); text-align: center; }

/* Downloads page */
.downloads-page { padding-top: clamp(140px, 18vh, 200px); padding-bottom: 120px; max-width: 1040px; }
.downloads-page h1, .legal-header h1, .not-found h1 { margin-top: 24px; font-size: clamp(42px, 6.4vw, 84px); line-height: 1.04; letter-spacing: -.045em; font-weight: 680; }
:lang(zh-CN) .downloads-page h1, :lang(zh-CN) .legal-header h1, :lang(zh-CN) .not-found h1 { letter-spacing: -.025em; line-height: 1.12; }
.page-intro { margin-top: 20px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 32em; }
.download-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.download-row { display: flex; flex-direction: column; gap: 22px; padding: 32px; min-height: 340px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel-solid); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.download-visual { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); }
.download-visual .platform-icon { width: 34px; height: 34px; }
.download-copy h2 { font-size: 30px; letter-spacing: -.03em; }
.download-copy p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.download-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.download-actions .download-status { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 14px; }
.download-actions .download-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.download-row[data-platform="ios"] .download-status::before { background: var(--ok); }
.download-note { margin-top: 20px; color: var(--ink-3); font-size: 14px; }
.downloads-page > .text-link { margin-top: 48px; }

/* Legal pages */
.legal-page { padding-top: clamp(140px, 18vh, 200px); padding-bottom: 120px; }
.legal-header { max-width: 860px; }
.draft-label { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(217, 138, 43, .12); color: #A3631A; font-size: 13px; font-weight: 600; }
:root:has(#theme-dark:checked) .draft-label, :root[data-theme="dark"] .draft-label { color: #E9A85C; }
.operator-details { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 32px; padding: 20px 0; border-block: 1px solid var(--line); }
.operator-details dt { font-size: 12.5px; color: var(--ink-3); }
.operator-details dd { margin-top: 4px; font-size: 15px; font-weight: 550; }
.legal-notice { margin-top: 20px; color: var(--ink-3); font-size: 14.5px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: 64px; }
.contents { position: sticky; top: 104px; align-self: start; }
.contents p { font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; margin-bottom: 12px; }
.contents ol { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.contents a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; color: var(--ink-2); transition: color .2s var(--ease), border-color .2s var(--ease); }
.legal-copy { max-width: 720px; }
.legal-copy section + section { margin-top: 56px; }
.legal-copy h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; margin-bottom: 18px; }
.legal-copy h2 span { font: 500 13px/1 var(--mono); color: var(--brand-ink); }
.legal-copy p { color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.legal-copy p + p { margin-top: 14px; }
.legal-next { margin-top: 56px !important; }

/* 404 */
.not-found { padding-top: clamp(160px, 24vh, 240px); padding-bottom: 160px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.nf-code { font: 600 14px/1 var(--mono); color: var(--brand-ink); letter-spacing: .1em; }
.not-found > p[lang] { margin-top: 12px; color: var(--ink-2); }
.nf-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; }

/* Motion: reveal (only when JS opted in) */
html.motion-ready .reveal-word { opacity: 0; transform: translate3d(0, .5em, 0); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
html.motion-ready .reveal-title.in .reveal-word { opacity: 1; transform: none; }
html.motion-ready .h1-line > span { transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease-out); }
html.motion-ready .h1-line:nth-child(2) > span { transition-delay: .1s; }
html.motion-ready.loaded .h1-line > span { transform: none; }
html.motion-ready .rise { opacity: 0; translate: 0 28px; transition: opacity 1s var(--ease-out) var(--d, 0s), translate 1.1s var(--ease-out) var(--d, 0s), transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
html.motion-ready .rise.in { opacity: 1; translate: none; }
html.motion-ready .stage { opacity: 0; transition: opacity 1.4s var(--ease-out) .35s; }
html.motion-ready.loaded .stage { opacity: 1; }
html:not(.signal-running) .sig-pulse, html:not(.signal-running) .hero-light i, html:not(.signal-running) .float-pill, html:not(.signal-running) .c-wire i { animation-play-state: paused; }

/* Hover (fine pointers only) */
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .language:hover, .footer-top nav a:hover { color: var(--ink); }
  .site-nav a:hover { background: var(--line); }
  .nav-cta:hover { transform: translateY(-1px); }
  .wordmark:hover .mark { transform: rotate(-8deg) scale(1.06); }
  .theme-control label:hover { color: var(--ink); }
  .button:hover { transform: translate3d(var(--bx, 0), calc(var(--by, 0px) - 2px), 0); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 18px 40px -12px rgba(22, 22, 26, .55), 0 0 0 4px rgba(31, 107, 255, .12); }
  .button:hover .i-arrow, .text-link:hover .i-arrow { transform: translateX(3px); }
  .ghost-link:hover { background: var(--panel-solid); border-color: var(--ink-4); }
  .ghost-link:hover .i-arrow { transform: translateY(3px); }
  .card:hover, .download-row:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .card:hover::before { opacity: 1; }
  .tree-item:hover { color: var(--ink); }
  .strip-item:hover .strip-tile { transform: translateY(-4px) scale(1.04); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 34px -12px rgba(40, 32, 20, .3), 0 0 0 .5px rgba(22, 22, 26, .1); }
  .faq-item summary:hover .faq-chevron { background: var(--line); }
  .faq-item[open] summary:hover .faq-chevron { background: var(--ink); }
  .contents a:hover { color: var(--ink); border-left-color: var(--ink); }
}

/* Responsive */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .header-tools { margin-left: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-1 { grid-column: span 2; }
  .card-5 { grid-column: span 2; }
}
@media (max-width: 860px) {
  .split-head, .faq-section { grid-template-columns: 1fr; }
  .split-head { align-items: start; }
  .story-grid { display: flex; flex-direction: column; }
  .story-device { order: -1; position: sticky; top: 72px; z-index: 0; height: 60vh; display: flex; justify-content: center; }
  .story-sticky { position: relative; top: 0; height: 100%; }
  .story-phone { font-size: min(.82vh, 8px); }
  .steps { position: relative; z-index: 1; margin-top: -8vh; padding-left: 0; }
  .steps::before, .step::before { display: none; }
  .step { min-height: 0; margin-bottom: 52vh; padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); }
  .step:last-child { margin-bottom: 10vh; }
  html.motion-ready .step { opacity: 1; }
  .step h3 { font-size: 26px; margin-bottom: 10px; }
  .step-num { margin-bottom: 12px; }
  .tree-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tree-col:nth-child(4) { border-left: 0; }
  .tree-col:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .tree-col:nth-child(4)::before { display: none; }
  .cipher { grid-template-columns: 1fr; gap: 0; max-width: 420px; }
  .c-wire { width: 1px; height: 36px; justify-self: center; }
  .c-wire i { inset: 0 -1px; width: auto; height: 50%; background: linear-gradient(180deg, transparent, #8CC8FF, transparent); animation-name: drop; }
  @keyframes drop { from { transform: translateY(-100%); } to { transform: translateY(200%); } }
  .sec-points { grid-template-columns: 1fr; gap: 28px; }
  .legal-layout { grid-template-columns: 1fr; }
  .contents { position: static; }
  .download-list { grid-template-columns: 1fr; }
  .download-row { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { top: 10px; }
  .header-inner { height: 52px; padding: 0 6px 0 14px; gap: 8px; }
  .theme-control label { width: 26px; height: 26px; }
  .nav-cta { height: 38px; padding: 0 14px; }
  .language { padding: 8px 6px; }
  .hero { padding-top: 112px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .button, .ghost-link { justify-content: center; }
  .stage { padding-bottom: 72px; }
  .hero-phone { bottom: -14%; right: 2px; }
  .float-pill { height: 30px; font-size: 11px; padding: 0 10px; gap: 6px; }
  .fp-1 { top: auto; bottom: -12%; left: 0; }
  .fp-2 { display: none; }
  .hero-icon { width: 72px; height: 72px; }
  .hero-icon img { border-radius: 16px; }
  .strip-list { flex-wrap: nowrap; gap: 6px; justify-content: space-between; }
  .strip-item { min-width: 0; flex: 1 1 0; gap: 8px; }
  .strip-tile { width: 52px; height: 52px; border-radius: 14px; }
  .strip-tile .strip-ico { width: 30px; height: 30px; }
  .strip-tile .ico-codex { width: 52px; height: 52px; }
  .strip-tile .ico-codex img { border-radius: 14px; }
  .strip-item b { font-size: 13px; }
  .strip-status { font-size: 11px; }
  .bento { grid-template-columns: 1fr; }
  .card-1, .card-5 { grid-column: auto; }
  .card { min-height: 0; padding: 24px; }
  .tree-panel { grid-template-columns: 1fr; }
  .tree-col + .tree-col { border-left: 0; border-top: 1px solid var(--line); }
  .tree-col + .tree-col::before { left: 50%; top: -5px; }
  .tree-col { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tree-head { width: 100%; margin-bottom: 4px; }
  .tree-item { min-height: 38px; font-size: 14px; }
  .faq-item p { padding-right: 0; }
  .finale-card { border-radius: 28px; }
}
@media (max-width: 380px) {
  .theme-control { display: none; }
}

/* Preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .stage-inner, .hero-phone { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  html.scrolled .header-inner, .header-inner, .tree-panel, .eyebrow, .step, .notif { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--panel-solid); }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(22, 22, 26, .3); --line-2: rgba(22, 22, 26, .5); --ink-3: #45454D; }
  .mw, html.motion-ready .mw { opacity: 1; }
}
@media print {
  .site-header, .reading-progress, .stage, .footer-giant { display: none; }
}
