/* Echidna website - shared styles. Dark, cinematic; the echidna spine is the motif. */
:root {
  --bg: #06050d;
  --bg-2: #0b0918;
  --bg-3: #110e24;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #efeefe;
  --fg-2: #cfcdea;
  --muted: #9a98bd;
  --dim: #6f6d92;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --indigo: #5b6cff;
  --pink: #e879f9;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --grad: linear-gradient(120deg, #6d7bff 0%, #8b5cf6 45%, #d16cf5 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --max: 1160px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--violet-2); text-decoration: none; }
a:hover { color: #c4b5fd; }
::selection { background: #8b5cf655; color: #fff; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Atmosphere ---------- */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; background:
  radial-gradient(1200px 700px at 70% -10%, #241a5c66, transparent 60%),
  radial-gradient(900px 600px at -10% 20%, #1b1f6b55, transparent 60%),
  var(--bg); }
.sky .aurora { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .38; mix-blend-mode: screen; }
.sky .a1 { background: radial-gradient(circle, #6d4bff 0%, transparent 65%); top: -35vmax; right: -15vmax; animation: drift1 26s ease-in-out infinite alternate; }
.sky .a2 { background: radial-gradient(circle, #3b4bff 0%, transparent 65%); top: 10vmax; left: -30vmax; animation: drift2 32s ease-in-out infinite alternate; }
.sky .a3 { background: radial-gradient(circle, #c04cf0 0%, transparent 65%); bottom: -45vmax; right: 10vmax; opacity: .22; animation: drift3 38s ease-in-out infinite alternate; }
.sky .grain { position: absolute; inset: -50%; opacity: .06; 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"); }
@keyframes drift1 { to { transform: translate(-12vmax, 10vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(14vmax, -6vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(-10vmax, -12vmax) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .sky .aurora { animation: none; } }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: linear-gradient(to bottom, rgba(6,5,13,.86), rgba(6,5,13,.62)); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--fg); font-weight: 700; font-size: 18px; letter-spacing: -.2px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 24px #7c5cff66; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 6px; align-items: center; flex: 1; }
.nav a { color: var(--fg-2); font-size: 14.5px; font-weight: 520; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--panel-2); }
.top .actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--fg); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }
@media (max-width: 880px) {
  .nav { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
    background: rgba(8,7,18,.97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s ease; }
  .nav.open { transform: none; }
  .nav a { padding: 12px 12px; font-size: 16px; }
  .menu-btn { display: inline-grid; place-items: center; }
  .top .actions .btn.ghost { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border-radius: 12px; font: 600 15px/1 var(--font);
  color: #fff; background: var(--grad); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px -8px #8b5cf6aa, inset 0 1px 0 #ffffff33; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 16px 40px -8px #8b5cf6cc, inset 0 1px 0 #ffffff44; }
.btn.lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn.ghost { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 650 12.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--violet-2); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
h1, h2, h3, h4 { letter-spacing: -.025em; line-height: 1.08; margin: 0; color: #fff; }
h1 { font-size: clamp(42px, 7.2vw, 86px); font-weight: 760; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 720; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--fg-2); max-width: 680px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
code, pre, kbd { font-family: var(--mono); }
code { font-size: .88em; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: #e9e3ff; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section.tight { padding: 80px 0; }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
@media (max-width: 640px) { .section { padding: 84px 0; } .section-head { margin-bottom: 40px; } }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 90px; text-align: center; position: relative; }
.hero .badge { display: inline-flex; gap: 10px; align-items: center; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--line-2); color: var(--fg-2); font-size: 13.5px; margin-bottom: 30px; }
.hero .badge b { background: var(--grad); color: #fff; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
.hero h1 { max-width: 980px; margin: 0 auto 26px; }
.hero .lead { margin: 0 auto 40px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 26px; color: var(--dim); font-size: 13.5px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero .meta span { display: inline-flex; gap: 7px; align-items: center; }
.spine { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(1300px, 140vw); opacity: .55; z-index: -1; pointer-events: none; }
@media (max-width: 640px) { .hero { padding: 72px 0 60px; } }

/* Product stage under the hero */
.stage { margin: 70px auto 0; max-width: 1080px; border-radius: 22px; padding: 1px; background: linear-gradient(160deg, #8b5cf688, #ffffff14 40%, #5b6cff55);
  box-shadow: 0 60px 140px -40px #6d4bff66, var(--shadow); }
.stage .screen { border-radius: 21px; background: linear-gradient(180deg, #0f0c22, #08071a); overflow: hidden; }
.stage .bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
.stage .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ffffff1c; }
.stage .bar span { margin-left: 12px; }
.stage .body { display: grid; grid-template-columns: 220px 1fr; min-height: 380px; text-align: left; }
.stage .side { border-right: 1px solid var(--line); padding: 16px 12px; display: grid; gap: 4px; align-content: start; }
.stage .side div { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.stage .side div.on { background: var(--panel-2); color: #fff; }
.stage .side div::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: .6; }
.stage .main { padding: 22px; display: grid; gap: 12px; align-content: start; }
.stage .row { display: grid; grid-template-columns: 34px 1.4fr 1fr 1fr 90px; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; color: var(--fg-2); }
.stage .row .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 13px; }
.stage .row b { color: #fff; font-weight: 600; }
.stage .row small { color: var(--dim); display: block; font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #34d3991a; color: var(--ok); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill.idle { background: #ffffff10; color: var(--muted); }
.pill.idle::before { box-shadow: none; }
@media (max-width: 760px) {
  .stage .body { grid-template-columns: 1fr; }
  .stage .side { display: none; }
  .stage .row { grid-template-columns: 34px 1fr 80px; }
  .stage .row .hide-sm { display: none; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.card { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); overflow: hidden; transition: border-color .25s ease, transform .25s ease; }
.card:hover { border-color: var(--line-2); }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(140deg, #6d7bff33, #8b5cf633); border: 1px solid #a78bfa33; color: #d8ccff; }
.card .icon svg { width: 22px; height: 22px; }
.card.glow::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; height: 90%; background: radial-gradient(circle, #7c5cff33, transparent 70%); pointer-events: none; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--fg-2); font-size: 14.5px; }
.card ul li { display: flex; gap: 10px; }
.card ul li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 9px; border-radius: 2px; background: var(--violet-2); transform: rotate(45deg); }

/* Big split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--fg-2); }
.checks li::before { content: ""; width: 22px; height: 22px; border-radius: 7px; margin-top: 2px; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/18px no-repeat, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.checks li b { color: #fff; font-weight: 620; }

/* Signals visual */
.signals { border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, #110d27, #0a0819); padding: 26px; box-shadow: var(--shadow); }
.signals .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.signals .head b { color: #fff; font-size: 15px; }
.sig { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sig span { color: var(--fg-2); }
.sig em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: #d8ccff; background: #8b5cf61f; border: 1px solid #8b5cf633; padding: 3px 8px; border-radius: 7px; }

/* Code window */
.code { border-radius: 18px; border: 1px solid var(--line); background: #0a0818; box-shadow: var(--shadow); overflow: hidden; }
.code .bar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.code .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ffffff1c; }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; color: #d9d6f5; }
.code .k { color: #c4a5ff; } .code .s { color: #8ee6c4; } .code .c { color: #6f6d92; } .code .f { color: #8fb4ff; } .code .n { color: #f6b37f; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.step::before { content: "0" counter(s); display: block; font: 700 13px/1 var(--mono); color: var(--violet-2); letter-spacing: .1em; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

/* Platform strip */
.platforms { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.platform { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--fg-2); font-weight: 560; }
.platform svg { width: 22px; height: 22px; color: #fff; }

/* Big CTA */
.finale { border-radius: 28px; padding: 72px 48px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, #8b5cf640, transparent 70%), linear-gradient(180deg, #120e2a, #0a0819); border: 1px solid #a78bfa33; }
.finale h2 { margin: 18px auto 18px; max-width: 760px; }
.finale .lead { margin: 0 auto 34px; }
@media (max-width: 640px) { .finale { padding: 52px 22px; } }

/* Forms */
.form { display: grid; gap: 16px; text-align: left; max-width: 640px; margin: 0 auto; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.field input, .field select, .field textarea { width: 100%; font: 15px/1.4 var(--font); color: var(--fg); background: rgba(0,0,0,.35);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #a78bfa; box-shadow: 0 0 0 4px #8b5cf62a; }
.field .hint { font-size: 12.5px; color: var(--dim); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--violet); }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 14.5px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--fg-2); }
.notice.ok { border-color: #34d39955; background: #34d39914; color: #b6f5dc; }
.notice.bad { border-color: #f8717155; background: #f8717114; color: #fecaca; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 620; color: #fff; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet-2); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 60px; color: var(--muted); font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-2); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--muted); }
.foot a:hover { color: #fff; }
.foot .legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Docs layout ---------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 48px; padding: 48px 0 80px; }
.docs nav.side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; display: grid; gap: 22px; font-size: 14.5px; }
.docs nav.side h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.docs nav.side a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--fg-2); border-left: 2px solid transparent; }
.docs nav.side a:hover { color: #fff; background: var(--panel); }
.docs nav.side a[aria-current="page"] { color: #fff; background: #8b5cf61f; border-left-color: var(--violet); }
.docs nav.toc { position: sticky; top: 92px; align-self: start; font-size: 13px; display: grid; gap: 6px; }
.docs nav.toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 4px; }
.docs nav.toc a { color: var(--muted); }
.docs nav.toc a:hover { color: #fff; }
.prose { min-width: 0; }
.prose h1 { font-size: clamp(34px, 4.5vw, 48px); margin: 6px 0 16px; }
.prose > .lead { margin-bottom: 36px; }
.prose h2 { font-size: 26px; margin: 52px 0 14px; padding-top: 8px; scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--fg-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose pre { background: #0a0818; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; color: #d9d6f5; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: #fff; font-weight: 620; background: var(--panel); }
.prose td { color: var(--fg-2); }
.callout { border-radius: 14px; padding: 16px 18px; margin: 22px 0; border: 1px solid #a78bfa44; background: #8b5cf614; color: var(--fg-2); }
.callout.warn { border-color: #fbbf2444; background: #fbbf2412; }
.callout b { color: #fff; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 4px; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); min-width: 200px; }
.pager a small { color: var(--dim); font-size: 12.5px; }
.pager a:hover { border-color: #a78bfa66; }
.pager .next { text-align: right; margin-left: auto; }
@media (max-width: 1100px) { .docs { grid-template-columns: 230px minmax(0, 1fr); } .docs nav.toc { display: none; } }
@media (max-width: 820px) {
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .docs nav.side { position: static; max-height: none; grid-template-columns: 1fr 1fr; }
}

/* ---------- Releases ---------- */
.timeline { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.release { display: grid; grid-template-columns: 170px 1fr; gap: 28px; }
.release .when { text-align: right; padding-top: 22px; }
.release .when b { display: block; font-size: 22px; color: #fff; letter-spacing: -.02em; }
.release .when span { color: var(--dim); font-size: 13.5px; }
.release .card h3 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--fg-2); border: 1px solid var(--line-2); }
.tag.app { background: #5b6cff22; color: #c3c9ff; border-color: #5b6cff55; }
.tag.engine { background: #8b5cf622; color: #ddd0ff; border-color: #8b5cf655; }
.tag.security { background: #34d39918; color: #a7f3d0; border-color: #34d39944; }
.tag.current { background: var(--grad); color: #fff; border-color: transparent; }
@media (max-width: 720px) { .release { grid-template-columns: 1fr; gap: 8px; } .release .when { text-align: left; padding: 0; } .release .when b { display: inline; margin-right: 10px; } }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.dash aside { border-right: 1px solid var(--line); padding: 24px 14px; display: grid; gap: 4px; align-content: start; background: rgba(6,5,13,.5); }
.dash aside .who { display: flex; gap: 12px; align-items: center; padding: 8px 10px 20px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.dash aside .who .av { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; font-weight: 700; }
.dash aside .who b { display: block; font-size: 14.5px; }
.dash aside .who small { color: var(--dim); font-size: 12.5px; word-break: break-all; }
.dash aside button.nav-item { all: unset; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--fg-2); font-size: 14.5px; }
.dash aside button.nav-item:hover { background: var(--panel); color: #fff; }
.dash aside button.nav-item[aria-current="page"] { background: #8b5cf61f; color: #fff; }
.dash aside button.nav-item:focus-visible { outline: 2px solid var(--violet-2); }
.dash main { padding: 36px 40px 80px; min-width: 0; }
.dash h1 { font-size: 30px; margin-bottom: 6px; }
.dash .sub { color: var(--muted); margin: 0 0 28px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.kpi small { color: var(--dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; }
.kpi b { display: block; font-size: 28px; margin-top: 6px; letter-spacing: -.02em; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--fg-2); vertical-align: middle; }
.table td b { color: #fff; font-weight: 600; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.panel .phead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel .phead h3 { font-size: 16px; }
.panel .pbody { padding: 18px; }
.panel .scroll { overflow-x: auto; }
.empty { text-align: center; color: var(--muted); padding: 40px 18px; }
.signin { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; }
.signin .box { width: min(440px, 100%); padding: 36px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #120e2a, #0a0819); box-shadow: var(--shadow); }
.signin .box h1 { font-size: 28px; margin: 18px 0 8px; }
.signin .box p { color: var(--muted); margin: 0 0 24px; }
.signin .box .btn { width: 100%; }
.small-btn { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 9px; background: var(--panel-2); color: var(--fg-2); border: 1px solid var(--line-2); }
.small-btn:hover { color: #fff; border-color: #a78bfa66; }
.small-btn.danger:hover { color: #fecaca; border-color: #f8717188; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash aside { border-right: 0; border-bottom: 1px solid var(--line); grid-auto-flow: column; overflow-x: auto; padding: 12px 16px; }
  .dash aside .who { display: none; }
  .dash main { padding: 26px 16px 60px; }
  .kpis { grid-template-columns: 1fr; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
