/* ============================================================
   BGX ALGO — Quantitative Trading Infrastructure
   Stylesheet · v1.0
   Design philosophy: Editorial × Bloomberg Terminal × Cinema
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  --void: #050507;
  --void-2: #08080c;
  --surface: #0d0d12;
  --surface-2: #11121a;
  --surface-3: #15161f;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --ink: #f4f4f7;
  --ink-2: #b8b8c2;
  --ink-3: #6a6a76;
  --ink-4: #3a3a44;

  --lime: #c8ff00;
  --lime-2: #d8ff4a;
  --lime-dim: #6e8a00;
  --lime-glow: rgba(200, 255, 0, 0.20);

  --rose: #ff4d6d;
  --azure: #4dd6ff;
  --magenta: #c673ff;

  --grad-aurora: radial-gradient(ellipse at 30% 20%, rgba(200, 255, 0, 0.10), transparent 50%),
                  radial-gradient(ellipse at 80% 60%, rgba(77, 214, 255, 0.06), transparent 55%),
                  radial-gradient(ellipse at 50% 100%, rgba(198, 115, 255, 0.05), transparent 60%);

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--display);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html { background: var(--void); }
body { min-height: 100vh; line-height: 1.5; position: relative; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--lime); color: var(--void); }

/* ---------- Background layers ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--grad-aurora);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 0%, transparent 80%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.45 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

/* ---------- Layout primitives ---------- */
.shell { position: relative; z-index: 10; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  position: relative;
  padding: clamp(80px, 10vw, 160px) 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.section-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--lime);
}
.section-tag .num {
  color: var(--lime);
  margin-right: 6px;
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 24px;
  color: var(--ink);
}

.section-title em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-2);
}

.section-title .accent {
  color: var(--lime);
  font-style: normal;
}

.section-lede {
  max-width: 720px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 56px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 5, 7, 0.55);
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(5, 5, 7, 0.85);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand svg { width: 28px; height: 28px; color: var(--lime); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text b {
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
}
.brand-text span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width 0.3s var(--ease-out);
}
.nav a:hover::after { width: 100%; }

@media (max-width: 880px) {
  .nav { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary {
  background: var(--lime);
  color: var(--void);
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(200, 255, 0, 0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -12px var(--lime-glow), 0 0 0 1px rgba(200, 255, 0, 0.3);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
  z-index: -1;
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 36px;
  animation: heroFadeUp 1s var(--ease-out) 0.1s both;
}
.hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.18);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 28px;
}
.hero-title span {
  display: block;
  animation: heroFadeUp 1.1s var(--ease-out) both;
}
.hero-title span:nth-child(1) { animation-delay: 0.2s; }
.hero-title span:nth-child(2) { animation-delay: 0.32s; }
.hero-title span:nth-child(3) { animation-delay: 0.44s; }
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}
.hero-title .stroke {
  -webkit-text-stroke: 1px var(--ink);
  color: transparent;
}

.hero-lede {
  max-width: 540px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 40px;
  animation: heroFadeUp 1s var(--ease-out) 0.55s both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: heroFadeUp 1s var(--ease-out) 0.7s both;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 540px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  animation: heroFadeUp 1s var(--ease-out) 0.85s both;
}
.hero-meta div { font-size: 12px; color: var(--ink-3); }
.hero-meta b {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 4px;
}
.hero-meta b.lime { color: var(--lime); }

/* Hero Terminal Card */
.terminal {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.7) 0%, rgba(10, 10, 14, 0.7) 100%);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: heroFadeUp 1.2s var(--ease-out) 0.9s both;
  overflow: hidden;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(200, 255, 0, 0.4), transparent 30%, transparent 70%, rgba(77, 214, 255, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.terminal-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); }
.terminal-head .dot.live { background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulseDot 1.8s ease-in-out infinite; }
.terminal-head strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-left: auto;
}
.terminal-head em {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  font-style: normal;
  letter-spacing: 0.1em;
}

.term-rows { display: grid; gap: 10px; }
.term-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 12px;
  transition: background 0.3s, transform 0.3s;
}
.term-row:hover { background: rgba(255, 255, 255, 0.05); transform: translateX(2px); }
.term-row .name { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.term-row .name .tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(200, 255, 0, 0.1);
  color: var(--lime);
  letter-spacing: 0.1em;
}
.term-row .name .tag.short { background: rgba(255, 77, 109, 0.12); color: var(--rose); }
.term-row .name .tag.flat { background: rgba(255, 255, 255, 0.06); color: var(--ink-2); }
.term-row .pnl { color: var(--ink); font-variant-numeric: tabular-nums; }
.term-row .pnl.up { color: var(--lime); }
.term-row .pnl.down { color: var(--rose); }
.term-row .bar {
  width: 60px;
  height: 18px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1px;
}
.term-row .bar i {
  flex: 1;
  height: 100%;
  background: var(--ink-4);
  border-radius: 1px;
}
.term-row .bar i.on { background: var(--lime); }
.term-row .bar i.warn { background: var(--rose); }

.term-foot {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.term-foot div b {
  display: block;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 4px;
  font-weight: 500;
  text-transform: none;
}
.term-foot div b.lime { color: var(--lime); }

/* ---------- Marquee strip ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.marquee-item .lime { color: var(--lime); }
.marquee-item .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-4);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- EDGE (3 columns) ---------- */
.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .edge-grid { grid-template-columns: 1fr; }
}
.edge-cell {
  background: var(--surface);
  padding: 40px 32px;
  position: relative;
  transition: background 0.4s;
}
.edge-cell:hover { background: var(--surface-2); }
.edge-glyph {
  width: 56px;
  height: 56px;
  color: var(--lime);
  margin-bottom: 28px;
  opacity: 0.92;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.edge-cell:hover .edge-glyph {
  transform: scale(1.05) rotate(-2deg);
  opacity: 1;
}
.edge-cell .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}
.edge-cell h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.edge-cell h3 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
  font-weight: 400;
}
.edge-cell p {
  color: var(--ink-2);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.edge-cell::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: var(--lime);
  transition: width 0.6s var(--ease-out);
}
.edge-cell:hover::after { width: 100%; }

/* ---------- PERFORMANCE chart ---------- */
.perf-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}
.perf-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.5;
}
.perf-head {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}
.perf-kpi { display: flex; gap: 40px; flex-wrap: wrap; }
.perf-kpi-item .label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.perf-kpi-item .value {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.perf-kpi-item .value.lime { color: var(--lime); }
.perf-kpi-item .sub {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

.perf-chart {
  position: relative;
  width: 100%;
  height: clamp(300px, 40vw, 460px);
}
.perf-chart svg { width: 100%; height: 100%; display: block; }
.perf-axis-y, .perf-axis-x {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--ink-3);
  letter-spacing: 0.05em;
}
.perf-grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.perf-area { fill: url(#perfGrad); }
.perf-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(200, 255, 0, 0.45));
}
.perf-dot {
  fill: var(--lime);
  filter: drop-shadow(0 0 8px var(--lime));
}

.perf-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 36px;
}
@media (max-width: 720px) {
  .perf-foot { grid-template-columns: repeat(2, 1fr); }
}
.perf-foot div {
  background: var(--surface-2);
  padding: 18px 20px;
}
.perf-foot .l {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.perf-foot .v {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.perf-foot .v.lime { color: var(--lime); }

.perf-verify {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(200,255,0,0.025), rgba(200,255,0,0.005));
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.perf-verify .dot {
  flex: 0 0 auto;
  margin-top: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.15), 0 0 14px rgba(200, 255, 0, 0.5);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.perf-verify .verify-link {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px dashed var(--line-2);
  padding-bottom: 1px;
  user-select: all;
}

.perf-disclaimer {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ---------- MIND SECTION (robot + chess) ---------- */
.mind-section {
  position: relative;
}
.mind-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(200, 255, 0, 0.045), transparent 70%),
    radial-gradient(ellipse 50% 40% at 75% 30%, rgba(200, 255, 0, 0.025), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.mind-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 80px;
  align-items: center;
}
@media (max-width: 1080px) {
  .mind-grid { grid-template-columns: 1fr; gap: 56px; }
}
.mind-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mind-robot {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 0 80px rgba(200, 255, 0, 0.08));
}
.mind-visual-cap {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.mind-visual-cap .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px rgba(200, 255, 0, 0.18), 0 0 10px rgba(200, 255, 0, 0.55);
  animation: pulseDot 2s ease-in-out infinite;
}
.mind-visual-cap b { color: var(--ink); font-weight: 500; }

.mind-text .section-tag { margin-bottom: 24px; }
.mind-text .section-title {
  font-size: clamp(36px, 4.4vw, 64px) !important;
  margin-bottom: 24px;
}
.mind-text .section-lede {
  margin-bottom: 36px;
  max-width: 540px;
}

.mind-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
}
@media (max-width: 540px) {
  .mind-stats { grid-template-columns: 1fr; }
}
.mind-stat {
  background: var(--surface);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mind-stat .big {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--lime);
}
.mind-stat .lab {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  line-height: 1.45;
}

.mind-chess-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(200, 255, 0, 0.02), rgba(200, 255, 0, 0));
}
.mind-chess {
  flex: 0 0 auto;
  width: 56px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 20px rgba(200, 255, 0, 0.15));
}
.chess-quote .quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.chess-quote .quote-meta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

@media (max-width: 540px) {
  .mind-chess-row { flex-direction: row; align-items: flex-start; padding: 16px; gap: 16px; }
  .mind-chess { width: 44px; }
  .chess-quote .quote-text { font-size: 15px; }
  .mind-stat .big { font-size: 44px; }
}


/* ---------- ROUTER VISUAL INTERLUDE ---------- */
.router-interlude {
  position: relative;
  padding: 20px 0 80px;
  margin-top: -40px;
}
.router-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.router-svg {
  width: clamp(360px, 42vw, 560px);
  height: clamp(360px, 42vw, 560px);
  display: block;
  filter: drop-shadow(0 0 80px rgba(200, 255, 0, 0.06));
}
.router-readout {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  line-height: 1.65;
  max-width: 240px;
}
.router-readout.left { justify-self: end; text-align: left; }
.router-readout.right { justify-self: start; text-align: left; }
.router-readout .readout-label {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.85;
}
.router-readout .readout-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.router-readout .readout-row:last-child { border-bottom: 0; }
.router-readout .readout-row .v {
  color: var(--ink);
  font-weight: 500;
}
.router-readout .readout-row .v.lime { color: var(--lime); }
.router-readout .readout-row .v.ok {
  color: var(--lime);
  position: relative;
  padding-left: 14px;
}
.router-readout .readout-row .v.ok::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px rgba(200, 255, 0, 0.18);
  transform: translateY(-50%);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.router-caption {
  margin: 56px auto 0;
  max-width: 720px;
  padding: 0 32px;
  text-align: center;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.router-caption .num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.22em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .router-stage { grid-template-columns: 1fr; gap: 32px; justify-items: center; }
  .router-readout, .router-readout.left, .router-readout.right {
    justify-self: center;
    text-align: left;
    max-width: 380px;
    width: 100%;
  }
  .router-svg { width: clamp(300px, 80vw, 480px); height: clamp(300px, 80vw, 480px); }
}
@media (max-width: 480px) {
  .router-readout { font-size: 11px; }
  .router-svg { width: 92vw; height: 92vw; }
  .router-caption { font-size: 14px; }
}

/* ---------- ENGINE ---------- */
.engine-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1000px) {
  .engine-layout { grid-template-columns: 1fr; gap: 40px; }
}

.engine-modes {
  display: grid;
  gap: 14px;
}
.mode-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease-out);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.mode-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateX(4px);
}
.mode-card.active {
  border-color: rgba(200, 255, 0, 0.4);
  background: linear-gradient(120deg, rgba(200, 255, 0, 0.04), transparent);
}
.mode-card.active .mode-glyph { color: var(--lime); }
.mode-glyph {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 20px;
  transition: color 0.3s, border-color 0.3s;
}
.mode-card h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mode-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.mode-card .pct {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}

.engine-vis {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  overflow: hidden;
  min-height: 420px;
}
.engine-vis::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(200, 255, 0, 0.06), transparent 60%);
  pointer-events: none;
}
.engine-vis-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.engine-vis-title b {
  color: var(--lime);
  font-weight: 500;
}

.strategy-pool {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  margin: 24px 0;
  position: relative;
  z-index: 2;
}
.strat-cell {
  aspect-ratio: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}
.strat-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  opacity: 0;
  transition: opacity 0.4s;
}
.strat-cell.active {
  border-color: var(--lime);
  color: var(--void);
  font-weight: 600;
  transform: scale(1.05);
}
.strat-cell.active::before { opacity: 1; }
.strat-cell span {
  position: relative;
  z-index: 1;
}

.strategy-detail {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.strategy-detail h5 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.strategy-detail .row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  align-items: center;
}
.strategy-detail .row:last-child { border-bottom: 0; }
.strategy-detail .row .id {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  width: 32px;
}
.strategy-detail .row .nm { color: var(--ink); font-size: 13px; }
.strategy-detail .row .vl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.05em;
}

/* ---------- CALCULATOR ---------- */
.calc-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1px;
  background: var(--line);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
}
@media (max-width: 1000px) {
  .calc-wrap { grid-template-columns: 1fr; }
}
.calc-controls {
  background: var(--surface);
  padding: clamp(28px, 4vw, 48px);
}
.calc-result {
  background: var(--surface-2);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.calc-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(200, 255, 0, 0.1), transparent 60%);
  pointer-events: none;
}

.calc-field { margin-bottom: 28px; }
.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.calc-field label b {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 500;
  text-transform: none;
}

.calc-input-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.calc-input-amount input {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color 0.3s;
  width: 100%;
}
.calc-input-amount input:focus {
  outline: 0;
  border-color: var(--lime);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line-2);
  border-radius: 4px;
  outline: 0;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  background: var(--lime);
  border-radius: 50%;
  cursor: pointer;
  border: 4px solid var(--void);
  box-shadow: 0 0 0 1px var(--lime), 0 0 16px var(--lime-glow);
  transition: transform 0.2s;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--lime);
  border-radius: 50%;
  cursor: pointer;
  border: 4px solid var(--void);
  box-shadow: 0 0 0 1px var(--lime), 0 0 16px var(--lime-glow);
}

.calc-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.calc-presets button {
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  transition: all 0.3s;
  cursor: pointer;
}
.calc-presets button:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.calc-risk-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.calc-risk-tabs button {
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
}
.calc-risk-tabs button:hover { border-color: var(--line-strong); }
.calc-risk-tabs button.is-active {
  border-color: var(--lime);
  background: rgba(200, 255, 0, 0.05);
  color: var(--ink);
}
.calc-risk-tabs button b {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.calc-risk-tabs button span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.calc-risk-tabs button.is-active span { color: var(--lime); }

.calc-result-head {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.calc-big-num {
  position: relative;
  z-index: 2;
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 400;
  color: var(--lime);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.calc-big-sub {
  position: relative;
  z-index: 2;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 28px;
}

.calc-rows {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
}
.calc-row .lbl {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.calc-row .vl {
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}
.calc-row .vl.rose { color: var(--rose); }
.calc-row .vl.lime { color: var(--lime); }

.calc-disc {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

/* ---------- TIERS ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}
@media (max-width: 880px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--surface);
  padding: 32px 28px;
  position: relative;
  transition: background 0.4s;
}
.tier:hover { background: var(--surface-2); }
.tier.featured {
  background: linear-gradient(180deg, rgba(200, 255, 0, 0.08), transparent 80%), var(--surface);
}
.tier-tier {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tier.featured .tier-tier { color: var(--lime); }
.tier-range {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.tier-range em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
  font-weight: 400;
}
.tier-fee {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 6px;
}
.tier-fee small { font-size: 0.4em; color: var(--ink-3); margin-left: 6px; vertical-align: top; letter-spacing: 0.05em; }
.tier-fee-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.tier-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.tier-perks li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.tier-perks li::before {
  content: "→";
  font-family: var(--mono);
  color: var(--lime);
  flex-shrink: 0;
}

/* ---------- LARGE CAPITAL ---------- */
.large-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}
@media (max-width: 880px) { .large-grid { grid-template-columns: 1fr; } }
.large-cell {
  background: var(--surface);
  padding: 36px 32px;
  position: relative;
  transition: background 0.4s;
}
.large-cell:hover { background: var(--surface-2); }
.large-glyph {
  width: 52px;
  height: 52px;
  color: var(--lime);
  margin-bottom: 24px;
  opacity: 0.94;
  transition: transform 0.6s var(--ease-out);
}
.large-cell:hover .large-glyph {
  transform: scale(1.06) rotate(2deg);
}
.large-cell .ic {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 16px;
  margin-bottom: 24px;
}
.large-cell h4 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.large-cell h4 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
}
.large-cell p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- PROCESS ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }
.process-step {
  background: var(--surface);
  padding: 28px 24px 32px;
  position: relative;
}
.process-step .step {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--lime);
  letter-spacing: 0.18em;
  margin-bottom: 22px;
}
.process-step h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.process-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- RULES & RISK ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 880px) { .rules-grid { grid-template-columns: 1fr; } }

.rules-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.rules-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.rules-list li:hover { border-color: var(--line-strong); transform: translateX(2px); }
.rules-list li b {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.12em;
}
.rules-list li span {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.rules-list li strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.risk-card {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.04), transparent), var(--surface);
  border: 1px solid rgba(255, 77, 109, 0.18);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
}
.risk-card .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 77, 109, 0.3);
  border-radius: 10px;
  color: var(--rose);
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 16px;
}
.risk-card h4 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.risk-card p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.risk-card a {
  font-family: var(--mono);
  color: var(--rose);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.risk-card a:hover { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s;
  cursor: pointer;
}
.faq-q:hover { color: var(--lime); }
.faq-q .chev {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 14px;
  transition: transform 0.4s, border-color 0.3s, color 0.3s;
}
.faq-item.open .faq-q .chev { transform: rotate(45deg); border-color: var(--lime); color: var(--lime); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.faq-item.open .faq-a { max-height: 800px; }
.faq-a-inner {
  padding: 0 0 28px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 660px;
}

/* ---------- CONNECT (CTA) ---------- */
.connect {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(48px, 6vw, 80px);
  overflow: hidden;
  text-align: center;
}
.connect::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(200, 255, 0, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(77, 214, 255, 0.06), transparent 50%);
  pointer-events: none;
}
.connect > * { position: relative; z-index: 2; }
.connect h2 {
  font-size: clamp(36px, 5.5vw, 76px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 auto 24px;
  font-weight: 400;
  max-width: 14ch;
}
.connect h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
  font-weight: 400;
}
.connect h2 .lime { color: var(--lime); }
.connect p {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}
.connect-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.connect-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: center;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.connect-meta a {
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line-2);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.connect-meta a:hover { color: var(--lime); border-color: var(--lime); }

/* ---------- FOOTER ---------- */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 400;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col li a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--lime); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal-stagger].in > * { opacity: 1; transform: none; }
[data-reveal-stagger].in > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: 0.45s; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: 0.55s; }
[data-reveal-stagger].in > *:nth-child(7) { transition-delay: 0.65s; }

/* ---------- Keyframes ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 255, 0, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(200, 255, 0, 0); }
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: 880px;
  margin: 0 auto;
}
.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: color 0.3s;
}
.legal-page .back:hover { color: var(--lime); }
.legal-page h1 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.035em;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 16px;
}
.legal-page .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.legal-page h2 {
  font-size: 24px;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.legal-page h3 {
  font-size: 17px;
  margin: 32px 0 12px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.legal-page p, .legal-page li {
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 15px;
}
.legal-page ul, .legal-page ol {
  padding-left: 22px;
  margin: 12px 0 22px;
}
.legal-page li { margin-bottom: 10px; }
.legal-page strong { color: var(--ink); font-weight: 500; }
.legal-page a {
  color: var(--lime);
  border-bottom: 1px dashed var(--lime-dim);
  transition: opacity 0.3s;
}
.legal-page a:hover { opacity: 0.75; }

.legal-page .callout {
  margin: 32px 0;
  padding: 22px 24px;
  background: rgba(255, 77, 109, 0.05);
  border-left: 2px solid var(--rose);
  border-radius: 0 14px 14px 0;
  font-size: 14px;
}
.legal-page .callout p { margin: 0; color: var(--ink); }
.legal-page .callout strong { color: var(--rose); }

/* ---------- Print / reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
}

/* ---------- Tight mobile fixes (≤ 480px) ---------- */
@media (max-width: 480px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .hero-title { font-size: clamp(28px, 9vw, 50px); letter-spacing: -0.035em; line-height: 1; }
  .section-eyebrow { font-size: 11px; }
  .section-title { font-size: clamp(30px, 9vw, 48px) !important; }
  .hero-lede { font-size: 14.5px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stats > *:nth-child(3) { grid-column: 1 / -1; }
  .site-header { padding: 14px 16px; }
  .site-header .nav { display: none; }
  .brand-text { font-size: 13px; }
  .brand-text span { font-size: 9px; }
  .btn { padding: 12px 18px; font-size: 13px; }
  .terminal-card { padding: 18px 16px; }
  .terminal-row { font-size: 11px; gap: 8px; }
  .legal-page h1 { font-size: clamp(34px, 9vw, 50px); }
  .legal-page h2 { font-size: clamp(20px, 5.5vw, 26px); }
  .perf-foot { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr !important; }
  .engine-grid { grid-template-columns: 1fr !important; }
  .marquee-track span { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .cta-final h2 { font-size: clamp(34px, 10vw, 56px); }
}
