/* ==========================================================================
   BrokerIQ Tools — site.css
   Palette: navy / bone / teal. Fonts: Syne (display) + Figtree (body).
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-2: #0b1730;
  --panel: #0f1a2e;
  --panel-2: #14223a;
  --line: rgba(230, 238, 248, 0.1);
  --line-strong: rgba(230, 238, 248, 0.2);
  --bone: #e6eef7;
  --bone-dim: rgba(230, 238, 248, 0.72);
  --accent: #14c4b4;
  --accent-hi: #5ee0d4;
  --accent-soft: rgba(20, 196, 180, 0.14);
  --steel: #8b93a7;
  --danger: #e85d5d;
  --success: #3fbf8a;

  --display: "Syne", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--bone);
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(20, 196, 180, 0.11), transparent 62%),
    radial-gradient(700px 480px at -10% 30%, rgba(139, 147, 167, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Fine measurement grid, very low contrast */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 75%);
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #04201d; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 1000;
  background: var(--accent); color: #04201d; font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

.accent {
  font-family: var(--body);
  font-style: italic;
  font-weight: 600;
  color: var(--accent-hi);
  letter-spacing: -0.03em;
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--bone-dim); font-size: 1.1rem; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--bone); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: 999px; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn--primary {
  --btn-bg: linear-gradient(180deg, var(--accent-hi), var(--accent));
  --btn-fg: #04201d; --btn-bd: transparent;
  box-shadow: 0 10px 30px -10px rgba(20, 196, 180, 0.6);
}
.btn--primary:hover { box-shadow: 0 16px 38px -10px rgba(94, 224, 212, 0.7); border-color: transparent; }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 500; color: var(--bone-dim);
  border: 1px solid var(--line); background: rgba(18, 24, 35, 0.6);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

/* ==========================================================================
   Boot / intro overlay  (motion system 1) — blueprint + radar ripple
   ========================================================================== */
.boot { display: none; }
.js:not(.no-boot) .boot {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 900; padding: 24px; overflow: hidden;
  background:
    radial-gradient(900px 560px at 50% 46%, rgba(20, 196, 180, 0.1), transparent 70%),
    radial-gradient(1200px 800px at 50% 120%, rgba(11, 23, 48, 0.9), transparent 70%),
    #070b14;
  cursor: pointer;
  --boot-p: 0;
  transition: opacity 0.6s var(--ease), visibility 0.6s, transform 0.6s var(--ease);
}
.js:not(.no-boot) .boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.04); }
.booting { overflow: hidden; }

/* Faint measurement grid + stars */
.boot-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 224, 212, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 224, 212, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(94, 224, 212, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 224, 212, 0.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 90%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 90%);
}
.boot-stars { position: absolute; inset: 0; pointer-events: none; }
.boot-stars::before, .boot-stars::after { content: ""; position: absolute; inset: 0; }
.boot-stars::before {
  background-image:
    radial-gradient(1.4px 1.4px at 8% 14%, #dffaf6 50%, transparent 52%),
    radial-gradient(1px 1px at 17% 72%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 26% 38%, #9ff0e6 50%, transparent 52%),
    radial-gradient(1px 1px at 34% 88%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 47% 9%, #dffaf6 50%, transparent 52%),
    radial-gradient(1px 1px at 58% 64%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 69% 21%, #9ff0e6 50%, transparent 52%),
    radial-gradient(1px 1px at 78% 83%, #fff 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 88% 47%, #dffaf6 50%, transparent 52%),
    radial-gradient(1px 1px at 94% 12%, #fff 50%, transparent 52%);
  animation: twinkle 4.2s ease-in-out infinite;
}
.boot-stars::after {
  background-image:
    radial-gradient(1px 1px at 4% 52%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 13% 29%, #9ff0e6 50%, transparent 52%),
    radial-gradient(1px 1px at 22% 93%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 39% 56%, #dffaf6 50%, transparent 52%),
    radial-gradient(1px 1px at 52% 31%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 63% 92%, #9ff0e6 50%, transparent 52%),
    radial-gradient(1px 1px at 74% 6%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 83% 66%, #dffaf6 50%, transparent 52%),
    radial-gradient(1px 1px at 91% 90%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 97% 34%, #9ff0e6 50%, transparent 52%);
  animation: twinkle 5.6s ease-in-out -2s infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.95; } }

/* Concentric radar / ripple rings */
.boot-rings {
  --rs: min(130vmin, 1120px);
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.boot-rings > * { grid-area: 1 / 1; }
.boot-rings i {
  width: var(--rs); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(40, 214, 198, 0.75);
  box-shadow: 0 0 60px rgba(20, 196, 180, 0.28), inset 0 0 60px rgba(20, 196, 180, 0.14);
  opacity: 0; transform: scale(0.08);
  animation: boot-ripple 6.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  animation-delay: calc(var(--n) * -1.1s);
}
@keyframes boot-ripple {
  0%   { transform: scale(0.08); opacity: 0; }
  12%  { opacity: 0.75; }
  100% { transform: scale(1); opacity: 0; }
}
.br-static {
  aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(94, 224, 212, 0.18);
}
.br-static--1 { width: calc(var(--rs) * 0.28); }
.br-static--2 { width: calc(var(--rs) * 0.5); border-style: dashed; border-color: rgba(94, 224, 212, 0.16); animation: boot-spin 60s linear infinite; }
.br-static--3 { width: calc(var(--rs) * 0.74); border-color: rgba(94, 224, 212, 0.1); }
@keyframes boot-spin { to { transform: rotate(360deg); } }
.br-axis { background: linear-gradient(90deg, transparent, rgba(94, 224, 212, 0.28), transparent); }
.br-axis--h { width: 100%; height: 1px; }
.br-axis--v { height: 100%; width: 1px; background: linear-gradient(180deg, transparent, rgba(94, 224, 212, 0.28), transparent); }
.br-sweep {
  width: calc(var(--rs) * 0.74); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(20, 196, 180, 0.0) 74%, rgba(20, 196, 180, 0.28) 100%);
  -webkit-mask-image: radial-gradient(circle, transparent 0, #000 12%, #000 98%, transparent 100%);
  mask-image: radial-gradient(circle, transparent 0, #000 12%, #000 98%, transparent 100%);
  opacity: calc(0.35 + var(--boot-p) * 0.65);
  animation: boot-spin 4.2s linear infinite;
}

/* Horizontal scan line */
.boot-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(20, 196, 180, 0.06), transparent);
  animation: scan 3.6s linear infinite;
}
.boot-scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(94, 224, 212, 0.9) 50%, transparent 100%);
  box-shadow: 0 0 22px 3px rgba(20, 196, 180, 0.55);
  animation: scanline 3.6s linear infinite;
}
@keyframes scan { from { transform: translateY(-140px); } to { transform: translateY(100vh); } }
@keyframes scanline { from { transform: translateY(0); } to { transform: translateY(100vh); } }

.boot-inner { position: relative; width: min(600px, 100%); display: grid; gap: 22px; }

/* Blueprint title plate */
.boot-plate {
  position: relative; padding: 18px 22px 20px;
  background: linear-gradient(160deg, rgba(11, 23, 48, 0.82), rgba(7, 11, 20, 0.86));
  border: 1px solid rgba(94, 224, 212, 0.4);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(7, 11, 20, 0.6), 0 0 0 5px rgba(94, 224, 212, 0.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bp-corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent-hi); }
.bp-corner--tl { left: -6px; top: -6px; border-right: 0; border-bottom: 0; }
.bp-corner--tr { right: -6px; top: -6px; border-left: 0; border-bottom: 0; }
.bp-corner--bl { left: -6px; bottom: -6px; border-right: 0; border-top: 0; }
.bp-corner--br { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }
.plate-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--steel);
  padding-bottom: 12px; border-bottom: 1px dashed rgba(94, 224, 212, 0.28);
}
.boot-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0 18px; }
.boot-logo img {
  height: 56px;
  width: 296px;
  max-width: min(100%, 296px);
  aspect-ratio: 254 / 48;
  display: block;
  filter: drop-shadow(0 0 14px rgba(20, 196, 180, 0.4));
}
.boot-logo em { display: block; font-style: normal; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.34em; color: var(--accent-hi); }
.plate-grid {
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(94, 224, 212, 0.25);
}
.plate-grid > div { padding: 9px 12px 10px; border-right: 1px solid rgba(94, 224, 212, 0.25); min-width: 0; }
.plate-grid > div:last-child { border-right: 0; }
.plate-grid dt { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.22em; color: var(--steel); }
.plate-grid dd { margin: 4px 0 0; font-family: var(--mono); font-size: 0.78rem; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Status: INITIALISING + checklist */
.boot-status { padding: 0 4px; }
.boot-title {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--accent);
  display: flex; justify-content: space-between; margin-bottom: 12px;
}
.boot-title .blink { animation: blink 1s steps(2) infinite; }
.boot-bar { height: 4px; background: rgba(230, 238, 248, 0.1); border-radius: 4px; overflow: hidden; }
.boot-bar > i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  box-shadow: 0 0 16px var(--accent);
}
.boot-list { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; font-family: var(--mono); font-size: 0.76rem; color: var(--steel); }
.boot-list li { display: flex; justify-content: space-between; gap: 12px; opacity: 0.35; transition: opacity 0.3s, color 0.3s; }
.boot-list li.is-on { opacity: 1; color: var(--bone-dim); }
.boot-list li .st { color: var(--steel); }
.boot-list li.is-ok .st { color: var(--success); }
.boot-foot { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.82rem; color: var(--steel); }
.boot-skip {
  background: rgba(7, 11, 20, 0.6); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.boot-skip:hover { border-color: var(--accent); color: var(--accent-hi); }

@keyframes blink { 50% { opacity: 0.2; } }

@media (max-width: 560px) {
  .plate-grid { grid-template-columns: 1fr 1fr; }
  .plate-grid > div:nth-child(2) { border-right: 0; }
  .plate-grid > div:nth-child(-n + 2) { border-bottom: 1px solid rgba(94, 224, 212, 0.25); }
  .boot-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Header + nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 500; height: var(--header-h);
  background: rgba(7, 9, 13, 0.62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(7, 9, 13, 0.86); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 0; flex-shrink: 0; }
.brand img {
  height: 44px;
  width: 233px;
  max-width: none;
  aspect-ratio: 254 / 48;
  display: block;
}
.site-footer .brand img { height: 40px; width: 212px; max-width: none; aspect-ratio: 254 / 48; }

.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list > li { position: relative; }
.nav-link, .menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; color: var(--bone-dim); text-decoration: none;
  background: none; border: 0; cursor: pointer; transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--bone); background: rgba(230, 238, 248, 0.06); }
.nav-link[aria-current="page"] { color: var(--accent-hi); }
.menu-btn svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 560px; padding: 12px; margin-left: -280px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(14, 18, 24, 0.98); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0.22s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu a {
  display: grid; grid-template-columns: 30px 1fr; gap: 2px 8px; align-items: baseline;
  padding: 11px 12px; border-radius: 10px; text-decoration: none; transition: background 0.2s;
}
.menu a:hover, .menu a:focus-visible { background: var(--accent-soft); }
.menu .n { grid-row: span 2; font-family: var(--mono); font-size: 0.72rem; color: var(--accent); }
.menu strong { font-size: 0.93rem; font-weight: 600; }
.menu small { font-size: 0.78rem; color: var(--steel); line-height: 1.35; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 999px; min-height: 40px; padding: 0 16px; cursor: pointer; font-weight: 600; }

/* ==========================================================================
   Hero — split layout: copy left, iMac-style monitor on a reflective floor right
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 84px) 0 clamp(8px, 2vw, 24px); isolation: isolate; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px); align-items: center; }

/* Large concentric rings, top-right (static + slow pulse) */
.hero-rings {
  position: absolute; z-index: 0; pointer-events: none;
  top: clamp(-380px, -26vw, -160px); right: clamp(-360px, -20vw, -120px);
  width: min(1000px, 92vw); aspect-ratio: 1;
}
.hero-rings i {
  position: absolute; border-radius: 50%; border: 1px solid rgba(20, 196, 180, 0.2);
  animation: ring-pulse 9s ease-in-out infinite;
}
.hero-rings i:nth-child(1) { inset: 0; border-color: rgba(20, 196, 180, 0.1); }
.hero-rings i:nth-child(2) { inset: 9%; animation-delay: -1.5s; }
.hero-rings i:nth-child(3) { inset: 18%; border-color: rgba(94, 224, 212, 0.26); animation-delay: -3s; }
.hero-rings i:nth-child(4) { inset: 27%; animation-delay: -4.5s; }
.hero-rings i:nth-child(5) { inset: 36%; border-color: rgba(94, 224, 212, 0.3); animation-delay: -6s; }
.hero-rings i:nth-child(6) { inset: 45%; background: radial-gradient(circle, rgba(20, 196, 180, 0.12), transparent 70%); border-color: rgba(94, 224, 212, 0.35); animation-delay: -7.5s; }
@keyframes ring-pulse { 0%, 100% { transform: scale(1); opacity: 0.75; } 50% { transform: scale(1.035); opacity: 1; } }
.hero-vignette { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(700px 420px at 12% 40%, rgba(7, 11, 20, 0.55), transparent 70%); }

/* Copy */
.hero h1 { font-size: clamp(2.3rem, 4.7vw, 4.1rem); margin: 22px 0 22px; letter-spacing: -0.035em; line-height: 1.04; color: #fff; }
.hero h1 .grad {
  font-family: var(--body); font-style: italic; font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(100deg, #5ee0d4 0%, #14c4b4 45%, #6fb7ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: 0.08em;
}
.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--bone-dim); max-width: 52ch; }
.cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-pill {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 28px;
  padding: 8px 16px 8px 14px; border-radius: 999px; font-size: 0.86rem; color: var(--bone-dim);
  border: 1px solid rgba(20, 196, 180, 0.35); background: rgba(20, 196, 180, 0.07);
}
.hero-pill b { color: var(--bone); font-weight: 600; letter-spacing: 0.01em; }
.hero-pill .gdot, .dash-live i { width: 8px; height: 8px; border-radius: 50%; background: #3fe08f; box-shadow: 0 0 0 0 rgba(63, 224, 143, 0.6); animation: pulse 1.6s ease-out infinite; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Stage + floor */
.hero-stage { position: relative; perspective: 1600px; padding-bottom: clamp(36px, 6vw, 72px); min-width: 0; }
.monitor-rig {
  position: relative; transform-style: preserve-3d; will-change: transform;
  transform: rotateY(calc(var(--rx, 0) * 6deg)) rotateX(calc(var(--ry, 0) * -3.5deg));
}

.hero-floor {
  position: absolute; left: -14%; right: -14%; bottom: 0; height: clamp(90px, 14vw, 180px); z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(20, 196, 180, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #010206 18%, #000 60%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 45%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 45%, transparent 78%);
}
.hero-floor::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 224, 212, 0.55), transparent);
}

/* Monitor mockup */
.monitor { margin: 0; position: relative; width: 100%; }
.monitor-frame {
  padding: clamp(3px, 0.55%, 7px); border-radius: clamp(10px, 1.6vw, 20px) clamp(10px, 1.6vw, 20px) clamp(8px, 1.2vw, 14px) clamp(8px, 1.2vw, 14px);
  background: linear-gradient(150deg, #f1f4f8 0%, #aab2bc 28%, #e4e8ed 52%, #8b949f 78%, #cfd5dc 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 60px -10px rgba(20, 196, 180, 0.22);
}
.monitor-glass { background: #010309; border-radius: clamp(8px, 1.3vw, 16px) clamp(8px, 1.3vw, 16px) clamp(6px, 1vw, 12px) clamp(6px, 1vw, 12px); padding: 2.2% 2.2% 0; overflow: hidden; }
.monitor-screen {
  position: relative; aspect-ratio: 16 / 10; width: 100%; min-height: 0; overflow: hidden; border-radius: 4px;
  background: linear-gradient(160deg, #0a1428, #050a16);
  box-shadow: 0 0 0 1px rgba(94, 224, 212, 0.12) inset, 0 0 40px rgba(20, 196, 180, 0.12);
}
.monitor-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 2; }
.monitor-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, transparent 32%, transparent 70%, rgba(255, 255, 255, 0.03) 100%); }
.monitor-chin { position: relative; height: 0; padding-bottom: 5.4%; background: #010309; }
.monitor-chin span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--mono); font-size: clamp(5px, 0.8vw, 9px); letter-spacing: 0.3em; text-transform: uppercase; color: rgba(230, 238, 248, 0.38);
}
.monitor-chin i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.monitor-neck {
  width: 17%; margin: -1px auto 0; padding-bottom: 10%;
  background: linear-gradient(90deg, #626b76 0%, #e9edf1 32%, #b4bcc5 62%, #5d6671 100%);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}
.monitor-foot {
  width: 36%; margin: -1px auto 0; padding-bottom: 1.8%; border-radius: 50% / 100% 100% 30% 30%;
  background: linear-gradient(90deg, #5d6671 0%, #dfe4e9 30%, #a9b1ba 64%, #535c67 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

/* ----- CSS fallback dashboard (all sizes in em; scales with the screen via cqw) ----- */
.dash {
  position: absolute; inset: 0; padding: 1.1em 1.2em 1em; display: flex; flex-direction: column; gap: 0.8em;
  font-size: 7px; line-height: 1.25; color: #cfe0f2; font-family: var(--body);
  background:
    radial-gradient(40em 20em at 90% -10%, rgba(20, 196, 180, 0.14), transparent 70%),
    linear-gradient(160deg, #0a1530, #060c1c);
}
@supports (font-size: 1cqw) { .dash { font-size: 1.28cqw; } }
.dash * { box-sizing: border-box; }
.dash-top { display: flex; justify-content: space-between; align-items: center; }
.dash-brand { display: flex; align-items: center; gap: 0.6em; }
.dash-brand img { width: 1.9em; height: 1.9em; }
.dash-brand b { font-family: var(--display); font-size: 1.5em; color: #fff; letter-spacing: -0.01em; }
.dash-brand u { text-decoration: none; color: var(--accent-hi); }
.dash-brand em { font-style: normal; font-size: 1em; color: #7f93ad; border-left: 1px solid rgba(255, 255, 255, 0.18); padding-left: 0.7em; margin-left: 0.2em; }
.dash-meta { display: flex; align-items: center; gap: 0.9em; font-family: var(--mono); font-size: 0.95em; color: #7f93ad; }
.dash-live { display: inline-flex; align-items: center; gap: 0.5em; color: #3fe08f; }
.dash-live i { width: 0.7em; height: 0.7em; }
.dash-av { width: 2em; height: 2em; border-radius: 0.5em; display: grid; place-items: center; background: rgba(20, 196, 180, 0.2); color: var(--accent-hi); font-weight: 700; font-size: 0.9em; }

.dash-grid {
  flex: 1; min-height: 0; display: grid; gap: 0.7em;
  grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: 1.15fr 1.55fr 1fr;
  grid-template-areas:
    "clk clk clk clk alr alr gau gau"
    "abk abk abk tre tre tre num num"
    "abk abk abk dep dep dep heat heat";
}
.dp {
  position: relative; min-width: 0; min-height: 0; overflow: hidden; padding: 0.7em 0.8em;
  border-radius: 0.7em; background: linear-gradient(180deg, rgba(20, 38, 74, 0.72), rgba(10, 20, 44, 0.78));
  border: 1px solid rgba(110, 160, 220, 0.16);
}
.dp h6 { margin: 0 0 0.55em; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-weight: 500; font-size: 0.82em; letter-spacing: 0.1em; text-transform: uppercase; color: #8aa0bd; }
.dp h6 small { font-size: 0.95em; padding: 0.15em 0.6em; border-radius: 99px; background: rgba(20, 196, 180, 0.18); color: var(--accent-hi); letter-spacing: 0.04em; }
.dp h6 em { font-style: normal; padding: 0.1em 0.6em; border-radius: 99px; background: rgba(232, 93, 93, 0.25); color: #ff8f8f; }
.dp-clk { grid-area: clk; } .dp-alr { grid-area: alr; } .dp-gau { grid-area: gau; }
.dp-abk { grid-area: abk; } .dp-tre { grid-area: tre; } .dp-num { grid-area: num; }
.dp-dep { grid-area: dep; } .dp-heat { grid-area: heat; }
.up { color: #3fe08f; } .dn { color: #ff6b82; }

/* clocks */
.clocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6em; height: calc(100% - 1.6em); }
.clk { position: relative; display: grid; justify-items: center; align-content: start; gap: 0.3em; padding-top: 0.1em; font-family: var(--mono); font-size: 0.78em; color: #9bb0cc; }
.clk::before { content: ""; width: 4.6em; height: 4.6em; border-radius: 50%; border: 0.2em solid #cfd7e2; background: radial-gradient(circle, #0b1730 0 55%, #07101f 100%); box-shadow: 0 0 1.4em rgba(20, 196, 180, 0.15); }
.clk:nth-child(n+3)::before { border-color: #3fe08f; box-shadow: 0 0 1.4em rgba(63, 224, 143, 0.35); }
.clk i { position: absolute; left: 50%; width: var(--w); height: var(--l); margin-left: calc(var(--w) / -2); top: calc(2.4em - var(--l)); transform-origin: 50% 100%; background: #e6eef7; border-radius: 1em; }
.clk i.h { --w: 0.26em; --l: 1.2em; transform: rotate(calc(var(--h, 300) * 1deg)); }
.clk i.m { --w: 0.18em; --l: 1.7em; transform: rotate(calc(var(--m, 60) * 1deg)); }
.clk i.s { --w: 0.09em; --l: 1.9em; background: var(--accent-hi); transform: rotate(calc(var(--s, 120) * 1deg)); }
.clk span { letter-spacing: 0.08em; color: #cfe0f2; }
.clk small { font-size: 0.85em; padding: 0 0.5em; border-radius: 0.4em; }
.clk small.open { background: rgba(63, 224, 143, 0.2); color: #3fe08f; } .clk small.closed { background: rgba(232, 93, 93, 0.22); color: #ff7b7b; }

/* alerts */
.alerts { display: grid; gap: 0.38em; font-family: var(--mono); font-size: 0.84em; }
.alerts li:nth-child(n+5) { display: none; }
.alerts li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6em; align-items: center; padding-bottom: 0.3em; border-bottom: 1px solid rgba(110, 160, 220, 0.1); }
.alerts time { color: #6f84a1; }
.tg { font-style: normal; font-size: 0.82em; padding: 0.1em 0.5em; border-radius: 0.3em; font-weight: 700; letter-spacing: 0.04em; }
.t-dis { background: #f0a53a; color: #2a1900; } .t-tox { background: #ff5d73; color: #2a0008; } .t-lnk { background: var(--accent-hi); color: #032a26; }

/* gauge */
.gauge { position: relative; width: 54%; margin: 0.3em auto 0; aspect-ratio: 2 / 1; overflow: hidden; }
.gauge::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 270deg at 50% 50%, #ff4d6a 0deg, #f0a53a 70deg, #3fe08f 140deg, #3fe08f 180deg, transparent 180deg);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 62%, #000 64%); mask-image: radial-gradient(circle closest-side, transparent 62%, #000 64%);
}
.needle { position: absolute; left: 50%; bottom: 0; width: 0.18em; height: 46%; margin-left: -0.09em; background: #fff; border-radius: 1em; transform-origin: 50% 100%; transform: rotate(52deg); animation: needle 5s ease-in-out infinite; }
@keyframes needle { 0%, 100% { transform: rotate(46deg); } 50% { transform: rotate(60deg); } }
.gauge-val { text-align: center; margin-top: 0.2em; }
.gauge-val b { display: block; font-family: var(--display); font-size: 1.9em; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.gauge-val small { font-size: 0.8em; color: #7f93ad; }

/* A / B */
.ab { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.7em; align-items: center; }
.ab-card { position: relative; padding: 0.6em 0.7em; border-radius: 0.6em; border: 1px solid; display: grid; gap: 0.1em; overflow: hidden; }
.ab-a { background: rgba(20, 100, 220, 0.18); border-color: rgba(70, 140, 255, 0.45); }
.ab-b { background: rgba(220, 40, 100, 0.16); border-color: rgba(255, 80, 130, 0.4); }
.ab-card small { font-family: var(--mono); font-size: 0.8em; letter-spacing: 0.1em; color: #9bb0cc; }
.ab-card b { font-family: var(--display); font-size: 1.75em; color: #fff; letter-spacing: -0.02em; line-height: 1.05; }
.ab-card em { font-style: normal; font-size: 0.85em; font-weight: 700; }
.ab-a em { color: #3fe08f; } .ab-b em { color: #ff6b82; }
.ab-card svg { width: 100%; height: 1.6em; margin-top: 0.2em; }
.ab-card path { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.ab-a path { stroke: #4aa0ff; } .ab-b path { stroke: #ff5d8f; }
.donut { --p: 38; position: relative; width: 6.2em; height: 6.2em; display: grid; place-items: center; filter: drop-shadow(0 0 0.8em rgba(59, 130, 246, 0.4)); }
.donut::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#3b82f6 calc(var(--p) * 1%), #ec3a7d 0);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 66%, #000 68%); mask-image: radial-gradient(circle closest-side, transparent 66%, #000 68%);
}
.donut span { position: relative; display: grid; text-align: center; line-height: 1.1; }
.donut b { font-family: var(--display); font-size: 1.5em; color: #fff; }
.donut small { font-family: var(--mono); font-size: 0.72em; color: #8aa0bd; }
.fin { width: 100%; margin-top: 0.6em; border-collapse: collapse; font-family: var(--mono); font-size: 0.82em; }
.fin th { text-align: right; font-weight: 500; font-size: 0.9em; letter-spacing: 0.1em; color: #6f84a1; padding: 0.3em 0.4em; border-bottom: 1px solid rgba(110, 160, 220, 0.18); }
.fin th:first-child, .fin td:first-child { text-align: left; color: #aebfd6; }
.fin td { text-align: right; padding: 0.38em 0.4em; border-bottom: 1px solid rgba(110, 160, 220, 0.08); }
.fin .sum td { font-weight: 700; background: rgba(110, 160, 220, 0.08); }

/* treemap */
.tree { display: grid; height: calc(100% - 1.6em); gap: 0.25em; grid-template-columns: 1.5fr 1.1fr 0.9fr; grid-template-rows: 1.2fr 1fr; grid-template-areas: "c1 c2 c2" "c4 c3 c5"; font-family: var(--mono); font-size: 0.8em; }
.tree span { padding: 0.45em 0.55em; border-radius: 0.3em; display: grid; align-content: start; gap: 0.2em; color: #fff; overflow: hidden; }
.tree small { font-size: 0.9em; opacity: 0.8; }
.tree .c1 { grid-area: c1; background: linear-gradient(140deg, #a83240, #7a1f2d); }
.tree .c2 { grid-area: c2; background: linear-gradient(140deg, #8d2a38, #6a1a27); }
.tree .c3 { grid-area: c3; background: linear-gradient(140deg, #1d8a5a, #146845); }
.tree .c4 { grid-area: c4; background: linear-gradient(140deg, #b4414a, #832a35); }
.tree .c5 { grid-area: c5; background: linear-gradient(140deg, #1a7a52, #115a3b); }
.tree .c6 { display: none; }

/* big numbers */
.dp-num .big { display: block; font-family: var(--display); font-size: 2.3em; line-height: 1; color: #b79bff; letter-spacing: -0.03em; text-shadow: 0 0 1em rgba(150, 110, 255, 0.45); margin: 0.1em 0 0.3em; }
.dp-num > small { font-family: var(--mono); font-size: 0.8em; color: #7f93ad; }
.num2 { margin-top: 0.7em; padding-top: 0.5em; border-top: 1px solid rgba(110, 160, 220, 0.14); display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 0.82em; color: #8aa0bd; }
.num2 b { font-family: var(--display); font-size: 2.4em; line-height: 1; color: var(--accent-hi); }

/* deposit/withdrawal bars */
.bars { display: flex; align-items: flex-end; gap: 0.28em; height: calc(100% - 1.6em); }
.bars i { flex: 1; height: var(--h); border-radius: 0.15em 0.15em 0 0; transform-origin: bottom; animation: bar-in 1.2s var(--ease) both, bar-bob 5s ease-in-out infinite; }
.bars i.u { background: linear-gradient(180deg, #3fe08f, #1a8a5a); }
.bars i.d { background: linear-gradient(180deg, #ff5d73, #9d2036); }
.bars i:nth-child(3n) { animation-delay: 0s, -1.2s; } .bars i:nth-child(3n+1) { animation-delay: 0s, -2.6s; }
@keyframes bar-in { from { transform: scaleY(0.1); } }
@keyframes bar-bob { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.88); } }

/* heatmap */
.heat { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25em; height: calc(100% - 1.6em); font-family: var(--mono); font-size: 0.74em; }
.heat span { display: grid; align-content: center; padding: 0.2em 0.45em; border-radius: 0.3em; color: #fff; font-weight: 700; }
.heat small { font-weight: 400; opacity: 0.85; }
.heat .g { background: linear-gradient(140deg, #1d8a5a, #146845); } .heat .r { background: linear-gradient(140deg, #b4414a, #832a35); }
.heat span:nth-child(n+5) { display: none; }

/* ==========================================================================
   Shared small bits
   ========================================================================== */
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--success); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 138, 0.6); } 100% { box-shadow: 0 0 0 12px rgba(63, 191, 138, 0); } }

/* Ticker strip  (motion system 2) — dense chips */
.ticker {
  position: relative; overflow: hidden; z-index: 2;
  border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 23, 48, 0.75), rgba(7, 11, 20, 0.85));
}
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex-shrink: 0; gap: 8px; padding: 10px 8px 10px 0; }
.tick {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; white-space: nowrap;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel);
  border: 1px solid var(--line); border-radius: 8px; background: rgba(15, 26, 46, 0.7);
}
.tick .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
.tick--warn .d { background: #f0a53a; box-shadow: 0 0 8px #f0a53a; }
.tick em { font-style: normal; color: #8b99b3; }
.tick b { font-size: 0.86rem; color: var(--accent-hi); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tick small { font-size: 0.66rem; letter-spacing: 0.04em; padding: 2px 6px; border-radius: 5px; background: rgba(230, 238, 248, 0.06); text-transform: none; }
.tick small.up { color: #3fe08f; } .tick small.dn { color: #ff7b8d; } .tick small.flat { color: #8b99b3; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Product tour
   ========================================================================== */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.tour-card {
  position: relative; padding: 30px 28px 34px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 30, 43, 0.7), rgba(14, 18, 24, 0.7));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.tour-card:hover { transform: translateY(-6px); border-color: rgba(20, 196, 180, 0.45); }
.tour-card .num { font-family: var(--display); font-size: 4.2rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(20, 196, 180, 0.55); }
.tour-card h3 { font-size: 1.5rem; margin: 18px 0 12px; }
.tour-card p { color: var(--bone-dim); }
.tour-card .tag { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.tour-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease);
}
.tour-card.in::after { transform: scaleX(1); transition-delay: 0.4s; }

/* ==========================================================================
   Modules
   ========================================================================== */
.anchor { position: absolute; top: -90px; visibility: hidden; }
.modules { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; align-items: start; }
.tablist { display: grid; gap: 6px; position: sticky; top: calc(var(--header-h) + 20px); }
.tab {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1px solid transparent; transition: background 0.25s, border-color 0.25s;
}
.tab:hover { background: rgba(230, 238, 248, 0.04); }
.tab-num { font-family: var(--mono); font-size: 0.78rem; color: var(--steel); transition: color 0.25s; }
.tab strong { display: block; font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.tab small { display: block; color: var(--steel); font-size: 0.82rem; line-height: 1.35; margin-top: 2px; }
.tab[aria-selected="true"] { background: var(--accent-soft); border-color: rgba(20, 196, 180, 0.45); }
.tab[aria-selected="true"] .tab-num { color: var(--accent-hi); }

.module-panel {
  border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden;
  background: linear-gradient(170deg, rgba(23, 30, 43, 0.92), rgba(14, 18, 24, 0.96));
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}
.panel-head { padding: 30px 32px 22px; }
.panel-head .kicker { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.panel-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 10px 0 12px; }
.panel-head .lede { color: var(--bone-dim); max-width: 64ch; }
.panel-bullets { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; }
.panel-bullets li { font-size: 0.84rem; color: var(--bone-dim); padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.panel-head > * { transition: opacity 0.25s, transform 0.35s var(--ease); }
.module-panel.is-swapping .panel-head > * { opacity: 0; transform: translateY(8px); }

.demo-stage {
  position: relative; min-height: 400px; padding: 22px 32px 28px;
  border-block: 1px solid var(--line); background: rgba(7, 9, 13, 0.55);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.module-panel.is-swapping .demo-stage { opacity: 0; transform: translateY(12px); }
.demo-note { position: absolute; right: 18px; top: 8px; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.panel-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 32px; }
.panel-cta p { color: var(--bone-dim); font-size: 0.96rem; }
.panel-cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- shared demo atoms ---------- */
.d-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(18, 24, 35, 0.7); }
.kpi span { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.kpi b { font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi b.up { color: var(--success); }
.kpi b.warn { color: var(--accent-hi); }
.kpi b.bad { color: var(--danger); }

.d-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18, 24, 35, 0.75); }
.d-card h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); font-weight: 500; margin-bottom: 10px; }
.mono { font-family: var(--mono); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid currentColor; }
.pill.bad { color: var(--danger); } .pill.warn { color: var(--accent-hi); } .pill.ok { color: var(--success); } .pill.dim { color: var(--steel); }

.btn-mini {
  min-height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 0.82rem; font-weight: 600;
  background: transparent; border: 1px solid var(--line-strong); transition: background 0.2s, border-color 0.2s;
}
.btn-mini:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-mini.primary { background: var(--accent); color: #04201d; border-color: transparent; }
.btn-mini.primary:hover { background: var(--accent-hi); }
.btn-mini[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hi); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Demo 1: risk map ---------- */
.d-risk { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.d-risk .d-kpis { grid-column: 1 / -1; margin-bottom: 0; }
.risk-map svg { width: 100%; height: auto; }
.risk-map .link { stroke: rgba(139, 147, 167, 0.28); stroke-width: 1.5; stroke-dasharray: 4 5; transition: stroke 0.5s; }
.risk-map .link.on { stroke: var(--accent); stroke-dasharray: none; }
.risk-map .link.pulse { stroke: var(--accent-hi); stroke-width: 3; stroke-dasharray: 10 90; animation: travel 1s linear; }
@keyframes travel { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.risk-map .hub { fill: #12203a; stroke: var(--accent); stroke-width: 2; }
.risk-map .hub-halo { fill: none; stroke: var(--accent); opacity: 0.35; transform-origin: 260px 150px; animation: halo 2.6s ease-out infinite; }
@keyframes halo { from { transform: scale(0.9); opacity: 0.5; } to { transform: scale(1.7); opacity: 0; } }
.risk-map .hub-text { fill: var(--accent-hi); font-family: var(--display); font-weight: 800; font-size: 13px; text-anchor: middle; }
.risk-map .node circle { fill: #0f1a2e; stroke: rgba(139, 147, 167, 0.5); stroke-width: 2; transition: stroke 0.4s, fill 0.4s, filter 0.4s; }
.risk-map .node.on circle { stroke: var(--success); fill: rgba(63, 191, 138, 0.14); filter: drop-shadow(0 0 8px rgba(63, 191, 138, 0.6)); }
.risk-map .node text { fill: var(--bone-dim); font-size: 11px; text-anchor: middle; font-family: var(--body); font-weight: 600; }
.risk-map .node .sub { fill: var(--steel); font-size: 9.5px; font-family: var(--mono); font-weight: 400; }
.risk-log { font-family: var(--mono); font-size: 0.76rem; color: var(--steel); display: grid; gap: 8px; align-content: start; min-height: 120px; }
.risk-log li { display: flex; gap: 8px; animation: slideIn 0.4s var(--ease); }
.risk-log li b { color: var(--success); font-weight: 500; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Demo 2: linked graph ---------- */
.d-linked { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.graph-wrap { grid-column: 1; }
.graph-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.graph-tools span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-right: 4px; }
.graph svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(18, 24, 35, 0.5); }
.graph .edge { stroke: rgba(139, 147, 167, 0.55); stroke-width: 1.6; opacity: 0; animation: fadeIn 0.7s var(--ease) forwards; transition: stroke 0.3s, stroke-width 0.3s; }
.graph .edge.t-ip { stroke-dasharray: 6 5; }
.graph .edge.t-funding { stroke-dasharray: 1.5 5; stroke-linecap: round; stroke-width: 2.4; }
.graph .edge.hl { stroke: var(--accent-hi); stroke-width: 2.4; }
.graph .edge.off { display: none; }
@keyframes fadeIn { to { opacity: 1; } }
.graph .gnode { cursor: pointer; outline: none; }
.graph .gnode circle.body { fill: #0f1a2e; stroke-width: 2.5; transition: transform 0.3s var(--ease); transform-box: fill-box; transform-origin: center; }
.graph .gnode.r-high circle.body { stroke: var(--danger); }
.graph .gnode.r-mid circle.body { stroke: var(--accent); }
.graph .gnode.r-low circle.body { stroke: var(--success); }
.graph .gnode.sel circle.body, .graph .gnode:hover circle.body { transform: scale(1.18); fill: #1d2536; }
.graph .gnode:focus-visible circle.body { stroke: var(--bone); }
.graph .gnode text { fill: var(--bone-dim); font-family: var(--mono); font-size: 9.5px; text-anchor: middle; pointer-events: none; }
.graph .gnode .score { fill: var(--bone); font-family: var(--display); font-weight: 700; font-size: 12px; }
.graph .legend text { fill: var(--steel); font-size: 9.5px; font-family: var(--mono); }
.acct-card .score-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.acct-card .big { font-family: var(--display); font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1; }
.meter { height: 6px; background: rgba(230, 238, 248, 0.1); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.meter i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width 0.8s var(--ease), background 0.4s; }
.reason-list { display: grid; gap: 7px; margin: 12px 0 14px; font-size: 0.88rem; color: var(--bone-dim); }
.reason-list li { display: flex; gap: 8px; align-items: center; }
.reason-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.acct-card .links { font-family: var(--mono); font-size: 0.74rem; color: var(--steel); margin-bottom: 12px; }
.acct-card .note { margin-top: 10px; font-size: 0.84rem; color: var(--success); min-height: 1.3em; }

/* ---------- Demo 3: toxic feed ---------- */
.d-toxic { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.feed-row .pill { white-space: nowrap; font-size: 0.6rem; padding: 1px 7px; }
.feed-head, .feed-row { display: grid; grid-template-columns: 58px 58px 62px 38px 48px 54px minmax(96px, 1fr); gap: 8px; align-items: center; padding: 9px 12px; font-family: var(--mono); font-size: 0.76rem; }
.feed-head { color: var(--steel); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.64rem; border-bottom: 1px solid var(--line); }
.feed-body { display: grid; min-height: 296px; align-content: start; }
.feed-row { border-bottom: 1px solid rgba(230, 238, 248, 0.05); animation: rowIn 0.5s var(--ease); color: var(--bone-dim); }
.feed-row.flag { background: linear-gradient(90deg, rgba(232, 93, 93, 0.14), transparent); color: var(--bone); }
.feed-row .pnl.pos { color: var(--success); } .feed-row .pnl.neg { color: var(--danger); }
.feed-row .side.buy { color: var(--success); } .feed-row .side.sell { color: var(--danger); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-12px); background: var(--accent-soft); } to { opacity: 1; transform: none; } }
.feed-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: var(--mono); font-size: 0.72rem; color: var(--steel); }
.feed-meta b { color: var(--bone); }
.incident { border-color: rgba(232, 93, 93, 0.5); background: linear-gradient(180deg, rgba(232, 93, 93, 0.1), rgba(18, 24, 35, 0.8)); animation: rowIn 0.6s var(--ease); }
.incident.is-idle { border-color: var(--line); background: rgba(18, 24, 35, 0.75); animation: none; }
.incident h5 { font-family: var(--display); font-size: 1.15rem; margin: 6px 0 12px; }
.incident dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 0.86rem; }
.incident dt { color: var(--steel); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; align-self: center; }
.incident dd { margin: 0; }
.incident .idle-msg { color: var(--steel); font-size: 0.9rem; padding: 14px 0; }

/* ---------- Demo 4: A/B book ---------- */
.d-book { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; }
.profile-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat-grid div { padding: 10px 12px; border-radius: 10px; background: rgba(7, 9, 13, 0.55); border: 1px solid var(--line); }
.stat-grid span { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.stat-grid b { font-family: var(--display); font-size: 1.15rem; }
.profile-note { font-size: 0.88rem; color: var(--bone-dim); }
.route-out { display: grid; align-content: start; gap: 16px; }
.route-big { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.1; }
.route-big em { font-family: var(--body); color: var(--accent-hi); font-weight: 600; }
.route-bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); }
.route-bar div { display: flex; align-items: center; padding: 0 12px; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; transition: width 0.7s var(--ease); }
.route-bar .a { background: linear-gradient(90deg, var(--accent), var(--accent-hi)); color: #04201d; }
.route-bar .b { background: rgba(139, 147, 167, 0.28); color: var(--bone); justify-content: flex-end; }
.slider-wrap label { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 10px; color: var(--bone-dim); }
.slider-wrap label b { color: var(--accent-hi); font-family: var(--mono); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), rgba(230, 238, 248, 0.14) var(--fill, 50%)); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-hi); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent), 0 4px 14px rgba(0, 0, 0, 0.6); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-hi); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); cursor: grab; }
.slider-ends { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.proj { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px dashed var(--line); }
.proj span { color: var(--bone-dim); font-size: 0.9rem; }
.proj b { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.proj b.pos { color: var(--success); } .proj b.neg { color: var(--danger); }
.rationale { font-size: 0.9rem; color: var(--bone-dim); }

/* ---------- Demo 5: exposure ---------- */
.d-exp { display: grid; gap: 14px; }
.alert-slot { min-height: 74px; }
.alert { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(232, 93, 93, 0.55); background: linear-gradient(90deg, rgba(232, 93, 93, 0.16), rgba(18, 24, 35, 0.7)); animation: rowIn 0.5s var(--ease); }
.alert strong { font-family: var(--display); }
.alert p { font-size: 0.88rem; color: var(--bone-dim); margin-top: 2px; }
.alert.ok { border-color: rgba(63, 191, 138, 0.5); background: linear-gradient(90deg, rgba(63, 191, 138, 0.12), rgba(18, 24, 35, 0.7)); }
.alert.idle { border-color: var(--line); background: rgba(18, 24, 35, 0.6); animation: none; color: var(--steel); }
.exp-rows { display: grid; gap: 11px; }
.exp-row { display: grid; grid-template-columns: 76px 1fr 130px; gap: 14px; align-items: center; font-family: var(--mono); font-size: 0.78rem; }
.exp-row .sym { font-weight: 600; color: var(--bone); }
.exp-track { position: relative; height: 16px; border-radius: 4px; background: rgba(230, 238, 248, 0.07); overflow: visible; }
.exp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--steel); transition: width 0.7s var(--ease), background 0.3s; }
.exp-fill.mid { background: var(--accent); } .exp-fill.hi { background: var(--danger); box-shadow: 0 0 14px rgba(232, 93, 93, 0.6); }
.exp-limit { position: absolute; top: -4px; bottom: -4px; left: 83.33%; width: 2px; background: var(--bone); opacity: 0.55; }
.exp-val { text-align: right; color: var(--bone-dim); font-variant-numeric: tabular-nums; }
.exp-legend { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); display: flex; gap: 18px; flex-wrap: wrap; }
.exp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Demo 6: revenue ---------- */
.d-rev { display: grid; gap: 14px; }
.rev-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.rev-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.rev-table th, .rev-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid rgba(230, 238, 248, 0.06); font-variant-numeric: tabular-nums; }
.rev-table th:first-child, .rev-table td:first-child { text-align: left; }
.rev-table th { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); font-weight: 500; background: rgba(18, 24, 35, 0.7); }
.rev-table tbody tr { transition: background 0.3s; }
.rev-table tbody tr.top { background: var(--accent-soft); }
.rev-table td.neg { color: var(--danger); } .rev-table td.pos { color: var(--bone); }
.rev-table td.total { font-weight: 700; color: var(--accent-hi); font-family: var(--display); }
.rev-table tfoot td { font-weight: 700; background: rgba(18, 24, 35, 0.7); border-bottom: 0; }
.rev-table .rowname small { display: block; color: var(--steel); font-size: 0.74rem; font-weight: 400; }
.mix { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.mix i { display: block; transition: width 0.8s var(--ease); }
.mix-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--steel); text-transform: uppercase; margin-top: 8px; }
.mix-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: var(--c); }

/* ---------- Demo 7: transfers ---------- */
.d-xfer { display: grid; gap: 16px; }
.xfer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.xfer-legend { display: flex; gap: 16px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.xfer-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--c); }
.tl { display: grid; gap: 18px; }
.tl-row { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; }
.tl-row .who { font-family: var(--mono); font-size: 0.8rem; color: var(--bone-dim); }
.tl-track { position: relative; height: 44px; border-radius: 8px; background: rgba(230, 238, 248, 0.05); }
.seg {
  position: absolute; top: 0; bottom: 0; border: 0; padding: 0 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: #10131a; overflow: hidden;
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease), filter 0.2s, outline 0.2s;
  outline: 2px solid transparent; outline-offset: 2px;
}
.seg.is-in { transform: scaleX(1); }
.seg:hover { filter: brightness(1.15); }
.seg.sel { outline-color: var(--bone); }
.seg.A { background: var(--accent); } .seg.B { background: var(--steel); } .seg.R { background: var(--danger); }
.tl-axis { display: grid; grid-template-columns: 74px 1fr; gap: 14px; }
.tl-axis div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.64rem; color: var(--steel); letter-spacing: 0.06em; }
.xfer-detail { min-height: 70px; }
.xfer-detail p { color: var(--bone-dim); font-size: 0.92rem; margin-top: 6px; }

/* ---------- Demo 8: report builder ---------- */
.d-rep { display: grid; grid-template-columns: 0.95fr 1.2fr; gap: 16px; align-items: start; }
.cfg { display: grid; gap: 14px; }
.field-l { display: grid; gap: 6px; font-size: 0.82rem; color: var(--steel); font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.fi, select.fi {
  width: 100%; min-height: 42px; padding: 0 14px; border-radius: 10px;
  background: rgba(7, 9, 13, 0.7); border: 1px solid var(--line-strong); color: var(--bone);
  font-family: var(--body); font-size: 0.95rem; letter-spacing: 0; text-transform: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fi:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.fi { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 20px) 18px, calc(100% - 15px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.fi option { background: #10151d; }
.checks { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.checks legend { font-size: 0.82rem; color: var(--steel); font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--bone-dim); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-strong); background: rgba(7, 9, 13, 0.7); display: grid; place-content: center; cursor: pointer; flex-shrink: 0; }
.check input::after { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); transform: scale(0); transition: transform 0.18s var(--ease); }
.check input:checked::after { transform: scale(1); }
.check input:checked { border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc { background: #f1ede4; color: #15181f; border-radius: 10px; padding: 22px 24px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8); min-height: 340px; animation: docIn 0.5s var(--ease); }
@keyframes docIn { from { opacity: 0.4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid #15181f; padding-bottom: 12px; margin-bottom: 14px; }
.doc-head h5 { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.01em; }
.doc-head small { display: block; font-family: var(--mono); font-size: 0.68rem; color: #5a6070; margin-top: 4px; }
.doc-logo { font-family: var(--display); font-weight: 800; font-size: 0.8rem; color: #b9722a; white-space: nowrap; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.doc th, .doc td { padding: 7px 6px; text-align: right; border-bottom: 1px solid #d8d2c4; font-variant-numeric: tabular-nums; }
.doc th:first-child, .doc td:first-child { text-align: left; }
.doc th { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #5a6070; }
.doc .bars { display: grid; gap: 6px; margin-top: 16px; }
.doc .bars div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: center; font-family: var(--mono); font-size: 0.66rem; color: #5a6070; }
.doc .bars i { display: block; height: 10px; background: #c9822f; border-radius: 2px; transition: width 0.5s var(--ease); }
.doc .empty { padding: 40px 0; text-align: center; color: #5a6070; font-size: 0.9rem; }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(14, 18, 24, 0.6); }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.04em; line-height: 1; color: var(--accent-hi); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; color: var(--bone-dim); font-size: 0.95rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 30px); }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; letter-spacing: 0; font-family: var(--body); font-weight: 600; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 1.12rem; font-weight: 600; transition: color 0.2s;
}
.faq-q:hover { color: var(--accent-hi); }
.faq-q .plus { position: relative; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease); }
.faq-q[aria-expanded="true"] .plus { background: var(--accent); border-color: var(--accent); color: #04201d; transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding: 0 48px 26px 4px; color: var(--bone-dim); max-width: 64ch; }
.js .faq-a { grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.js .faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ==========================================================================
   CTA band + footer
   ========================================================================== */
.cta-band { padding: clamp(40px, 6vw, 72px); border-radius: 28px; text-align: center; position: relative; overflow: hidden; border: 1px solid rgba(20, 196, 180, 0.35); background: radial-gradient(600px 300px at 50% 0%, rgba(20, 196, 180, 0.2), transparent 70%), linear-gradient(180deg, #10203a, #0b1730); }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; margin: 18px auto 18px; }
.cta-band p { max-width: 52ch; margin: 0 auto; color: var(--bone-dim); font-size: 1.1rem; }
.cta-band .cta-group { justify-content: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.25; mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }

.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; margin-top: 40px; background: rgba(7, 9, 13, 0.7); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr 1.4fr; gap: 40px; }
.foot-grid p { color: var(--steel); font-size: 0.94rem; margin-top: 16px; max-width: 34ch; }
.foot-grid .foot-product { margin-top: 12px; font-size: 0.86rem; color: var(--bone-dim); }
.foot-grid .foot-product strong { color: var(--bone); font-weight: 600; }
.foot-info address { font-style: normal; display: grid; gap: 8px; color: var(--steel); font-size: 0.9rem; line-height: 1.5; }
.foot-info address strong { color: var(--bone); font-weight: 600; font-size: 0.95rem; }
.foot-info address a { font-size: 0.9rem; }
.foot-grid h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; font-weight: 500; }
.foot-grid li + li { margin-top: 10px; }
.foot-grid a { text-decoration: none; color: var(--bone-dim); font-size: 0.95rem; transition: color 0.2s; }
.foot-grid a:hover { color: var(--accent-hi); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--steel); font-size: 0.84rem; }

/* ==========================================================================
   Inner pages + forms
   ========================================================================== */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(24px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); margin: 20px 0 20px; max-width: 18ch; }
.page-hero p { font-size: 1.2rem; color: var(--bone-dim); max-width: 58ch; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 30, 43, 0.7), rgba(14, 18, 24, 0.7)); }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--bone-dim); }
.split-page { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose p { color: var(--bone-dim); margin-bottom: 18px; max-width: 62ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 20px; }
.steps { display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; color: var(--accent); padding-top: 3px; }
.steps strong { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 4px; }
.steps span { color: var(--bone-dim); font-size: 0.95rem; }

.form-card { padding: clamp(24px, 4vw, 40px); border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(170deg, rgba(23, 30, 43, 0.92), rgba(14, 18, 24, 0.96)); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.fld { display: grid; gap: 7px; }
.fld label { font-size: 0.88rem; font-weight: 600; }
.fld label .req { color: var(--accent-hi); }
.fld textarea.fi { min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.fld .err { min-height: 1.1em; font-size: 0.8rem; color: var(--danger); }
.fld .fi[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--bone-dim); }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.form-actions small { color: var(--steel); font-size: 0.82rem; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success[hidden] { display: none; }
.form-success .tick-ring { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; border: 2px solid var(--success); display: grid; place-content: center; color: var(--success); font-size: 1.8rem; animation: pop 0.6s var(--ease); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.form-success h2 { font-size: 1.8rem; margin-bottom: 12px; }
.form-success p { color: var(--bone-dim); max-width: 44ch; margin: 0 auto 20px; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-list h3 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 6px; }
.contact-list a { font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent-hi); }
.contact-list p { color: var(--steel); font-size: 0.9rem; margin-top: 2px; }
.contact-list address { font-style: normal; color: var(--bone); font-size: 1.02rem; line-height: 1.5; }

/* Toast */
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 950; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 14px 18px; border-radius: 12px; background: #10203a; border: 1px solid rgba(63, 191, 138, 0.5); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8); font-size: 0.92rem; animation: toastIn 0.5s var(--ease); }
.toast.out { opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Scroll reveal  (motion system 3)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 720px; }
  .hero-stage { width: min(100%, 760px); margin-inline: auto; }
  .hero-rings { top: -200px; right: -260px; }
  .modules { grid-template-columns: 1fr; }
  .tablist { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .tab { flex: 0 0 auto; min-width: 230px; scroll-snap-align: start; border-color: var(--line); }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { position: static; margin-bottom: 20px; }
  .d-risk, .d-linked, .d-toxic, .d-book, .d-rep { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px; background: rgba(7, 9, 13, 0.97); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav-list.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-link, .menu-btn { width: 100%; justify-content: space-between; min-height: 48px; }
  .menu { position: static; width: auto; margin: 0; max-height: 0; padding: 0; overflow: hidden; border: 0; box-shadow: none; transform: none; grid-template-columns: 1fr; background: transparent; transition: max-height 0.4s var(--ease), opacity 0.25s; }
  .menu.is-open { max-height: 760px; padding: 4px 0 8px; }
  .nav-list .btn { width: 100%; margin-top: 8px; }
  .tour-grid, .cards-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand, .foot-info { grid-column: 1 / -1; }
  .split-page { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-stage { padding-bottom: 40px; }
  .monitor-rig { transform: none; }
  .tick { padding: 6px 10px; }
  .panel-head, .demo-stage, .panel-cta { padding-left: 18px; padding-right: 18px; }
  .d-kpis { grid-template-columns: 1fr 1fr; }
  .feed-head, .feed-row { grid-template-columns: 56px 60px 34px 44px 1fr; gap: 6px; padding-inline: 8px; font-size: 0.7rem; }
  .feed-head > :nth-child(1), .feed-row > :nth-child(1),
  .feed-head > :nth-child(7), .feed-row > :nth-child(7) { display: none; }
  .demo-note { position: static; text-align: right; margin: -8px 0 8px; }
  .feed-meta { flex-wrap: wrap; gap: 8px; }
  .alert { padding: 12px 14px; }
  .proj b { font-size: 1.25rem; }
  .exp-row { grid-template-columns: 56px 1fr 104px; gap: 8px; font-size: 0.68rem; }
  .exp-val { white-space: nowrap; }
  .form-grid, .two { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-group .btn { flex: 1 1 100%; }
  .tl-row, .tl-axis { grid-template-columns: 56px 1fr; gap: 8px; }
  .stat { padding: 24px 18px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { max-width: none; }
  .hero-stage { width: min(100%, 640px); margin-inline: auto; }
}

/* ==========================================================================
   Reduced motion: strip decorative animation, keep state changes instant
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track { animation: none !important; flex-wrap: wrap; width: auto; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .ticker::before, .ticker::after { display: none; }
  .boot-scan, .boot-scanline, .br-sweep, .boot-rings i { display: none; }
  .hero-rings i, .bars i, .needle { animation: none !important; }
  .monitor-rig { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .graph .edge { opacity: 1; }
  .seg { transform: scaleX(1); }
}

.modules { scroll-margin-top: 90px; }
form[hidden] { display: none; }

.fld label.consent { font-weight: 400; }

@media (max-height: 720px) {
  .js:not(.no-boot) .boot { align-items: start; overflow-y: auto; }
  .boot-inner { gap: 14px; }
  .plate-head, .boot-list li:nth-child(n+5) { display: none; }
  .boot-logo { padding: 12px 0; }
}
