/* Regulus product site, v3.
   Language: an observatory instrument. Square or 45°-cut corners (the cut echoes Chakra Petch), hairline
   frames with corner ticks, night bands for the product itself, one diamond motif (Regulus, the dot of
   Leo's backwards question mark). Compatibility: no light-dark(), color-mix(), @property, inset or
   aspect-ratio, so it renders the same on Windows (Edge/Chrome/Firefox), iOS Safari 14+ and Android.
   Every effect is an enhancement: without JavaScript the page reads in full; reduced motion stops it. */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
/* RG Song: Source Han Serif SC Heavy (OFL 1.1), subset and renamed by scripts/subset-fonts.py */
@font-face { font-family: "RG Song"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/rg-song-heavy.woff2") format("woff2"); }

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-display: "Chakra Petch", var(--font-sans);
  --font-serif: "RG Song", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --max: 1200px;
  --wide: 1320px;
  --gutter: 32px;
  --header-h: 64px;
  --cut: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --btn: #4f3fff;
  --btn-hover: #6555ff;
  --star: #e6edff;

  --bg: #f3f4f9;
  --bg-2: #eaecf5;
  --surface: #ffffff;
  --surface-2: #f0f1f8;
  --ink: #0c0e22;
  --ink-2: #3a3e5d;
  --line: #dcdfed;
  --line-2: #c3c7dd;
  --accent: #4a3aff;
  --accent-2: #7064ff;
  --accent-soft: #ebe9ff;
  --tick: #4a3aff;
  --amb: #8a5000;
  --amb-soft: #fff0d6;
  --red: #b42b20;
  --red-soft: #ffe6e1;
  --base: #6e7290;
  --glass: rgba(243, 244, 249, .78);
  --glass-line: rgba(12, 14, 34, .08);
  --shadow: 0 1px 2px rgba(12, 14, 34, .04), 0 18px 40px -24px rgba(12, 14, 34, .28);
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #07081b; --bg-2: #0b0d24; --surface: #0d0f28; --surface-2: #13163a; --ink: #eef0ff; --ink-2: #b4b8db;
  --line: #1c2049; --line-2: #2c316c; --accent: #918aff; --accent-2: #b5b0ff; --accent-soft: #1c1c55; --tick: #918aff;
  --amb: #f3b54f; --amb-soft: #31240e; --red: #ff7262; --red-soft: #3a1714; --base: #8a8eb3;
  --glass: rgba(7, 8, 27, .72); --glass-line: rgba(255, 255, 255, .07); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 50px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #07081b; --bg-2: #0b0d24; --surface: #0d0f28; --surface-2: #13163a; --ink: #eef0ff; --ink-2: #b4b8db;
    --line: #1c2049; --line-2: #2c316c; --accent: #918aff; --accent-2: #b5b0ff; --accent-soft: #1c1c55; --tick: #918aff;
    --amb: #f3b54f; --amb-soft: #31240e; --red: #ff7262; --red-soft: #3a1714; --base: #8a8eb3;
    --glass: rgba(7, 8, 27, .72); --glass-line: rgba(255, 255, 255, .07); color-scheme: dark;
  }
}
/* night bands keep the product dark in either theme */
.night, .site-header.over-dark {
  --bg: #06071a; --bg-2: #0a0c22; --surface: #0b0d26; --surface-2: #11143a; --ink: #eef0ff; --ink-2: #b4b8db;
  --line: #1a1e48; --line-2: #2a2f6a; --accent: #918aff; --accent-2: #b5b0ff; --accent-soft: #1b1b52; --tick: #918aff;
  --amb: #f3b54f; --amb-soft: #31240e; --red: #ff7262; --red-soft: #3a1714; --base: #8a8eb3;
  --glass: rgba(6, 7, 26, .5); --glass-line: rgba(255, 255, 255, .07);
  color: var(--ink);
}
.night { background: var(--bg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
code { font-family: var(--font-mono); font-size: .92em; }
.container { width: calc(100% - 2 * var(--gutter)); max-width: var(--max); margin-left: auto; margin-right: auto; }
.container-wide { width: calc(100% - 2 * var(--gutter)); max-width: var(--wide); margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--btn); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- the mark ---------- */
.mark { width: 30px; height: 30px; }
.mark .dot { fill: var(--star); filter: drop-shadow(0 0 4px rgba(140, 170, 255, .9)); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; white-space: nowrap; color: var(--ink); }
.brand .wm { height: 14px; width: auto; }
.wm { display: block; overflow: visible; }
:root:not([data-theme=dark]) .site-header:not(.over-dark) .mark .dot { fill: var(--ink); filter: none; }

/* ---------- buttons and tags: no pills ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; background: none; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; transition: transform .25s var(--ease-out), background-color .25s, color .25s, box-shadow .25s; }
.btn .arw { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn-primary { background: var(--btn); color: #fff; -webkit-clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s var(--ease-out); pointer-events: none; }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; --cut: 9px; }
.btn:active { transform: scale(.97); }
.btn-primary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #1a1060; }
.btn-ghost:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.btn[data-magnet] { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .25s; }
.btn[data-magnet]:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(.97); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border: 1px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 600; line-height: 1.6; max-width: 100%; }
.tag.amb { border-color: var(--amb); color: var(--amb); }
.tag.plain { border-color: var(--line-2); color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--btn-hover); }
  .btn-primary:hover::after { left: 120%; }
  .btn:hover .arw { transform: translateX(4px); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
}

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--glass-line); color: var(--ink); transition: transform .5s var(--ease-out), background-color .4s, border-color .4s; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }
.site-header.over-dark { background: rgba(6, 7, 26, .28); }
.bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); width: calc(100% - 2 * var(--gutter)); max-width: var(--wide); margin: 0 auto; }
.nav { position: relative; display: flex; align-items: stretch; align-self: stretch; margin-left: 18px; }
.nav a { display: flex; align-items: center; padding: 0 14px; color: var(--ink-2); font-size: 15px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.nav a.active, .nav a.is-lit { color: var(--ink); }
.nav-ink { position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--accent); opacity: 0; transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .25s; pointer-events: none; }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tool { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-2); background: transparent; color: var(--ink); transition: border-color .2s, color .2s; }
.tool svg { width: 18px; height: 18px; }
.lang { font: 700 13px/1 var(--font-display); letter-spacing: .04em; }
.sun { display: none; }
:root[data-theme=dark] .sun { display: block; }
:root[data-theme=dark] .moon { display: none; }
.head-cta { margin-left: 6px; }
.menu { display: none; }
.menu summary { list-style: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 40px; height: 40px; border: 1px solid var(--line-2); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 16px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out); }
.menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu nav { position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0; padding: 8px max(24px, env(safe-area-inset-left, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--bg); overflow-y: auto; }
.menu nav a { display: flex; align-items: center; min-height: 62px; border-bottom: 1px solid var(--line); color: var(--ink); font: 700 25px/1.3 var(--font-display); }
.menu nav a b { margin-right: 16px; color: var(--accent); font-size: 14px; letter-spacing: .1em; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #c3bfff); transform-origin: 0 50%; transform: scaleX(0); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
  .tool:hover { border-color: var(--accent); color: var(--accent); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); background: radial-gradient(ellipse 60% 520px at 84% 190px, rgba(72, 56, 180, .46), transparent 72%), radial-gradient(ellipse 48% 380px at 100% 330px, rgba(25, 93, 161, .31), transparent 73%), var(--bg); }
.sky { position: absolute; top: 0; left: 0; width: 100%; height: min(820px, 100%); pointer-events: none; }
.sky-orbit { position: absolute; width: clamp(440px, 65vw, 1120px); height: clamp(240px, 38vw, 610px); top: -22px; right: -15%; transform: rotate(-24deg); pointer-events: none; }
.sky-orbit::before, .sky-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.sky-orbit::before { top: 7%; right: 4%; bottom: 4%; left: 0; background: radial-gradient(ellipse at 53% 56%, rgba(123, 95, 231, .31), rgba(65, 111, 226, .13) 48%, transparent 73%); }
.sky-orbit::after { top: 22%; right: 5%; bottom: 13%; left: 9%; border: 1px solid rgba(140, 157, 255, .22); box-shadow: 0 0 38px rgba(126, 111, 255, .22), inset 0 0 34px rgba(114, 108, 255, .19); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.hero-top { position: relative; padding: clamp(56px, 8vw, 120px) 0 clamp(44px, 5vw, 72px); }
.status { display: inline-flex; align-items: center; gap: 12px; padding: 6px 14px 6px 12px; border: 1px solid var(--line-2); background: rgba(6, 7, 26, .4); color: var(--ink); font-size: 15px; }
.live { position: relative; width: 8px; height: 8px; background: #7cf0b5; transform: rotate(45deg); }
.live::after { content: ""; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; border: 1px solid #7cf0b5; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { from { opacity: .9; transform: scale(.5); } to { opacity: 0; transform: scale(1.9); } }
.h1 { max-width: 15ch; margin-top: 26px; font: 700 clamp(46px, 1.4rem + 4.6vw, 108px)/1.02 var(--font-display); letter-spacing: -.035em; }
:lang(zh) .h1 { max-width: none; font-family: var(--font-serif); font-weight: 900; letter-spacing: .01em; line-height: 1.16; font-size: clamp(42px, 1.2rem + 4.2vw, 98px); }
.h1 .ln { display: inline-block; }
:lang(zh) .h1 .ln { display: block; }
.emw { position: relative; z-index: 0; display: inline-block; white-space: nowrap; }
.echo { position: absolute; left: 0; top: 0; z-index: -1; color: transparent; -webkit-text-stroke: 1.5px rgba(181, 176, 255, .6); transform: translate(.07em, .07em); pointer-events: none; transition: transform 1.2s var(--ease-out) .5s; }
.js:not(.loaded) .echo { transform: none; }
.h1 .c { display: inline-block; transition: transform .35s var(--ease-out), color .35s; will-change: transform; }
.h1 em { position: relative; font-style: normal; background: linear-gradient(95deg, #d9d6ff 0%, #9a90ff 45%, #6d5cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 36em; margin-top: 26px; color: var(--ink-2); font-size: clamp(18px, 1rem + .35vw, 21px); line-height: 1.65; }
:lang(zh) .hero-sub { max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.js .h1 .ln { opacity: 0; transform: translateY(.45em); -webkit-filter: blur(8px); filter: blur(8px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out), -webkit-filter .9s var(--ease-out); }
.js .h1 .ln:nth-child(2) { transition-delay: .12s; }
.js .h1 .ln:nth-child(3) { transition-delay: .24s; }
.js.loaded .h1 .ln { opacity: 1; transform: none; -webkit-filter: none; filter: none; }

/* stage + console */
.stage-wrap { position: relative; }
.stage { position: relative; -webkit-perspective: 1800px; perspective: 1800px; }
.stage::before { content: ""; position: absolute; left: 8%; right: 8%; top: 10%; bottom: -6%; background: radial-gradient(closest-side, rgba(100, 84, 255, .45), rgba(100, 84, 255, 0)); -webkit-filter: blur(30px); filter: blur(30px); pointer-events: none; }
.console-cap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: var(--ink-2); font-size: 15px; text-align: center; }
.rec { width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.console { position: relative; border: 1px solid #262b66; background: #080a20; color: #e8eaff; font-size: 14px; line-height: 1.6; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(145, 138, 255, .06); transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); will-change: transform; }
.console::before { content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, #b5b0ff, transparent); }
.cx-top { display: flex; align-items: center; gap: 22px; height: 50px; padding: 0 18px; border-bottom: 1px solid #1c2050; background: #0b0d27; }
.cx-brand { display: flex; align-items: center; gap: 8px; color: #b4b8db; white-space: nowrap; }
.cx-brand .wm-c { height: 10px; width: auto; color: #eef0ff; margin-right: 2px; }
.cx-brand .mark { width: 20px; height: 20px; }
.cx-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 12px; border-bottom: 1px solid #1c2050; background: #0b0d27; }
.cx-tabs button { min-height: 44px; padding: 5px 14px; border: 0; background: transparent; color: #b4b8db; text-align: center; cursor: pointer; }
.cx-tabs button:hover { background: rgba(145, 138, 255, .12); color: #fff; }
.cx-tabs [aria-selected="true"] { color: #fff; box-shadow: inset 0 -3px 0 #918aff; background: rgba(145, 138, 255, .10); }
.cx-tabs button:focus-visible, .console [role="tabpanel"]:focus-visible { outline: 2px solid #b5b0ff; outline-offset: -3px; }
.console [hidden] { display: none; }
.cx-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-review-list { margin: 10px 0 20px; padding-left: 1.3em; color: #d6d9f5; }
ul.cx-review-list { list-style: disc; }
ol.cx-review-list { list-style: decimal; }
.cx-review-list li + li { margin-top: 6px; }
.cx-run { display: flex; align-items: center; gap: 12px; margin-left: auto; white-space: nowrap; }
.cx-overview { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); align-items: center; gap: clamp(14px, 3vw, 42px); padding: clamp(18px, 3.3vw, 42px); background: radial-gradient(ellipse at 6% 25%, #252046, #0d102c 70%); }
.cx-label { color: #c9c5e6; font-size: 13px; font-weight: 700; }
.cx-result p { margin-top: 4px; color: #ffe0a8; font-size: clamp(26px, 4vw, 50px); font-weight: 750; line-height: 1.16; }
.cx-brief { display: grid; gap: 13px; }
.cx-brief dt { color: #bdb7ff; font-size: 13px; font-weight: 700; }
.cx-brief dd { margin: 3px 0 0; color: #eef0ff; font-size: clamp(14px, 1.35vw, 17px); line-height: 1.5; }
.cx-details > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px clamp(18px, 3.3vw, 42px); border-top: 1px solid #262b66; background: #101331; color: #dfdcff; font-weight: 700; cursor: pointer; list-style: none; }
.cx-details > summary::-webkit-details-marker { display: none; }
.cx-details > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.cx-details[open] > summary::before { transform: translateY(-2px) rotate(45deg); }
.cx-details > summary:hover { background: #191c47; }
.cx-detail-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 16px; background: #0b0d27; border-top: 1px solid #1c2050; border-bottom: 1px solid #1c2050; }
.cx-detail-bar .cx-run { margin: 0; }
.cx-detail-bar .cx-clock { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; padding: 0; }
.cx-detail-bar .cx-clock button { margin: 0; }
.cx-run code { color: #8d92c2; font-size: 12.5px; }
.cx-state { padding: 2px 9px; border: 1px solid #7cf0b5; color: #7cf0b5; font: 600 12.5px/1.6 var(--font-mono); transition: color .3s, border-color .3s; }
.console[data-phase="1"] .cx-state, .console[data-phase="2"] .cx-state { border-color: #b5b0ff; color: #b5b0ff; }
.console[data-phase="3"] .cx-state { border-color: #ff7262; color: #ff7262; }
.console[data-phase="0"] .cx-state { border-color: #6f7398; color: #b4b8db; }
.cx-body { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .86fr) minmax(0, 1.12fr); }
.cx-col { padding: 18px 20px 20px; min-width: 0; }
.cx-col + .cx-col { border-left: 1px solid #1c2050; }
.cx-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: #b4b8db; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.cx-h .tag { white-space: nowrap; font-size: 12px; padding: 0 7px; border-color: #2e3474; color: #b4b8db; font-family: var(--font-mono); font-weight: 500; }
.cx-h .tag.amb { border-color: #f3b54f; color: #f3b54f; }
.cx-title { font-size: 18px; font-weight: 700; line-height: 1.35; color: #fff; }
.cx-claim { margin: 8px 0 14px; color: #c9ccec; }
.cx-claim b { margin-right: 8px; color: #918aff; font-size: 12.5px; }
.cx-ev { display: grid; gap: 8px; }
.cx-ev li { padding: 10px 12px; border: 1px solid #1c2050; border-left: 2px solid #2e3474; background: #0b0d27; transition: border-color .25s, background-color .25s, opacity .5s, transform .5s var(--ease-out); }
.ev-h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ev-h code { color: #b5b0ff; font-size: 12.5px; }
.ev-h span { color: #8d92c2; font-size: 12.5px; white-space: nowrap; }
.cx-ev p { color: #d6d9f5; font-size: 13.5px; line-height: 1.58; }
.cx-ev li.hot { border-color: #918aff; border-left-color: #918aff; background: #12153d; }
.s1row { padding: 10px 0 12px; border-top: 1px solid #1c2050; }
.cx-h + .s1row { border-top: 0; padding-top: 2px; }
.s1-h { display: flex; justify-content: space-between; gap: 8px; }
.s1-h span { color: #b4b8db; }
.s1-h b { color: #fff; font-weight: 700; }
.s1-bar { position: relative; height: 6px; margin: 8px 0 6px; background: #161a44; }
.s1-bar i { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, #6d5cff, #b5b0ff); transform-origin: 0 50%; transition: transform 1s var(--ease-out); }
.s1-bar u { position: absolute; top: -4px; bottom: -4px; left: 80%; width: 2px; background: #f3b54f; }
.s1-m { display: flex; justify-content: space-between; gap: 8px; color: #8d92c2; font-size: 12.5px; }
.s1-m b { color: #eef0ff; font-family: var(--font-mono); font-weight: 600; }
.s1-m .lim { color: #f3b54f; }
.cx-gate { margin-top: 10px; padding: 12px 14px 12px; border: 1px solid #3a2330; background: linear-gradient(135deg, rgba(255, 114, 98, .12), rgba(255, 114, 98, 0) 70%); transition: opacity .5s, transform .5s var(--ease-out), box-shadow .6s; }
.cx-gate .cx-h { margin-bottom: 6px; }
.gate-route { display: flex; align-items: center; gap: 8px; color: #ff8e80; font: 700 21px/1.2 var(--font-display); letter-spacing: .02em; }
.gate-route span { color: #ff7262; }
.gate-why { margin-top: 6px; display: grid; gap: 2px; }
.gate-why code { color: #d6d9f5; font-size: 12.5px; }
.gate-why li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; background: #ff7262; transform: rotate(45deg); }
.cx-usage { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; border: 1px solid #1c2050; }
.cx-usage div { padding: 8px 12px; }
.cx-usage div + div { border-left: 1px solid #1c2050; }
.cx-usage span { display: block; color: #8d92c2; font-size: 12px; }
.cx-usage b { font: 700 18px/1.3 var(--font-display); color: #fff; }
.cx-usage small { color: #8d92c2; font-size: 13px; }
.cx-think { display: none; padding: 4px 0 10px; }
.cx-think p { margin-bottom: 12px; color: #ff8e80; font-weight: 600; }
.ell i { display: inline-block; width: 4px; height: 4px; margin-left: 4px; background: #ff8e80; transform: rotate(45deg); animation: ell 1.2s infinite; }
.ell i:nth-child(2) { animation-delay: .2s; } .ell i:nth-child(3) { animation-delay: .4s; }
@keyframes ell { 50% { opacity: .2; } }
.sk { display: block; height: 10px; margin: 10px 0; background: linear-gradient(90deg, #12153a 0%, #232866 40%, #12153a 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk.s { width: 62%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.console.thinking .cx-think { display: block; }
.console.thinking .verdict, .console.thinking .obs { display: none; }
.verdict { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; padding: 10px 12px; border-left: 2px solid #f3b54f; background: rgba(243, 181, 79, .08); }
.verdict span { color: #f3b54f; font-size: 12.5px; font-weight: 600; }
.verdict b { color: #fff; font-size: 16px; }
.obs { display: grid; gap: 7px; }
.obs li { position: relative; padding-left: 14px; color: #d6d9f5; font-size: 13.5px; line-height: 1.6; }
.obs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: #918aff; transform: rotate(45deg); }
.cite { display: inline-block; margin-left: 5px; padding: 0 5px; border: 1px solid #3a3f86; background: #11143a; color: #b5b0ff; font: 500 11.5px/1.5 var(--font-mono); vertical-align: 1px; cursor: default; transition: background-color .2s, color .2s, border-color .2s; }
.cite.hot { background: #918aff; border-color: #918aff; color: #080a20; }
.cx-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #1c2050; }
.cx-lists .lh { margin-bottom: 4px; color: #b4b8db; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.cx-lists li { position: relative; padding-left: 12px; color: #c9ccec; font-size: 12.5px; line-height: 1.55; }
.cx-lists li + li { margin-top: 4px; }
.cx-lists li::before { content: ""; position: absolute; left: 0; top: .6em; width: 4px; height: 4px; border: 1px solid #8d92c2; }
.cx-foot { display: flex; align-items: stretch; border-top: 1px solid #1c2050; background: #0b0d27; }
.cx-trace { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.6fr); flex: 1; min-width: 0; }
.cx-trace li { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 12px 12px 12px 14px; border-right: 1px solid #1c2050; min-width: 0; transition: opacity .4s; }
.cx-trace li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #6d5cff; transform-origin: 0 50%; transition: transform .5s var(--ease-out); }
.cx-trace li:nth-child(4)::before { background: #ff7262; }
.cx-trace li:nth-child(6)::before { background: #7cf0b5; }
.cx-trace .tm { color: #8d92c2; font: 600 12px/1.4 var(--font-mono); }
.cx-trace code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eef0ff; font-size: 12px; }
.cx-trace .nt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8d92c2; font-size: 12px; }
.cx-clock { display: flex; flex-direction: column; justify-content: center; min-width: 170px; padding: 10px 16px; }
.cx-clock b { font: 700 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; color: #fff; }
.cx-clock span { color: #8d92c2; font-size: 12px; }
.cx-clock button { display: none; align-self: flex-start; margin-top: 6px; padding: 2px 10px; border: 1px solid #2e3474; background: transparent; color: #b5b0ff; font-size: 12.5px; }
.js .cx-clock button { display: inline-block; }
/* replay states: only while the script is driving it */
.js .console.playing [data-at] { transition: opacity .5s, transform .5s var(--ease-out); }
.js .console.playing [data-at]:not(.on) { opacity: 0; transform: translateY(6px); }
.js .console.playing .s1row:not(.on) .s1-bar i { transform: scaleX(0); }
.js .console.playing .cx-trace li[data-at]:not(.on) { opacity: .32; transform: none; }
.js .console.playing .cx-trace li:not(.on)::before { transform: scaleX(0); }
.js .console.playing .cx-ev li { animation: evIn .6s var(--ease-out) both; }
.js .console.playing .cx-ev li:nth-child(2) { animation-delay: .1s; }
.js .console.playing .cx-ev li:nth-child(3) { animation-delay: .2s; }
.js .console.playing .cx-ev li:nth-child(4) { animation-delay: .3s; }
@keyframes evIn { from { opacity: 0; transform: translateX(-10px); } }
.js .console.playing .obs li.on { animation: scan .7s var(--ease-out) both; animation-delay: calc(var(--d) * .22s); }
@keyframes scan { from { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); } to { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); } }
.js .console.playing .verdict.on { animation: evIn .5s var(--ease-out) both; }
.console .cx-gate.on { box-shadow: 0 0 0 1px rgba(255, 114, 98, .5), 0 0 30px -6px rgba(255, 114, 98, .5); }

/* proof bar */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--line-2); }
.pf { padding: 28px 24px 40px 0; min-width: 0; }
.pf + .pf { padding-left: 24px; border-left: 1px solid var(--line); }
.pf dt { font: 700 clamp(38px, 1.2rem + 2.4vw, 58px)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.pf dd { margin-top: 14px; display: grid; gap: 4px; }
.pf dd b { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.45; }
.pf-vs { color: #b5b0ff; font-size: 15.5px; }
.pf-vs em { font-style: normal; font-family: var(--font-display); font-weight: 700; }
.pf-scope { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.pf-scope::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; background: var(--accent); transform: rotate(45deg); }

/* ---------- sections ---------- */
.section { padding-top: clamp(96px, 11vw, 160px); }
.sh { max-width: 860px; margin-bottom: clamp(36px, 4vw, 56px); }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--accent); font: 600 14px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.kicker b { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; background: var(--accent); color: var(--bg); font-weight: 700; letter-spacing: .06em; text-transform: none; -webkit-clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }
.sh h2 { margin-top: 18px; font-family: var(--font-display); font-size: clamp(32px, 1rem + 2.7vw, 58px); line-height: 1.08; letter-spacing: -.025em; }
:lang(zh) .sh h2 { font-family: var(--font-serif); font-weight: 900; line-height: 1.22; letter-spacing: .01em; }
.sh-sub { margin-top: 16px; color: var(--ink-2); font-size: 19px; }

/* corner-ticked frames */
.tile, .feature, .plan, .paper, .crew, .guard > div {
  --fbg: var(--surface);
  background:
    linear-gradient(var(--tick), var(--tick)) 0 0 / 14px 2px no-repeat, linear-gradient(var(--tick), var(--tick)) 0 0 / 2px 14px no-repeat,
    linear-gradient(var(--tick), var(--tick)) 100% 0 / 14px 2px no-repeat, linear-gradient(var(--tick), var(--tick)) 100% 0 / 2px 14px no-repeat,
    linear-gradient(var(--tick), var(--tick)) 0 100% / 14px 2px no-repeat, linear-gradient(var(--tick), var(--tick)) 0 100% / 2px 14px no-repeat,
    linear-gradient(var(--tick), var(--tick)) 100% 100% / 14px 2px no-repeat, linear-gradient(var(--tick), var(--tick)) 100% 100% / 2px 14px no-repeat,
    var(--fbg);
}
[data-glow] { position: relative; }
[data-glow]::after { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; padding: 1px; background: radial-gradient(280px circle at var(--px, -400px) var(--py, -400px), var(--accent), transparent 70%); -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask: linear-gradient(#000, #000) content-box exclude, linear-gradient(#000, #000); pointer-events: none; opacity: 0; transition: opacity .35s; }
[data-glow]::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(420px circle at var(--px, -400px) var(--py, -400px), rgba(110, 96, 255, .08), transparent 65%); pointer-events: none; opacity: 0; transition: opacity .35s; }
@media (hover: hover) and (pointer: fine) {
  [data-glow]:hover::after, [data-glow]:hover::before { opacity: 1; }
}

/* product bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 320px; padding: 30px 30px 28px; border: 1px solid var(--line); overflow: hidden; }
.tile.wide { grid-column: span 2; flex-direction: row; align-items: stretch; }
.tile.wide .tile-copy { flex: 0 0 38%; }
.tile-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tile-copy h3 { font-size: 24px; letter-spacing: -.01em; }
.tile-copy p { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.tile-copy .tag { margin-top: auto; }
.lanes { flex: 1; display: grid; align-content: center; gap: 16px; min-width: 0; }
.lane { position: relative; display: grid; grid-template-columns: 6.2em minmax(0, 1fr) auto; align-items: center; gap: 14px; height: 44px; font-size: 15px; font-weight: 600; }
.lane::after { content: ""; position: absolute; left: calc(6.2em + 14px); right: 4.6em; top: 50%; height: 1px; background: var(--line-2); }
.lane i { position: absolute; left: calc(6.2em + 14px); top: 50%; width: 9px; height: 9px; margin-top: -4.5px; transform: rotate(45deg); background: currentColor; z-index: 1; animation: run 2.4s linear infinite; }
.lane i:nth-of-type(2) { animation-delay: -.8s; } .lane i:nth-of-type(3) { animation-delay: -1.6s; }
.lane.a { color: var(--accent); } .lane.g { color: var(--amb); } .lane.d { color: var(--red); }
.lane.d i { animation-duration: 6.5s; } .lane.d i:nth-of-type(2) { animation-delay: -3.25s; }
.lane span { color: var(--ink); }
.lane b { font: 700 18px/1 var(--font-display); justify-self: end; }
@keyframes run { from { left: calc(6.2em + 14px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 5.4em); opacity: 0; } }
.states { display: grid; gap: 6px; }
.states li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; }
.states li::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex: none; }
.states li:nth-child(4)::before { background: var(--red); }
.states li:last-child::before { background: #2fbf7d; }
.states code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.js [data-reveal] .states li { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i) * 120ms + .3s); }
.js [data-reveal].on .states li { opacity: 1; transform: none; }
.checks { display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
.checks div { display: block; }
.checks span { display: flex; gap: 5px; margin-bottom: 6px; }
.checks i { width: 18px; height: 18px; background: var(--accent); -webkit-clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.checks b { color: var(--ink); font: 700 18px/1 var(--font-display); margin-right: 4px; }
.js [data-reveal] .checks i { transform: scale(0); transition: transform .4s var(--ease-out); }
.js [data-reveal].on .checks i { transform: none; }
.js [data-reveal].on .checks div:nth-child(1) i { transition-delay: .3s; }
.js [data-reveal].on .checks div:nth-child(2) i { transition-delay: .6s; }
.js [data-reveal].on .checks div:nth-child(3) i { transition-delay: .8s; }
.io { flex: 1; display: grid; align-content: center; gap: 12px; min-width: 0; }
.io-row { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); background: var(--bg); }
.io-row code { color: var(--ink); font-size: 15px; font-weight: 700; }
.io-row span { color: var(--ink-2); font-size: 15px; }
.sw { position: relative; width: 46px; height: 24px; border: 1px solid var(--line-2); background: var(--surface-2); }
.sw b { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--base); transition: transform .5s var(--ease-out), background-color .3s; }
.io-row.on .sw { border-color: #2fbf7d; }
.io-row.on .sw b { transform: translateX(22px); background: #2fbf7d; }
.io-row:not(.on) .sw::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 2px; margin-top: -1px; background: var(--amb); }

/* how it works */
.flow-card { position: relative; border: 1px solid var(--line-2); overflow: hidden; background: radial-gradient(900px 500px at 70% 0%, #11154a, #06071a 70%); }
.flowfig { position: relative; height: clamp(360px, 40vw, 460px); margin: 8px 16px 0; }
.flowfig svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.flowfig text { font-family: var(--font-sans); paint-order: stroke; stroke: #06071a; stroke-width: 4px; stroke-linejoin: round; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 24px 24px 28px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--c, var(--accent)); }
.steps .s1 { --c: #a3a0ff; } .steps .rt { --c: #eef0ff; } .steps .s2 { --c: #ff7262; } .steps .hu { --c: #f3b54f; }
.steps .n { color: var(--c); font: 700 14px/1 var(--font-display); letter-spacing: .1em; }
.steps b { display: block; margin-top: 10px; font-size: 19px; }
.steps code { display: block; margin: 4px 0 8px; color: var(--c); font-size: 14px; }
.steps p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* evidence */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); border: 1px solid var(--line); overflow: hidden; }
.feature + .feature { margin-top: 16px; }
.f-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 38px 40px 36px; min-width: 0; }
.f-copy h3 { font-size: clamp(22px, 1rem + .9vw, 30px); letter-spacing: -.01em; }
.f-note { color: var(--ink-2); font-size: 15.5px; }
.f-side { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 32px 36px; border-left: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.vs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
.vs .a { font: 700 clamp(56px, 2rem + 4vw, 104px)/.95 var(--font-display); letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs .b { font: 700 clamp(28px, 1rem + 1.6vw, 42px)/1 var(--font-display); color: var(--base); font-variant-numeric: tabular-nums; text-decoration: line-through; text-decoration-thickness: 2px; white-space: nowrap; }
.ratio { display: flex; flex-wrap: wrap; gap: 14px 44px; }
.ratio div { display: flex; flex-direction: column; }
.ratio b { font: 700 clamp(48px, 1.6rem + 3vw, 84px)/1 var(--font-display); letter-spacing: -.03em; color: var(--accent); white-space: nowrap; }
.ratio span { margin-top: 6px; color: var(--ink); font-size: 15.5px; font-weight: 600; }
.bar-row { display: grid; gap: 7px; }
.bar-row .h { display: flex; justify-content: space-between; gap: 10px; font-size: 15.5px; }
.bar-row .h span { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-row .h em { font-style: normal; font-weight: 700; color: var(--accent); }
.track { position: relative; height: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.track i { position: absolute; top: 0; bottom: 0; left: 0; transform-origin: left center; transition: transform 1.2s var(--ease-out); }
.track i.base { background: var(--base); opacity: .5; }
.track i.reg { top: 4px; bottom: 4px; background: var(--accent); }
.track i.t1 { background: var(--accent); }
.track i.t2 { background: var(--red); }
.js .bars .track i { transform: scaleX(0); }
.js [data-reveal].on .bars .track i { transform: scaleX(1); }
.js [data-reveal].on .bars .track i.reg, .js [data-reveal].on .bars .track i.t1 { transition-delay: .25s; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: 14.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; }
.k-base { background: var(--base); } .k-reg { background: var(--accent); } .k-deep { background: var(--red); }
.dots { display: grid; gap: 14px; }
.dots .row { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 12px; align-items: center; font-size: 15px; }
.dots .row div { display: flex; flex-wrap: wrap; gap: 5px; }
.dots button { width: 18px; height: 18px; padding: 0; border: 0; background: var(--c); transition: transform .2s var(--ease-out); -webkit-clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%); }
.dots button:focus-visible, .dots button.on { transform: scale(1.35); }
.dots button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
#tip { position: fixed; z-index: 70; max-width: 270px; padding: 10px 12px; border: 1px solid #2e3474; background: #080a20; color: #eef0ff; font-size: 14px; line-height: 1.5; pointer-events: none; opacity: 0; transition: opacity .15s; }
#tip.on { opacity: 1; }
#tip code { color: #b5b0ff; }

/* security */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.chain li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 26px 22px 30px; background: var(--ink); color: var(--bg); -webkit-clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); }
.chain li + li { margin-left: -12px; }
.chain li:first-child { -webkit-clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); padding-left: 24px; }
.chain li.c1 { background: #6555ff; color: #fff; }
.chain li.c2 { background: var(--btn); color: #fff; }
.chain li.c3 { background: var(--surface-2); color: var(--ink); }
:root[data-theme=dark] .chain li.c0 { background: #eef0ff; color: #06071a; }
.chain b { font-size: 20px; }
.chain span { font-size: 15px; opacity: .85; }
.js [data-reveal] .chain li, .js .chain[data-reveal] li { opacity: 0; transform: translateX(-16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .chain[data-reveal].on li { opacity: 1; transform: none; }
.js .chain[data-reveal].on li:nth-child(2) { transition-delay: .12s; } .js .chain[data-reveal].on li:nth-child(3) { transition-delay: .24s; } .js .chain[data-reveal].on li:nth-child(4) { transition-delay: .36s; }
.guard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guard > div { display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 28px; border: 1px solid var(--line); }
.guard code { align-self: flex-start; padding: 2px 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.guard h3 { margin-top: 6px; font-size: 20px; }
.guard p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* pricing */
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; border-top: 2px solid var(--ink); }
.segments > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; padding: 20px 20px 22px 0; }
.segments > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.segments .n { grid-row: span 2; color: var(--accent); font: 700 15px/1.7 var(--font-display); }
.segments b { font-size: 19px; }
.segments span:last-child { color: var(--ink-2); font-size: 16px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 26px; border: 1px solid var(--line); }
.plan.main { --fbg: var(--btn); --tick: #ffffff; color: #fff; border-color: var(--btn); }
.plan.main ul li { border-color: rgba(255, 255, 255, .22); color: #fff; }
.plan.main .plan-h span { color: rgba(255, 255, 255, .85); }
.plan-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-h code { color: var(--accent); font: 700 15px/1 var(--font-display); letter-spacing: .12em; }
.plan.main .plan-h code { color: #fff; }
.plan-h span { color: var(--ink-2); font-size: 14.5px; }
.plan h3 { font-size: 26px; letter-spacing: -.01em; }
.plan ul { margin-top: 4px; }
.plan li { position: relative; padding: 10px 0 10px 20px; border-top: 1px solid var(--line); font-size: 16px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.plan.main li::before { background: #fff; }
.note-line { margin-top: 18px; color: var(--ink-2); font-size: 16px; }

/* pilot */
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.road li { position: relative; padding: 30px 24px 0 0; border-top: 2px solid var(--line-2); }
.road li + li { padding-left: 24px; }
.road li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); }
.road li + li::before { left: 24px; }
.road li::after { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; transition: transform .9s var(--ease-out); }
.js .road[data-reveal]:not(.on) li::after { transform: scaleX(0); }
.road.on li:nth-child(2)::after { transition-delay: .25s; } .road.on li:nth-child(3)::after { transition-delay: .5s; } .road.on li:nth-child(4)::after { transition-delay: .75s; }
.road .n { color: var(--accent); font: 700 14px/1 var(--font-display); letter-spacing: .12em; }
.road h3 { margin: 10px 0 6px; font-size: 21px; }
.road p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.targets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.targets > div { display: flex; flex-direction: column; padding: 26px 28px 28px; background: var(--btn); color: #fff; -webkit-clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.targets .k { align-self: flex-start; padding: 1px 8px; border: 1px solid rgba(255, 255, 255, .5); font-size: 13px; font-weight: 600; }
.targets b { margin-top: 16px; font: 700 clamp(46px, 1.4rem + 2.6vw, 70px)/1 var(--font-display); letter-spacing: -.03em; }
.targets span:last-child { margin-top: 8px; font-size: 16.5px; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.paper, .crew { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border: 1px solid var(--line); }
.paper h3 { font: 700 34px/1.1 var(--font-display); letter-spacing: -.01em; }
.paper > p { color: var(--ink-2); font-size: 16.5px; }
.metrics { align-self: stretch; }
.metrics div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.metrics span { font-size: 16px; }
.metrics b { font: 700 24px var(--font-display); font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.metrics s { margin-right: 10px; color: var(--base); font-size: 17px; font-weight: 600; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--accent); font-size: 16px; font-weight: 600; box-shadow: inset 0 -1px 0 currentColor; }
.link .arw { width: 16px; height: 16px; }
.team { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.team li { padding: 14px 0; border-top: 1px solid var(--line); }
.team b { display: block; font-size: 18px; }
.team span { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.team .lead-person { grid-column: span 2; }
.team .lead-person b { color: var(--accent); font-size: 22px; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: grid; grid-template-columns: 3.6em minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 76px; padding: 16px 0; cursor: pointer; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq .q { color: var(--accent); font: 700 15px/1 var(--font-display); letter-spacing: .08em; }
.faq summary i { position: relative; width: 36px; height: 36px; border: 1px solid var(--line-2); transition: background-color .25s, border-color .25s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); transition: transform .35s var(--ease-out), background-color .25s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--ink); border-color: var(--ink); }
.faq details[open] summary i::before { background: var(--bg); }
.faq details[open] summary i::after { transform: rotate(0deg); background: var(--bg); }
.faq .a { padding: 0 0 28px 3.6em; max-width: 60em; color: var(--ink-2); font-size: 16.5px; line-height: 1.8; }
.faq .a p + p, .faq .a p + .scroll, .faq .a .scroll + p, .faq .a pre + p { margin-top: 12px; }
.faq table { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--ink); }
.faq th, .faq td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.faq th { color: var(--ink-2); font-weight: 600; }
.faq td.r, .faq th.r { text-align: right; font-variant-numeric: tabular-nums; }
.faq td code { font-size: 13.5px; overflow-wrap: anywhere; color: var(--ink-2); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
pre.code { margin: 0 0 4px; padding: 18px 20px; border-left: 2px solid #918aff; background: #080a20; color: #d7dafc; font: 14px/1.7 var(--font-mono); overflow-x: auto; }
pre.code .kw { color: #b6a8ff; } pre.code .st { color: #9fe0c0; } pre.code .nb { color: #ffc78a; } pre.code .cm { color: #8a90c4; }

/* closing */
.closing { position: relative; margin-top: clamp(110px, 12vw, 170px); overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 74% 38%, #171a46, transparent 65%), var(--bg); }
.closing-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 46px); align-items: center; padding: clamp(32px, 5vw, 64px) 0; }
.closing-brand { position: relative; gap: 18px; padding: 10px 18px 10px 12px; isolation: isolate; }
.closing-brand::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; width: 68px; height: 68px; border: 1px solid #6869ac; background: radial-gradient(circle, #252659, #101331 68%); transform: rotate(45deg) scale(.8); }
.closing-brand::after { content: ""; position: absolute; z-index: -1; top: 4px; left: 4px; width: 60px; height: 60px; border: 1px dashed #777bb7; border-radius: 50%; }
.closing-brand .mark { width: 44px; height: 48px; }
.closing-brand .wm { height: clamp(18px, 2.6vw, 28px); max-width: 100%; }
.brand-caption { margin: 10px 0 0 12px; color: var(--ink-2); font-size: 14px; }
.closing .actions { margin-top: 20px; }
.bench-demo { display: flex; width: fit-content; margin-top: 12px; }
.leo { position: relative; min-height: 420px; }
.leo svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.leo text { font-family: var(--font-sans); }
.leo .cl { transition: stroke-dashoffset 1.4s var(--ease-out); }
.leo .tw { animation: twinkle 4.8s ease-in-out infinite; }
.leo .glow { transform-box: fill-box; transform-origin: center; animation: glow 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .5; } }
@keyframes glow { 50% { transform: scale(1.3); opacity: .7; } }

/* footer */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding: 56px 0 36px; }
.foot-brand p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.foot-cols div { display: flex; flex-direction: column; gap: 2px; min-width: 130px; }
.foot-cols b { margin-bottom: 8px; color: var(--ink); font-size: 14px; letter-spacing: .06em; }
.foot-cols a { color: var(--ink-2); font-size: 15.5px; line-height: 2; transition: color .2s; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px 0 8px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.foot-base a { color: var(--ink); }
.footer-mark { position: relative; padding: 24px 0 calc(28px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 2 * var(--gutter)); max-width: var(--wide); margin: 0 auto; pointer-events: none; }
.cst { display: block; width: 100%; height: auto; overflow: visible; }
.cst-line { stroke: #353a86; stroke-dasharray: 1000; transition: stroke-dashoffset 2.8s cubic-bezier(.45, 0, .2, 1); }
.cst-stars path { fill: #e6edff; transition: opacity .5s, transform .5s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.js .footer-mark:not(.on) .cst-line { stroke-dashoffset: 1000; }
.js .footer-mark:not(.on) .cst-stars path { opacity: 0; transform: scale(0); }
.js .footer-mark.on .cst-stars path { transition-delay: calc(var(--i) * 30ms + .5s); }
.cst-stars path:nth-child(5n) { animation: twinkle 3.6s ease-in-out infinite; }
@media (hover: hover) and (pointer: fine) { .foot-cols a:hover { color: var(--ink); } }

/* cursor constellation */
.trail { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 55; pointer-events: none; }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js [data-reveal].on { opacity: 1; transform: none; }
.js .sh[data-reveal] h2 { -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0); transition: -webkit-clip-path 1.1s var(--ease-out) .1s, clip-path 1.1s var(--ease-out) .1s; }
.js .sh[data-reveal].on h2 { -webkit-clip-path: inset(0 0 -10% 0); clip-path: inset(0 0 -10% 0); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 1100px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf:nth-child(3) { padding-left: 0; border-left: 0; }
  .pf:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cx-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cx-deep { grid-column: span 2; border-left: 0 !important; border-top: 1px solid #1c2050; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.wide { grid-column: span 2; }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .chain li:nth-child(3) { margin-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .tile.wide { flex-direction: column; }
  .tile.wide .tile-copy { flex: none; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .f-side { border-left: 0; border-top: 1px solid var(--line); }
  .guard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segments, .plans, .targets { grid-template-columns: minmax(0, 1fr); }
  .segments > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .road li:nth-child(3) { padding-left: 0; } .road li:nth-child(3)::before { left: 0; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .closing-in { grid-template-columns: minmax(0, 1fr); }
  .leo { min-height: 340px; }
  .cx-trace { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-trace li:nth-child(-n+3) { border-bottom: 1px solid #1c2050; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; --header-h: 58px; }
  body { font-size: 16px; }
  .head-cta { display: none; }
  .brand { font-size: 15px; letter-spacing: .14em; }
  .mark { width: 26px; height: 26px; }
  .hero-top { padding-top: 40px; }
  .status { font-size: 13.5px; }
  .h1 { font-size: clamp(40px, 12vw, 60px); }
  :lang(zh) .h1 { font-size: clamp(30px, 8.6vw, 50px); }
  .hero-sub { font-size: 17px; }
  .hero-sub br { display: none; }
  .actions .btn { flex: 1 1 auto; }
  .stage-wrap { width: calc(100% - 16px); }
  .console { font-size: 13.5px; }
  .cx-top { gap: 10px; padding: 0 12px; }
  .cx-tabs { padding: 0; }
  .cx-tabs button { flex: 1; padding-inline: 5px; min-width: 0; line-height: 1.25; }
  .cx-run code { display: none; }
  .cx-body, .cx-view { grid-template-columns: minmax(0, 1fr); }
  .cx-col { padding: 16px 14px; }
  .cx-col + .cx-col { border-left: 0; border-top: 1px solid #1c2050; }
  .cx-deep { grid-column: auto; }
  .cx-lists { grid-template-columns: minmax(0, 1fr); }
  .cx-foot { flex-direction: column; }
  .cx-trace { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-trace li { border-bottom: 1px solid #1c2050; }
  .cx-trace .nt { display: none; }
  .cx-clock { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
  .cx-clock button { margin: 0 0 0 auto; }
  .proof { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .pf, .pf + .pf { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; border-left: 0; }
  .pf:nth-child(n+2) { border-top: 1px solid var(--line); }
  .pf dt { font-size: 34px; }
  .pf dd { margin-top: 0; }
  .sh-sub { font-size: 17px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.wide { grid-column: auto; }
  .tile { min-height: 0; padding: 24px 22px; }
  .lane { grid-template-columns: 5.4em minmax(0, 1fr) auto; font-size: 14px; }
  .lane::after { left: calc(5.4em + 14px); }
  .lane i { left: calc(5.4em + 14px); }
  .io-row { grid-template-columns: 4.6em minmax(0, 1fr) auto; padding: 14px; gap: 10px; }
  .io-row span { font-size: 14px; }
  .flowfig { height: 560px; margin: 6px 4px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .cx-overview { grid-template-columns: minmax(0, 1fr); }
  .sky-orbit { right: -210px; top: 18px; }
  .f-copy { padding: 28px 22px 24px; }
  .f-side { padding: 24px 22px; }
  .dots .row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .chain { grid-template-columns: minmax(0, 1fr); }
  .chain li, .chain li:first-child { margin-left: 0; padding: 16px 20px; -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px)); padding-bottom: 24px; }
  .chain li + li { margin-top: -4px; }
  .guard { grid-template-columns: minmax(0, 1fr); }
  .road { grid-template-columns: minmax(0, 1fr); }
  .road li, .road li + li { padding-left: 0; } .road li::before, .road li + li::before { left: 0; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .team .lead-person { grid-column: auto; }
  .paper, .crew { padding: 24px 22px; }
  .faq summary { grid-template-columns: 2.8em minmax(0, 1fr) auto; font-size: 17px; }
  .faq .a { padding-left: 0; font-size: 16px; }
  .leo { min-height: 280px; }
  .foot-cols { gap: 24px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .h1 .ln, .js .bars .track i, .js [data-reveal] .states li, .js [data-reveal] .checks i, .js .chain[data-reveal] li { opacity: 1 !important; transform: none !important; -webkit-filter: none !important; filter: none !important; }
  .js .sh[data-reveal] h2 { -webkit-clip-path: none !important; clip-path: none !important; }
  .road li::after { transform: scaleX(1); }
  .trail { display: none; }
  .js .footer-mark .cst-line { stroke-dashoffset: 0 !important; }
  .js .footer-mark .cst-stars path { opacity: 1 !important; transform: none !important; }
}
@media print {
  .site-header, .trail, #tip, .sky { display: none !important; }
  .js [data-reveal], .js .h1 .ln, .js .chain[data-reveal] li, .js .console.playing [data-at] { opacity: 1 !important; transform: none !important; -webkit-filter: none !important; filter: none !important; }
  .js .sh[data-reveal] h2 { -webkit-clip-path: none !important; clip-path: none !important; }
  .console { transform: none !important; }
}
