:root {
  --header-height: 76px;
  --page-height: calc(100dvh - var(--header-height));
  --bg: #04101c;
  --bg-2: #071c2e;
  --surface: rgba(9, 31, 49, .72);
  --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: #2ee6a8;
  --blue: #4f8cff;
  --gold: #f7c948;
  --accent: #2ee6a8;
  --accent-2: #4f8cff;
  --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(46, 230, 168, .13), transparent 30%),
    radial-gradient(circle at 92% 2%, rgba(79, 140, 255, .16), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(247, 201, 72, .08), 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(--mint), #7ef7cf);
  box-shadow: 0 16px 40px rgba(46, 230, 168, .22);
}

.primary:hover { transform: translateY(-1px); box-shadow: 0 20px 50px rgba(46, 230, 168, .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(46, 230, 168, .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(46, 230, 168, .35);
  background: rgba(46, 230, 168, .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(46, 230, 168, .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, #2ee6a8, #4f8cff 55%, #f7c948);
  -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(10, 34, 52, .86), rgba(5, 18, 29, .9));
  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(46,230,168,.4), transparent 45%, rgba(79,140,255,.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(46, 230, 168, .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(46, 230, 168, .5); }
  70% { box-shadow: 0 0 0 10px rgba(46, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 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: #2ee6a8;
  --module-accent-soft: rgba(46, 230, 168, .18);
  --module-accent-border: rgba(46, 230, 168, .42);
}

.page-research {
  --module-accent: #4f8cff;
  --module-accent-soft: rgba(79, 140, 255, .18);
  --module-accent-border: rgba(79, 140, 255, .42);
}

.page-trading {
  --module-accent: #f7c948;
  --module-accent-soft: rgba(247, 201, 72, .18);
  --module-accent-border: rgba(247, 201, 72, .42);
}

.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(46,230,168,.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(46,230,168,.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(79,140,255,.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(247,201,72,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,201,72,.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(46,230,168,.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(247,201,72,.4);
  border-radius: 999px;
  background: rgba(247,201,72,.12);
  color: #f7c948;
  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(46,230,168,.28);
  border-radius: 999px;
  background: rgba(46,230,168,.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(46, 230, 168, .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(46, 230, 168, .35);
  background: linear-gradient(180deg, rgba(46, 230, 168, .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, #2ee6a8, #7ef7cf); }
.card-icon.blue { background: linear-gradient(135deg, #4f8cff, #7ef7cf); }
.card-icon.gold { background: linear-gradient(135deg, #f7c948, #ffedba); }

.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(46, 230, 168, .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(79, 140, 255, .35);
  border-radius: 999px;
  background: rgba(79, 140, 255, .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(46, 230, 168, .35);
  background: linear-gradient(180deg, rgba(46, 230, 168, .12), rgba(4, 16, 28, .92));
}

.infra-tag {
  border-color: rgba(46, 230, 168, .35);
  background: rgba(46, 230, 168, .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(46, 230, 168, .28);
  border-radius: 999px;
  background: rgba(46, 230, 168, .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(46, 230, 168, .28);
  border-radius: 999px;
  background: rgba(46, 230, 168, .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(46, 230, 168, .08), rgba(255,255,255,.02));
  transition: transform .25s, border-color .25s;
}

.proof-card:hover { transform: translateY(-4px); border-color: rgba(46, 230, 168, .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(46, 230, 168, .25);
  border-radius: 16px;
  background: rgba(46, 230, 168, .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, #2ee6a8, #4f8cff);
  color: #04101c;
  box-shadow: 0 20px 45px rgba(46, 230, 168, .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(46, 230, 168, .22);
  border-radius: 16px;
  background: rgba(46, 230, 168, .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(46, 230, 168, .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; }

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

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 230, 168, .4);
}

.pillar-card h3 { margin: 0; color: #fff; font-size: 18px; line-height: 1.3; }
.pillar-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--mint);
  background: rgba(46, 230, 168, .1);
  border: 1px solid rgba(46, 230, 168, .28);
}

.pillar-icon svg { width: 26px; height: 26px; }

.strategy-quote {
  margin: 28px auto 0;
  max-width: 1040px;
  text-align: center;
  padding: 26px 36px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(46, 230, 168, .08), transparent 60%),
    rgba(255, 255, 255, .03);
}

.strategy-quote blockquote {
  margin: 0;
  color: #eaf6fb;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.strategy-quote blockquote::before { content: "“"; color: var(--mint); }
.strategy-quote blockquote::after { content: "”"; color: var(--mint); }

.strategy-quote figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Tighten the strategy block so it fits a single viewport */
.strategy-section { padding-top: 56px; padding-bottom: 56px; }

.strategy-section .section-head { margin-bottom: 30px; }
.strategy-section .section-head h2 { font-size: clamp(28px, 3vw, 40px); }
.strategy-section .section-head p { max-width: 720px; margin-inline: auto; font-size: 15px; }

.pillar-card { padding: 22px; gap: 12px; }
.pillar-card .pillar-icon { width: 42px; height: 42px; border-radius: 12px; }
.pillar-card .pillar-icon svg { width: 22px; height: 22px; }
.pillar-card h3 { font-size: 16px; line-height: 1.3; }
.pillar-card p { font-size: 13px; line-height: 1.5; }
.pillar-card::after { right: 18px; bottom: 14px; font-size: 16px; }

@media (max-width: 1180px) {
  .strategy-section { padding-top: 48px; padding-bottom: 48px; }
}

/* Strategy section interactions */
.pillar-card {
  position: relative;
  overflow: hidden;
}

.reveal-ready .pillar-card {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .6s ease,
    transform .6s cubic-bezier(.2,.7,.2,1),
    border-color .25s ease,
    box-shadow .25s ease;
}

.reveal-ready .pillar-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-ready .pillar-card:nth-child(1) { transition-delay: 0ms; }
.reveal-ready .pillar-card:nth-child(2) { transition-delay: 90ms; }
.reveal-ready .pillar-card:nth-child(3) { transition-delay: 180ms; }
.reveal-ready .pillar-card:nth-child(4) { transition-delay: 270ms; }

.reveal-ready .pillar-card.is-visible:hover,
.reveal-ready .pillar-card.is-visible:focus-visible {
  transform: translateY(-6px);
  transition-delay: 0ms;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s ease;
}

.pillar-card:hover::before,
.pillar-card:focus-visible::before { transform: scaleX(1); }

.pillar-icon {
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.pillar-card:hover .pillar-icon,
.pillar-card:focus-visible .pillar-icon {
  transform: translateY(-3px) scale(1.08);
  background: rgba(46, 230, 168, .18);
  box-shadow: 0 10px 26px rgba(46, 230, 168, .28);
}

.pillar-card::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--mint);
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.pillar-card[target="_blank"]::after { content: "↗"; }

.pillar-card:hover::after,
.pillar-card:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.pillar-card:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.reveal-ready .strategy-quote {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}

.reveal-ready .strategy-quote.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.strategy-quote figcaption {
  opacity: 1;
}

.reveal-ready .strategy-quote figcaption {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease .35s, transform .5s ease .35s;
}

.reveal-ready .strategy-quote.is-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .pillar-card,
  .reveal-ready .strategy-quote,
  .reveal-ready .strategy-quote figcaption {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 58px;
  margin-top: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(46, 230, 168, .18), rgba(79, 140, 255, .16));
  border: 1px solid rgba(46, 230, 168, .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(46,230,168,.55);
  box-shadow: 0 0 0 3px rgba(46,230,168,.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)); }
  .pillar-grid { 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; }
  .pillar-grid { grid-template-columns: 1fr; }
  .strategy-quote { padding: 28px 22px; }
  .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;
  }
}
