[hidden] { display: none !important; }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Mono'; font-weight: 400; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Mono'; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Mono'; font-weight: 700; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --bg: #09090b; --bg-2: #0c0c0f;
  --s1: #111114; --s2: #16161a; --s3: #1c1c21; --s4: #24242a;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.11); --line-3: rgba(255,255,255,.18);
  --text: #ededf0; --text-2: #a3a3ad; --text-3: #6e6e78; --text-4: #4a4a52;
  --accent: #b77cff; --accent-hi: #d4a8ff; --accent-a: rgba(183,124,255,.14); --accent-b: rgba(183,124,255,.32);
  --ok: #43d69a; --err: #ff6370; --warn: #ffb547;
  --c-scout: #ff9150; --c-sniper: #6f95ff; --c-curve: #43d69a; --c-grad: #c77dff;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6; min-height: 100dvh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss03'; }
::selection { background: rgba(183,124,255,.35); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: 'Mono', ui-monospace, monospace; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; } .i-lg { width: 22px; height: 22px; }
.sol { width: 1.05em; height: .82em; fill: currentColor; stroke: none; flex: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -.042em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.035em; max-width: 640px; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.015em; }
.quiet { color: var(--text-3); }
p { text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 520px; letter-spacing: -.005em; }

/* Section label: index square + name, like a move in a game record */
.kicker { font-size: 13px; font-weight: 500; color: var(--text-3); margin-bottom: 16px; }

.pre { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.pre .live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--text-2);
  background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag .live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(67,214,154,.16); }
.tag .sep { width: 1px; height: 12px; background: var(--line-2); }
.tag strong { color: var(--text); font-weight: 500; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 10px; font-weight: 500; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; user-select: none;
  transition: background .18s var(--ease), box-shadow .18s var(--ease), color .18s, transform .12s var(--ease), opacity .18s; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .i-go { transform: translateX(2px); }
.btn-primary { background: #f3f1f7; color: #0b0b0e; box-shadow: inset 0 -1px 0 rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1); }
.btn-primary:hover { background: #fff; box-shadow: inset 0 -1px 0 rgba(0,0,0,.18), 0 6px 24px -6px rgba(183,124,255,.45), 0 0 0 1px rgba(255,255,255,.2); }
.btn-ghost { background: rgba(255,255,255,.035); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-text { height: auto; padding: 6px 4px; color: var(--text-2); }
.btn-text:hover { color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 15px; padding: 0 22px; border-radius: 12px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 1.75px solid rgba(0,0,0,.2); border-top-color: currentColor; animation: spin .7s linear infinite; display: none; }
.btn.loading .spin { display: block; }
.btn.loading .i { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.025em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 2px 8px rgba(0,0,0,.5); }
.brand em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--text-3); padding: 1px 7px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); letter-spacing: 0; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding-top: var(--safe-t);
  background: rgba(9,9,11,.7); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 transparent; transition: box-shadow .25s, background .25s; }
.nav.scrolled, .nav.open { box-shadow: 0 1px 0 var(--line); background: rgba(9,9,11,.82); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 16px; }
.nav-links { display: flex; gap: 2px; margin-left: 28px; font-size: 14px; color: var(--text-2); }
.nav-links a { padding: 6px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-cta .btn { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.nav-login { font-size: 14px; color: var(--text-2); padding: 6px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-login:hover { color: var(--text); background: rgba(255,255,255,.04); }
.menu-btn { display: none; width: 40px; height: 40px; margin-right: -8px; border-radius: 10px; place-items: center; color: var(--text); }
.menu-btn .i { width: 22px; height: 22px; }
.menu-btn .i-close, .nav.open .menu-btn .i-open { display: none; }
.nav.open .menu-btn .i-close { display: block; }
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 76% 45%, rgba(255,255,255,.035), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { margin: 22px 0 22px; max-width: 620px; }

.signup-row { display: flex; gap: 6px; margin-top: 36px; max-width: 460px; padding: 6px; border-radius: 14px; background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 32px -12px rgba(0,0,0,.6); transition: box-shadow .2s; }
.signup-row:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(183,124,255,.14), 0 12px 32px -12px rgba(0,0,0,.6); }
.signup-row .ic { display: grid; place-items: center; padding-left: 10px; color: var(--text-3); }
.signup-row input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: none; font-size: 16px; padding: 0 4px; }
.signup-row input::placeholder { color: var(--text-3); }
.signup-row .btn { height: 44px; }
.hero-note { margin-top: 14px; padding-left: 4px; font-size: 13px; color: var(--text-3); }
.hero-note .i { width: 15px; height: 15px; color: var(--text-2); }

/* Hero art: the knight on an 8×8 board, with its L-shaped move marked */
.board-wrap { position: relative; width: 100%; max-width: 500px; margin-left: auto; padding: 0 0 26px 22px; }
.board { position: relative; aspect-ratio: 1; border-radius: 4px;
  background: repeating-conic-gradient(rgba(255,255,255,.045) 0 25%, transparent 0 50%) 0 0 / 25% 25%, var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.25) 100%); mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.25) 100%); }
.board .sq { position: absolute; width: 12.5%; height: 12.5%; }
.board .sq.from { background: rgba(255,255,255,.05); }
.board .sq.to { box-shadow: inset 0 0 0 1px rgba(183,124,255,.55); }
.board .sq.to::after { content: ''; position: absolute; inset: 40%; border-radius: 50%; background: var(--accent); }
.board .path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.board .path path { fill: none; stroke: var(--accent); stroke-width: .5; stroke-dasharray: 1 1.2; stroke-linecap: round; opacity: .6; }
@keyframes march { to { stroke-dashoffset: -10.4; } }
.board-wrap .knight { position: absolute; left: calc(22px + 11%); bottom: calc(26px + 26%); width: 40%; height: auto; pointer-events: none;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.6));
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.board-wrap .files, .board-wrap .ranks { position: absolute; display: flex; font-family: 'Mono', monospace; font-size: 10px; color: var(--text-4); pointer-events: none; }
.board-wrap .files { left: 22px; right: 0; bottom: 4px; }
.board-wrap .files span, .board-wrap .ranks span { flex: 1; display: grid; place-items: center; }
.board-wrap .ranks { top: 0; bottom: 26px; left: 0; width: 14px; flex-direction: column; }
.board-wrap .note { position: absolute; right: -14px; top: -2%; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 12px;
  background: rgba(17,17,20,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -12px rgba(0,0,0,.7); }
.board-wrap .note .ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-a); color: var(--accent-hi); }
.board-wrap .note b { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; }
.board-wrap .note small { display: block; font-family: 'Mono', monospace; font-size: 11px; color: var(--text-3); line-height: 1.3; }
.board-wrap .note.n2 { top: auto; bottom: 13%; right: -14px; }

/* Spec strip under the hero: facts, not stats */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs > div { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-left: 1px solid var(--line); }
.specs > div:first-child { border-left: 0; padding-left: 0; }
.specs dt { font-size: 13px; color: var(--text-3); }
.specs dd { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.specs dd .sol, .specs dd .i { color: var(--text-2); }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 10vw, 136px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec + .sec-cta { border-top: 0; padding-top: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .sec-lead { padding-bottom: 6px; }
.sec-lead { color: var(--text-2); font-size: 16px; line-height: 1.65; max-width: 460px; }

/* Agents: one ruled grid instead of four floating cards */
.agents { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-xl); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.agent { position: relative; display: flex; flex-direction: column; padding: 28px 26px 30px; min-height: 0; border-left: 1px solid var(--line); transition: background .25s; }
.agent:first-child { border-left: 0; }

.agent:hover { background: var(--s2); }

.agent .top { display: flex; align-items: center; padding-bottom: 64px; }
.agent .ic { display: grid; color: var(--text-2); }
.agent .ic .i { width: 22px; height: 22px; stroke-width: 1.4; }
.agent .id { font-family: 'Mono', monospace; font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.agent h3 { margin-bottom: 8px; }
.agent p { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.agent .role { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-2); font-family: 'Mono', monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.agent .role i { width: 6px; height: 6px; border-radius: 2px; background: var(--c); }

/* Product */
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split h2 { margin-bottom: 20px; }
.feat { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.feat li { display: grid; grid-template-columns: 20px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feat .ic { display: grid; padding-top: 2px; color: var(--text-2); }
.feat b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 2px; }
.feat span { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* Locked terminal preview: a wireframe of the real layout, no numbers */
.term { position: relative; border-radius: var(--r-xl); background: var(--s1); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 8px rgba(255,255,255,.015); }
.term-bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.term-bar img { width: 20px; height: 20px; border-radius: 5px; }
.term-bar .mono { font-size: 12px; }
.term-bar .lk { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; color: var(--text-2); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.term-bar .lk .i { width: 12px; height: 12px; }
.term-body { padding: 18px; filter: blur(2.5px); opacity: .7; user-select: none; }
.term .sk { border-radius: 6px; background: var(--s3); }
.term .chart { position: relative; height: 190px; border-radius: 12px; margin: 14px 0; box-shadow: inset 0 0 0 1px var(--line);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
.term .chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.term .cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.term .cell { height: 64px; border-radius: 10px; padding: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.term .rowi { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; margin-top: 8px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.term-veil { position: absolute; inset: 48px 0 0; display: grid; place-items: center; padding: 24px; text-align: center;
  background: radial-gradient(55% 55% at 50% 52%, rgba(9,9,11,.92), rgba(9,9,11,.35)); }
.term-veil .lk-ic { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 12px; color: var(--text); background: var(--s3); box-shadow: inset 0 0 0 1px var(--line-2); }
.term-veil b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.term-veil p { font-size: 14px; color: var(--text-2); margin: 4px 0 18px; }
.term-veil .btn { height: 36px; font-size: 14px; padding: 0 14px; border-radius: 9px; }

/* Steps: a single track with numbered stops */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: linear-gradient(90deg, var(--line-3), var(--line-3) 70%, transparent); }
.step { position: relative; padding-right: 16px; }
.step .n { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 28px; border-radius: 10px; font-family: 'Mono', monospace; font-size: 13px; color: var(--text);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-3); }
.step .n { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 6px var(--bg); }
.step h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.step h3 .i { color: var(--text-3); width: 17px; height: 17px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 320px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .sec-lead a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }
.faq-grid .sec-lead a:hover { text-decoration-color: var(--text-2); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 500; font-size: 16px; letter-spacing: -.01em; transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary .pm { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .25s var(--ease), background .2s, color .2s; }
.faq summary .pm .i { width: 15px; height: 15px; }
.faq summary:hover .pm { color: var(--text); background: rgba(255,255,255,.04); }
.faq details[open] summary .pm { transform: rotate(45deg); color: var(--text); background: rgba(255,255,255,.06); }
.faq details p { color: var(--text-2); font-size: 15px; line-height: 1.65; padding: 0 56px 24px 0; max-width: 680px; }
.faq details[open] p { animation: fadein .3s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } }

/* Closing CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end;
  padding: clamp(36px, 5vw, 64px); border-radius: var(--r-xl); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); }

.cta h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.cta p { color: var(--text-2); max-width: 440px; }
.cta .signup-row { margin-top: 0; width: 420px; max-width: 100%; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 calc(32px + var(--safe-b)); color: var(--text-3); font-size: 14px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 40px 80px; padding-bottom: 48px; }
.foot-top .brand { color: var(--text); }
.foot-top .blurb { margin-top: 14px; max-width: 300px; line-height: 1.6; }
.foot-col h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.foot-col a { display: block; padding: 4px 0; color: var(--text-2); transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.foot-bot .disclaimer { max-width: 720px; color: var(--text-4); }
.foot-bot .chain { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--text-3); }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--text); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label small, .field > label small { font-weight: 400; font-size: 12px; color: var(--text-3); }
.ctl { position: relative; }
.ctl > .i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--text-3); pointer-events: none; transition: color .15s; }
.ctl:focus-within > .i { color: var(--text-2); }
.ctl > .i ~ .input { padding-left: 42px; }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; background: var(--s1); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; letter-spacing: -.005em;
  transition: box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none; }
textarea.input { height: auto; min-height: 112px; padding: 13px 14px; resize: vertical; line-height: 1.55; }
.input::placeholder { color: var(--text-4); }
.input:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.input:focus { outline: none; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(183,124,255,.14); }
.input.mono { font-size: 14px; }
.field.err .input { box-shadow: inset 0 0 0 1px var(--err), 0 0 0 4px rgba(255,99,112,.1); }
.msg { display: none; align-items: center; gap: 6px; font-size: 13px; color: var(--err); }
.msg::before { content: ''; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.3v.1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.3v.1'/%3E%3C/svg%3E") center / contain no-repeat; }
.field.err .msg { display: flex; }
.pw .input { padding-right: 52px; }
.pw button { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); transition: color .15s, background .15s; }
.pw button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.pw button .i-hide, .pw button.on .i-show { display: none; }
.pw button.on .i-hide { display: block; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter i { height: 3px; border-radius: 3px; background: var(--s4); transition: background .25s; }
.pw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hint { font-size: 12px; color: var(--text-3); }
.hint.mono { font-size: 11px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line-3); background: var(--s1);
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; cursor: pointer; transition: background .15s, box-shadow .15s; }
.check input:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.check input:checked { background: var(--accent); box-shadow: none; }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: solid #0b0b0e; border-width: 0 0 2px 2px; transform: translate(0, -1px) rotate(-45deg); }
.check a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }
.field.err .check input { box-shadow: inset 0 0 0 1.5px var(--err); }
.field > label.check { font-weight: 400; font-size: 14px; color: var(--text-2); justify-content: flex-start; align-items: flex-start; }

/* option tiles (radio / checkbox) */
.opts { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.opt span { position: relative; display: flex; flex-direction: column; gap: 1px; justify-content: center; min-height: 52px; padding: 10px 40px 10px 14px; border-radius: 10px;
  background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; letter-spacing: -.005em; transition: box-shadow .15s, background .15s; }
.opt span::after { content: ''; position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-3); transition: box-shadow .15s, background .15s; }
.opt input[type=checkbox] + span::after { border-radius: 5px; }
.opt span small { font-weight: 400; font-size: 12px; color: var(--text-3); }
.opt input:hover + span { box-shadow: inset 0 0 0 1px var(--line-3); }
.opt input:checked + span { background: rgba(183,124,255,.07); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input[type=radio]:checked + span::after { box-shadow: inset 0 0 0 5px var(--accent); }
.opt input[type=checkbox]:checked + span::after { box-shadow: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opts.compact span { padding-right: 14px; align-items: center; text-align: center; font-variant-numeric: tabular-nums; }
.opts.compact span::after { display: none; }
.field.err .opt span { box-shadow: inset 0 0 0 1px rgba(255,99,112,.5); }

.alert { display: none; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; background: rgba(255,99,112,.08); box-shadow: inset 0 0 0 1px rgba(255,99,112,.28); color: #ffc4c9; }
.alert .i { margin-top: 1px; color: var(--err); }
.alert.show { display: flex; }

/* ---------- auth layout ---------- */
.auth { display: grid; grid-template-columns: minmax(400px, 44%) 1fr; min-height: 100dvh; }
.auth-side { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 36px 44px 44px; border-right: 1px solid var(--line); background: var(--bg-2); }
.auth-side::before { content: ''; position: absolute; z-index: -1; inset: 0;
  background: repeating-conic-gradient(rgba(255,255,255,.035) 0 25%, transparent 0 50%) 0 0 / 25% 25%;
  background-size: 128px 128px; -webkit-mask-image: radial-gradient(70% 60% at 70% 34%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 70% 34%, #000, transparent 75%); }

.auth-side .knight { position: absolute; z-index: -1; right: 4%; top: 7%; height: 52%; width: auto; pointer-events: none;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.6));
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
.auth-side .quote { margin-top: auto; max-width: 420px; }
.auth-side .quote h2 { font-size: clamp(30px, 2.8vw, 40px); margin: 0 0 14px; }
.auth-side .quote > p:not(.kicker) { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.auth-side ul { list-style: none; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; font-size: 14px; color: var(--text-2); }
.auth-side li { display: flex; gap: 12px; align-items: center; }
.auth-side li .ic { display: grid; flex: none; color: var(--text-3); }
.auth-side li .ic .i { width: 16px; height: 16px; }
.auth-main { display: flex; flex-direction: column; padding: 24px var(--gutter) calc(24px + var(--safe-b)); }
.auth-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; font-size: 14px; color: var(--text-3); }
.auth-top .brand { display: none; color: var(--text); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 4px; min-width: 0; }
.top-r .link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--text); font-weight: 500; transition: background .15s; cursor: pointer; }
.top-r .link:hover { background: rgba(255,255,255,.05); }
.top-r .link .i { width: 15px; height: 15px; color: var(--text-2); }
.who { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 99px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.who .av { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--s3); color: var(--text-2); }
.who .av .i { width: 14px; height: 14px; }
#who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; font-size: 13px; }
.auth-card { width: 100%; max-width: 420px; margin: auto; padding: 48px 0; }
.auth-card.wide { max-width: 580px; }
.auth-card h1 { font-size: clamp(28px, 3vw, 34px); line-height: 1.12; margin: 0 0 10px; letter-spacing: -.035em; }
.auth-card .sub { color: var(--text-2); margin-bottom: 32px; font-size: 15px; }
.form { display: grid; gap: 20px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn-block { margin-top: 4px; }
.alt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); text-align: center; }
.alt a { color: var(--text); font-weight: 500; }
.alt a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-4); }
.legal { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 18px; }

.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 12px; color: var(--text-3); }
.progress .bars { display: flex; gap: 4px; flex: 1; }
.progress .bars i { flex: 1; height: 3px; border-radius: 3px; background: var(--s4); }
.progress .bars i.on { background: var(--text); }
.progress b { color: var(--text); font-weight: 500; }
.group { display: grid; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text-3); }

/* ---------- status ---------- */
.status-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); isolation: isolate; }

.badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px 0 10px; border-radius: 99px; font-size: 12px; font-weight: 500; color: var(--warn); background: rgba(255,181,71,.08); box-shadow: inset 0 0 0 1px rgba(255,181,71,.28); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.queue { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 6px; flex-wrap: wrap; }
.queue b { font-family: 'Mono', monospace; font-weight: 500; font-size: clamp(44px, 6vw, 60px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.queue span { color: var(--text-2); font-size: 15px; }
.status-card .cap { color: var(--text-3); font-size: 14px; }
.timeline { list-style: none; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 28px; bottom: 4px; width: 1px; background: var(--line-3); }
.timeline li.done::before { background: var(--accent-b); }
.timeline li:last-child::before { display: none; }
.timeline .tl { flex: none; width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; color: var(--text-4); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-3); position: relative; z-index: 1; }
.timeline .tl .i { width: 13px; height: 13px; stroke-width: 2.2; }
.timeline li.done .tl { background: var(--accent); color: #0b0b0e; box-shadow: none; }
.timeline li.now .tl { box-shadow: inset 0 0 0 1px var(--accent); }
.timeline li.now .tl::after { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--accent-hi); animation: blink 2s infinite; }
.timeline b { display: block; font-size: 15px; font-weight: 500; line-height: 1.5; }
.timeline span { font-size: 14px; color: var(--text-3); }
.details { margin-top: 16px; border-radius: var(--r-lg); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; font-size: 14px; border-top: 1px solid var(--line); }
.details div:first-child { border-top: 0; }
.details dt { color: var(--text-3); flex: none; } .details dd { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 160px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 12px) scale(.98); opacity: 0; z-index: 99; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 12px; background: rgba(28,28,33,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -10px rgba(0,0,0,.7); font-size: 14px; font-weight: 500; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 404 */
.lost { text-align: center; }
.lost .mini-board { width: 132px; margin: 0 auto 28px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.lost .mini-board i { aspect-ratio: 1; background: var(--s1); }
.lost .mini-board i:nth-child(8n+2), .lost .mini-board i:nth-child(8n+4), .lost .mini-board i:nth-child(8n+5), .lost .mini-board i:nth-child(8n+7) { background: var(--s3); }
.lost .mini-board i.k { display: grid; place-items: center; color: var(--accent-hi); background: rgba(183,124,255,.18); box-shadow: inset 0 0 0 1px var(--accent); }
.lost .code { font-family: 'Mono', monospace; font-size: 12px; color: var(--text-3); letter-spacing: .06em; }
.lost .actions { justify-content: center; }
.lost .actions .btn { flex: 0 1 auto; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .agents { grid-template-columns: repeat(2, 1fr); }
  .agent:nth-child(3) { border-left: 0; }
  .agent:nth-child(n+3) { border-top: 1px solid var(--line); }
  .agent { min-height: 260px; }
  .auth { grid-template-columns: minmax(360px, 40%) 1fr; }
  .auth-side { padding: 32px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .nav-login, .nav-cta .btn { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu { display: grid; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .35s var(--ease), opacity .25s, padding .35s var(--ease); padding: 0 var(--gutter); }
  .nav.open .mobile-menu { max-height: 520px; opacity: 1; padding: 4px var(--gutter) 20px; }
  .mobile-menu a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-size: 17px; font-weight: 500; letter-spacing: -.015em; border-bottom: 1px solid var(--line); }
  .mobile-menu a:not(.btn) .i { color: var(--text-3); width: 16px; height: 16px; }
  .mobile-menu .btns { display: grid; gap: 8px; margin-top: 20px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 40px; }
  .board-wrap { max-width: 420px; margin: 0 auto; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .specs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 17px; right: auto; top: 18px; bottom: 40px; width: 1px; height: auto; background: var(--line-3); }
  .step { display: grid; grid-template-columns: 36px 1fr; gap: 0 20px; padding: 0 0 32px; }
  .step:last-child { padding-bottom: 0; }
  .step .n { margin: 0; grid-row: span 2; }
  .step h3 { padding-top: 6px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cta .signup-row { width: 100%; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > :first-child { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-top .brand { display: inline-flex; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  h1 { font-size: clamp(40px, 11.5vw, 52px); letter-spacing: -.045em; }
  .nav .wrap { height: 58px; }
  .signup-row { flex-wrap: wrap; padding: 6px; }
  .signup-row .ic { padding-left: 8px; }
  .signup-row .btn { flex: 1 1 100%; height: 46px; }
  .board-wrap { padding: 0 0 22px 18px; }
  .board-wrap .files { left: 18px; }
  .board-wrap .ranks { bottom: 22px; width: 12px; }
  .board-wrap .note { display: none; }
  .specs > div { padding: 18px 16px; }
  .specs > div:nth-child(odd) { padding-left: 0; }
  .agents { grid-template-columns: 1fr; }
  .agent { border-left: 0 !important; min-height: 0; padding: 24px 22px; }
  .agent:nth-child(n+2) { border-top: 1px solid var(--line); }
  .agent .top { padding-bottom: 28px; }
  .term-body { padding: 14px; }
  .term .chart { height: 150px; }
  .faq details p { padding-right: 0; }
  .foot-bot { flex-direction: column; }
  .form .row2 { grid-template-columns: 1fr; }
  .opts { --cols: 1 !important; }
  .opts.keep2 { --cols: 2 !important; }
  .auth-card { padding: 32px 0 8px; }
  .auth-card .sub { margin-bottom: 28px; }
  .status-card { padding: 22px; }
  .actions .btn { min-width: 100%; }
  .who { display: none; }
}
@media (min-width: 901px) {
  .auth-side { position: sticky; top: 0; height: 100dvh; }
}
body.pending .auth-card { visibility: hidden; }


/* =====================================================================
   FX layer — motion & detail. Decorative only: off under
   prefers-reduced-motion; hover light only on fine pointers.
   ===================================================================== */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* film grain for depth */
body::after { content: ''; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* scroll progress hairline under the nav */
.scroll-bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, transparent, var(--accent) 30%, #fff 70%, var(--accent)); pointer-events: none; }

/* nav: sliding hover pill */
.nav-links { position: relative; isolation: isolate; }
.nav-links .pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 8px; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s; pointer-events: none; z-index: -1; }
.nav-links:hover .pill { opacity: 1; }
.nav-links a:hover { background: none; }

/* hero aurora */
.hero::after { content: ''; position: absolute; z-index: -2; width: 760px; height: 760px; right: -180px; top: 50%; translate: 0 -50%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from var(--ang), rgba(183,124,255,0), rgba(183,124,255,.22), rgba(111,149,255,.12), rgba(67,214,154,.07), rgba(183,124,255,0));
  filter: blur(90px); opacity: .8; animation: spin-ang 18s linear infinite; }
@keyframes spin-ang { to { --ang: 360deg; } }

/* headline: words rise out of a blur; key phrase carries a moving sheen */
.hero h1 .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.35em); animation: word-in .9s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }
.hero h1 .shine .w { background: linear-gradient(100deg, #8d8d98 0%, #fff 30%, #d4a8ff 45%, #fff 60%, #8d8d98 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: word-in .9s var(--ease) forwards, sheen 6s linear 1.4s infinite; animation-delay: calc(var(--i) * 55ms + 120ms), 1.4s; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.hero .pre, .hero .lead, .hero .signup-row, .hero .hero-note { opacity: 0; transform: translateY(10px); animation: up-in .9s var(--ease) forwards; }
.hero .pre { animation-delay: .05s; } .hero .lead { animation-delay: .55s; } .hero .signup-row { animation-delay: .7s; } .hero .hero-note { animation-delay: .82s; }
@keyframes up-in { to { opacity: 1; transform: none; } }
.pre .live { animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(67,214,154,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(67,214,154,0); } }

/* primary button: light sweep */
.btn-primary { overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateX(-130%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(183,124,255,.38), transparent); transition: transform .75s var(--ease); }
.btn-primary:hover::after { transform: translateX(130%) skewX(-20deg); }
/* email bar: orbiting rim light on hover/focus */
.signup-row { position: relative; }
.signup-row::before { content: ''; position: absolute; inset: -1px; border-radius: 15px; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--ang), transparent 0 68%, var(--accent) 84%, #fff 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-ang 3.5s linear infinite; }
.signup-row:focus-within::before, .signup-row:hover::before { opacity: 1; }

/* board: 3D tilt, the knight's move draws itself, a light follows the cursor */
.board-wrap { perspective: 1200px; }
.board-wrap .stage { position: relative; transform-style: preserve-3d; transition: transform .7s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.board::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(183,124,255,.16), transparent 70%); }
.board-wrap:hover .board::after { opacity: 1; }
.board .path path { stroke-dasharray: 60; stroke-dashoffset: 60; opacity: .85; animation: draw 1.4s 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.board .sq.to { opacity: 0; animation: up-in .5s 2.2s forwards; }
.board .sq.to::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--accent); animation: sq-ping 2.4s 2.6s infinite; opacity: 0; }
@keyframes sq-ping { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.7); } }
.board .trail { position: absolute; width: 12.5%; height: 12.5%; background: rgba(183,124,255,.09); pointer-events: none; animation: trail 1.4s ease-out forwards; }
@keyframes trail { to { opacity: 0; } }
.board-wrap .knight { transform: translateZ(70px); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -9px; } }
.board-wrap .knight-shadow { position: absolute; left: calc(22px + 13%); bottom: calc(26px + 24.5%); width: 34%; height: 5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.7), transparent); filter: blur(5px); animation: shadow 6s ease-in-out infinite; pointer-events: none; }
@keyframes shadow { 50% { transform: scale(.85); opacity: .65; } }

/* spec strip: accent line wipes in on hover; values decode (JS) */
.specs > div { position: relative; }
.specs > div::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), transparent); transition: transform .6s var(--ease); }
.specs > div:hover::before { transform: scaleX(1); }

/* spotlight surfaces */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, var(--accent)) 13%, transparent), transparent 60%); }
.spot::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; border-radius: inherit; padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, var(--accent)) 75%, transparent), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.agents.spot::after { z-index: 2; }
.agent .ic { position: relative; transition: color .3s, transform .5s var(--ease); }
.agent .ic::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: var(--c); filter: blur(16px); opacity: 0; transition: opacity .4s; z-index: -1; }
.agent:hover .ic { color: var(--c); transform: translateY(-3px) scale(1.08); }
.agent:hover .ic::after { opacity: .35; }
.agent h3 { transition: transform .4s var(--ease); }
.agent:hover h3 { transform: translateX(2px); }
.agent:hover { background: rgba(255,255,255,.015); }
.agents.rv { opacity: 1; transform: none; }
.agents.rv .agent { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease), background .25s; }
.agents.rv.in .agent { opacity: 1; transform: none; }
.agents.rv.in .agent:nth-child(2) { transition-delay: .08s; } .agents.rv.in .agent:nth-child(3) { transition-delay: .16s; } .agents.rv.in .agent:nth-child(4) { transition-delay: .24s; }

.feat li { transition: padding .35s var(--ease); }
.feat li .ic { transition: color .3s; }
@media (hover: hover) { .feat li:hover { padding-left: 10px; } .feat li:hover .ic { color: var(--accent-hi); } }

/* terminal: tilt, chart draws, scanline sweeps */
.term-wrap { perspective: 1400px; }
.term { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease), opacity .8s var(--ease); }
.term .chart path:nth-of-type(2) { stroke-dasharray: 700; stroke-dashoffset: 700; }
.term.in .chart path:nth-of-type(2) { animation: draw-l 2.4s .4s var(--ease) forwards; }
@keyframes draw-l { to { stroke-dashoffset: 0; } }
.term::after { content: ''; position: absolute; left: 0; right: 0; top: 48px; height: 120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(183,124,255,.08), transparent); animation: scan 5.5s linear infinite; }
@keyframes scan { from { transform: translateY(-120px); } to { transform: translateY(600px); } }
.term-veil .lk-ic { position: relative; }
.term-veil .lk-ic::before { content: ''; position: absolute; inset: -1px; border-radius: 13px; padding: 1px;
  background: conic-gradient(from var(--ang), transparent 55%, var(--accent), #fff, transparent 85%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-ang 3s linear infinite; }

/* steps: track fills as you scroll past */
.steps::after { content: ''; position: absolute; left: 0; top: 17px; height: 1px; width: calc(var(--fill, 0) * 100%);
  background: linear-gradient(90deg, var(--accent), #fff); box-shadow: 0 0 10px var(--accent); }
.step .n { transition: box-shadow .5s, color .5s, background .5s; }
.step.on .n { color: #0b0b0e; background: var(--text); box-shadow: 0 0 0 6px var(--bg), 0 0 26px -2px rgba(183,124,255,.7); }

/* FAQ: animate open height where supported */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* CTA: rotating rim light, faint knight */
.cta::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--ang), transparent 0 40%, rgba(183,124,255,.9) 50%, rgba(255,255,255,.7) 54%, transparent 64% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-ang 7s linear infinite; }
.cta .knight-bg { position: absolute; z-index: -1; right: 4%; bottom: -30%; height: 160%; width: auto; opacity: .08; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 85%); mask-image: linear-gradient(to bottom, #000 40%, transparent 85%); }

/* auth pages */
.auth-side .knight { animation: float 7s ease-in-out infinite; }
.auth-side::after { content: ''; position: absolute; z-index: -2; width: 560px; height: 560px; right: -160px; top: -40px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent, rgba(183,124,255,.22), rgba(111,149,255,.1), transparent); filter: blur(80px); animation: spin-ang 16s linear infinite; }
.auth-card > * { opacity: 0; transform: translateY(10px); animation: up-in .7s var(--ease) forwards; }
.auth-card > :nth-child(2) { animation-delay: .06s; } .auth-card > :nth-child(3) { animation-delay: .12s; } .auth-card > :nth-child(4) { animation-delay: .18s; }
.auth-card > :nth-child(5) { animation-delay: .24s; } .auth-card > :nth-child(6) { animation-delay: .3s; } .auth-card > :nth-child(7) { animation-delay: .36s; }
body.pending .auth-card > * { animation-play-state: paused; }
.input:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(183,124,255,.14), 0 10px 30px -12px rgba(183,124,255,.55); }
.progress .bars i.on { background: linear-gradient(90deg, var(--accent), #fff); box-shadow: 0 0 10px -1px rgba(183,124,255,.7); }
.status-card::before { content: ''; position: absolute; z-index: -1; width: 380px; height: 380px; right: -140px; top: -190px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,181,71,.16), transparent); }
.field.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

@media (hover: none) { .spot::before, .spot::after, .board::after { display: none; } }
@media (max-width: 900px) {
  .hero::after { width: 520px; height: 520px; right: -220px; top: 72%; }
  .steps::after { left: 17px; top: 18px; width: 1px; height: calc(var(--fill, 0) * (100% - 58px)); background: linear-gradient(180deg, var(--accent), #fff); }
  .cta .knight-bg { opacity: .06; right: -12%; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .hero h1 .w, .hero .pre, .hero .lead, .hero .signup-row, .hero .hero-note, .auth-card > *, .board .sq.to, .agents.rv .agent { opacity: 1 !important; filter: none !important; transform: none !important; }
  .board .path path, .term .chart path:nth-of-type(2) { stroke-dashoffset: 0 !important; }
  .board-wrap .stage, .term { transform: none !important; }
}

/* =====================================================================
   FX 2 — showpiece: intro, particle knight, cursor, marquee, kinetic type
   ===================================================================== */
/* intro (first visit per session) */
.intro-screen { display: none; }
html.intro .intro-screen { display: grid; }
.intro-screen { position: fixed; inset: 0; z-index: 200; place-items: center; background: var(--bg); pointer-events: none; }
.intro-screen .in-box { display: grid; justify-items: center; gap: 18px; transition: opacity .4s, transform .6s var(--ease); }
.intro-screen img { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 60px -6px rgba(183,124,255,.7); animation: up-in .6s var(--ease) both; }
.intro-screen .intro-n { font-family: 'Mono', monospace; font-size: 12px; letter-spacing: .3em; color: var(--text-3); }
.intro-screen .intro-bar { width: 160px; height: 1px; background: var(--s4); overflow: hidden; }
.intro-screen .intro-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), #fff); }
.intro-screen::before, .intro-screen::after { content: ''; position: absolute; left: 0; right: 0; height: 50%; background: var(--bg); transition: transform .9s cubic-bezier(.76,0,.24,1); z-index: -1; }
.intro-screen::before { top: 0; } .intro-screen::after { bottom: 0; }
.intro-screen.out { background: transparent; }
.intro-screen.out .in-box { opacity: 0; transform: scale(.92); }
.intro-screen.out::before { transform: translateY(-100%); } .intro-screen.out::after { transform: translateY(100%); }
html.intro .hero *, html.intro .hero::after { animation-play-state: paused !important; }
html.intro body { overflow: hidden; }

/* particle knight */
.knight-fx { position: absolute; left: 0; top: 0; pointer-events: none; transform: translateZ(70px); filter: drop-shadow(0 0 18px rgba(183,124,255,.35)); }
.board-wrap.fx-on .knight { opacity: 0; animation: none; }
.board-wrap { cursor: crosshair; }
.board-wrap .tap-hint { position: absolute; right: 0; top: -6px; font-family: 'Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-4);
  opacity: 0; animation: up-in .8s 3s var(--ease) forwards; pointer-events: none; }

/* cursor */
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .3s; }
body.cur-on .cur-dot, body.cur-on .cur-ring { opacity: 1; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; }
.cur-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.cur-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transition: transform .35s var(--ease), background .3s, box-shadow .3s; }
.cur-ring.hot::before { transform: scale(1.7); background: rgba(183,124,255,.1); box-shadow: inset 0 0 0 1px rgba(183,124,255,.7); }
.cur-ring.text::before { transform: scale(.5); }
.cur-ring.down::before { transform: scale(.8); }

/* velocity marquee */
.marquee { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-track span { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px);
  font-size: clamp(56px, 9vw, 132px); font-weight: 600; letter-spacing: -.05em; line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16); transition: color .3s; }
.mq-track span b { font-weight: inherit; color: var(--text); -webkit-text-stroke: 0; }
.mq-track span i { width: .28em; height: .28em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 30px var(--accent); flex: none; }
.mq-track span em { font-style: normal; background: linear-gradient(100deg, #b77cff, #fff 50%, #6f95ff); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }

/* kinetic headings */
.kinetic .kw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.kinetic .kc { display: inline-block; transform: translateY(105%) rotate(6deg); transform-origin: 0 100%; transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 14ms); }
.kinetic.go .kc { transform: none; }
.sec h2.rv.kinetic, .cta h2.kinetic { opacity: 1; transform: none; }

@media (max-width: 560px) { .board-wrap .tap-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .intro-screen { display: none !important; } .kinetic .kc { transform: none; } }

/* =====================================================================
   Refine — quieter finish: no glows, no sheen, no rotating rims.
   ===================================================================== */
body::after, .hero::after, .auth-side::after, .term::after { display: none; }
.hero h1 .shine .w { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text-2); animation: word-in .9s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
.signup-row::before, .cta::after, .term-veil .lk-ic::before { display: none; }
.btn-primary::after { background: linear-gradient(90deg, transparent, rgba(0,0,0,.06), transparent); }
.btn-primary:hover { box-shadow: inset 0 -1px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.2); }
.signup-row:focus-within { box-shadow: inset 0 0 0 1px var(--line-3), 0 12px 32px -12px rgba(0,0,0,.6); }
.input:focus { box-shadow: inset 0 0 0 1px var(--line-3); }
.knight-fx { filter: none; }
.board::after { background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.05), transparent 70%); }
.board .trail { background: rgba(255,255,255,.04); }
.spot::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.035), transparent 60%); }
.spot::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 65%); }
.agent .ic::after { display: none; }
.agent:hover .ic { transform: none; }
.steps::after { background: var(--text-2); box-shadow: none; }
.step.on .n { box-shadow: 0 0 0 6px var(--bg); }
.progress .bars i.on { background: var(--text); box-shadow: none; }
.cur-dot, .cur-ring { display: none !important; }
.intro-screen img { box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.intro-screen .intro-bar i { background: var(--text); }
.scroll-bar { background: var(--text-3); }
.board-wrap { cursor: default; }
.board-wrap .tap-hint { display: none; }
.cta .knight-bg { opacity: .05; }

/* marquee: smaller, outlined, one quiet accent */
.marquee { padding: clamp(22px, 3vw, 36px) 0; }
.mq-track span { font-size: clamp(40px, 5.6vw, 84px); font-weight: 500; letter-spacing: -.04em; -webkit-text-stroke: 1px rgba(255,255,255,.12); gap: clamp(18px, 2.4vw, 32px); padding-right: clamp(18px, 2.4vw, 32px); }
.mq-track span b { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); }
.mq-track span em { background: none; color: var(--text-2); -webkit-text-stroke: 0; }
.mq-track span i { width: .1em; height: .1em; background: var(--text-4); box-shadow: none; }

/* product demo video in a phone frame */
.demo { margin: 0; display: grid; justify-items: center; gap: 18px; }
.phone { position: relative; width: min(320px, 78vw); aspect-ratio: 1178 / 2556; border-radius: 46px; padding: 9px; background: #0d0d10;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 0 0 1px rgba(0,0,0,.6), 0 40px 80px -30px rgba(0,0,0,.9); }
.phone::before { content: ''; position: absolute; inset: -2px; border-radius: 48px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.demo-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #0e0f13; }
.demo-play { position: absolute; right: 22px; bottom: 26px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text);
  background: rgba(17,17,20,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0; transition: opacity .25s; }
.phone:hover .demo-play, .demo-play:focus-visible, .demo.paused .demo-play { opacity: 1; }
.demo-play .p-play { display: none; fill: currentColor; stroke: none; }
.demo.paused .demo-play .p-play { display: block; } .demo.paused .demo-play .p-pause { display: none; }
.demo figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); text-align: center; max-width: 340px; }
.demo-tag { flex: none; font-family: 'Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding: 3px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: none) { .demo-play { opacity: 1; } }
.demo figcaption { text-align: left; max-width: 380px; }
.demo .demo-play { position: static; flex: none; opacity: 1; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; width: 30px; height: 30px; }
.demo .demo-play:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
