/* ==========================================================================
   Design system
   Two readers, one page.  Ivory + gold = the human reader (serif, space).
   Mint = the machine reader (mono, ledger).  Everything else is hairline.
   ========================================================================== */

:root {
  --bg: #07080a;
  --bg-1: #0b0d10;
  --bg-2: #101317;
  --ink: #ece7db;
  --ink-2: #b7b3a8;
  --mute: #7d8087;
  --faint: #5a5e66;
  --line: rgba(236, 231, 219, 0.1);
  --line-2: rgba(236, 231, 219, 0.2);
  --gold: #e8c27a;
  --gold-2: #f7dfa8;
  --mint: #79f2c8;
  --rose: #ff8576;
  --serif: 'Instrument Serif', 'Noto Serif SC', 'Songti SC', 'STSong', Georgia, serif;
  --sans: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --maxw: 1360px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: #000; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--mute); }
.nw { white-space: nowrap; }
html.zh { text-autospace: normal; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:focus-visible, .chip:focus-visible, .seg button:focus-visible, .ag-fab:focus-visible { outline-offset: 2px; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: #0a0a0a; font-size: 14px; font-weight: 500; transform: translateY(-160%); transition: transform 0.3s var(--ease); }
.skip:focus { transform: none; }

/* language switching */
html.en .zh { display: none !important; }
html.zh .en { display: none !important; }

/* film grain — behind content so text stays crisp */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------------------------------------------------------------- header */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 64px;
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}
.hdr.scrolled { background: rgba(7, 8, 10, 0.72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wm { display: inline-flex; align-items: center; font-size: 26px; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.wm-mark { width: 22px; height: 20px; flex: 0 0 auto; display: block; margin-right: 9px; }
.wm i { font-family: var(--serif); font-style: italic; color: var(--gold-2); font-size: 1.12em; letter-spacing: -0.04em; }
.wm b { font-family: var(--mono); font-weight: 500; color: var(--mint); font-size: 0.84em; letter-spacing: -0.05em; margin-left: 1px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav a { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); position: relative; padding: 6px 0; transition: color 0.3s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.hdr-r { display: flex; align-items: center; gap: 12px; }
.hdr-cta { padding: 9px 16px; }
@media (min-width: 1081px) { .nav .nav-apply { display: none; } }
@media (max-width: 1080px) { .hdr-cta { display: none; } }

.seg { position: relative; display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.02); }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); transition: color 0.3s; }
.seg button.on { color: #000; }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; border-radius: 999px; background: var(--gold); transition: transform 0.5s var(--ease), width 0.5s var(--ease), background 0.4s; }
.seg.reader .thumb.agent { background: var(--mint); }

.btn { background: transparent; color: var(--ink); font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; position: relative; overflow: hidden; }
.btn .arr { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.primary { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
.btn.primary:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn.ghost:hover { border-color: var(--ink-2); background: rgba(255, 255, 255, 0.04); }
.btn.mint { border-color: rgba(121, 242, 200, 0.4); color: var(--mint); }
.btn.mint:hover { background: rgba(121, 242, 200, 0.08); border-color: var(--mint); }
.btn.sm { padding: 8px 16px; font-size: 12.5px; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: transparent; border-radius: 4px; padding: 0; }
.burger span { display: block; height: 1px; margin: 6px 10px; background: var(--ink); }
.nav-tools { display: none; }
@media (max-width: 860px) {
  .burger { display: inline-flex; flex-direction: column; justify-content: center; }
  .hdr-r { display: none; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px var(--pad) 22px; background: rgba(7, 8, 10, 0.97); border-bottom: 1px solid var(--line); }
  .hdr.open .nav { display: flex; }
  .nav-tools { display: flex; flex-wrap: wrap; gap: 8px; }
  .nav a { padding: 10px 0; }
  html, body { overflow-x: hidden; }
}
@media (pointer: coarse) {
  .chip, .ag-chip { min-height: 40px; }
  .seg button { min-height: 38px; padding: 8px 14px; }
  .c-tabs button { min-height: 44px; }
}

/* ------------------------------------------------------------------ type */
html.zh .nav a, html.zh .eyebrow, html.zh .hero-meta .k, html.zh .hero-meta .v, html.zh .sec-head .label, html.zh .ftr h5 { text-transform: none; letter-spacing: 0.04em; }
/* CJK below ~12px turns to mush; Chinese labels get their own floor */
html.zh .nav a { font-family: var(--sans); font-size: 14px; letter-spacing: 0.02em; }
html.zh .eyebrow, html.zh .sec-head .label, html.zh .hero-meta .k, html.zh .kvgrid .k, html.zh .c-in label, html.zh .form label,
html.zh .fee h4, html.zh .phase-col h4, html.zh .fit h4, html.zh .node .who, html.zh .card .idx, html.zh .board-head, html.zh .board-foot,
html.zh .ftr h5, html.zh .ftr .fine, html.zh .console-bar, html.zh .c-human small, html.zh .preview-bar, html.zh .anno li b, html.zh .join .n,
html.zh .fee-table th, html.zh .tbl th, html.zh .ingest-k, html.zh .std-strip b, html.zh .twin .cap, html.zh .outcome b {
  font-size: 12.5px; letter-spacing: 0.04em; text-transform: none;
}
html.zh .hero-meta .v { font-size: clamp(18px, 1.65vw, 26px); line-height: 1.3; }
html.zh .ftr h5 { white-space: nowrap; word-break: keep-all; }
.page-hero .btn.primary { background: #e8c27a; color: #16130c; border-color: #e8c27a; }
.page-hero .lede { color: #ece8df; }
.page-hero.compact { padding-bottom: 28px; }
.anatomy { scroll-margin-top: 88px; }
.anatomy .anno { min-height: 8rem; }
.q-panel, .q-item { scroll-margin-top: 96px; }
pre.code, .doc-sec pre, .toc + pre { overflow-x: auto; max-width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.eyebrow.mint::before { background: var(--mint); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 9.4vw, 152px); line-height: 0.92; letter-spacing: -0.038em; }
.display em, .h2 em, .h3 em { font-style: italic; color: var(--gold-2); }
html.zh .display, html.zh .h2 { letter-spacing: -0.02em; line-height: 1.08; font-weight: 500; }
html.zh .h3 { font-weight: 500; }
html.zh em, html.zh .hero-meta .v em, html.zh .band .big em, html.zh .twin .human-sample em { font-style: normal; } /* synthetic oblique CJK looks cheap — colour carries the emphasis */
html.zh .display { font-size: clamp(44px, 8vw, 128px); }
.h2, .display { text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 70px); line-height: 1.02; letter-spacing: -0.03em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 58ch; font-weight: 300; }
html.zh .lede { font-weight: 300; line-height: 1.85; }
.small { font-size: 14px; color: var(--ink-2); }
.notice { display: inline-block; padding: 8px 14px; border: 1px dashed rgba(255, 133, 118, 0.5); color: var(--rose); font-size: 12px; letter-spacing: 0.06em; margin: 16px 0; }

/* -------------------------------------------------------------- sections */
.sec { position: relative; padding: clamp(72px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 24px; margin-bottom: clamp(48px, 7vw, 110px); align-items: start; }
.sec-head .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); padding-top: 14px; }
.sec-head .label b { display: block; color: var(--gold); font-weight: 400; margin-bottom: 6px; }
.sec-head .lede { margin-top: 28px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 6px; } .sec-head .label { padding-top: 0; } }

/* reveal — only once JS is running, so content is never hidden without it */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: min(100svh, 1040px); display: flex; flex-direction: column; justify-content: flex-end; padding: 104px 0 clamp(28px, 3.4vw, 48px); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(130% 100% at 14% 100%, rgba(7, 8, 10, 0.94) 22%, rgba(7, 8, 10, 0) 68%), linear-gradient(180deg, rgba(7, 8, 10, 0.5), rgba(7, 8, 10, 0) 22%); pointer-events: none; }
.reg { position: absolute; z-index: 1; width: 14px; height: 14px; pointer-events: none; }
.reg::before, .reg::after { content: ''; position: absolute; background: var(--faint); }
.reg::before { left: 6px; top: 0; width: 1px; height: 14px; }
.reg::after { top: 6px; left: 0; height: 1px; width: 14px; }
.reg.tl { top: 84px; left: var(--pad); } .reg.tr { top: 84px; right: var(--pad); } .reg.bl { bottom: 28px; left: var(--pad); } .reg.br { bottom: 28px; right: var(--pad); }
.aperture-labels { position: absolute; inset: 0; z-index: 0; pointer-events: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.aperture-labels span { position: absolute; top: 96px; white-space: nowrap; }
.aperture-labels .a { left: calc(60% - 20px); transform: translateX(-100%); }
.aperture-labels .b { left: calc(60% + 20px); color: var(--gold); }
@media (max-width: 900px) { .aperture-labels .a { left: calc(50% - 16px); } .aperture-labels .b { left: calc(50% + 16px); } }
.hero .eyebrow { margin-bottom: 28px; }
.hero .lede { margin-top: clamp(24px, 3vw, 40px); max-width: 60ch; }
.hero .display { font-size: clamp(46px, 8.4vw, 136px); }
html.zh .hero .display { font-size: clamp(40px, 7vw, 116px); }
.display .ln { display: block; }

/* hero: copy left, a live agent session right */
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); align-items: end; }
.hero-grid .display { font-size: clamp(46px, 5.6vw, 96px); }
html.zh .hero-grid .display { font-size: clamp(40px, 5vw, 84px); }
.hero::after { content: ''; position: absolute; z-index: -1; right: -8%; top: 8%; width: 58vw; height: 58vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 194, 122, 0.11), rgba(121, 242, 200, 0.03) 45%, transparent 66%); pointer-events: none; }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid .display { font-size: clamp(44px, 8vw, 96px); } html.zh .hero-grid .display { font-size: clamp(38px, 7vw, 84px); } }

.scene { margin: 0; border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(180deg, rgba(16, 19, 23, 0.92), rgba(8, 9, 11, 0.96)); box-shadow: 0 50px 120px -50px rgba(232, 194, 122, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; overflow: hidden; }
.sc-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
html.zh .sc-bar { text-transform: none; font-size: 12px; letter-spacing: 0.04em; }
.sc-bar .l { display: flex; align-items: center; gap: 10px; }
.sc-bar .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2.4s ease-in-out infinite; }
.sc-tag { color: var(--rose); border: 1px solid rgba(255, 133, 118, 0.4); border-radius: 999px; padding: 2px 8px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.sc-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0 16px; list-style: none; border-bottom: 1px solid var(--line); }
.sc-steps li { position: relative; padding: 8px 0 7px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); transition: color 0.4s; }
html.zh .sc-steps li { font-size: 12px; letter-spacing: 0.04em; }
.sc-steps li::after { content: ''; position: absolute; left: 0; right: 6px; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.sc-steps li.on { color: var(--ink-2); }
.sc-steps li.on::after { transform: scaleX(1); }
.sc-steps li.cur { color: var(--gold-2); }
.sc-stage { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.sc-stage [data-s] { transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), filter 0.5s var(--ease); }
.scene.live .sc-stage [data-s] { opacity: 0.16; filter: blur(3px); transform: translateY(4px); }
.scene.live .sc-stage [data-s].on { opacity: 1; filter: none; transform: none; }
.sc-msg { align-self: flex-end; width: 90%; border: 1px solid rgba(232, 194, 122, 0.35); border-radius: 10px 10px 2px 10px; padding: 10px 12px; background: rgba(232, 194, 122, 0.05); }
.sc-msg small { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
html.zh .sc-msg small { font-size: 11.5px; letter-spacing: 0.04em; }
.sc-msg p { font-size: 13.5px; line-height: 1.5; color: var(--ink); min-height: 3em; }
.sc-type .caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--gold); animation: blink 1s steps(2) infinite; }
.sc-call { font-size: 12px; color: var(--ink-2); padding: 2px 2px; }
.sc-call b { font-weight: 500; color: var(--mint); margin-right: 6px; }
.sc-call i { font-style: normal; color: var(--gold); margin: 0 6px; }
.sc-call em { font-style: normal; color: var(--mute); }
.sc-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sc-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.015); transition: border-color 0.5s, background 0.5s, opacity 0.5s, box-shadow 0.5s; }
.sc-card .t { font-size: 13px; line-height: 1.35; color: var(--ink); min-width: 0; }
.sc-card .t small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; }
.sc-card .n { text-align: right; font-size: 14px; color: var(--gold-2); white-space: nowrap; }
.sc-card .n small { display: block; font-size: 11px; color: var(--mute); }
.sc-card .v { position: absolute; top: -8px; right: 10px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--mint); color: #04100b; transition: opacity 0.4s, transform 0.4s var(--ease); }
html.zh .sc-card .v { font-size: 11px; letter-spacing: 0.04em; }
.sc-card .v.x { background: #1a1416; color: var(--rose); border: 1px solid rgba(255, 133, 118, 0.4); }
.sc-cards .sc-card { opacity: 1; }
.scene:not(.live) .sc-card:not(.win), .scene.judged .sc-card:not(.win) { opacity: 0.5; }
.scene:not(.live) .sc-card.win, .scene.judged .sc-card.win { border-color: rgba(121, 242, 200, 0.55); background: rgba(121, 242, 200, 0.05); }
.scene.ordered .sc-card.win { box-shadow: 0 0 0 1px rgba(232, 194, 122, 0.6), 0 12px 40px -16px rgba(232, 194, 122, 0.5); }
.scene.live .sc-card .v { opacity: 0; transform: translateY(4px); }
.scene.live.judged .sc-card .v { opacity: 1; transform: none; }
.scene.live .sc-cards .sc-card { transition-delay: calc(var(--i, 0) * 120ms); }
.scene.live.judged .sc-cards.on .sc-card:not(.win) { opacity: 0.5; transition-delay: 0s; }
.sc-pay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.sc-btn { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #0a0a0a; font-size: 13px; font-weight: 500; transition: transform 0.25s var(--ease), background 0.3s, opacity 0.3s; }
.sc-done { font-size: 12px; color: var(--mint); transition: opacity 0.4s; }
.scene.live .sc-done { opacity: 0; }
.scene:not(.live) .sc-btn, .scene.paid .sc-btn { background: rgba(236, 231, 219, 0.14); color: var(--ink-2); }
.scene.pressing .sc-btn { transform: scale(0.95); }
.scene.paid .sc-done { opacity: 1; }
.sc-cap { padding: 10px 16px 12px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.02em; color: var(--mute); }
html.zh .sc-cap { font-size: 12px; }
.scene.resetting .sc-stage { opacity: 0; transition: opacity 0.5s; }
@media (max-width: 1100px) { .scene { max-width: 620px; } }
.hero-sub { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; margin-top: clamp(28px, 4vw, 52px); align-items: end; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); margin-top: clamp(28px, 3.4vw, 52px); }
.hero-meta > div { padding: 18px 20px 0 0; }
.hero-meta > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-meta .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); display: block; }
.hero-meta .v { font-family: var(--serif); font-size: clamp(20px, 2vw, 30px); line-height: 1.15; color: var(--ink); display: block; margin-top: 6px; }
.hero-meta .v em { font-style: italic; color: var(--gold-2); }
@media (max-width: 860px) { .hero-sub { grid-template-columns: 1fr; gap: 24px; } .hero-meta { grid-template-columns: 1fr; } .hero-meta > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 14px; } }

/* -------------------------------------------------------------- marquee */
.marq { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-1); }
.marq-track { display: flex; width: max-content; animation: marq 48s linear infinite; }
.marq-track span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); padding: 0 26px; white-space: nowrap; }
.marq-track span i { font-style: normal; color: var(--gold); padding-left: 52px; }
.marq-track span b { font-weight: 400; color: var(--mint); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marq-track { animation: none; } }

/* ----------------------------------------------------------- compare */
.cmp { border-top: 1px solid var(--line-2); }
.cmp-row { display: grid; grid-template-columns: 2fr 4fr 4fr; gap: 0; border-bottom: 1px solid var(--line); }
.cmp-row > div { padding: clamp(18px, 2.4vw, 30px) clamp(12px, 2vw, 28px); }
.cmp-row .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); padding-left: 0; }
.cmp-row .old { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(125, 128, 135, 0.45); font-weight: 300; }
.cmp-row .new { font-family: var(--serif); font-size: clamp(20px, 2vw, 30px); line-height: 1.2; background: linear-gradient(90deg, rgba(232, 194, 122, 0.07), transparent); border-left: 1px solid rgba(232, 194, 122, 0.4); }
.cmp-head .old, .cmp-head .new { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; background: none; }
.cmp-head .new { color: var(--gold); }
.cmp-row .old > span { background: linear-gradient(rgba(125, 128, 135, 0.55), rgba(125, 128, 135, 0.55)) 0 58% / 100% 1px no-repeat; }
.cmp-row:not(.cmp-head) .old { text-decoration: none; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; }
.cmp-row .new small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); font-weight: 300; letter-spacing: 0; max-width: 46ch; }
html.zh .cmp-row .new { font-weight: 500; }
@media (max-width: 760px) {
  .cmp-row:not(.cmp-head) .k { padding-bottom: 0; }
  .cmp-row:not(.cmp-head) .old::before, .cmp-row:not(.cmp-head) .new::before { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
  html.en .cmp-row:not(.cmp-head) .old::before { content: 'The usual marketplace'; }
  html.zh .cmp-row:not(.cmp-head) .old::before { content: '常见做法'; font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; }
  .cmp-row:not(.cmp-head) .new::before { content: attr(data-l); color: var(--gold); }
}
html.zh .cmp-row .new small { font-weight: 300; }
html.zh .cmp-row .k { font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; }
html.zh .cmp-head .old { font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; }
.js .cmp.rv { opacity: 1; transform: none; }
.js .cmp.rv .cmp-row { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .cmp.rv .old > span { background-size: 0 1px; transition: background-size 0.7s var(--ease); }
.js .cmp.rv.in .cmp-row { opacity: 1; transform: none; }
.js .cmp.rv.in .old > span { background-size: 100% 1px; }
.cmp-row:nth-child(2) { --i: 1; } .cmp-row:nth-child(3) { --i: 2; } .cmp-row:nth-child(4) { --i: 3; } .cmp-row:nth-child(5) { --i: 4; }
.js .cmp.rv.in .cmp-row { transition-delay: calc(var(--i, 0) * 0.12s); }
.js .cmp.rv.in .old > span { transition-delay: calc(0.35s + var(--i, 0) * 0.12s); }
@media (max-width: 760px) { .cmp-row { grid-template-columns: 1fr; } .cmp-row .new { border-left: 0; border-top: 1px dashed var(--line); } .cmp-head { display: none; } }

/* -------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.step { position: relative; padding: clamp(24px, 3vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 320px; display: flex; flex-direction: column; }
.step .n { font-family: var(--serif); font-size: clamp(80px, 9vw, 150px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--line-2); letter-spacing: -0.04em; transition: -webkit-text-stroke-color 0.6s, color 0.6s; }
.step:hover .n { -webkit-text-stroke-color: var(--gold); }
.step h3 { margin-top: auto; padding-top: 28px; }
.step p { color: var(--ink-2); font-size: 15px; margin-top: 12px; max-width: 38ch; font-weight: 300; }
.actor { position: absolute; top: clamp(24px, 3vw, 44px); right: clamp(24px, 3vw, 44px); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.actor.sup { border-color: rgba(232, 194, 122, 0.55); color: var(--gold-2); }
.actor.agt { border-color: rgba(121, 242, 200, 0.5); color: var(--mint); }
.actor.hum { background: var(--ink); color: #000; border-color: var(--ink); }
.actor.plat { border-style: dashed; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .step { min-height: 260px; } }

/* -------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { position: relative; background: var(--bg); padding: clamp(26px, 3vw, 44px); min-height: 280px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 194, 122, 0.12), transparent 62%); }
.card:hover::before { opacity: 1; }
.card .idx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--mute); }
.card h3 { margin-top: auto; padding-top: 48px; }
.card p { margin-top: 12px; color: var(--ink-2); font-size: 15px; font-weight: 300; }
.card .tag { position: absolute; top: clamp(26px, 3vw, 44px); right: clamp(26px, 3vw, 44px); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card { min-height: 220px; } }

/* -------------------------------------------------------------- phase */
.phase { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.phase-col h4 { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.dot.next { background: none; border: 1px solid var(--gold); box-shadow: none; }
.dot.no { background: var(--rose); box-shadow: none; opacity: 0.8; }
.phase-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.phase-item .h3 { font-size: clamp(22px, 2vw, 30px); }
.phase-item p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; font-weight: 300; }
.phase-item .quote { font-family: var(--mono); font-size: 11.5px; color: var(--mute); margin-top: 10px; display: block; line-height: 1.7; }
.phase-col.not .phase-item .h3 { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(255, 133, 118, 0.5); }
.band { margin-top: clamp(36px, 5vw, 64px); padding: 22px 26px; border: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; justify-content: space-between; }
.band .big { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 52px); letter-spacing: -0.02em; }
.band .big em { font-style: italic; color: var(--gold-2); }
@media (max-width: 960px) { .phase { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ console */
.console { border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(16, 19, 23, 0.9), rgba(9, 10, 12, 0.95)); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 120px -40px rgba(121, 242, 200, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; }
.console-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--mute); text-transform: uppercase; }
.console-bar .l { display: flex; align-items: center; gap: 10px; }
.console-bar .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.console-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 480px; }
.c-in { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.c-in label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 8px; }
.c-in textarea, .c-in input, .form input, .form textarea, .form select {
  width: 100%; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink);
  font-family: var(--mono); font-size: 13px; line-height: 1.6; padding: 12px 14px; outline: none; transition: border-color 0.3s, background 0.3s; resize: vertical;
}
.c-in textarea { min-height: 128px; }
.c-in textarea:focus, .c-in input:focus, .form input:focus, .form textarea:focus, .form select:focus { border-color: var(--gold); background: rgba(232, 194, 122, 0.04); }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: none; border-radius: 999px; padding: 6px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2); transition: all 0.3s; }
.chip:hover { border-color: var(--gold); color: var(--gold-2); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #000; }
.c-in .btn { margin-top: 6px; justify-content: space-between; }
.c-out { display: flex; flex-direction: column; min-width: 0; background: rgba(0, 0, 0, 0.35); }
.c-tabs { display: flex; border-bottom: 1px solid var(--line); }
.c-tabs button { background: none; border: 0; padding: 12px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.c-tabs button.on { color: var(--mint); border-color: var(--mint); }
.c-status { margin-left: auto; padding: 12px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.c-status b { font-weight: 500; }
.c-status .matched { color: var(--mint); } .c-status .needs_input { color: var(--gold); } .c-status .waitlisted { color: #9db8ff; } .c-status .out_of_scope { color: var(--rose); }
.c-screen { flex: 1; padding: 18px 20px; overflow: auto; max-height: 560px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
.c-screen .ph { color: var(--mute); }
/* result view: what the agent got, drawn for a person */
.c-screen.is-view { white-space: normal; font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink); padding: 18px 20px; }
.cv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; font-size: 13px; color: var(--mute); }
.cv-st { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.cv-st.matched { color: var(--mint); } .cv-st.needs_input { color: var(--gold-2); } .cv-st.waitlisted { color: #9db8ff; } .cv-st.out_of_scope { color: var(--rose); }
.cv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cv-card { border: 1px solid var(--line-2); border-radius: 8px; padding: 14px 16px; background: rgba(255, 255, 255, 0.015); animation: cvIn 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.cv-card.top { border-color: rgba(121, 242, 200, 0.45); background: rgba(121, 242, 200, 0.04); }
@keyframes cvIn { from { opacity: 0; transform: translateY(8px); } }
.cv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cv-top b { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
html.zh .cv-top b { font-weight: 500; font-size: 18px; }
.cv-rank { font-size: 11px; color: var(--gold); }
.cv-sample { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose); border: 1px solid rgba(255, 133, 118, 0.4); border-radius: 999px; padding: 1px 7px; }
.cv-fit { margin-left: auto; font-size: 11.5px; color: var(--mint); }
.cv-sum { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 300; }
.cv-vars { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cv-vars li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.cv-vars li.no { color: var(--mute); }
.cv-vars li.no span:first-child { text-decoration: line-through; text-decoration-color: rgba(255, 133, 118, 0.5); }
.cv-vars li.pick { color: var(--ink); }
.cv-vars li.pick .mono { color: var(--gold-2); }
.cv-vars .mono { white-space: nowrap; font-size: 12.5px; }
.cv-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--mute); }
.cv-foot a { color: var(--mint); }
.cv-empty { border: 1px dashed var(--line-2); border-radius: 8px; padding: 16px; color: var(--ink-2); }
.cv-empty b { display: block; color: var(--rose); margin-bottom: 6px; }
.cv-empty a { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--mint); }
.tk-k { color: var(--ink-2); } .tk-s { color: var(--mint); } .tk-n { color: var(--gold-2); } .tk-b { color: var(--rose); } .tk-p { color: var(--faint); } .tk-c { color: var(--mute); }
.c-human { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.4; min-height: 78px; }
.c-human small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
@media (max-width: 960px) { .console-body { grid-template-columns: 1fr; } .c-in { border-right: 0; border-bottom: 1px solid var(--line); } }

.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: 1px; border: 1px solid var(--line); border-top: 0; }
.outcome { background: var(--bg); padding: 22px 22px 26px; }
.outcome b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.outcome p { font-size: 14px; color: var(--ink-2); font-weight: 300; line-height: 1.55; }
.outcome:nth-child(1) b { color: var(--mint); } .outcome:nth-child(2) b { color: var(--gold); } .outcome:nth-child(3) b { color: #9db8ff; } .outcome:nth-child(4) b { color: var(--rose); }
@media (max-width: 860px) { .outcomes { grid-template-columns: 1fr 1fr; } }

/* ----------------------------------------------------------- twin */
.twin { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line-2); }
.twin > div { padding: clamp(24px, 3vw, 44px); min-height: 360px; position: relative; }
.twin > div + div { border-left: 1px solid var(--line-2); background: #050607; }
.twin h3 { margin-bottom: 16px; }
.twin .cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); position: absolute; top: 14px; right: 18px; }
.twin .human-sample { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 54px); line-height: 1.04; letter-spacing: -0.025em; margin-top: 36px; }
.twin .human-sample em { font-style: italic; color: var(--gold-2); }
.twin .human-sample + p { margin-top: 18px; color: var(--ink-2); font-weight: 300; max-width: 38ch; }
.twin pre { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--mint); margin: 36px 0 0; white-space: pre-wrap; }
.twin pre .d { color: var(--faint); }
.entries { margin-top: 36px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-2); }
.entries > div { padding: 18px 16px 0 0; }
.entries > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.entries code { font-family: var(--mono); font-size: 12px; color: var(--mint); display: block; margin-bottom: 6px; }
.entries span { font-size: 13px; color: var(--ink-2); font-weight: 300; line-height: 1.5; display: block; }
@media (max-width: 960px) { .twin { grid-template-columns: 1fr; } .twin > div + div { border-left: 0; border-top: 1px solid var(--line-2); } .entries { grid-template-columns: 1fr 1fr; gap: 20px 0; } .entries > div:nth-child(odd) { padding-left: 0; border-left: 0; } }

/* ---------------------------------------------------------- promise */
.promises { border-top: 1px solid var(--line-2); }
.promise { display: grid; grid-template-columns: 2fr 5fr 5fr; gap: 24px; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.promise .n { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--mute); }
.promise .h3 { font-size: clamp(26px, 3vw, 44px); }
.promise p { color: var(--ink-2); font-weight: 300; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; gap: 8px; } }

/* -------------------------------------------------------------- CTA */
.cta-sec { text-align: left; overflow: hidden; }
.cta-sec .display { font-size: clamp(44px, 8vw, 128px); max-width: 12ch; }
html.zh .cta-sec .display { max-width: 10em; }
.cta-sec .glow { position: absolute; right: -12%; top: 10%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 194, 122, 0.14), transparent 62%); filter: blur(30px); pointer-events: none; }

/* ------------------------------------------------------------ footer */
.ftr { border-top: 1px solid var(--line); padding: 64px 0 40px; position: relative; overflow: hidden; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 3.4fr) repeat(4, minmax(0, 2fr)); gap: 32px; }
.ftr h5 { margin: 0 0 14px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.ftr li { margin: 4px 0; font-size: 14px; color: var(--ink-2); }
.ftr li a { display: inline-block; padding: 4px 0; overflow-wrap: anywhere; }
.ftr li a:hover { color: var(--gold-2); }
.ftr .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--mute); }
.ftr .big-wm { font-family: var(--serif); font-style: italic; font-size: clamp(72px, 16.5vw, 280px); line-height: 1; letter-spacing: -0.055em; color: transparent; -webkit-text-stroke: 1px rgba(236, 231, 219, 0.3); margin: 56px 0 0; padding-bottom: 0.14em; user-select: none; white-space: nowrap; background: linear-gradient(180deg, rgba(232, 194, 122, 0.08), transparent 70%); -webkit-background-clip: text; background-clip: text; }
.ftr .big-wm b { font-family: var(--mono); font-style: normal; font-weight: 500; font-size: 0.84em; letter-spacing: -0.06em; -webkit-text-stroke-color: rgba(121, 242, 200, 0.45); }
@media (max-width: 1100px) { .ftr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ftr-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }

/* ----------------------------------------------------- section rail */
.rail { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 14px; }
@media (min-width: 1400px) { .rail { display: flex; } }
.rail a { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); transition: color 0.3s; }
.rail a::before { content: ''; width: 14px; height: 1px; background: currentColor; transition: width 0.4s var(--ease); }
.rail a span { opacity: 0; transform: translateX(-6px); transition: all 0.4s var(--ease); }
.rail a.on { color: var(--gold); }
.rail a.on::before { width: 30px; }
.rail:hover a span { opacity: 1; transform: none; }

/* ----------------------------------------------------- agent view
   In place: each section is replaced by its Markdown twin. */
.reader-agent body { background: #040506; }
.reader-agent .has-twin > :not(.twin-md), .reader-agent .toc, .reader-agent .notice, .reader-agent .rail, .reader-agent .glow, .reader-agent .hero::after { display: none !important; }
.reader-agent .docs { grid-template-columns: minmax(0, 1fr); }
.reader-agent #main > section { padding: 0 !important; border-top: 0; }
.reader-agent #main > .hero, .reader-agent #main > .page-hero { display: block; min-height: 0; padding-top: 88px !important; }
.reader-agent .doc-sec { margin: 0; padding: 0; }
.reader-agent #main { background: repeating-linear-gradient(180deg, rgba(121, 242, 200, 0.022) 0 1px, transparent 1px 3px); padding-bottom: 96px; }
.twin-md { display: none; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); font-family: var(--mono); }
.wrap .twin-md { padding: 0; max-width: none; }
.reader-agent .twin-md { display: block; }
.twin-md > * { max-width: 120ch; }
.tw-req { padding: 18px 0 20px; border-bottom: 1px solid rgba(121, 242, 200, 0.18); font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.tw-req .cmd { color: var(--ink); word-break: break-all; } .tw-req .cmd b { color: var(--mint); font-weight: 400; }
.tw-req .ok { color: var(--mint); } .tw-req .hk { color: var(--mute); }
html.en .tw-req .hk.zh { display: none; }
html.zh .tw-req .hk.zh { font-family: var(--sans); font-size: 12.5px; }
.tw-k { display: flex; gap: 12px; justify-content: space-between; margin: 0; padding: 22px 0 8px; border-top: 1px dashed rgba(121, 242, 200, 0.16); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); opacity: 0.7; }
.tw-k span { color: var(--faint); letter-spacing: 0.04em; }
.tw-req + .tw-k { border-top: 0; }
.twin-md pre { margin: 0; padding: 0 0 6px; font-family: var(--mono); font-size: clamp(12px, 1.05vw, 14px); line-height: 1.8; white-space: pre-wrap; word-break: break-word; color: #c9f7e7; counter-reset: ln var(--start, 0); }
.twin-md .ln { display: block; position: relative; padding-left: 4.6ch; transition: opacity 0.18s; }
.twin-md .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 3.2ch; text-align: right; color: var(--faint); }
.twin-md .ln.pending { opacity: 0; }
.twin-md .h { color: var(--gold-2); } .twin-md .c { color: var(--mute); }
.twin-md.none { padding-bottom: 6px; }
.twin-md.none .tw-k { color: var(--faint); opacity: 1; }
.tw-none { margin: 0; padding: 4px 0 18px 4.6ch; font-size: 12.5px; line-height: 1.7; color: var(--mute); }
html.zh .tw-none { font-family: var(--sans); font-size: 13px; }
.av-bar { position: fixed; left: 50%; bottom: 20px; z-index: 84; display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 14px; border: 1px solid rgba(121, 242, 200, 0.35); border-radius: 999px; background: rgba(4, 5, 6, 0.92); backdrop-filter: blur(10px); font-size: 11.5px; color: var(--ink-2); transform: translate(-50%, 140%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0s 0.4s; max-width: calc(100vw - 24px); }
.reader-agent .av-bar { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform 0.4s var(--ease), opacity 0.3s; }
.av-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.av-path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-bar button { flex: none; border: 1px solid var(--line-2); background: none; color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; cursor: pointer; }
.av-bar button:hover { border-color: var(--mint); color: var(--mint); }
html.zh .av-bar button { font-family: var(--sans); font-size: 12.5px; }
.reader-agent .ag-fab { display: none; }
.hdr { view-transition-name: hdr; }
@keyframes avWipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 560px) { .av-path { display: none; } }

/* ----------------------------------------------------------- inner pages */
.page-hero { padding: 168px 0 clamp(60px, 8vw, 110px); position: relative; overflow: hidden; }
.page-hero .display { font-size: clamp(44px, 7.4vw, 120px); margin-top: 24px; }
html.zh .page-hero .display { font-size: clamp(40px, 6.4vw, 104px); }
.page-hero .lede { margin-top: 32px; }
.page-hero .glow { position: absolute; right: -10%; top: -10%; width: 55vw; height: 55vw; max-width: 820px; max-height: 820px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 194, 122, 0.12), transparent 62%); filter: blur(30px); pointer-events: none; z-index: -1; }
.page-hero.agentic .glow { background: radial-gradient(circle, rgba(121, 242, 200, 0.1), transparent 62%); }

/* inner-page hero: copy + one concrete object */
.ph-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); align-items: end; }
.ph-grid .display { font-size: clamp(44px, 5.4vw, 92px); }
html.zh .ph-grid .display { font-size: clamp(40px, 4.8vw, 80px); }
.ph-aside { border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(180deg, rgba(16, 19, 23, 0.92), rgba(8, 9, 11, 0.96)); box-shadow: 0 50px 120px -50px rgba(232, 194, 122, 0.2); overflow: hidden; font-size: 13.5px; }
.agentic .ph-aside { box-shadow: 0 50px 120px -50px rgba(121, 242, 200, 0.2); }
.pa-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.pa-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2.4s ease-in-out infinite; }
.pa-bar .sc-tag, .pa-bar .pa-ms { margin-left: auto; }
.pa-ms { color: var(--mint); letter-spacing: 0.06em; }
.pa-body { padding: 18px 18px 6px; }
.pa-k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
html.zh .pa-k, html.zh .pa-bar { font-size: 12.5px; letter-spacing: 0.04em; }
.pa-t { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 25px); line-height: 1.2; letter-spacing: -0.015em; margin: 8px 0 14px; }
html.zh .pa-t { font-weight: 500; }
.pa-rows > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pa-rows dt { color: var(--mute); font-size: 12.5px; }
.pa-rows dd { margin: 0; color: var(--ink-2); font-weight: 300; line-height: 1.55; }
.pa-rows dd.mono { color: var(--gold); font-weight: 400; }
.pa-ok { color: var(--mint); }
.pa-foot { padding: 11px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--mute); line-height: 1.5; }
html.zh .pa-foot { font-family: var(--sans); font-size: 12.5px; }
.pa-pre { margin: 0; padding: 16px 18px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--ink-2); white-space: pre; overflow-x: auto; scrollbar-width: thin; }
.pa-pre .c { color: var(--mute); } .pa-pre .k { color: var(--gold-2); } .pa-pre .s { color: var(--mint); } .pa-pre .n { color: #9db8ff; }
.pa-caret { display: inline-block; width: 7px; height: 1.1em; margin-left: 4px; vertical-align: -2px; background: var(--mint); animation: blink 1.1s steps(1) infinite; }
.ph-aside.conv { display: grid; grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.2fr); align-items: center; gap: 14px; padding: 18px; }
.cvt-doc { border: 1px dashed var(--line-2); border-radius: 6px; padding: 14px 14px 18px; display: grid; gap: 9px; background: rgba(255, 255, 255, 0.015); }
.cvt-doc .pa-k { margin-bottom: 4px; }
.cvt-doc i { display: block; height: 5px; width: var(--w); border-radius: 3px; background: rgba(236, 232, 223, 0.14); }
.cvt-arrow { display: grid; justify-items: center; gap: 4px; color: var(--gold); font-size: 18px; }
.cvt-arrow span { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.cvt-std { list-style: none; margin: 0; padding: 0; display: grid; }
.cvt-std li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.cvt-std li:last-child { border-bottom: 0; }
.cvt-std b { font-family: var(--mono); font-weight: 400; font-size: 10.5px; color: var(--gold); }
.cvt-std li::after { content: '✓'; margin-left: auto; color: var(--mint); }
.cvt-std li.ask::after { content: none; }
.cvt-std em { margin-left: auto; flex: none; white-space: nowrap; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(232, 194, 122, 0.4); border-radius: 999px; padding: 1px 8px; }
html.zh .cvt-std em { font-family: var(--sans); font-size: 12px; text-transform: none; }
.js .ph-aside.rv .cvt-std li, .js .ph-aside.rv .pa-rows > div { opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s; }
.js .ph-aside.rv.in .cvt-std li, .js .ph-aside.rv.in .pa-rows > div { opacity: 1; transform: none; }
.ph-aside.in .cvt-std li:nth-child(n), .ph-aside.in .pa-rows > div:nth-child(n) { transition-delay: calc(0.5s + var(--i, 0) * 0.12s); }
.cvt-std li:nth-child(1), .pa-rows > div:nth-child(1) { --i: 0; } .cvt-std li:nth-child(2), .pa-rows > div:nth-child(2) { --i: 1; }
.cvt-std li:nth-child(3), .pa-rows > div:nth-child(3) { --i: 2; } .cvt-std li:nth-child(4), .pa-rows > div:nth-child(4) { --i: 3; }
.cvt-std li:nth-child(5) { --i: 4; } .cvt-std li:nth-child(6) { --i: 5; } .cvt-std li:nth-child(7) { --i: 6; }
@media (max-width: 1100px) { .ph-grid { grid-template-columns: 1fr; } .ph-aside { max-width: 620px; } }
@media (max-width: 560px) { .ph-aside.conv { grid-template-columns: 1fr; } .cvt-arrow { transform: rotate(90deg); } .cvt-doc { display: none; } }
@media (prefers-reduced-motion: reduce) { .pa-caret, .pa-bar .dot { animation: none; } .js .ph-aside.rv .cvt-std li, .js .ph-aside.rv .pa-rows > div { opacity: 1; transform: none; transition: none; } }

/* contact */
.mail-big { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: clamp(36px, 4vw, 56px); }
.mail-addr { font-family: var(--serif); font-size: clamp(34px, 5vw, 72px); letter-spacing: -0.02em; line-height: 1; color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease, ease), color 0.3s; padding-bottom: 6px; }
.mail-addr:hover { color: var(--gold); background-size: 100% 1px; }
.btn.done { border-color: var(--mint); color: var(--mint); }
.mail-routes { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 1080px; }
.mail-routes a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; height: 100%; padding: 22px; background: var(--bg); color: inherit; text-decoration: none; transition: background 0.3s; }
.mail-routes a:hover { background: #0d0f12; }
.mail-routes b { font-weight: 400; font-size: 11px; color: var(--gold); padding-top: 4px; }
.mail-routes strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: -0.01em; }
html.zh .mail-routes strong { font-weight: 500; }
.mail-routes small { display: block; margin-top: 6px; color: var(--ink-2); font-weight: 300; font-size: 13.5px; line-height: 1.55; }
.mail-routes i { font-style: normal; color: var(--mute); transition: color 0.3s, transform 0.3s; }
.mail-routes a:hover i { color: var(--gold); transform: translate(2px, -2px); }
@media (max-width: 860px) { .mail-routes { grid-template-columns: 1fr; } }

.cols2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.panel { background: var(--bg); padding: clamp(22px, 2.6vw, 36px); }
.panel h3 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); font-weight: 400; margin-bottom: 14px; }
.panel li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); font-weight: 300; }
.panel li:last-child { border-bottom: 0; }
.panel .h3 { text-transform: none; letter-spacing: -0.02em; color: var(--ink); font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 12px; font-weight: 400; }
.panel p { color: var(--ink-2); font-weight: 300; font-size: 15px; }
@media (max-width: 860px) { .cols2, .cols3 { grid-template-columns: 1fr; } }
.kvgrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); margin: 36px 0; }
.kvgrid > div { padding: 18px 18px 18px 0; }
.kvgrid > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.kvgrid .k { display: block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.kvgrid .v { display: block; font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; margin-top: 6px; }
.kvgrid small { font-family: var(--mono); font-size: 11px; color: var(--mute); }
@media (max-width: 860px) { .kvgrid { grid-template-columns: 1fr 1fr; } .kvgrid > div:nth-child(3) { padding-left: 0; border-left: 0; } }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); font-weight: 300; }
.tbl td.mono, .tbl td code { font-family: var(--mono); font-size: 12.5px; color: var(--mint); }
.tbl td code { background: rgba(121, 242, 200, 0.06); padding: 1px 6px; border-radius: 3px; }
.tbl-wrap { overflow-x: auto; }
pre.code { margin: 0; padding: 20px 22px; background: #050607; border: 1px solid var(--line-2); border-radius: 4px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--ink-2); scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
pre.code .c { color: var(--mute); } pre.code .k { color: var(--gold-2); } pre.code .s { color: var(--mint); } pre.code .n { color: #9db8ff; }
.code-panel { margin-top: 1px; }

/* anatomy (offer card) */
.anatomy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.anatomy pre.code { font-size: 12.5px; position: sticky; top: 96px; }
.anatomy pre.code .ln { display: block; padding: 0 10px; margin: 0 -10px; border-left: 2px solid transparent; transition: background 0.3s, border-color 0.3s; cursor: default; }
.anatomy pre.code .ln.hot { background: rgba(232, 194, 122, 0.08); border-color: var(--gold); }
.anno { border-top: 1px solid var(--line-2); }
.anno li { padding: 16px 0; border-bottom: 1px solid var(--line); transition: opacity 0.3s; }
.anno li b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.anno li span { color: var(--ink-2); font-size: 14.5px; font-weight: 300; }
.anno li.hot b { color: var(--gold-2); }
@media (max-width: 960px) { .anatomy { grid-template-columns: 1fr; } }

/* join steps */
.join { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.join > div { padding: 26px 24px 8px 0; position: relative; }
.join > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.join .n { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--gold); }
.join h3 { margin: 22px 0 10px; }
.join p { color: var(--ink-2); font-size: 14.5px; font-weight: 300; }
@media (max-width: 960px) { .join { grid-template-columns: 1fr 1fr; } .join > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .join { grid-template-columns: 1fr; } .join > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 20px; } }

/* fee */
.fee { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); }
.fee > div { padding: clamp(26px, 3vw, 44px); }
.fee > div + div { border-left: 1px solid var(--line-2); }
.fee .big { font-family: var(--serif); font-size: clamp(64px, 8vw, 130px); line-height: 0.9; letter-spacing: -0.04em; color: var(--gold-2); }
.fee .big small { font-size: 0.34em; letter-spacing: 0; color: var(--ink-2); font-style: italic; margin-left: 4px; }
.fee h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; color: var(--mute); margin: 18px 0 8px; }
.fee p { color: var(--ink-2); font-size: 14.5px; font-weight: 300; }
@media (max-width: 860px) { .fee { grid-template-columns: 1fr; } .fee > div + div { border-left: 0; border-top: 1px solid var(--line-2); } }

.fee-note { margin-top: 22px; max-width: 68ch; color: var(--ink-2); font-size: 14.5px; font-weight: 300; }
.fee-table { margin-top: 28px; border: 1px solid var(--line-2); width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td { text-align: left; padding: 14px 20px; vertical-align: top; border-bottom: 1px solid var(--line); }
.fee-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table .pct { font-family: var(--serif); font-size: 28px; color: var(--gold-2); letter-spacing: -0.03em; white-space: nowrap; }
@media (max-width: 700px) { .fee-table th:nth-child(3), .fee-table td:nth-child(3) { display: none; } }


/* board */
.board { border: 1px solid var(--line-2); }
.board-head, .board-row { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 12px; padding: 14px 20px; align-items: center; }
.board-head { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line-2); }
.board-row { border-bottom: 1px solid var(--line); font-size: 15px; }
.board-row:last-child { border-bottom: 0; }
.board-row .num { font-family: var(--mono); color: var(--mint); }
.board-row .name { font-family: var(--serif); font-size: 22px; }
.board-empty { padding: 36px 24px; color: var(--ink-2); font-weight: 300; }
.board-foot { padding: 12px 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--mute); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) { .board-head, .board-row { grid-template-columns: 4fr 1fr 1fr; } .board-head span:last-child, .board-row span:last-child { display: none; } }

/* fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); }
.fit h4 { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; align-items: center; }
.fit li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 300; display: flex; gap: 14px; }
.fit li::before { content: '+'; font-family: var(--mono); color: var(--mint); }
.fit .no li::before { content: '–'; color: var(--rose); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 22px; color: var(--gold); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--ink-2); font-weight: 300; max-width: 70ch; }

/* docs layout (agents page) */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.toc { position: sticky; top: 96px; align-self: start; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.toc a { display: block; padding: 8px 0 8px 14px; color: var(--mute); border-left: 1px solid var(--line); transition: all 0.3s; }
.toc a:hover, .toc a.on { color: var(--mint); border-color: var(--mint); }
.doc-sec { padding: 0 0 clamp(48px, 6vw, 90px); }
.doc-sec + .doc-sec { padding-top: clamp(48px, 6vw, 90px); border-top: 1px solid var(--line); }
.doc-sec h2 { margin-bottom: 20px; }
.doc-sec > p { color: var(--ink-2); font-weight: 300; max-width: 70ch; margin-bottom: 16px; }
.doc-sec .tbl-wrap, .doc-sec pre.code { margin: 20px 0; }
.doc-sec ul.bul { margin: 12px 0 20px; max-width: 70ch; }
.doc-sec ul.bul li { padding: 8px 0 8px 22px; position: relative; color: var(--ink-2); font-weight: 300; }
.doc-sec ul.bul li::before { content: '→'; position: absolute; left: 0; color: var(--mint); font-family: var(--mono); }
.doc-sec code.i { font-family: var(--mono); font-size: 0.88em; color: var(--mint); background: rgba(121, 242, 200, 0.06); padding: 1px 6px; border-radius: 3px; }
@media (max-width: 960px) { .docs { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

/* form */
.form { display: grid; gap: 22px; max-width: 760px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.form label em { color: var(--gold); font-style: normal; }
.form textarea { min-height: 140px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: #111; }
.form-msg { font-family: var(--mono); font-size: 13px; padding: 16px 18px; border: 1px solid var(--line-2); display: none; line-height: 1.7; }
.form-msg.show { display: block; }
.form-msg.ok { border-color: rgba(121, 242, 200, 0.5); color: var(--mint); }
.form-msg.err { border-color: rgba(255, 133, 118, 0.5); color: var(--rose); }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }

.offer-page h1 { margin: 22px 0 8px; max-width: 18ch; }
.offer-page .lede { margin-top: 18px; }

/* tiny helpers */
.mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: 80px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ================================================================ v2 additions */
[hidden] { display: none !important; }

/* how it works: three nodes */
.chain { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); align-items: stretch; }
.node { border: 1px solid var(--line-2); padding: clamp(24px, 2.6vw, 38px); display: flex; flex-direction: column; gap: 14px; min-height: 280px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent); }
.node .who { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.node.sup .who { color: var(--gold); } .node.agt .who { color: var(--mint); } .node.hum .who { color: var(--ink); }
.node.sup { border-color: rgba(232, 194, 122, 0.4); } .node.agt { border-color: rgba(121, 242, 200, 0.35); }
.node h3 { margin-top: auto; padding-top: 24px; }
.node p { color: var(--ink-2); font-size: 15px; font-weight: 300; }
.chain .arrow { display: flex; align-items: center; justify-content: center; font-family: var(--mono); color: var(--faint); font-size: 20px; }
.flow { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 18px 22px; border: 1px dashed var(--line-2); font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-2); }
.flow i { font-style: normal; color: var(--gold); }
.flow b { font-weight: 500; color: var(--mint); }
.flow { position: relative; overflow: hidden; }
.js .flow.rv { opacity: 1; transform: none; }
.js .flow.rv > * { opacity: 0.22; transition: opacity 0.45s var(--ease), color 0.45s; }
.js .flow.rv.in > * { opacity: 1; }
.flow > :nth-child(2) { --i: 1; } .flow > :nth-child(3) { --i: 2; } .flow > :nth-child(4) { --i: 3; } .flow > :nth-child(5) { --i: 4; }
.flow > :nth-child(6) { --i: 5; } .flow > :nth-child(7) { --i: 6; } .flow > :nth-child(8) { --i: 7; } .flow > :nth-child(9) { --i: 8; }
.js .flow.rv.in > * { transition-delay: calc(0.2s + var(--i, 0) * 0.16s); }
.flow::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--gold) 45%, var(--mint) 55%, transparent); transform: translateX(-100%); }
.flow.in::after { animation: flowRun 3.2s 1.8s var(--ease) infinite; }
@keyframes flowRun { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.chain .arrow { transition: color 0.5s 0.4s; }
.chain .node.in + .arrow { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .flow.in::after { animation: none; } .js .flow.rv > * { opacity: 1; } }

/* one light section to break the dark run */
.cta-sec.light { --ink: #15171b; --ink-2: #3d4047; --mute: #6a6d74; --line: rgba(20, 22, 27, 0.12); --line-2: rgba(20, 22, 27, 0.24); --gold: #94620f; --gold-2: #8a5a0c; background: #ece6d8; color: var(--ink); border-top: 0; }
.cta-sec.light .glow { background: radial-gradient(circle, rgba(232, 194, 122, 0.55), transparent 62%); opacity: 0.6; }
.cta-sec.light .btn.primary { background: #15171b; color: #f3eee2; border-color: #15171b; }
.cta-sec.light .btn.primary:hover { background: #2a2d33; }
.cta-sec.light .btn.ghost:hover { background: rgba(20, 22, 27, 0.05); border-color: var(--ink-2); }
.cta-sec.light ::selection { background: #15171b; color: #ece6d8; }

/* page-to-page */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 0.18s ease-in both; }
::view-transition-new(root) { animation: vtIn 0.36s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
.av-vt::view-transition-old(root) { animation: none; }
.av-vt::view-transition-new(root) { animation: avWipe 0.55s cubic-bezier(0.7, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
@media (max-width: 900px) { .chain { grid-template-columns: 1fr; } .chain .arrow { transform: rotate(90deg); height: 36px; } .node { min-height: 0; } }

/* four-up cards */
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.four .card { min-height: 300px; }
.cards.four .card h3 { margin-top: 0; padding-top: 56px; font-size: clamp(22px, 2vw, 28px); }
@media (max-width: 1100px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards.four { grid-template-columns: 1fr; } }

/* two-column phase */
.phase.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .phase.two { grid-template-columns: 1fr; } }

/* console: order action */
.c-act { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); }
.c-act #c-order-note { color: var(--mute); font-size: 11.5px; line-height: 1.5; max-width: 52ch; }

/* apply page */
.apply-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.apply-grid .form { max-width: none; }
.fs { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; padding-top: 14px; border-top: 1px solid var(--line-2); margin-top: 16px; }
.fs:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.fs b { font-family: var(--mono); font-weight: 400; font-size: 12px; width: 26px; height: 26px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.tier { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, 0.015); }
.tier .row2 { align-items: end; }
.preview { position: sticky; top: 92px; }
.preview-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 4px 4px 0 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); background: var(--bg-1); }
.preview-bar .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2.4s ease-in-out infinite; }
.preview pre.code { border-radius: 0 0 4px 4px; max-height: 70vh; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 12px; }
@media (max-width: 960px) { .apply-grid { grid-template-columns: 1fr; } .preview { position: static; } }

/* listing standard + ingest */
.std-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 48px; padding: 0; list-style: none; }
.std-strip li { border: 1px solid var(--line); padding: 16px 16px 18px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; }
.std-strip b { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--gold); font-weight: 400; }
.std-strip strong { font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: -0.02em; }
.std-strip span { font-size: 12.5px; color: var(--ink-2); font-weight: 300; line-height: 1.55; }
@media (max-width: 1100px) { .std-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .std-strip { grid-template-columns: 1fr; } }
.ingest { display: grid; gap: 12px; margin-bottom: 28px; }
.ingest-drop { position: relative; border: 1px dashed var(--line-2); padding: 28px 24px; cursor: pointer; background: rgba(121, 242, 200, 0.03); transition: border-color 0.3s, background 0.3s; }
.ingest-drop.on, .ingest-drop:hover { border-color: var(--mint); background: rgba(121, 242, 200, 0.07); }
.ingest-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ingest-k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-bottom: 8px; }
.ingest-t { font-size: 15px; color: var(--ink-2); font-weight: 300; max-width: 52ch; }
.ingest-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#ingest-text { min-height: 110px; }
.q-panel { border: 1px solid rgba(232, 194, 122, 0.35); padding: 22px; display: grid; gap: 14px; margin-bottom: 22px; background: rgba(232, 194, 122, 0.04); }
.q-item label { display: block; margin-bottom: 6px; font-size: 14px; }
.q-item small { display: block; color: var(--mute); font-weight: 300; margin-top: 4px; }
.just-filled { outline: 1px solid rgba(121, 242, 200, 0.55); }
.rev-meter { display: flex; align-items: baseline; gap: 14px; padding: 18px 18px 8px; border: 1px solid var(--line-2); border-bottom: 0; }
.rev-meter.ok { border-color: rgba(121, 242, 200, 0.4); }
.rev-meter.bad { border-color: rgba(255, 133, 118, 0.4); }
.rev-score b { font-family: var(--serif); font-size: 42px; font-weight: 400; letter-spacing: -0.03em; }
.rev-score small { color: var(--mute); margin-left: 4px; }
.rev-issues { list-style: none; margin: 0 0 16px; padding: 0 18px 8px; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); max-height: 220px; overflow: auto; }
.rev-issues li { font-size: 12.5px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.rev-issues li b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--mute); font-weight: 400; margin-bottom: 2px; }
.rev-issues li.error { color: var(--rose); }
.rev-issues li.warn { color: var(--gold-2); }
.rev-issues li span { display: block; color: var(--mute); margin-top: 2px; }

/* Aggie */
.aggie { position: relative; z-index: 80; }
.ag-fab { position: fixed; right: 22px; bottom: 22px; z-index: 81; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(7, 8, 10, 0.88); backdrop-filter: blur(12px); color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.ag-fab i, .ag-id i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--gold-2), var(--gold) 42%, transparent 43%), radial-gradient(circle at 70% 70%, var(--mint), transparent 55%); display: inline-block; }
.ag-fab:hover { border-color: var(--mint); }
.ag-scrim { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.35); z-index: 70; }
.ag-panel { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: min(420px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 96px)); }
.at-top .ag-fab { padding: 10px; }
.at-top .ag-fab span { display: none; }
html.zh .ag-fab { text-transform: none; letter-spacing: 0.04em; font-family: var(--sans); font-size: 13px; }
.ag-panel { position: fixed; right: 22px; bottom: 78px; z-index: 83; width: min(400px, calc(100vw - 28px)); height: auto; max-height: min(560px, calc(100svh - 120px)); background: var(--bg-1); border: 1px solid var(--line-2); display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45); }
.ag-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ag-id { display: flex; gap: 10px; align-items: center; }
.ag-id p { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); margin: 0; }
.ag-id h2 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0; letter-spacing: -0.03em; }
.ag-x { border: 0; background: none; color: var(--mute); font-size: 22px; padding: 4px 8px; }
.ag-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ag-hi { font-size: 13.5px; color: var(--ink-2); font-weight: 300; line-height: 1.65; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip { border: 1px solid var(--line-2); background: none; color: var(--ink-2); padding: 6px 10px; font-size: 12px; border-radius: 999px; }
.ag-chip:hover { border-color: var(--gold); color: var(--ink); }
.ag-thread { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 8px; }
.ag-body.is-chatting .ag-hi { display: none; }
.ag-body.is-chatting .ag-chips { position: static; flex-wrap: wrap; overflow: visible; background: none; }
.ag-chip { white-space: normal; text-align: left; line-height: 1.35; max-width: 100%; }
.ag-msg { max-width: 92%; font-size: 13.5px; line-height: 1.6; padding: 10px 12px; border: 1px solid var(--line); scroll-margin-bottom: 12px; }
.ag-msg.user { align-self: flex-end; border-color: rgba(232, 194, 122, 0.4); }
.ag-msg.assistant { align-self: flex-start; border-color: rgba(121, 242, 200, 0.35); }
.ag-msg a { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--mint); }
.ag-form { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ag-form input { flex: 1 1 auto; min-width: 0; width: auto; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); padding: 10px 12px; font: inherit; }
.ag-send { flex: 0 0 40px; width: 40px; height: 40px; border: 0; background: var(--gold); color: #111; border-radius: 50%; font-size: 16px; }
@media (max-width: 600px) {
  .ag-fab { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .ag-fab span { display: none; }
  /* Keep hero-meta text (including 「2,000 元起」) to the left of the FAB.
     Do not inflate hero padding-bottom: that can push the line below the first screen at 320px. */
  .hero-meta > div { padding-right: 72px; }
  .ftr { padding-bottom: max(40px, calc(88px + env(safe-area-inset-bottom))); }
}
@media (max-width: 560px) {
  .ag-panel { left: 12px; right: 12px; width: auto; }
}
@media (max-width: 360px) {
  .ag-panel {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: calc(62px + env(safe-area-inset-bottom));
    height: calc(100svh - 64px - 62px - env(safe-area-inset-bottom));
  }
  .ag-head { padding: 10px 12px; }
  .ag-id h2 { font-size: 20px; }
  .ag-body { padding: 12px; }
  .ag-form { padding: 10px; }
  /* Free vertical room so the selected answer (and CTA) can sit fully in view. */
  .ag-body.is-chatting .ag-chips { display: none; }
}
