/* Fonts are served from this site: no requests to outside font services. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --void: #08090D; --panel: #0F1117; --panel-2: #151821; --line: #1C202B; --line-2: #272C3A;
  --text: #ECEEF3; --muted: #A0A6B4; --dim: #8B92A3;
  --signal: #A99BFF; --signal-2: #7DD3FC; --signal-ink: #0D0A24; --dev: #FB7A9C;
  --glass: rgba(16, 18, 25, .66); --glass-line: rgba(255, 255, 255, .07);
  --grad: linear-gradient(110deg, #C4BAFF 0%, #A99BFF 35%, #7DD3FC 70%, #C4BAFF 100%);
  --display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 16px; --wrap: 1140px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--void); color: var(--text); font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* drifting light behind everything */
body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: .32; will-change: transform; }
body::before { width: 46vw; height: 46vw; left: -12vw; top: -18vw;
  background: radial-gradient(circle, #7B68EE 0%, transparent 65%); animation: driftA 28s ease-in-out infinite alternate; }
body::after { width: 40vw; height: 40vw; right: -14vw; top: 22vh;
  background: radial-gradient(circle, #3BA7D9 0%, transparent 65%); animation: driftB 34s ease-in-out infinite alternate; opacity: .22; }
@keyframes driftA { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes driftB { to { transform: translate(-16vw, 30vh) scale(.9); } }

img, svg { max-width: 100%; }
a { color: var(--signal); text-decoration: none; transition: color .2s; }
a:hover { color: #C4BAFF; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(169, 155, 255, .35); color: #fff; }

h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.7rem, 6.6vw, 5.2rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.grad { background: var(--grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: sheen 9s linear infinite; }
@keyframes sheen { to { background-position: -220% 0; } }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
section { padding: 112px 0; background: transparent; position: relative; }
section + section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(var(--wrap), 100% - 40px);
  transform: translateX(-50%); height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.section-head { max-width: 42rem; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }

/* rounded shapes (the old chamfer class now rounds corners) */
.cut { border-radius: var(--r); }

/* cards light up under the cursor (class added by nav.js) */
.glow { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(169, 155, 255, .09), transparent 45%); }

.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--body); position: relative;
  padding: 15px 24px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(180deg, #BDB2FF, #9A8AFF); color: var(--signal-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 24px -10px rgba(169, 155, 255, .7); overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover { color: var(--signal-ink); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 14px 32px -10px rgba(169, 155, 255, .85); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px #3A4152; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(8, 9, 13, .5);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: rgba(8, 9, 13, .82); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; transition: height .3s var(--ease); }
.nav.scrolled .wrap { height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 20px/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand img { width: auto; height: 28px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
footer .brand img { height: 24px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 15px; padding: 7px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }
.nav-cta .signin { color: var(--text); font-size: 15px; }
.nav-cta .signin:hover { color: var(--signal); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .wrap { gap: 16px; } }
@media (max-width: 480px) { .nav-cta .signin { display: none; } }
@media (min-width: 481px) { .nav-links .menu-only { display: none; } }

/* hero */
.hero { padding: 104px 0 80px; }
.hero .wrap > * { animation: rise .9s var(--ease) both; }
.hero .wrap > :nth-child(2) { animation-delay: .08s; } .hero .wrap > :nth-child(3) { animation-delay: .16s; }
.hero .wrap > :nth-child(4) { animation-delay: .24s; } .hero .wrap > :nth-child(5) { animation-delay: .34s; }
.hero .wrap > :nth-child(6) { animation-delay: .44s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
.hero h1 { max-width: 15ch; margin: 22px 0 24px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted);
  padding: 7px 15px 7px 12px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); border-radius: 999px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal-2); display: block; position: relative; }
.status-pill i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 70%, 100% { transform: scale(3); opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scope { margin-top: 68px; background-color: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line), 0 40px 80px -40px rgba(0,0,0,.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 20px 24px 14px; position: relative; overflow: hidden; }
.scope::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 120px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .07), transparent);
  animation: scan 7s 3s linear infinite; left: -140px; }
@keyframes scan { from { left: -140px; } to { left: 100%; } }
.scope-bar { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.scope-bar b { color: var(--text); font-weight: 500; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key::before { content: ""; width: 16px; height: 3px; border-radius: 3px; background: currentColor; }
.key.base { color: var(--signal); } .key.now { color: var(--dev); }
.key span { color: var(--muted); }
.scope svg { display: block; width: 100%; height: auto; }
.trace { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.trace-base { stroke: var(--signal); opacity: .9; }
.trace-now { stroke: var(--dev); stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.6s .6s var(--ease) forwards;
  filter: drop-shadow(0 0 6px rgba(251, 122, 156, .5)); }
.trace-dot { fill: #fff; opacity: 0; animation: appear .5s 3.2s forwards; filter: drop-shadow(0 0 6px rgba(251, 122, 156, .9)); }
.flag { opacity: 0; animation: appear .5s 2.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* providers strip */
.compat { margin-top: 44px; color: var(--dim); font-size: 14px; }
.compat p { margin: 0 0 14px; }
.compat b { color: var(--muted); font-weight: 500; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 500 17px/1 var(--display); color: var(--muted); white-space: nowrap; letter-spacing: -0.01em; transition: color .2s; }
.marquee-track span:hover { color: var(--text); }
@keyframes slide { to { transform: translateX(calc(-50% - 28px)); } }

/* scroll reveal (classes added by nav.js) */
.rv { opacity: 0; transform: translateY(26px); filter: blur(4px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }
html .rv { transition-delay: var(--d, 0s); }

/* problem */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cols-3 > div { background-color: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); border-radius: var(--r); padding: 28px 26px;
  transition: transform .4s var(--ease), box-shadow .4s, opacity .9s var(--ease), filter .9s var(--ease); }
.cols-3 > div:hover { box-shadow: inset 0 0 0 1px rgba(169,155,255,.25); }
.cols-3 h3 { margin-bottom: 10px; }
.cols-3 p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } }
.cols-3.cols-2 { grid-template-columns: repeat(2, 1fr); }
.uses ul { margin: 14px 0 16px; padding-left: 18px; color: var(--muted); }
.uses li { margin: 6px 0; }
.uses p strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .cols-3.cols-2 { grid-template-columns: 1fr; } }


/* steps */
.steps { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 14px/1.9 var(--mono); color: var(--signal); }
.steps li p { color: var(--muted); margin: 8px 0 0; }
pre.code { margin: 0; background: rgba(6, 7, 11, .8); box-shadow: inset 0 0 0 1px var(--glass-line); border-radius: 14px;
  padding: 26px 28px; overflow-x: auto; font: 400 14px/1.8 var(--mono); color: #C9CDD8; }
.code-wrap { position: relative; min-width: 0; }
.copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(21,24,33,.9); color: var(--muted); border: 0;
  box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 8px; padding: 6px 10px; font: 500 12px/1 var(--body); cursor: pointer;
  opacity: .75; transition: opacity .2s, color .2s; }
.code-wrap:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--text); }
.code .c { color: var(--dim); } .code .k { color: var(--signal); } .code .s { color: #9BE3C4; } .code .d { color: var(--dev); }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; gap: 40px; } }

/* features ledger */
.ledger { border-top: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: 240px 1fr 100px; gap: 32px; padding: 28px 12px; border-bottom: 1px solid var(--line);
  align-items: baseline; border-radius: 12px; transition: background .3s, opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.ledger-row:hover { background: rgba(255,255,255,.025); }
.ledger-row h3 { font-size: 1.3rem; }
.ledger-row p { color: var(--muted); margin: 0; max-width: 38em; }
.ledger-row p strong { color: var(--text); font-weight: 500; }
.tag { justify-self: end; font-size: 12.5px; font-weight: 500; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.tag-live { background: rgba(125, 211, 252, .1); color: var(--signal-2); }
.tag-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 1px; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.tag-pilot { background: rgba(251, 122, 156, .12); color: var(--dev); }
@media (max-width: 860px) { .ledger-row { grid-template-columns: 1fr; gap: 10px; } .tag { justify-self: start; } }

/* trust ladder */
.ladder { display: grid; gap: 12px; }
.rung { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 24px; align-items: center; }
.rung-name { font-weight: 500; }
.rung-name small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.bar { height: 10px; background: var(--panel-2); position: relative; border-radius: 999px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--signal), var(--signal-2));
  width: var(--w); transition: width 1.4s var(--ease) .2s; }
.bar.low i { background: linear-gradient(90deg, #E26A8D, var(--dev)); }
.rung.rv:not(.in) .bar i { width: 0; }
.ladder-note { margin-top: 28px; color: var(--muted); max-width: 40em; }
@media (max-width: 700px) { .rung { grid-template-columns: 1fr; gap: 8px; } }

/* modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode { background-color: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); border-radius: var(--r); padding: 30px 28px;
  transition: transform .4s var(--ease), box-shadow .4s, opacity .9s var(--ease), filter .9s var(--ease); }
.mode:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(169,155,255,.25); }
.mode h3 { margin-bottom: 4px; }
.mode .when { color: var(--signal); font-size: 14px; margin-bottom: 14px; }
.mode p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }

/* zero hostage + report */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; }
.facts li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 25px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 12px rgba(169,155,255,.6); }
.facts strong { font-weight: 500; }
.facts span { display: block; color: var(--muted); font-size: 15px; }
.report { background-color: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); padding: 24px 26px; border-radius: var(--r); }
.report-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.report-head b { color: var(--text); font-weight: 500; font-size: 16px; }
.state { color: var(--dev); font-weight: 600; }
.report ul { list-style: none; margin: 0; padding: 0; }
.report li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.report li:last-child { border-bottom: 0; }
.sev { font-size: 12px; font-weight: 500; text-align: center; padding: 3px 0; border-radius: 999px; align-self: start; }
.sev-high { background: rgba(251, 122, 156, .14); color: var(--dev); }
.sev-med { background: rgba(250, 204, 120, .12); color: #F5CF86; }
.report li small { display: block; color: var(--dim); font-size: 13px; margin-top: 2px; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 48px; } }

/* pilot */
.pilot { text-align: left; }
.pilot-box { background-color: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); padding: 56px; border-radius: 24px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.pilot-box > * { min-width: 0; }
.pilot-box::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(169,155,255,.18), transparent 65%); animation: driftA 18s ease-in-out infinite alternate; }
.pilot-box h2 { margin-bottom: 16px; }
.pilot-terms { list-style: none; margin: 0; padding: 0; }
.pilot-terms li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.pilot-terms li:last-child { border-bottom: 0; }
.pilot-terms li b { color: var(--text); font-weight: 500; }
.counter { font: 600 4.5rem/1 var(--display); color: var(--signal); }
@media (max-width: 860px) { .pilot-box { grid-template-columns: 1fr; padding: 32px 24px; } }

/* faq */
.faq-list { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font: 500 1.1rem/1.45 var(--display); position: relative; transition: color .2s; }
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px;
  background: var(--signal); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { color: var(--muted); max-width: 46em; padding-bottom: 22px; margin: 0; }
.faq details[open] p { animation: rise .5s var(--ease); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 52px; color: var(--dim); font-size: 14px; background: rgba(8,9,13,.6); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--text); }
footer .brand { font-size: 17px; }
footer .copy { margin-left: auto; }

/* legal + auth pages */
.page { padding: 80px 0 120px; background: transparent; }
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.legal .meta { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 48px 0 14px; color: var(--text); }
.legal p, .legal li { color: #C8CCD6; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.notice { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); padding: 16px 20px; color: var(--muted); font-size: 15px; margin-bottom: 36px; border-radius: 12px; }
.notice b { color: var(--dev); font-weight: 600; }

.auth { min-height: calc(100vh - 69px); display: grid; place-items: center; padding: 48px 0; }
.auth-card { width: min(420px, 100% - 32px); background-color: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line), 0 40px 100px -40px rgba(0,0,0,.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 40px 36px 32px; border-radius: 22px; animation: rise .8s var(--ease) both; }
.auth-card h1 { font-size: 1.9rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.auth-card .lede { font-size: 1rem; margin-bottom: 26px; }
.auth-card .seg { display: flex; width: 100%; margin-bottom: 22px; }
.auth-card .seg button { flex: 1; }
.oauth { display: grid; gap: 10px; }
.oauth button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 13px 18px; background: rgba(255,255,255,.03); color: var(--text); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 15px/1 var(--body); cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s var(--ease); }
.oauth button:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px #3A4152; transform: translateY(-1px); }
.oauth svg { width: 18px; height: 18px; flex: none; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.field { display: grid; gap: 14px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.field input { width: 100%; padding: 13px 15px; background: rgba(6,7,11,.7); color: var(--text); border: 0; border-radius: 11px;
  box-shadow: inset 0 0 0 1px var(--line-2); font: 400 16px var(--body); transition: box-shadow .2s; }
.field input::placeholder { color: #5E6475; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--signal), 0 0 0 4px rgba(169,155,255,.14); }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted);
  font: 500 13px var(--body); padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.pw button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row label { margin-bottom: 7px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--signal); font: 500 13px var(--body); cursor: pointer; }
.link-btn:hover { color: #C4BAFF; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.auth-alt { display: flex; justify-content: center; margin-top: 16px; }
.auth-alt .link-btn { font-size: 14px; color: var(--muted); }
.auth-alt .link-btn:hover { color: var(--text); }
.view { animation: rise .5s var(--ease); }
.msg { min-height: 1.5em; font-size: 14px; margin-top: 14px; }
.msg.err { color: var(--dev); } .msg.ok { color: var(--signal-2); }
.fine { font-size: 13px; color: var(--dim); margin-top: 22px; }
.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- pricing */
.toggles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.seg { display: inline-flex; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: 4px; border-radius: 999px; gap: 2px; }
.seg button { background: none; border: 0; color: var(--muted); font: 500 14px/1 var(--body); padding: 10px 18px; cursor: pointer;
  border-radius: 999px; transition: color .2s, background .25s var(--ease), box-shadow .25s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 4px 14px -6px rgba(0,0,0,.8); }
.seg button small { color: var(--signal-2); margin-left: 6px; }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tier { background-color: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); border-radius: 20px; padding: 28px 24px;
  display: flex; flex-direction: column; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s, opacity .9s var(--ease), filter .9s var(--ease); }
.tier:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(169,155,255,.22), 0 30px 60px -30px rgba(0,0,0,.9); }
.tier.featured { box-shadow: inset 0 0 0 1px rgba(169,155,255,.45), 0 30px 80px -40px rgba(169,155,255,.45); }
.tier.featured::before { content: "Most popular"; position: absolute; top: -11px; left: 24px; font: 500 12px/1 var(--body);
  padding: 6px 10px; border-radius: 999px; background: linear-gradient(180deg, #BDB2FF, #9A8AFF); color: var(--signal-ink); }
.tier h3 { font-size: 1.25rem; }
.tier .price { font: 600 2.3rem/1 var(--display); letter-spacing: -0.03em; margin: 18px 0 4px; }
.tier .price small { font: 400 15px var(--body); color: var(--muted); letter-spacing: 0; }
.tier .formula { color: var(--muted); font-size: 14px; min-height: 4.2em; }
.tier .formula b { color: var(--text); font-weight: 500; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 26px; font-size: 15px; flex: 1; }
.tier li { padding: 6px 0 6px 24px; position: relative; color: #C8CCD6; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 9px; height: 5px; border-left: 1.5px solid var(--signal);
  border-bottom: 1.5px solid var(--signal); transform: rotate(-45deg); }
.tier li.plus { color: var(--muted); }
.tier li.plus::before { border-color: var(--dim); width: 8px; height: 0; transform: none; top: 15px; border-left: 0; }
.tier .btn { justify-content: center; text-align: center; white-space: nowrap; }
.pricing-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.pricing-notes > * { min-width: 0; }
.pricing-notes h3 { margin-bottom: 12px; }
.pricing-notes p { color: var(--muted); }
table.addons { width: 100%; border-collapse: collapse; font-size: 15px; }
table.addons th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-2); }
table.addons td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
table.addons td small { display: block; color: var(--dim); }
.tablewrap { overflow-x: auto; }
@media (max-width: 1180px) { .tiers { grid-template-columns: repeat(3, 1fr); row-gap: 24px; } }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } .pricing-notes { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- checkout + account */
.app-page { padding: 64px 0 120px; background: transparent; }
.app-page h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.app-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; margin-top: 36px; }
.app-grid > * { min-width: 0; }
.panel pre.code { max-width: 100%; }
.panel { background-color: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); padding: 26px; border-radius: 18px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.2rem; margin-bottom: 16px; letter-spacing: -0.02em; }
.choices { display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 15px 17px; border-radius: 12px;
  background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow .2s, background .2s; }
.choice:hover { background: rgba(255,255,255,.04); }
.choice:has(input:checked) { box-shadow: inset 0 0 0 1px var(--signal); background: rgba(169,155,255,.06); }
.choice:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.choice input { accent-color: var(--signal); width: 18px; height: 18px; margin: 2px 0 0; }
.choice b { font-weight: 500; }
.choice small { display: block; color: var(--muted); font-size: 14px; }
.choice .amt { font: 600 1rem var(--display); white-space: nowrap; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 16px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-lines li small { display: block; color: var(--dim); font-size: 13px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font: 600 1.6rem var(--display); letter-spacing: -0.02em; margin: 8px 0 4px; }
.total small { font: 400 14px var(--body); color: var(--muted); letter-spacing: 0; }
.fineprint { color: var(--dim); font-size: 13px; margin-top: 14px; }
.notice.ok b { color: var(--signal-2); }
.meter { height: 8px; background: var(--panel-2); margin: 12px 0 8px; position: relative; overflow: hidden; border-radius: 999px; }
.meter i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--signal), var(--signal-2)); max-width: 100%; border-radius: 999px; }
.meter.over i { background: var(--dev); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.keybox { display: flex; gap: 8px; align-items: stretch; }
.keybox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(6,7,11,.8); border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line-2); padding: 12px 14px; font: 13px var(--mono); color: #C9CDD8; }
.keybox .btn { padding: 12px 16px; font-size: 13px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-small { padding: 10px 16px; font-size: 13px; }
.btn-danger { background: transparent; color: var(--dev); box-shadow: inset 0 0 0 1px rgba(251,122,156,.45); }
.btn-danger:hover { color: var(--dev); background: rgba(251,122,156,.08); }
.btn.armed { background: var(--dev); color: #1A0710; box-shadow: 0 0 0 4px rgba(251,122,156,.18); }
.btn.armed:hover { color: #1A0710; }
.confirm-note { color: var(--dev); font-size: 14px; margin: 10px 0 0; animation: rise .35s var(--ease); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: #C8CCD6; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain small { color: var(--dim); display: block; font-size: 13px; }
.status-tag { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.status-active { background: rgba(125,211,252,.12); color: var(--signal-2); }
.status-warn { background: rgba(251,122,156,.14); color: var(--dev); }
.loading { color: var(--muted); padding: 40px 0; }
.loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid var(--line-2); border-top-color: var(--signal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
select.input, .input { width: 100%; padding: 12px 14px; background: rgba(6,7,11,.7); color: var(--text); border: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line-2); font: 400 15px var(--body); }
.input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--signal); }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- demo */
.demo { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; margin-top: 36px; }
.demo > * { min-width: 0; }
.demo-tabs { display: grid; gap: 8px; position: sticky; top: 88px; }
.demo-tabs button { text-align: left; background: rgba(255,255,255,.02); color: var(--muted); border: 0; padding: 15px 17px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line); font: 500 15px/1.35 var(--body); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .25s var(--ease); }
.demo-tabs button:hover { color: var(--text); background: rgba(255,255,255,.04); transform: translateX(3px); }
.demo-tabs button[aria-selected="true"] { color: var(--text); background: rgba(169,155,255,.07); box-shadow: inset 0 0 0 1px rgba(169,155,255,.4); }
.demo-tabs button small { display: block; font-size: 12px; color: var(--dim); margin-top: 3px; }
.demo-body { animation: rise .5s var(--ease); }
.demo-body h2 { margin-bottom: 12px; }
.demo-body .setup { color: var(--muted); max-width: 44em; }
.verdict { display: inline-block; font: 500 13px var(--body); padding: 6px 12px; border-radius: 999px;
  background: rgba(251,122,156,.14); color: var(--dev); margin: 6px 0 20px; }
.demo-body .report { margin-top: 8px; }
.demo-body .kv { margin-top: 20px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.compare div { background: rgba(6,7,11,.7); box-shadow: inset 0 0 0 1px var(--line-2); padding: 14px 16px; font-size: 14px; color: #C8CCD6; border-radius: 12px; }
.compare b { display: block; font-size: 12px; color: var(--dim); font-weight: 500; margin-bottom: 6px; }
.compare .new { box-shadow: inset 0 0 0 1px rgba(251,122,156,.45); }
.demo-body details { margin-top: 22px; }
.demo-body summary { cursor: pointer; color: var(--signal); font-size: 14px; }
.demo-body details pre { margin-top: 12px; max-height: 360px; overflow: auto; font-size: 12.5px; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } .demo-tabs { position: static; grid-template-columns: 1fr 1fr; } .compare { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- mobile menu, skip link */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--signal); color: var(--signal-ink);
  padding: 10px 16px; font-weight: 600; border-radius: 999px; }
.skip:focus { left: 12px; }
.menu-btn { display: none; background: rgba(255,255,255,.04); color: var(--text); border: 0; box-shadow: inset 0 0 0 1px var(--line-2);
  width: 42px; height: 38px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,9,13,.97); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; margin: 0; animation: rise .35s var(--ease); }
  .nav-links.open a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; color: var(--text); }
  .nav-links.open a:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- docs */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; margin-top: 32px; }
.docs > * { min-width: 0; }
.docs-toc { position: sticky; top: 88px; display: grid; gap: 2px; font-size: 14px; }
.docs-toc a { color: var(--muted); padding: 6px 0 6px 14px; border-left: 1.5px solid var(--line); transition: color .2s, border-color .2s, padding .25s var(--ease); }
.docs-toc a:hover { color: var(--text); border-left-color: var(--signal); padding-left: 18px; }
.docs-body { max-width: 46rem; }
.docs-body h2 { font-size: 1.55rem; margin: 52px 0 14px; padding-top: 8px; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.docs-body p, .docs-body li { color: #C8CCD6; }
.docs-body pre.code { margin: 14px 0 18px; font-size: 13.5px; }
.docs-body code:not(pre code) { font: 13.5px var(--mono); background: var(--panel-2); padding: 1px 6px; border-radius: 5px; color: #DDE0E8; }
.docs-body table.addons { margin: 10px 0 18px; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .docs-toc { position: static; grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .trace-now { stroke-dashoffset: 0; }
  .flag { opacity: 1; }
  .trace-dot, .scope::after { display: none; }
  .marquee-track { flex-wrap: wrap; width: auto; gap: 12px 32px; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .rv { opacity: 1; transform: none; filter: none; }
}

/* ---------------------------------------------------------------- methodology: data-flow diagram */
.flow { margin: 22px 0 28px; padding: 18px; background: var(--glass); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--glass-line); }
.flow svg { display: block; width: 100%; height: auto; }
.flow figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }
.flow .zone { fill: rgba(169,155,255,.04); stroke: var(--line-2); stroke-dasharray: 5 6; }
.flow .zl { fill: var(--muted); font: 500 13px var(--body); }
.flow .box { fill: var(--panel-2); stroke: var(--line-2); }
.flow .box.hi { fill: rgba(169,155,255,.12); stroke: var(--signal); }
.flow .box.dim { fill: var(--panel); stroke: var(--line); }
.flow .bt { fill: var(--text); font: 600 15px var(--body); text-anchor: middle; }
.flow .bs { fill: var(--muted); font: 500 13px var(--body); text-anchor: middle; }
.flow .al { fill: var(--dim); font: 12px var(--mono); }
.flow .arrow { fill: none; stroke: var(--signal-2); stroke-width: 1.6; }
.flow .arrow.dash { stroke: var(--dim); stroke-dasharray: 4 5; }
.flow .ahead { fill: var(--signal-2); }

/* demo: try it yourself */
.try { margin-top: 80px; }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.try-panel { background-color: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); border-radius: var(--r); padding: 26px 24px; min-width: 0; }
.try-panel h3 { margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips[hidden] { display: none; }
.chips button { font: 500 13.5px var(--body); color: var(--muted); background: rgba(255,255,255,.03); border: 0; border-radius: 999px;
  padding: 8px 14px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, background .2s, box-shadow .2s; }
.chips button:hover { color: var(--text); }
.chips button[aria-checked="true"] { color: var(--text); background: rgba(169,155,255,.1); box-shadow: inset 0 0 0 1px rgba(169,155,255,.55); }
.try-out { margin-top: 20px; animation: rise .4s var(--ease); }
.try-out .kv { margin-top: 16px; font-size: 14px; }
.try-out .why { display: block; margin-top: 8px; color: var(--dim); font-size: 12.5px; }
@media (max-width: 860px) { .try-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- homepage: active-active, one chain */
.aa-stage { margin: 26px 0 22px; padding: clamp(10px, 2.4vw, 26px); border-radius: var(--r); background:
  radial-gradient(120% 140% at 70% 50%, rgba(169, 155, 255, .10), transparent 60%), var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-line); overflow: hidden; }
.aa-svg { display: block; width: 100%; height: auto; font-family: var(--display); }
.aa-svg text { fill: var(--text); font-size: 15px; font-weight: 600; text-anchor: middle; }
.aa-svg .aa-sub { fill: var(--dim); font: 500 11.5px var(--mono); }
.aa-wire { fill: none; stroke: var(--line-2); stroke-width: 2; }
.aa-wire.w1 { stroke: rgba(169, 155, 255, .35); } .aa-wire.w2 { stroke: rgba(125, 211, 252, .35); } .aa-wire.w3 { stroke: rgba(251, 122, 156, .35); }
.aa-req { fill: var(--muted); opacity: .8; }
.aa-box rect { fill: var(--panel-2); stroke: var(--line-2); }
.aa-node rect { fill: var(--panel); stroke-width: 1.5; }
.aa-node.c1 rect { stroke: #A99BFF; } .aa-node.c2 rect { stroke: #7DD3FC; } .aa-node.c3 rect { stroke: #FB7A9C; }
.aa-tok.c1, .aa-link.c1 rect { fill: #A99BFF; } .aa-tok.c2, .aa-link.c2 rect { fill: #7DD3FC; } .aa-tok.c3, .aa-link.c3 rect { fill: #FB7A9C; }
.aa-tok { filter: drop-shadow(0 0 6px currentColor); }
.aa-ring { fill: var(--panel-2); stroke: url(#aa-g); stroke-width: 2.5; }
.aa-pulse { fill: none; stroke: #C4BAFF; stroke-width: 2; transform-origin: 684px 180px; animation: aa-pulse .8s var(--ease) infinite; }
.aa-shackle { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; }
.aa-body { fill: var(--text); }
.aa-hash { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 3; }
.aa-chain { animation: aa-advance 2.4s steps(3, end) infinite; }
.aa-cap { fill: var(--muted) !important; font: 500 12px var(--mono) !important; letter-spacing: .02em; }
.aa-under { stroke: url(#aa-g); stroke-width: 2; opacity: .5; }
@keyframes aa-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes aa-advance { from { transform: translateX(-156px); } to { transform: translateX(0); } }
.aa-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.aa-points > div { padding: 16px 18px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.aa-points h3 { font-size: 1rem; margin: 0 0 6px; }
.aa-points p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
@media (max-width: 960px) { .aa-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .aa-points { grid-template-columns: 1fr; } .aa-svg .aa-sub { display: none; } }
@media (prefers-reduced-motion: reduce) { .aa-req, .aa-tok, .aa-pulse { display: none; } .aa-chain { transform: none; } }

/* ---------------------------------------------------------------- agree to terms (sign-up, checkout) */
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: .92rem; color: var(--muted); line-height: 1.45; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--signal); flex: none; }
.agree a { color: var(--text); text-decoration: underline; }
.agree.need { color: #FB7A9C; }
