/* ================================================================
   HardPoint - premium dark fintech landing
   Palette: deep charcoal (never pure black), white, brand blue
   Type: Space Grotesk (display) / Inter (UI & body) - self-hosted
   Surface ladder: bg (page) < bg-inset (chrome bars/bands) <
                   surface (cards) < surface-2 (hover / top layer)
   ================================================================ */

/* ---------------- Fonts (self-hosted variable files) ---------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-var-latin.woff2") format("woff2");
}
/* Metric-compatible fallbacks so the swap causes ~zero layout shift */
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 96%;
  descent-override: 28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.64%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #06080C;
  --bg-inset: #0B0E14;
  --surface: #0E121A;
  --surface-2: #131826;

  /* Lines */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.2);

  /* Text */
  --text: #F2F5FA;
  --text-dim: #98A2B6;
  --text-faint: #7E889C; /* ≥4.9:1 on every surface - keep AA for fineprint */

  /* Brand */
  --blue-rgb: 46 107 255;
  --blue-bright-rgb: 77 130 255;
  --blue: #2E6BFF;
  --blue-bright: #4D82FF;
  --blue-soft: rgb(var(--blue-rgb) / 0.14);
  /* CTA gradient stops darkened so white 4.5:1+ across the whole gradient */
  --cta-top: #3567EA;
  --cta-bottom: #2A5FE8;
  --green-rgb: 47 191 113;
  --green: #2FBF71;
  --green-soft: rgb(var(--green-rgb) / 0.1);
  --green-border: rgb(var(--green-rgb) / 0.25);
  --red: #E5484D;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 0.9375rem;
  --text-lg: 1rem;
  --text-xl: 1.0625rem;

  /* Shape & depth */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.3);
  --glow-blue: 0 0 90px rgb(var(--blue-rgb) / 0.07);
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Space Grotesk", "Space Grotesk Fallback", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

::selection { background: rgb(var(--blue-rgb) / 0.35); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-md);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------------- Typography ---------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

/* Optical tracking tightens as display size grows */
h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -0.012em; }

.grad {
  background: linear-gradient(92deg, var(--blue-bright) 0%, #8FB2FF 60%, #C9D9FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 16px;
}
/* Trailing letter-space shifts centered eyebrows off true center - compensate */
.section-head .eyebrow, .hero .eyebrow { text-indent: 0.18em; }

.lede {
  font-size: clamp(var(--text-xl), 1.8vw, 1.25rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 24px auto 0;
}

.sub {
  color: var(--text-dim);
  font-size: var(--text-xl);
  max-width: 640px;
  margin-top: 16px;
}

.section-head { text-align: center; margin-bottom: 64px; }
.section-head .sub, .center .sub { margin-left: auto; margin-right: auto; }

.fineprint { font-size: var(--text-sm); color: var(--text-faint); margin-top: 16px; }
.fineprint.center { text-align: center; margin-top: 40px; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }

.btn-primary {
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 24px rgb(var(--blue-rgb) / 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-lg { padding: 16px 32px; font-size: var(--text-lg); }
.btn-sm { padding: 10px 20px; font-size: var(--text-base); }

/* Lift effects only where hover is a real input mode (no sticky tap states) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 14px 36px rgb(var(--blue-rgb) / 0.42);
  }
  .btn-primary:hover .icon:last-child { transform: translateX(3px); }
  .btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
  }
}

.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}
/* Rounded ring for bare text links only - buttons keep their own radius */
.nav-links a:not(.btn):focus-visible,
.footer-links a:focus-visible,
.brand:focus-visible { border-radius: 6px; }

/* ---------------- Nav ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 12, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav.scrolled { background: rgba(6, 8, 12, 0.96); }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 26px; height: 30px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.22em;
  color: var(--text);
}
.brand-word .brand-accent { color: var(--blue-bright); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links > a:not(.btn) {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn)[aria-current] { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 192px 0 96px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 620px;
  background:
    radial-gradient(ellipse 46% 42% at 50% 36%, rgb(var(--blue-rgb) / 0.22), transparent 70%),
    radial-gradient(ellipse 30% 30% at 34% 60%, rgb(var(--blue-bright-rgb) / 0.1), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 62% 55% at 50% 34%, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 55% at 50% 34%, #000 30%, transparent 72%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: var(--text-base);
  color: var(--text-faint);
}
.trust-strip li { display: flex; align-items: center; gap: 8px; }
.trust-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 8px rgb(var(--blue-bright-rgb) / 0.8);
}

/* ---------------- Sections ---------------- */

.section { position: relative; padding: 112px 0; }
.section-tight { padding: 24px 0 88px; }

/* The two proof sections sit on a recessed band to break the single-bg scroll */
#performance, #preview {
  background: var(--bg-inset);
  border-block: 1px solid var(--border);
}

/* Quiet hairline at the top of each new argument (skipped where a band
   or the included-card already draws the boundary) */
#problem::before, #solution::before, #how-it-works::before,
#why::before, #faq::before, .final-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.mid-cta { text-align: center; margin-top: 56px; }
.mid-cta p { margin-top: 14px; font-size: var(--text-sm); color: var(--text-faint); }

/* ---------------- Video frame (VSL) ---------------- */

.video-frame {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow), var(--glow-blue), var(--edge-light);
  overflow: hidden;
}

.tv-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
}
.tv-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.tv-chrome .tv-title { margin-left: 8px; font-size: var(--text-sm); color: var(--text-faint); }

.video-poster { position: relative; }
/* Poster matches the 16:9 embed exactly - no layout shift when the player loads */
.poster-chart { width: 100%; height: auto; aspect-ratio: 960 / 540; background: var(--surface); }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom));
  box-shadow: 0 8px 32px rgb(var(--blue-rgb) / 0.45), 0 0 0 10px rgb(var(--blue-rgb) / 0.12);
  transition: box-shadow 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .play-btn:hover {
    box-shadow: 0 12px 40px rgb(var(--blue-rgb) / 0.6), 0 0 0 14px rgb(var(--blue-rgb) / 0.16);
  }
}
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }

.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 44px 24px 20px;
  text-align: center;
  font-size: var(--text-base);
  color: var(--text-dim);
  background: linear-gradient(transparent, rgba(6, 8, 12, 0.85));
  pointer-events: none;
}

.video-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* ---------------- Stats ---------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-soft), var(--edge-light);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.stat-line { display: flex; align-items: baseline; gap: 6px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-bright);
}
.stat-card p { font-size: var(--text-base); color: var(--text-dim); margin-top: 8px; }

/* ---------------- Chart card (equity) ---------------- */

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 20px;
  box-shadow: var(--shadow-soft), var(--edge-light);
}

.chart-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.chart-card-head h3 { font-size: var(--text-xl); }
.chart-card-head p { font-size: var(--text-sm); color: var(--text-faint); margin-top: 4px; }

.chart-badges { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

.chart-badge.neutral {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
}

.chart-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.chart-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

#equityChart { width: 100%; height: auto; aspect-ratio: 1080 / 340; }

.chart-plot { position: relative; }
.chart-ylabel {
  position: absolute;
  right: 8px;
  transform: translateY(-140%);
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px 0;
  font-size: var(--text-xs);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------------- Quote cards ---------------- */

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

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft), var(--edge-light);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.quote-card blockquote {
  font-size: var(--text-md);
  color: var(--text-dim);
  line-height: 1.65;
  flex: 1;
}
.quote-card blockquote::before { content: "\201C"; color: var(--blue-bright); margin-right: 1px; }
.quote-card blockquote::after { content: "\201D"; color: var(--blue-bright); margin-left: 1px; }

.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: #fff;
  background: linear-gradient(145deg, hsl(var(--hue, 216) 72% 58%), hsl(var(--hue, 216) 72% 38%));
  flex-shrink: 0;
}
.quote-card figcaption strong { display: block; font-size: var(--text-md); font-weight: 600; }
.quote-card figcaption span:not(.avatar) { font-size: var(--text-sm); color: var(--text-faint); }

/* ---------------- Feature / step cards ---------------- */

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

.feature-card, .step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft), var(--edge-light);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

/* One hover recipe for every surface card */
@media (hover: hover) and (pointer: fine) {
  .stat-card:hover, .quote-card:hover, .feature-card:hover, .step-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background-color: var(--surface-2);
  }
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  border: 1px solid rgb(var(--blue-rgb) / 0.22);
  color: var(--blue-bright);
  margin-bottom: 20px;
}
.feature-icon svg { width: 23px; height: 23px; }

.feature-card h3, .step-card h3 { margin-bottom: 10px; }
.feature-card p, .step-card p { font-size: var(--text-md); color: var(--text-dim); }

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  color: var(--blue-bright);
  margin-bottom: 16px;
}
.steps .step-card { position: relative; overflow: hidden; }
.steps .step-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue-bright), transparent 80%);
  opacity: 0.6;
}

/* ---------------- Split (solution) ---------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}
.split-copy .sub { margin-bottom: 28px; }

.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-md);
  font-weight: 500;
}
.check-list .icon {
  width: 21px;
  height: 21px;
  color: var(--blue-bright);
  background: var(--blue-soft);
  border-radius: var(--radius-xs);
  padding: 3px;
  flex-shrink: 0;
}
.check-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
  margin-top: 28px;
}

/* ---------------- TradingView-style frames ---------------- */

.tv-frame {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), var(--edge-light);
}

.tv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
}
.tv-symbol {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}
.tv-ohlc {
  font-size: var(--text-xs);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.tv-frame svg { width: 100%; height: auto; }
#solutionChart { aspect-ratio: 640 / 360; }
#previewChart1 { aspect-ratio: 1040 / 430; }
#previewChart2, #previewChart3 { aspect-ratio: 520 / 300; }

.preview-caption {
  padding: 16px 20px;
  font-size: var(--text-base);
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.preview-caption strong { color: var(--text); font-weight: 600; }

.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.preview-grid .tv-frame.big { grid-column: 1 / -1; }

/* ---------------- What's included ---------------- */

.included-card {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px;
  align-items: center;
  background: linear-gradient(150deg, var(--surface-2), var(--surface) 55%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 56px;
  box-shadow: var(--shadow), var(--glow-blue);
  position: relative;
  overflow: hidden;
}
.included-card::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 480px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgb(var(--blue-rgb) / 0.13), transparent 65%);
  pointer-events: none;
}

.included-note { font-size: var(--text-base); color: var(--text-faint); margin: 24px 0 28px; max-width: 480px; }

.included-visual { display: flex; justify-content: center; position: relative; }
.included-mark {
  width: min(200px, 60%);
  filter: drop-shadow(0 20px 60px rgb(var(--blue-rgb) / 0.3));
}

/* ---------------- FAQ ---------------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq-list details:hover, .faq-list details[open] { border-color: var(--border-strong); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: var(--text-lg);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon {
  width: 19px;
  height: 19px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary .icon { transform: rotate(180deg); color: var(--blue-bright); }

.faq-list details p {
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: var(--text-md);
  max-width: 700px;
}
.faq-list details[open] p { animation: fadeUp 0.4s var(--ease) both; }

/* Legal pages enter softly */
.legal-main { animation: fadeUp 0.6s var(--ease) both; }

/* ---------------- Final CTA ---------------- */

.final-cta { padding: 152px 0 140px; overflow: hidden; }

.cta-glow {
  position: absolute;
  bottom: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 620px;
  background: radial-gradient(ellipse 48% 44% at 50% 60%, rgb(var(--blue-rgb) / 0.2), transparent 70%);
  pointer-events: none;
}

.final-cta h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

/* ---------------- Footer ---------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background: var(--bg-inset);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.footer-tag { font-size: var(--text-base); color: var(--text-faint); margin-top: 14px; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-size: var(--text-base);
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
  padding: 4px 0;
}
.footer-links a:hover { color: var(--text); }

.disclaimer {
  font-size: var(--text-sm);
  color: var(--text-faint);
  line-height: 1.7;
  max-width: 760px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.copyright { font-size: var(--text-xs); color: var(--text-faint); margin-top: 16px; }

/* ---------------- Motion: 3D & dynamic layer ----------------
   All pointer effects are wired by JS only under (hover:hover) and
   (pointer:fine) and never when prefers-reduced-motion; everything
   here is transform/opacity-only (compositor-safe).             */

/* Pointer-tilt frames: JS adds .tilt + injects .tilt-sheen */
.tilt { transition: transform 0.55s var(--ease); transform-style: preserve-3d; }
.tilt.tilting { transition: none; }
.tilt-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.07), transparent 62%);
  transition: opacity 0.4s var(--ease);
  z-index: 5;
}
.tilt:hover .tilt-sheen { opacity: 1; }
.tv-frame, .video-frame { position: relative; }

/* Hero atmosphere: a second glow layer drifting on its own clock */
.hero-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 32% at 32% 42%, rgb(var(--blue-rgb) / 0.10), transparent 70%),
    radial-gradient(36% 30% at 68% 55%, rgb(var(--blue-bright-rgb) / 0.07), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  from { transform: translate3d(-2.5%, -1.5%, 0) scale(1); }
  to { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
}

/* Scroll progress hairline (element injected by JS) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 110;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* The brand mark hovers in space inside the included-card */
.js .included-mark {
  animation: markFloat 9s ease-in-out infinite alternate;
}
@keyframes markFloat {
  from { transform: perspective(800px) rotateX(6deg) rotateY(-10deg) translateY(4px); }
  to { transform: perspective(800px) rotateX(-4deg) rotateY(9deg) translateY(-9px); }
}

/* Live-terminal chip in the VSL chrome */
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgb(var(--green-rgb) / 0.8);
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Charts rise into place when they first render */
.chart-enter { animation: chartEnter 0.7s var(--ease) both; }
@keyframes chartEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- Platform experience (scroll-driven) ----------------
   The hero frame assembles into the product UI across four stages as
   the visitor scrolls: chart → workspace chrome → framework overlay →
   alerts. Hidden pre-states are .js-gated; stages st-1..st-3 restore. */

/* The sticky range is its PARENT's box - the container must span the
   full stage height or the frame scrolls away over a blank band. */
@media (min-width: 821px) {
  .js .platform-scroll .container { min-height: 400vh; }
  .js .platform-sticky {
    position: sticky;
    top: clamp(84px, calc(50vh - 340px), 150px);
  }
}

.platform-frame { max-width: 1080px; }

.pf-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
}
.pf-tf { display: flex; gap: 4px; }
.pf-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-faint);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pf-pill.active { color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: var(--border); }
.pf-symbol { color: var(--text); letter-spacing: 0.04em; }
.pf-study { margin-left: auto; color: var(--blue-bright); background: var(--blue-soft); border-color: rgb(var(--blue-rgb) / 0.22); }

.platform-body { display: flex; align-items: stretch; }

.pf-sidebar {
  width: 200px;
  flex: 0 0 auto;
  border-right: 1px solid var(--border);
  background: var(--bg-inset);
  padding: 12px 0 8px;
}
.pf-side-head {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 4px 14px 8px;
}
.pf-side-gap { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.pf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pf-row.active { background: rgba(255, 255, 255, 0.04); box-shadow: inset 2px 0 0 var(--blue); }

/* Demo session: ghost cursor + click ripple + chart crossfade */
.poster-chart { transition: opacity 0.25s ease; }
.pf-cursor {
  position: absolute;
  top: 0; left: 0;
  z-index: 6;
  width: 20px; height: 20px;
  pointer-events: none;
  opacity: 0;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s var(--ease);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}
.pf-cursor.on { opacity: 1; }
.pf-click {
  position: absolute;
  z-index: 6;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 2px solid rgb(var(--blue-bright-rgb) / 0.8);
  pointer-events: none;
  animation: pfClick 0.55s var(--ease) forwards;
}
@keyframes pfClick {
  from { transform: scale(0.35); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}
.pf-sym { color: var(--text-dim); font-weight: 600; }
.pf-price { margin-left: auto; color: var(--text); }
.pf-chip { font-weight: 600; }
.pf-chip.up { color: var(--green); }
.pf-chip.dn { color: var(--red); }

.video-poster { flex: 1; min-width: 0; }

.pf-alerts {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(280px, 62%);
  z-index: 4;
  pointer-events: none;
}
.pf-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(11, 14, 20, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft), var(--edge-light);
}
.pf-alert strong { display: block; font-size: var(--text-xs); color: var(--text); }
.pf-alert span:not(.pf-alert-dot) { font-size: 0.6875rem; color: var(--text-faint); }
.pf-alert-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; flex: 0 0 auto; }
.pf-alert-dot.ok { background: var(--green); box-shadow: 0 0 6px rgb(var(--green-rgb) / 0.7); }
.pf-alert-dot.go {
  background: var(--blue-bright);
  box-shadow: 0 0 6px rgb(var(--blue-bright-rgb) / 0.7);
  animation: livePulse 2.2s ease-in-out infinite;
}

/* Symbol-switch shimmer: the platform "loads" the next chart */
.video-poster.pf-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.05) 50%, transparent 68%);
  animation: pfShimmer 0.7s ease infinite;
  pointer-events: none;
}
@keyframes pfShimmer {
  from { transform: translateX(-55%); }
  to { transform: translateX(55%); }
}

.pf-chip { transition: opacity 0.25s ease; }

/* Stage pre-states (JS on) and reveals - six scroll chapters */
.js .pf-toolbar { opacity: 0; transform: translateY(-8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .pf-sidebar { opacity: 0; transform: translateX(-14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .pf-alert { opacity: 0; transform: translateY(-10px) scale(0.97); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .hp-zones, .js .hp-risk, .js .hp-targets { opacity: 0; transition: opacity 0.85s var(--ease); }

.js .platform-frame.st-1 .pf-toolbar { opacity: 1; transform: none; }
.js .platform-frame.st-1 .pf-sidebar { opacity: 1; transform: none; }
.js .platform-frame.st-2 .hp-zones { opacity: 1; }
.js .platform-frame.st-3 .hp-risk { opacity: 1; }
.js .platform-frame.st-4 .hp-targets { opacity: 1; }
.js .platform-frame.st-5 .pf-alert:nth-child(1) { opacity: 1; transform: none; }
.js .platform-frame.st-6 .pf-alert:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.js .platform-frame.st-6 .pf-alert:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.26s; }

/* Caption rail: one numbered narration line per chapter */
.pf-captions { display: none; }
@media (min-width: 821px) {
  .js .pf-captions { display: block; position: relative; height: 30px; margin-top: 18px; }
}
.pf-cap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pf-cap em { font-style: normal; color: var(--blue-bright); }
.platform-sticky[data-stage="1"] .c1,
.platform-sticky[data-stage="2"] .c2,
.platform-sticky[data-stage="3"] .c3,
.platform-sticky[data-stage="4"] .c4,
.platform-sticky[data-stage="5"] .c5,
.platform-sticky[data-stage="6"] .c5 { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .pf-sidebar { display: none; }
}
@media (max-width: 720px) {
  .pf-alerts { display: none; }
  .pf-toolbar { overflow-x: auto; scrollbar-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .pf-toolbar, .js .pf-sidebar, .js .pf-alert,
  .js .hp-zones, .js .hp-risk, .js .hp-targets { opacity: 1; transform: none; transition: none; }
  .pf-captions { display: none !important; }
}

/* ---------------- Reveal animations ----------------
   Hidden states are scoped to .js (set inline in <head>) so the page
   is fully visible when JavaScript is unavailable or fails.       */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* Reveals use animation (not transition) so element transitions stay free
   for hover states - a transition here would hijack card hovers forever. */
.js .reveal { opacity: 0; }
.js .reveal.visible { opacity: 1; animation: fadeUp 0.7s var(--ease) both; }
.js .reveal.visible.d1 { animation-delay: 0.08s; }
.js .reveal.visible.d2 { animation-delay: 0.16s; }
.js .reveal.visible.d3 { animation-delay: 0.24s; }
.js .reveal.visible.d4 { animation-delay: 0.32s; }

/* Showpiece frames enter with a perspective straighten instead of a flat rise */
@keyframes riseTilt {
  from { opacity: 0; transform: perspective(1200px) translateY(34px) rotateX(7deg); }
  to { opacity: 1; transform: none; }
}
.js .video-frame.reveal.visible,
.js .split-visual.reveal.visible,
.js .preview-grid .tv-frame.reveal.visible {
  animation: riseTilt 0.8s var(--ease) both;
}

/* Hero enters via pure CSS at first paint - no JS on the LCP path */
.js .hero .reveal {
  opacity: 1;
  animation: fadeUp 0.7s var(--ease) both;
}
.js .hero .reveal.d1 { animation-delay: 0.08s; }
.js .hero .reveal.d2 { animation-delay: 0.16s; }
.js .hero .reveal.d3 { animation-delay: 0.24s; }
.js .hero .reveal.d4 { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero .reveal { opacity: 1; animation: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  /* No orphan card: a lone third item spans the full row */
  .card-grid.three > :nth-child(3):last-child { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .included-card { grid-template-columns: 1fr; padding: 44px 36px; }
  .included-visual { display: none; }
}

/* Nav collapses at 820px so labels never collide with the brand */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-cta-mobile { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(6, 8, 12, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    /* visibility flips instantly on open (so focus() can land) and only
       after the fade on close */
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .nav-links > a:not(.btn) { padding: 12px 4px; font-size: var(--text-lg); }
  .nav-links .btn { display: none; } /* CTA lives in the header row on mobile */
}

@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .hero { padding: 152px 0 72px; }

  /* Desktop-tuned hard breaks wrap naturally on small screens */
  h1 br, h2 br { display: none; }

  .card-grid.three, .stats-grid { grid-template-columns: 1fr; }
  .card-grid.three > :nth-child(3):last-child { grid-column: auto; }
  .preview-grid { grid-template-columns: 1fr; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .included-card { padding: 36px 24px; }
  .chart-card { padding: 20px 16px 16px; }
  .chart-card-head { flex-direction: column; }
  .chart-badges { align-self: flex-start; }

  /* Testimonials: swipeable row instead of a 1,400px scroll wall */
  .quote-grid {
    display: flex;
    gap: 14px;
    margin: 0 -24px;
    padding: 4px 24px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .quote-grid::-webkit-scrollbar { display: none; }
  .quote-card { flex: 0 0 84%; scroll-snap-align: center; }

  .play-btn { width: 64px; height: 64px; }
  .play-btn svg { width: 24px; height: 24px; }

  /* Keep the caption: static line under the frame instead of an overlay */
  .video-caption {
    position: static;
    background: none;
    padding: 12px 16px 14px;
    font-size: var(--text-sm);
    border-top: 1px solid var(--border);
  }

  .hero-cta .btn { width: 100%; justify-content: center; }
  .trust-strip { gap: 12px 24px; }
}

/* Small phones: keep brand + CTA + toggle on one line without wrapping */
@media (max-width: 420px) {
  .btn-sm { padding: 10px 14px; }
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 6px; }
  .brand-word { letter-spacing: 0.16em; }
}
