:root {
  --bg: #000000;
  --bg-elev: #070707;
  --surface: #0b0b0b;
  --surface-2: #121212;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --ink: #ededed;
  --ink-2: #8a8a8a;
  --ink-3: #5a5a5a;
  --accent: #ededed;
  --accent-ink: #000000;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --mark-ghost: rgba(255, 255, 255, 0.032);
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="light"] {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f1f3;
  --border: rgba(0, 0, 0, 0.11);
  --border-strong: rgba(0, 0, 0, 0.24);
  --ink: #0a0a0a;
  --ink-2: #555555;
  --ink-3: #777777;
  --accent: #0a0a0a;
  --accent-ink: #ffffff;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --mark-ghost: rgba(0, 0, 0, 0.035);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
code, pre, .mono { font-family: var(--font-mono); }
.mono-dim { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 200; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; width: 100%; }

/* ---------------- HEADER (2-tier Vexthium match) ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.util-bar { border-bottom: 1px solid var(--border); height: 38px; display: flex; align-items: center; }
.util-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.util-left, .util-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.util-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-2); text-transform: uppercase; flex: none;
}
.util-url {
  font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 44vw;
}
.icon-copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  cursor: pointer; transition: color 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.icon-copy:hover { color: var(--ink); border-color: var(--border); background: var(--surface-2); }
.slot-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.slot-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.slot-pill.is-live .dot { background: var(--ok); }
.slot-ep { color: var(--ink-3); }
.btn-util {
  height: 26px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; cursor: pointer;
  white-space: nowrap; flex: none;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.btn-util:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-util.is-connected { border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }

html[data-theme="dark"] .ico-sun { display: block; }
html[data-theme="dark"] .ico-moon { display: none; }
html[data-theme="light"] .ico-sun { display: none; }
html[data-theme="light"] .ico-moon { display: block; }

.nav-bar { height: 64px; display: flex; align-items: center; }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav-left { display: flex; align-items: center; gap: 22px; justify-self: start; }
.nav-right { display: flex; align-items: center; gap: 22px; justify-self: end; }
.brand {
  justify-self: center; display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
}
.brand-name { text-transform: lowercase; }

.nav-item, .nav-trigger {
  background: none; border: 0; padding: 6px 2px; color: var(--ink-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  transition: color 150ms var(--ease);
}
.nav-item:hover, .nav-trigger:hover, .nav-item.is-active { color: var(--ink); }
.chev { font-size: 10px; opacity: 0.7; }

.nav-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; display: none; flex-direction: column; z-index: 95;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.drop-right { left: auto; right: 0; }
.nav-drop.is-open .drop-menu { display: flex; }
.drop-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--ink-2);
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.drop-menu a:hover { background: var(--surface-2); color: var(--ink); }

.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer;
}
.mobile-drawer {
  border-top: 1px solid var(--border); background: var(--bg-elev); padding: 18px 0 24px;
}
.drawer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.drawer-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; margin: 0 0 8px; }
.mobile-drawer a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 14px; }
.mobile-drawer a:hover { color: var(--ink); }

/* ---------------- HERO & EDITORIAL BANDS ---------------- */
.view[hidden] { display: none !important; }
.view-page { padding: 48px 0 72px; }

.hero-band {
  position: relative;
  min-height: calc(100dvh - 103px);
  display: flex; align-items: center;
  padding: 56px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.bg-mark-lg {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  width: min(62vw, 760px); height: auto;
  color: var(--mark-ghost); pointer-events: none; z-index: 0;
}
.bg-mark-left, .bg-mark-right {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 420px; height: auto; color: var(--mark-ghost); pointer-events: none; z-index: 0;
}
.bg-mark-left { left: -120px; }
.bg-mark-right { right: -100px; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 440px);
  gap: 56px; align-items: center;
}
.hero-copy, .hero-aside { min-width: 0; max-width: 100%; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px;
}
.hero-h1 {
  margin: 0 0 24px;
  font-size: clamp(2.85rem, 6.2vw, 5.4rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.hero-h1 span { color: var(--ink-2); }
.hero-sub {
  margin: 0 0 20px; max-width: 520px;
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
}
.hero-compat {
  margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
}

.hero-aside { display: flex; flex-direction: column; gap: 10px; }

/* Glow / Vexthium bordered card */
.glow-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
  transition: border-color 180ms var(--ease);
}
.glow-card:hover { border-color: var(--border-strong); }

.endpoint-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.ec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mono-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
}
.mono-link { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.mono-link:hover { color: var(--ink); }

.ec-counts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.ec-stat { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ec-stat b { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ec-stat span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); }

.ec-url-row {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-url-row code { font-size: 12.5px; color: var(--ink); }

.btn-white {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}
.btn-white:hover { opacity: 0.9; }
.btn-white:active { transform: scale(0.985); }

.btn-white-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}
.btn-white-sm:hover { opacity: 0.9; }
.btn-white-sm:active { transform: scale(0.985); }
.btn-white-sm:disabled, .btn-outline:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: var(--ink); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.btn-outline:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-ghost-link { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.btn-ghost-link:hover { color: var(--ink); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }

.cluster-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.cluster-val {
  flex: 1; min-width: 0; font-size: 12px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-icon-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid var(--border); background: transparent; color: var(--ink-2);
  cursor: pointer; font-size: 12px; flex: none;
  transition: color 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.btn-icon-sm:hover { color: var(--ink); border-color: var(--border-strong); background: var(--surface-2); }

/* Vertical dot rail */
.dot-rail {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 40;
}
.dot-rail a {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.dot-rail a.is-active, .dot-rail a:hover { background: var(--ink); transform: scale(1.35); }

/* Editorial Bands */
.band {
  position: relative; padding: 88px 0; border-bottom: 1px solid var(--border); overflow: hidden;
}
.band .wrap { position: relative; z-index: 1; }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.view-page .split-2 { align-items: start; gap: 24px; }
.band-h2 {
  margin: 0 0 14px; font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.03em;
}
.band-copy { margin: 0 0 22px; color: var(--ink-2); max-width: 52ch; }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.band-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }

.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.pillar { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.pillar b { font-size: 13.5px; font-weight: 500; }
.pillar span { font-size: 13px; color: var(--ink-2); }

.kv-list { display: flex; flex-direction: column; margin-top: 12px; }
.kv-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.kv-item:last-child { border-bottom: 0; }
.kv-item span { color: var(--ink-2); }
.kv-item b { font-weight: 500; font-family: var(--font-mono); font-size: 12.5px; }

.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-preview-list { display: flex; flex-direction: column; margin: 12px 0 16px; }
.tp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 4px; border-bottom: 1px solid var(--border);
  transition: background-color 140ms var(--ease);
}
.tp-row:hover { background: var(--surface-2); }
.tp-row code { font-size: 12.5px; color: var(--ink); }
.tp-row span { font-size: 12.5px; color: var(--ink-2); text-align: right; }

.net-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.net-stat { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); padding-top: 12px; }
.net-stat span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink-2); }
.net-stat b { font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.net-stat small { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

.rate-row { display: flex; gap: 36px; margin-top: 22px; flex-wrap: wrap; }
.rate-row .big-num { display: block; font-size: 36px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rate-row span { font-size: 12.5px; color: var(--ink-2); }
.inline-link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- CONSOLE, FORMS, TABLES, VIEWS ---------------- */
.page-head { margin-bottom: 24px; }
.page-h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.page-sub { margin: 0; color: var(--ink-2); max-width: 65ch; }
.card-h2 { margin: 0 0 12px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }

.console-card { display: flex; flex-direction: column; gap: 14px; }
.console-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.console-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label-like { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
input, select, textarea {
  width: 100%; background: var(--bg-elev); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; font-family: var(--font-sans); font-size: 13.5px;
  transition: border-color 150ms var(--ease);
}
textarea.mono, input.mono { font-family: var(--font-mono); font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--border-strong); }

.schema-box, .json-box, .snip-pre {
  margin: 0; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; font-size: 12px; line-height: 1.5; color: var(--ink-2);
  overflow: auto; max-height: 240px; white-space: pre-wrap; word-break: break-word;
}
.json-box { max-height: 320px; color: var(--ink); }

.snip-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.snip-tab, .seg-btn, .pill-btn {
  background: transparent; color: var(--ink-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; font-family: var(--font-mono); font-size: 11.5px; cursor: pointer;
  transition: color 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.snip-tab.is-active, .seg-btn.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pill-btn:hover, .seg-btn:hover:not(.is-active), .snip-tab:hover:not(.is-active) { color: var(--ink); border-color: var(--border-strong); }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form input { flex: 1 1 240px; }
.quick-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.field-inline { flex: 1 1 260px; max-width: 380px; }
.seg-row { display: flex; flex-wrap: wrap; gap: 6px; }
.check-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; cursor: pointer; }
.chk input { width: auto; }

/* Badges & scopes */
.badge, .scope-pill {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
  white-space: nowrap;
}
.badge-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.badge-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

/* Tools catalog */
.tools-catalog { display: flex; flex-direction: column; gap: 28px; }
.scope-group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.scope-group-head h2 { margin: 0; font-size: 15px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; }
.tools-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool-row-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px; transition: border-color 150ms var(--ease);
}
.tool-row-card:hover { border-color: var(--border-strong); }
.tool-row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-row-top code { font-size: 13px; font-weight: 500; }
.tool-row-desc { margin: 0; font-size: 13px; color: var(--ink-2); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; }
th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); background: var(--bg-elev); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.mint-cell, .sym-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Autopsy, Trail, Docs, Sign */
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sign-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-body { font-size: 13px; }
.risk-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.risk-gauge-wrap { display: flex; align-items: center; gap: 12px; }
.risk-gauge-svg { width: 84px; height: 52px; }
.risk-gauge-bg { fill: none; stroke: var(--surface-2); stroke-width: 8; stroke-linecap: round; }
.risk-gauge-arc { fill: none; stroke-width: 8; stroke-linecap: round; }
.risk-score-num { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.fact { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.fact span { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2); text-transform: uppercase; }
.fact b { font-size: 13.5px; font-weight: 500; word-break: break-all; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.chip { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev); }
.chip-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.finding { padding: 8px 12px; border-left: 2px solid var(--border-strong); background: var(--bg-elev); margin-top: 8px; font-size: 13px; }
.trail-svg { width: 100%; height: 340px; display: block; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; margin-top: 16px; }
.alert { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.alert-danger { border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
.skeleton { height: 74px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin-top: 14px; opacity: 0.55; }

/* Footer & Toast */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.foot-left { display: flex; align-items: center; gap: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a:hover { color: var(--ink); }
.toast-region { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 120; }
.toast { background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); padding: 9px 14px; border-radius: 10px; font-size: 13px; }

/* Motion & Vexthium Scroll Reveal */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ink-2), var(--ink));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 150;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 200ms var(--ease);
}

.glow-card {
  --mx: 50%;
  --my: 50%;
  overflow: hidden;
}
.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.065), transparent 60%);
  transition: opacity 220ms var(--ease);
}
html[data-theme="light"] .glow-card::after {
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(0, 0, 0, 0.045), transparent 60%);
}
.glow-card:hover::after { opacity: 1; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: riseIn 460ms var(--ease) both; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
  transition-delay: calc(var(--d, 0) * 65ms);
  will-change: opacity, transform;
}
.scroll-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.bg-mark-lg, .bg-mark-left, .bg-mark-right {
  transition: transform 140ms linear;
}

.arena-grid, .clients-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ec-head { flex-wrap: wrap; gap: 8px; }
.ec-head .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.timeline-list { display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--border); padding-left: 20px; margin-left: 6px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--bg);
}
.step-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
@media (max-width: 960px) {
  .arena-grid, .clients-grid, .step-flow { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .scroll-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-progress { display: none; }
  html { scroll-behavior: auto; }
}

/* Long-form Vexthium-style doc layout */
.doc-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 26px; }
.doc-meta-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.doc-meta-box span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.doc-meta-box b { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; font-family: var(--font-mono); }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.doc-toc { position: sticky; top: 106px; border-left: 1px solid var(--border); padding-left: 14px; display: flex; flex-direction: column; gap: 6px; }
.doc-toc-title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.doc-toc a { font-size: 13px; color: var(--ink-2); padding: 3px 0; transition: color 140ms var(--ease); }
.doc-toc a:hover { color: var(--ink); }
.doc-body { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.doc-sec { border-top: 1px solid var(--border); padding-top: 24px; }
.doc-sec:first-child { border-top: 0; padding-top: 0; }
.doc-h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 12px; }
.doc-sec p { color: var(--ink-2); margin: 0 0 12px; line-height: 1.65; }
.doc-sec p b, .doc-sec li b { color: var(--ink); font-weight: 500; }
.doc-steps { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.doc-steps li { line-height: 1.6; }
.doc-callout { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--border-strong); border-left: 3px solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.doc-callout b { color: var(--ink); }

@media (max-width: 960px) {
  .hero-grid, .split-2, .console-grid, .tools-list, .docs-grid, .sign-steps, .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; border-left: 0; border-bottom: 1px solid var(--border); padding-left: 0; padding-bottom: 14px; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .doc-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy, .hero-aside { min-width: 0; max-width: 100%; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dot-rail { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .util-url { max-width: 36vw; }
  .nav-left, .nav-right .nav-drop, .nav-right .nav-item { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .brand { justify-self: start; }
  .menu-btn { display: inline-flex; }
  .slot-pill { display: none; }
  .hero-band { min-height: auto; padding: 38px 0 48px; }
  .hero-h1 { font-size: 42px; }
  .band { padding: 52px 0; }
  .two-col, .fact-grid, .drawer-grid { grid-template-columns: minmax(0, 1fr); }
}
