:root {
  --header-height: 76px;
  --page-height: calc(100dvh - var(--header-height));
  --bg: #05060f;
  --bg-2: #0b0d1f;
  --surface: rgba(14, 16, 34, .74);
  --surface-2: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eaf6fb;
  --muted: #a7c0d2;
  --mint: #8b7bff;
  --blue: #2dd4ee;
  --gold: #f0659e;
  --accent: #8b7bff;
  --accent-2: #2dd4ee;
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: none;
}

body {
  margin: 0;
  position: relative;
  background:
    radial-gradient(circle at 8% 5%, rgba(139, 123, 255, .15), transparent 30%),
    radial-gradient(circle at 92% 2%, rgba(45, 212, 238, .14), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(240, 101, 158, .07), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 0, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 0, #000 20%, transparent 75%);
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.background-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .35;
}

.orb.one { width: 480px; height: 480px; top: -140px; left: -120px; background: var(--mint); }
.orb.two { width: 520px; height: 520px; top: 60px; right: -160px; background: var(--blue); }
.orb.three { width: 460px; height: 460px; bottom: -180px; left: 30%; background: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(4, 16, 28, .72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}

.nav a:hover { color: var(--text); }

.nav-item.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s;
}

.dropdown-toggle:hover { color: var(--text); }

.dcaret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .2s;
}

.dropdown.open .dcaret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 230px;
  padding: 8px;
  display: none;
  flex-direction: column;
  background: #08131f;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  z-index: 50;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.dropdown.open .dropdown-menu { display: flex; }

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.dropdown-menu a[aria-current="page"] { color: var(--mint); }

@media (hover: hover) and (min-width: 1181px) {
  .dropdown:hover > .dropdown-menu,
  .dropdown:focus-within > .dropdown-menu { display: flex; }
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.primary, .outline, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}

.primary {
  color: #04101c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 40px rgba(139, 123, 255, .22);
}

.primary:hover { transform: translateY(-1px); box-shadow: 0 20px 50px rgba(139, 123, 255, .3); }

.outline {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
}

.outline:hover { background: rgba(255,255,255,.08); }

.ghost { color: var(--muted); background: transparent; }
.ghost:hover { color: var(--text); }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

:is(a, button):focus-visible {
  outline: 3px solid rgba(139, 123, 255, .4);
  outline-offset: 3px;
}

.hero { padding: 96px 0 64px; }

main > section {
  position: relative;
  min-height: 0;
  padding: 84px 0;
  overflow: visible;
  scroll-margin-top: var(--header-height);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 123, 255, .35);
  background: rgba(139, 123, 255, .08);
  color: #9df5d9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(139, 123, 255, .16);
}

h1 {
  margin: 24px 0 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(46px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
}

.gradient {
  background: linear-gradient(90deg, #8b7bff, #2dd4ee 58%, #f0659e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.cta-row.center { justify-content: center; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.metric-strip > div {
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  text-align: center;
}

.metric-strip span {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.metric-strip small { color: var(--muted); font-size: 12px; }

.hero-visual { position: relative; }

.cockpit {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 18, 40, .88), rgba(7, 8, 18, .92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  backdrop-filter: blur(16px);
}

.cockpit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,123,255,.4), transparent 45%, rgba(45,212,238,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cockpit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.cockpit-head small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cockpit-head strong {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(139, 123, 255, .12);
  color: #9df5d9;
  font-size: 12px;
  font-weight: 700;
}

.live-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 123, 255, .5); }
  70% { box-shadow: 0 0 0 10px rgba(139, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 123, 255, 0); }
}

.chart {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}

.chart svg { display: block; width: 100%; height: auto; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.kpi {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.kpi small { color: var(--muted); font-size: 11px; }
.kpi strong { display: block; margin: 4px 0; color: #fff; font-size: 19px; font-weight: 800; }
.kpi span { color: var(--muted); font-size: 12px; }

.agent-log {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.log-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}

.log-item span {
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
}

.log-item p { margin: 0; color: var(--muted); font-size: 13px; }

.section { padding: 90px 0; }
.section.alt { background: rgba(255,255,255,.02); border-block: 1px solid var(--line); }

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}


h2 {
  margin: 14px 0 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.section-head p { color: var(--muted); font-size: 17px; }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.section-link::after {
  content: "→";
  transition: transform .2s;
}

.section-link:hover::after { transform: translateX(4px); }

.module-main {
  padding-top: calc(var(--header-height, 76px) + 40px);
}

.module-hero {
  padding: 40px 0 24px;
}

.module-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}

.module-hero h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.case-hero {
  text-align: center;
}

.case-hero-inner {
  max-width: 980px;
  margin-inline: auto;
}

.case-hero .pill {
  margin-inline: auto;
}

.case-hero h1 {
  max-width: 900px;
  margin-inline: auto;
}

.case-hero p {
  max-width: 760px;
  margin-inline: auto;
}

.module-panel {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
}

.module-panel small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.module-panel strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}

.module-panel p { margin: 0; color: var(--muted); font-size: 14px; }

/* Module-specific narrative systems */
.page-onboarding {
  --module-accent: #8b7bff;
  --module-accent-soft: rgba(139, 123, 255, .18);
  --module-accent-border: rgba(139, 123, 255, .42);
}

.page-research {
  --module-accent: #2dd4ee;
  --module-accent-soft: rgba(45, 212, 238, .18);
  --module-accent-border: rgba(45, 212, 238, .42);
}

.page-trading {
  --module-accent: #f0659e;
  --module-accent-soft: rgba(240, 101, 158, .16);
  --module-accent-border: rgba(240, 101, 158, .4);
}

.page-sandbox {
  --module-accent: #a78bfa;
  --module-accent-soft: rgba(167, 139, 250, .18);
  --module-accent-border: rgba(167, 139, 250, .42);
}

.page-data {
  --module-accent: #22d3ee;
  --module-accent-soft: rgba(34, 211, 238, .18);
  --module-accent-border: rgba(34, 211, 238, .42);
}

.module-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.page-onboarding .module-hero {
  background: radial-gradient(circle at 10% 10%, var(--module-accent-soft), transparent 34%);
}

.page-research .module-hero {
  background: radial-gradient(circle at 88% 4%, var(--module-accent-soft), transparent 36%);
}

.page-trading .module-hero {
  background: radial-gradient(circle at 75% 18%, var(--module-accent-soft), transparent 36%);
}

.page-sandbox .module-hero {
  background: radial-gradient(circle at 12% 78%, var(--module-accent-soft), transparent 36%);
}

.page-data .module-hero {
  background: radial-gradient(circle at 86% 78%, var(--module-accent-soft), transparent 36%);
}

.page-onboarding .section-head::before,
.page-research .section-head::before,
.page-trading .section-head::before,
.page-sandbox .section-head::before,
.page-data .section-head::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--module-accent);
}

.page-onboarding .card,
.page-research .card,
.page-trading .card,
.page-sandbox .card,
.page-data .card {
  border-top: 2px solid var(--module-accent-border);
}

.page-onboarding .workflow-step span,
.page-research .workflow-step span,
.page-trading .workflow-step span,
.page-sandbox .workflow-step span,
.page-data .workflow-step span {
  color: var(--module-accent);
}

.module-visual {
  position: relative;
  overflow: hidden;
  align-self: center;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--module-accent-border);
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01)),
    rgba(5, 18, 29, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.module-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 82% 0%, var(--module-accent-soft), transparent 42%);
  pointer-events: none;
}

.module-visual > * { position: relative; z-index: 1; }

.module-scene {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 45%);
}

.module-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .55;
  pointer-events: none;
}

.scene-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 52px;
  align-items: center;
}

.scene-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--module-accent-border);
  border-radius: 999px;
  background: var(--module-accent-soft);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.scene-copy h2 {
  margin: 20px 0 14px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.scene-copy p {
  max-width: 56ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}

.scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scene-chips span {
  padding: 8px 13px;
  border: 1px solid var(--module-accent-border);
  border-radius: 999px;
  background: var(--module-accent-soft);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.scene-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--module-accent-border);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01)),
    rgba(5,18,29,.85);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scene-panel svg { display: block; width: 100%; height: auto; }

.scene-onboarding::before {
  background-image:
    linear-gradient(90deg, rgba(139,123,255,.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(139,123,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 55% 45%, black, transparent 72%);
}

.scene-research::before {
  background-image: radial-gradient(circle, rgba(45,212,238,.24) 1px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
}

.scene-trading::before {
  background-image:
    linear-gradient(180deg, rgba(240,101,158,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,101,158,.08) 1px, transparent 1px);
  background-size: 48px 26px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.scene-sandbox::before {
  background-image:
    linear-gradient(90deg, rgba(167,139,250,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(167,139,250,.08) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(90deg, black 12%, transparent 82%);
}

.scene-data::before {
  background-image: radial-gradient(circle, rgba(34,211,238,.16) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 75%);
}

.scene-panel-terminal {
  padding: 14px;
  background: rgba(4,16,28,.9);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}

.terminal-bar span:first-child { background: rgba(255,107,107,.65); }
.terminal-bar span:nth-child(2) { background: rgba(255,201,72,.65); }
.terminal-bar span:nth-child(3) { background: rgba(139,123,255,.65); }

.terminal-body {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
}

.terminal-body p { margin: 0 0 12px; color: #fff; }
.terminal-body p:last-child { margin-bottom: 0; }
.terminal-body span { color: var(--module-accent); font-weight: 800; }
.terminal-body .ok { color: #a7f3d0; }
.terminal-body .muted { color: rgba(234,246,251,.55); font-size: 13px; }

.visual-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.visual-head small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.visual-head strong {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
}

.visual-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Onboarding material */
.signal-list { display: grid; gap: 10px; }

.signal-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}

.signal-row span {
  color: var(--module-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.signal-row strong { color: #fff; font-size: 14px; font-weight: 600; }
.signal-row em { color: var(--module-accent); font-size: 12px; font-weight: 800; font-style: normal; }

.visual-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.visual-progress span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.visual-progress .active {
  border-color: var(--module-accent-border);
  background: var(--module-accent-soft);
  color: #fff;
  font-weight: 700;
}

/* Research material */
.citation-list { display: grid; gap: 10px; }

.citation {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}

.citation span {
  align-self: start;
  padding: 5px 8px;
  border: 1px solid var(--module-accent-border);
  border-radius: 999px;
  background: var(--module-accent-soft);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.citation p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.visual-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--module-accent-border);
  border-radius: 16px;
  background: var(--module-accent-soft);
}

.visual-score span { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.visual-score strong { color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 24px; }

/* Trading material */
.signal-canvas {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4,16,28,.55);
  overflow: hidden;
}

.signal-canvas svg { display: block; width: 100%; height: auto; }

.threshold-label {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 5px 9px;
  border: 1px solid rgba(240,101,158,.4);
  border-radius: 999px;
  background: rgba(240,101,158,.12);
  color: #f0659e;
  font-size: 11px;
  font-weight: 700;
}

.control-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.control-chips span {
  padding: 7px 11px;
  border: 1px solid var(--module-accent-border);
  border-radius: 999px;
  background: var(--module-accent-soft);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Sandbox material */
.runtime-lanes { display: grid; gap: 10px; }

.lane {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}

.lane span {
  color: var(--module-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lane strong { color: #fff; font-size: 14px; font-weight: 600; }

/* Data material */
.data-layers { display: grid; gap: 10px; }

.data-layer {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}

.data-layer span {
  color: var(--module-accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.data-layer strong { display: block; margin-bottom: 4px; color: #fff; font-size: 14px; }
.data-layer p { margin: 0; color: var(--muted); font-size: 13px; }

.layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-tags em {
  padding: 4px 8px;
  border: 1px solid var(--module-accent-border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #b9d7e8;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.context-stack-panel {
  min-height: 330px;
  display: flex;
  align-items: center;
}

.context-stack-list {
  position: relative;
  display: grid;
  gap: 18px;
  width: 100%;
}

.context-stack-row {
  position: relative;
  z-index: 1;
  max-width: 88%;
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  text-align: center;
}

.context-stack-row:nth-child(odd) {
  background: var(--module-accent-soft);
  border-color: var(--module-accent-border);
}

.context-stack-row strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
}

.context-stack-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.workflow-step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 28, 44, .72);
}

.workflow-step span {
  color: var(--mint);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.workflow-step h2 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.workflow-step p { color: var(--muted); font-size: 14px; }

.workflow-steps-seven {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.workflow-steps-seven .workflow-step {
  grid-column: span 3;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.workflow-steps-seven .workflow-step:nth-child(-n + 3) {
  grid-column: span 4;
}

.workflow-steps-seven .workflow-step p {
  margin-bottom: 16px;
}

.paradigm-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.paradigm-grid .card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-workflow {
  grid-template-columns: repeat(4, 1fr);
}

.compact-workflow .workflow-step {
  min-height: 220px;
}

.compact-workflow .workflow-step h2 {
  font-size: 18px;
  line-height: 1.25;
}

.infra-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.infra-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(139,123,255,.28);
  border-radius: 999px;
  background: rgba(139,123,255,.08);
  color: #9df5d9;
  font-size: 12px;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-context-grid {
  max-width: 1040px;
  margin-inline: auto;
}

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 28, 44, .72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 123, 255, .35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
}

.card h3 {
  margin: 18px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  color: #fff;
}

.card-kicker {
  margin: 0 0 10px;
  color: var(--mint);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.card p { color: var(--muted); font-size: 15px; }

.card ul { padding: 0; margin: 20px 0 0; list-style: none; }

.card li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--text);
  font-size: 14px;
}

.card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.card.featured {
  border-color: rgba(139, 123, 255, .35);
  background: linear-gradient(180deg, rgba(139, 123, 255, .12), rgba(9, 31, 49, .8));
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #04101c;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.card-icon.mint { background: linear-gradient(135deg, #8b7bff, #9beeff); }
.card-icon.blue { background: linear-gradient(135deg, #2dd4ee, #9beeff); }
.card-icon.gold { background: linear-gradient(135deg, #f0659e, #ffd1e4); }

.infra-tree {
  display: grid;
  gap: 0;
}

.tree-layer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.tree-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(9, 31, 49, .7);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.tree-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 123, 255, .35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.tree-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(45, 212, 238, .35);
  border-radius: 999px;
  background: rgba(45, 212, 238, .08);
  color: #b8d4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tree-card h3 {
  margin: 16px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  color: #fff;
}

.tree-card p { margin: 0; color: var(--muted); font-size: 14px; }

.tree-connectors {
  display: block;
  width: 100%;
  height: clamp(120px, 18vh, 220px);
}

.tree-card.infra {
  border-color: rgba(139, 123, 255, .35);
  background: linear-gradient(180deg, rgba(139, 123, 255, .12), rgba(4, 16, 28, .92));
}

.infra-tag {
  border-color: rgba(139, 123, 255, .35);
  background: rgba(139, 123, 255, .1);
  color: #9df5d9;
}

.tree-power {
  display: inline-block;
  margin-top: 16px;
  color: #9df5d9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.infra-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -24px 0 34px;
}

.infra-legend span {
  padding: 8px 13px;
  border: 1px solid rgba(139, 123, 255, .28);
  border-radius: 999px;
  background: rgba(139, 123, 255, .08);
  color: #9df5d9;
  font-size: 12px;
  font-weight: 700;
}

.anchor-anchor {
  display: block;
  height: 0;
  visibility: hidden;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-content: center;
}

.support-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(4, 16, 28, .68);
}

.support-card h4 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  color: #fff;
}

.support-card p {
  color: var(--muted);
  font-size: 14px;
}

.dependency-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dependency-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(139, 123, 255, .28);
  border-radius: 999px;
  background: rgba(139, 123, 255, .08);
  color: #9df5d9;
  font-size: 12px;
}

.pyramid-svg {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(54svh, 520px);
  margin: 0 auto;
}

.svg-layer-text {
  text-align: center;
  color: #fff;
  font-family: Inter, sans-serif;
}

.svg-layer-text h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  line-height: 1.2;
  color: #fff;
}

.svg-layer-text p {
  margin: 5px 0 0;
  color: rgba(234, 246, 251, .68);
  font-size: 13px;
  line-height: 1.35;
}

.svg-title {
  fill: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.svg-title-lg {
  font-size: 26px;
  letter-spacing: -.025em;
}

.svg-sub {
  fill: rgba(234, 246, 251, .7);
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.proof-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(139, 123, 255, .08), rgba(255,255,255,.02));
  transition: transform .25s, border-color .25s;
}

.proof-card:hover { transform: translateY(-4px); border-color: rgba(139, 123, 255, .35); }

.proof-card span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.04em;
  color: #fff;
}

.proof-card h3 { margin: 10px 0 8px; font-size: 17px; color: #fff; }
.proof-card p { color: var(--muted); font-size: 14px; }

.proof-note {
  max-width: 780px;
  margin: 20px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(139, 123, 255, .25);
  border-radius: 16px;
  background: rgba(139, 123, 255, .06);
  color: #b8f2df;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow li { display: flex; padding: 0; }

.step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 130px;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}

.step-btn span { color: var(--mint); font-size: 12px; font-weight: 800; }
.step-btn p { margin: 8px 0 0; color: #fff; font-size: 14px; font-weight: 700; }
.step-btn small {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  color: rgba(234, 246, 251, .62);
  font-size: 11px;
  font-weight: 600;
}
.step-btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }

.step-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #8b7bff, #2dd4ee);
  color: #04101c;
  box-shadow: 0 20px 45px rgba(139, 123, 255, .22);
}

.step-btn.active span { color: rgba(4, 16, 28, .7); }
.step-btn.active p { color: #04101c; }
.step-btn.active small { color: rgba(4, 16, 28, .72); }

.workflow-detail {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.03);
  max-width: 100%;
  overflow: hidden;
}

.detail-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(4, 16, 28, .75);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
  text-align: center;
}

.detail-step { color: var(--mint); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.detail-title { margin: 10px 0 8px; font-family: "Space Grotesk", sans-serif; font-size: 22px; color: #fff; }
.detail-desc {
  max-width: 72ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: 15px;
}

.detail-agent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 18px auto;
}

.detail-agent div {
  padding: 14px;
  border: 1px solid rgba(139, 123, 255, .22);
  border-radius: 16px;
  background: rgba(139, 123, 255, .06);
}

.detail-agent small {
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.detail-agent p {
  margin: 8px 0 0;
  color: #fff;
  font-size: 14px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(139, 123, 255, .1);
  color: #9df5d9;
  font-size: 12px;
}

.deployment-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 38px 0 30px;
}

.deployment-step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 28, 44, .72);
}

.deployment-step span {
  color: var(--mint);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.deployment-step h3 {
  margin: 12px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  color: #fff;
}

.deployment-step p { color: var(--muted); font-size: 14px; }

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 58px;
  margin-top: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(139, 123, 255, .18), rgba(45, 212, 238, .16));
  border: 1px solid rgba(139, 123, 255, .25);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.cta-box h2 { margin: 0 0 12px; color: #fff; }
.cta-box h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  color: #fff;
}
.cta-box p { color: rgba(234, 246, 251, .75); font-size: 17px; }
.cta-box .primary { background: #fff; color: #04101c; box-shadow: none; }
.cta-box .outline { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }

.footer { padding: 34px 0; border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.footer-link { color: var(--muted); text-decoration: none; }
.footer-link:hover { color: var(--text); }

.company-info {
  display: grid;
  gap: 3px;
  text-align: right;
}

.footer-contact {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-contact:hover {
  color: var(--mint);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .7fr .9fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.trust-statement {
  padding: 0 0 64px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.trust-statement p { margin: 0; }

.trust-statement a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color .2s, border-color .2s;
}

.trust-statement a:hover {
  color: var(--mint);
  border-color: var(--mint);
}

.footer-brand p {
  margin: 14px 0 18px;
  max-width: 30ch;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand .footer-backing {
  margin: 14px 0 14px;
  max-width: 38ch;
  font-size: 12px;
  line-height: 1.6;
}

.footer-brand .footer-backing a {
  color: var(--text);
  text-decoration: none;
}

.footer-brand .footer-backing a:hover {
  color: var(--mint);
}

.footer-copyright {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-address {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
}

.footer-col h3 a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.footer-col h3 a:hover { color: var(--mint); }

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover { color: var(--mint); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover { color: var(--text); }

.legal-main {
  min-height: calc(100dvh - var(--header-height, 76px));
  display: grid;
  align-items: center;
  padding: calc(var(--header-height, 76px) + 40px) 0 60px;
}

.legal-card {
  max-width: 860px;
  margin-inline: auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 28, 44, .74);
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
}

.legal-card h1 {
  margin: 16px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -.035em;
  color: #fff;
}

.legal-updated {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: 21px;
  letter-spacing: -.02em;
}

.legal-card p { color: var(--muted); font-size: 15px; }

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-modal[hidden] { display: none; }

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 15, .78);
  backdrop-filter: blur(8px);
}

.contact-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(90dvh, 860px);
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(6, 20, 33, .97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

.contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.contact-close:hover { color: var(--text); border-color: var(--line-strong); }

.contact-panel h2 {
  margin: 0 0 24px;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid label,
.form-check {
  display: grid;
  gap: 8px;
}

.form-grid .full-width { grid-column: 1 / -1; }

.form-grid span,
.form-check span {
  color: var(--muted);
  font-size: 13px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
}

.form-grid textarea {
  resize: vertical;
  min-height: 104px;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: rgba(139,123,255,.55);
  box-shadow: 0 0 0 3px rgba(139,123,255,.12);
}

.form-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 22px;
}

.form-check input { width: 16px; height: 16px; accent-color: var(--mint); }

.form-submit { min-width: 140px; }

body.modal-open { overflow: hidden; }

.section, .card, .cockpit, .proof-card, .workflow-detail {
  transition: opacity .6s ease, transform .6s ease;
}

.js-reveal .section:not(.visible),
.js-reveal .card:not(.visible),
.js-reveal .cockpit:not(.visible),
.js-reveal .proof-card:not(.visible),
.js-reveal .workflow-detail:not(.visible) {
  opacity: 0;
  transform: translateY(16px);
}

.section.visible, .card.visible, .cockpit.visible, .proof-card.visible, .workflow-detail.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .compact-workflow { grid-template-columns: repeat(2, 1fr); }
  .card-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-steps-seven { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-steps-seven .workflow-step,
  .workflow-steps-seven .workflow-step:nth-child(-n + 3) { grid-column: span 1; min-height: auto; }
  .paradigm-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .module-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .module-visual { max-width: 660px; margin-inline: auto; }
  .scene-grid { grid-template-columns: 1fr; gap: 34px; }
  .scene-panel { max-width: 660px; margin-inline: auto; }
  .scene-research .scene-panel,
  .scene-trading .scene-panel { order: -1; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: flex; }
  .nav-actions .ghost { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    margin: 0;
    padding: 12px 18px 18px;
    background: #04101c;
    border-bottom: 1px solid var(--line);
  }
  .nav.open a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: 0; }
  .nav.open .nav-item.dropdown { width: 100%; }
  .nav.open .dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav.open .dropdown-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0 0 0 12px;
  }
  .nav.open .dropdown.open .dropdown-menu { display: flex; }
  .nav.open .dropdown-menu a { border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav.open .dropdown-menu a:last-child { border-bottom: 0; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-four { grid-template-columns: 1fr; }
  .tree-layer { grid-template-columns: 1fr; }
  .tree-connectors { display: none; }
  .tree-card { min-height: auto; }
  .support-grid { grid-template-columns: 1fr; }
  .detail-agent { grid-template-columns: 1fr; }
  .detail-agent div { width: 100%; }
  .deployment-path { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-address { text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-card { padding: 30px 22px; }
  .module-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps-seven { grid-template-columns: 1fr; }
  .compact-workflow { grid-template-columns: 1fr; }
  .compact-workflow .workflow-step { min-height: auto; }
  .nav { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: flex; }
  .nav-actions .ghost { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    margin: 0;
    padding: 12px 18px 18px;
    background: #04101c;
    border-bottom: 1px solid var(--line);
  }
  .nav.open a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: 0; }
}

@media (max-height: 760px) {
  .hero { padding: 68px 0 44px; }
  .section { padding: 66px 0; }
  .hero-grid { gap: 36px; }
  .metric-strip { margin-top: 26px; }
  .section-head { margin-bottom: 32px; }
  .pyramid-svg { max-height: min(48svh, 440px); }
  .tree-connectors { height: clamp(90px, 12vh, 150px); }
  .tree-card { min-height: 150px; padding: 20px; }
  .support-card { padding: 20px; }
  .deployment-path { margin: 26px 0 22px; }
  .cta-box { padding: 42px; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .hero-copy,
  .hero-visual { min-width: 0; max-width: 100%; }
  .hero { padding: 58px 0 46px; }
  .section { padding: 62px 0; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip > div { min-width: 0; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi { min-width: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr; }
  .cockpit { padding: 20px; }
  .cta-box { padding: 34px 22px; }
  .contact-panel { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .company-info { justify-items: center; }
  .footer-contact { text-align: center; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  main > section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    min-height: auto;
  }
}

/* ---- ZIRAX additions ---- */
.brand-logo { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo img { width: 34px; height: 34px; }
.brand-logo .wordmark {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .14em;
  color: var(--text);
  text-decoration: none;
}
.nav-cta { padding: 10px 20px; font-size: 14px; white-space: nowrap; }
@media (max-width: 900px) { .nav-cta { display: none; } }

/* stack diagram (home) */
.stack-diagram { display: grid; gap: 14px; }
.stack-row {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .25s ease, border-color .25s ease;
}
.stack-row:hover { transform: translateX(6px); border-color: var(--line-strong); }
.stack-row .stack-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
}
.stack-row h3 { margin: 0 0 4px; font-size: 20px; }
.stack-row p { margin: 0; color: var(--muted); font-size: 14.5px; }
.stack-row .stack-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-row .stack-chips span {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 11px; background: var(--surface-2);
}
.stack-row.l4 { border-color: rgba(139,123,255,.45); }
.stack-row.l3 { border-color: rgba(139,123,255,.30); }
.stack-row.l2 { border-color: rgba(45,212,238,.30); }
.stack-row.l1 { border-color: rgba(45,212,238,.45); }

@media (max-width: 640px) {
  .stack-row { grid-template-columns: 1fr; gap: 6px; }
}

/* code/terminal token tint */
.terminal-body .ok { color: var(--accent); }
.terminal-body p .prompt { color: var(--accent-2); }

/* ---- ZIRAX contact page ---- */
.contact-main { padding: calc(var(--header-height) + 48px) 0 100px; }
.contact-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.contact-hero h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  margin: 18px 0 16px;
  letter-spacing: -0.02em;
}
.contact-hero > p { color: var(--muted); font-size: 17px; max-width: 48ch; }
.contact-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.contact-point {
  font-size: 13.5px;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 7px 16px;
}
.contact-details { display: grid; gap: 18px; margin-top: 30px; }
.contact-details small {
  display: block; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px;
}
.contact-details p { margin: 0; color: var(--text); font-size: 16px; }
.contact-details a { color: var(--accent-2); font-size: 16px; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.contact-form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 34px;
  box-shadow: var(--shadow);
}
.contact-form-card h2 { margin: 0 0 6px; font-family: "Space Grotesk", Inter, sans-serif; font-size: 26px; }
.contact-form-card > p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.form-status {
  margin: 0 0 18px; padding: 12px 14px;
  border: 1px solid rgba(45, 212, 238, .35);
  background: rgba(45, 212, 238, .08);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text);
}
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-form-card { padding: 26px 22px; }
}

/* linked stack row (external MaaS) */
a.stack-link { text-decoration: none; color: inherit; display: grid; }
.stack-go {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-2);
  vertical-align: middle;
  margin-left: 10px;
  white-space: nowrap;
}
a.stack-link:hover { border-color: rgba(45,212,238,.55); }
