/* ============================================================
   EAP Trading — Design Tokens & Base Styles
   ============================================================
   Responsive breakpoint convention (mobile-first, additive):
     360px  — small Android floor (paddings/font scale floor)
     480px  — large phone        (start enabling 2-col grids)
     640px  — phablet/landscape  (intermediate container padding)
     768px  — tablet portrait    (most 2-col layouts kick in)
    1024px  — tablet landscape   (full desktop layout)
    1280px  — standard desktop
    1600px  — ultrawide          (bump container, hero scale)
   ============================================================ */

:root {
  /* Backgrounds — layered darks */
  --bg-base:       #0A0A0F;
  --bg-elevated:   #13131A;
  --bg-card:       #1A1A22;
  --bg-glass:      rgba(26, 26, 34, 0.6);
  --bg-navy:       #0A0A14;

  /* Borders */
  --border-subtle: #24242E;
  --border-strong: #2F2F3D;
  --border-glow:   rgba(225, 29, 46, 0.3);

  /* Red accent system */
  --red-primary:   #E11D2E;
  --red-bright:    #FF2740;
  --red-deep:      #8B0F1C;
  --red-glow:      rgba(225, 29, 46, 0.15);

  /* Text */
  --text-primary:  #F5F5F7;
  --text-secondary:#B4B4BE;
  --text-muted:    #6E6E7A;

  /* Status */
  --success:       #10B981;
  --danger:        #E11D2E;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', 'Times New Roman', serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto; /* Lenis handles it */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

img, video, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* ============================================================
   Typography utilities
   ============================================================ */

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--red-primary);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 7vw, 96px); }
@media (min-width: 1600px) { h1 { font-size: clamp(96px, 6vw, 120px); } }
h2 { font-size: clamp(36px, 4.5vw, 64px); }
h3 { font-size: clamp(24px, 2.5vw, 36px); letter-spacing: -0.02em; }

em.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

em.red {
  font-style: normal;
  color: var(--red-primary);
}

.body-text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.tnum { font-feature-settings: 'tnum' 1; }

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }
@media (min-width: 1600px) {
  .container { padding: 0 64px; max-width: 1440px; }
}

.section {
  position: relative;
  padding: clamp(64px, 10vw, 160px) 0;
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

.section--base { background: var(--bg-base); }
.section--elevated { background: var(--bg-elevated); }
.section--navy { background: var(--bg-navy); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  padding: 14px 24px;
  min-height: 44px;
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
  position: relative;
  will-change: transform;
}

.btn--primary {
  background: var(--red-primary);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(225, 29, 46, 0.5);
}
.btn--primary:hover {
  background: var(--red-bright);
  box-shadow: 0 20px 50px -15px rgba(225, 29, 46, 0.7);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

.btn .badge-free {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  margin-left: 4px;
}

.btn--lg { padding: 18px 32px; font-size: 16px; }

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--red-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================================
   Reveal animations (IntersectionObserver-driven)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* split-reveal: each line wrapped in mask */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.split-reveal.is-visible .split-line > span {
  transform: translateY(0);
}

/* image clip reveal */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-out);
}
.clip-reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

/* ============================================================
   Hover lift card
   ============================================================ */

.lift {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px -20px rgba(225, 29, 46, 0.25);
  border-color: var(--border-glow);
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
  .clip-reveal { clip-path: inset(0 0 0 0); }
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* keep container's horizontal padding; only override vertical */
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 12px;
}
@media (min-width: 768px) {
  .nav__inner { gap: 24px; padding-top: 12px; padding-bottom: 12px; }
}
.nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo-wrap {
  position: relative;
  width: 160px;
  height: 52px;
}
@media (min-width: 768px) {
  .nav__logo-wrap { width: 180px; height: 56px; }
}
.nav__logo-full,
.nav__logo-icon {
  position: absolute;
  top: 50%;
  left: 0;
  transform-origin: left center;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__logo-full {
  height: 52px;
  width: auto;
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
@media (min-width: 768px) {
  .nav__logo-full { height: 56px; }
}
.nav__logo-icon {
  height: 28px;
  width: auto;
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
}
@media (min-width: 768px) {
  .nav__logo-icon { height: 32px; }
}
/* scrolled: swap to icon */
.nav.is-scrolled .nav__logo-full {
  opacity: 0;
  transform: translateY(-50%) scale(1.15);
}
.nav.is-scrolled .nav__logo-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.nav__links {
  display: none;
  gap: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--red-primary);
  transition: width 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a:hover::after { width: 100%; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 768px) { .nav__right { gap: 16px; } }
/* Hide the desktop CTA on small phones — mobile menu has its own CTA */
@media (max-width: 479px) {
  .nav__right > .btn--primary { display: none; }
}
/* Compress the badge on tablet-portrait so the navbar isn't crowded */
@media (max-width: 1023px) {
  .nav__right > .btn--primary .badge-free { display: none; }
}
.lang-toggle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}
.lang-toggle [data-lang] { cursor: pointer; transition: color 0.2s; padding: 4px 2px; }
.lang-toggle [data-lang]:hover { color: var(--text-secondary); }
.lang-toggle .active { color: var(--text-primary); }
.lang-toggle .sep { margin: 0 6px; opacity: 0.4; }

.nav__hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  /* Inset the touch padding so the visible icon aligns with the container edge */
  padding: 12px 0;
  min-width: 44px;
  min-height: 44px;
  z-index: 101; /* sit above the mobile menu so it stays clickable */
}
@media (min-width: 1024px) { .nav__hamburger { display: none; } }
.nav__hamburger span {
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  padding: 96px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  /* hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease-out),
              transform 0.45s var(--ease-out),
              visibility 0s linear 0.35s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.35s var(--ease-out),
              transform 0.45s var(--ease-out),
              visibility 0s linear 0s;
}
.mobile-menu > a {
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  /* per-link entry stagger */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out),
              color 0.2s ease;
}
.mobile-menu.is-open > a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open > a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open > a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.is-open > a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open > a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.is-open > a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open > a:nth-child(6) { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-menu__foot { transition-delay: 0.35s; }
.mobile-menu > a:hover { color: var(--red-primary); }
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__foot {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu__foot .btn { width: 100%; }
.lang-toggle--mobile {
  display: inline-flex !important;
  align-self: center;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.lang-toggle--mobile [data-lang] {
  padding: 10px 18px;
  border-radius: 999px;
  min-width: 64px;
  text-align: center;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease;
}
.lang-toggle--mobile [data-lang].active {
  background: var(--red-primary);
  color: #fff;
}
.lang-toggle--mobile .sep { display: none; } /* segmented look — no divider needed */

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(112px, 18vh, 220px) 0 clamp(64px, 10vw, 140px);
  text-align: center;
  overflow: hidden;
  border-top: none;
}

/* Hero animated background */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero__grid {
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(rgba(225,29,46,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,29,46,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(80px, 80px); }
}
.hero__chart {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.hero__chart .chart-line {
  fill: none;
  stroke: var(--red-primary);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(225,29,46,0.7));
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: chartDraw 6s var(--ease-out) 0.4s forwards, chartFloat 14s ease-in-out 6.4s infinite alternate;
}
.hero__chart .chart-fill {
  fill: url(#heroFill);
  opacity: 0;
  animation: fillIn 1.5s ease-out 5s forwards, chartFloat 14s ease-in-out 6.4s infinite alternate;
}
@keyframes chartDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes fillIn {
  to { opacity: 0.9; }
}
@keyframes chartFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
.hero__candles {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}
.hero__candles rect {
  animation: candleRise 1.2s var(--ease-out) backwards;
}
@keyframes candleRise {
  from { transform: translateY(20px) scaleY(0.4); transform-origin: bottom; opacity: 0; }
  to   { transform: translateY(0) scaleY(1); opacity: 1; }
}
.hero__ticker {
  position: absolute;
  top: clamp(60px, 22%, 200px);
  left: 0; right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(9px, 2.4vw, 11px);
  letter-spacing: 0.15em;
  color: rgba(180,180,190,0.35);
  white-space: nowrap;
  display: flex;
  gap: clamp(24px, 6vw, 48px);
  animation: tickerScroll 60s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  width: max-content;
}
.hero__ticker--bottom {
  top: auto;
  bottom: clamp(60px, 22%, 200px);
  animation-direction: reverse;
  animation-duration: 80s;
  font-size: clamp(8px, 2.2vw, 10px);
  color: rgba(180,180,190,0.25);
}
.hero__ticker .up { color: var(--success); }
.hero__ticker .down { color: var(--red-primary); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero__scan {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  filter: blur(1px);
  opacity: 0.6;
  animation: scan 6s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 12%; opacity: 0; }
  10%      { opacity: 0.8; }
  90%      { opacity: 0.8; }
  50%      { top: 88%; }
}

/* Decorative trading-bg elements throughout the page */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(180,180,190,0.18);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.deco--corner-tl { top: 32px; left: 32px; }
.deco--corner-tr { top: 32px; right: 32px; text-align: right; }
.deco--corner-bl { bottom: 32px; left: 32px; }
.deco--corner-br { bottom: 32px; right: 32px; text-align: right; }

/* These corner deco labels are decorative texture — hide on phones */
@media (max-width: 767px) {
  .deco--corner-tl,
  .deco--corner-tr,
  .deco--corner-bl,
  .deco--corner-br { display: none; }

  /* Section ticker pill: drop into normal flow above the heading instead of overlapping it */
  .section__ticker {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: max-content;
    max-width: calc(100% - 48px);
    /* match the container's horizontal padding (24px on phones) */
    margin: 0 24px 20px;
  }
}
.deco__bracket {
  width: 28px; height: 28px;
  border: 1px solid rgba(225,29,46,0.4);
  position: absolute;
}
.deco__bracket--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.deco__bracket--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.deco__bracket--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.deco__bracket--br { bottom: 0; right: 0; border-left: none; border-top: none; }
.deco__candles {
  position: absolute;
  width: 180px;
  height: 80px;
  opacity: 0.18;
}
.section { z-index: 1; }
.section .container { position: relative; z-index: 2; }

/* Floating ticker pill scattered between sections */
.section__ticker {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(180,180,190,0.28);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(10,10,15,0.4);
  backdrop-filter: blur(8px);
}
.section__ticker .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-primary);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.hero__glow {
  position: absolute;
  width: 1200px; height: 1200px;
  right: -20%; bottom: -40%;
  background: radial-gradient(circle at center, var(--red-glow), transparent 60%);
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
}
.hero__glow--top {
  top: -30%; left: -10%; right: auto; bottom: auto;
  width: 800px; height: 800px;
  opacity: 0.3;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 1600px) { .hero__inner { max-width: 1180px; } }
.hero__readout {
  position: absolute;
  top: 30%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(180,180,190,0.4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}
.hero__readout--l { left: 4%; text-align: left; align-items: flex-start; }
.hero__readout--r { right: 4%; text-align: right; align-items: flex-end; }
.hero__readout .row { display: flex; gap: 10px; }
.hero__readout .k { color: var(--text-muted); }
.hero__readout .v { color: var(--text-secondary); }
.hero__readout .v.up { color: var(--success); }
.hero__readout .v.down { color: var(--red-primary); }
@media (max-width: 1024px) { .hero__readout { display: none; } }
.hero__eyebrow {
  margin-bottom: 32px;
}
.hero__h1 {
  margin-bottom: 28px;
  position: relative;
  z-index: 3;
  text-shadow: 0 2px 30px rgba(10,10,15,0.95), 0 0 60px rgba(10,10,15,0.7);
}
.hero__h1::before {
  content: '';
  position: absolute;
  inset: -20px -16px;
  background: radial-gradient(ellipse at center, rgba(10,10,15,0.85) 0%, rgba(10,10,15,0.5) 50%, transparent 80%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}
@media (min-width: 768px) {
  .hero__h1::before { inset: -40px -80px; }
}
.hero__h1 em.serif {
  position: relative;
  display: inline-block;
}
.hero__sub {
  position: relative;
  z-index: 3;
  text-shadow: 0 2px 20px rgba(10,10,15,0.8);
}
.hero__sub {
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 0 8px;
  line-height: 1.6;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
@media (max-width: 479px) {
  .hero__ctas { flex-direction: column; align-items: stretch; padding: 0 8px; }
  .hero__ctas .btn { width: 100%; }
}
.hero__video {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 20px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.hero__video::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 60px),
    linear-gradient(135deg, #1a1a22 0%, #0f0f15 100%);
}
.hero__video::after {
  content: 'FOUNDER VIDEO · 02:34';
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.hero__video:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 80px -10px rgba(225,29,46,0.4);
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
  box-shadow: 0 0 0 8px rgba(225,29,46,0.15), 0 20px 60px -10px rgba(225,29,46,0.5);
}
.hero__video:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--red-bright);
}
.play-btn::before {
  content: '';
  width: 0; height: 0;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 5px;
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 0;
}
.trust__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
}
@media (min-width: 768px) {
  .trust__row { grid-template-columns: repeat(4, 1fr); }
}
.trust__cell {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust__num {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-feature-settings: 'tnum';
}
.trust__lbl {
  font-size: clamp(9px, 2.4vw, 11px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .trust__lbl { letter-spacing: 0.2em; white-space: normal; }
}

/* ============================================================
   PAIN POINTS / WHO IT'S FOR / SUCCESS FORMULA grids
   ============================================================ */

.section__head {
  max-width: 880px;
  margin: 0 auto 64px;
  text-align: center;
}
.section__head .eyebrow { margin-bottom: 20px; }
.section__head h2 { margin-bottom: 24px; }
.section__head .sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}
/* Phones: left-align section heads (and the in-flow ticker pill above them) */
@media (max-width: 767px) {
  .section__head { text-align: left; margin-bottom: 40px; }
  .section__head h2 { text-wrap: balance; }
  .section__head .sub { margin: 0; }
  /* ticker margin handled by the .section__ticker rule above (24px gutter) */
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 480px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px) clamp(18px, 3.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pain-card__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
}
.pain-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.pain-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* Who it's for */
.who {
  display: grid;
  gap: 20px;
  align-items: center;
  grid-template-columns: 1fr;
}
.who__portrait { display: none; }
@media (min-width: 640px) {
  .who { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width: 1024px) {
  .who {
    grid-template-columns: 1fr auto 1fr;
    gap: 36px;
  }
  .who__portrait { display: block; }
}
.who__col {
  display: grid;
  gap: 20px;
}
.who__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
}
.who__card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.who__card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.who__portrait {
  position: relative;
  aspect-ratio: 3/4;
  width: 300px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #2a2a35 0%, #15151c 100%);
  box-shadow: 0 0 80px rgba(225, 29, 46, 0.25);
  border: 1px solid var(--border-subtle);
}
@media (min-width: 1280px) { .who__portrait { width: 340px; } }
.who__portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 40px);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   COMMUNITY TESTIMONIALS (masonry)
   ============================================================ */

.masonry {
  columns: 1;
  column-gap: 20px;
}
@media (min-width: 480px)  { .masonry { columns: 2; column-gap: 24px; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
@media (min-width: 1600px) { .masonry { columns: 4; } }
.testi {
  break-inside: avoid;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stars { display: flex; gap: 4px; color: var(--red-primary); }
.testi p {
  font-style: italic;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
}
.testi__foot {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 13px;
}
.testi__foot .name { color: var(--text-primary); font-weight: 600; }
.testi__foot .role { color: var(--text-muted); display: block; margin-top: 2px; }

/* ============================================================
   EAP SYSTEM
   ============================================================ */

.system {
  position: relative;
}
.system__bgtext {
  position: absolute;
  top: 40px; left: 50%;
  transform: translateX(-50%);
  font-size: clamp(120px, 16vw, 220px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.02);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  display: none;
}
@media (min-width: 640px) { .system__bgtext { display: block; } }
.system__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .system__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}
.system__image {
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
  max-width: 480px;
  margin: 0 auto;
}
.system__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.system__features { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}
.feature:last-child { border-bottom: none; padding-bottom: 0; }
.feature__sq {
  width: 14px; height: 14px;
  background: var(--red-primary);
  margin-top: 8px;
  box-shadow: 0 0 16px rgba(225,29,46,0.4);
}
.feature h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   MARQUEE (Trading Results)
   ============================================================ */

.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 -24px;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
@media (min-width: 640px)  { .marquee { margin: 0 -32px; } }
@media (min-width: 1024px) { .marquee { margin: 0 -48px; } }

/* Phones: continuous auto-scroll on tablet+, swipeable snap-scroll on phones */
@media (max-width: 767px) {
  .marquee {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 50%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* soften the side fade so snapped items aren't clipped by the mask */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee__track {
    animation: none !important;
    /* breathing room so first/last can center; phone is ~55vw wide */
    padding-inline: 22vw;
  }
  .marquee .phone {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}
.marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.phone {
  flex: 0 0 clamp(180px, 55vw, 240px);
  aspect-ratio: 9/19.5;
  border-radius: 32px;
  border: 8px solid #0a0a0e;
  background: #0a0a0f;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8), inset 0 0 0 1px var(--border-subtle);
  position: relative;
  overflow: hidden;
  padding: 0;
}
@media (min-width: 1600px) { .phone { flex-basis: 260px; } }
.phone__notch {
  width: 60px; height: 16px;
  background: #000;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 8px;
}
.phone__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  letter-spacing: 0.05em;
}
.phone__row .pair { color: var(--text-muted); }
.phone__row .pl { font-weight: 700; }
.phone__row .pl.pos { color: var(--success); }
.phone__row .pl.neg { color: var(--danger); }
.phone__chart {
  flex: 1;
  background:
    linear-gradient(180deg, transparent 60%, rgba(225,29,46,0.1) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 20px);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.phone__chart svg { width: 100%; height: 100%; }
.phone__badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 2px 6px;
  border-radius: 3px;
}
.phone__badge.buy { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.phone__badge.sell { background: rgba(225,29,46,0.15); color: var(--red-primary); border: 1px solid rgba(225,29,46,0.3); }

.disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ============================================================
   SUCCESS FORMULA
   ============================================================ */

.formula-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.formula-card__media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1f1f28, #0f0f15);
  position: relative;
  overflow: hidden;
}
.formula-card__media img,
.formula-card__media svg.card-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s var(--ease-out);
}
.formula-card:hover .formula-card__media img,
.formula-card:hover .formula-card__media svg.card-chart { transform: scale(1.04); }
.formula-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 40px);
}
.formula-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.1) 100%);
}
.formula-card__media .label {
  position: absolute;
  bottom: 14px; left: 14px;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--red-primary);
}
.formula-card__body { padding: 24px; }
.formula-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.formula-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   VIDEO TESTIMONIALS
   ============================================================ */

.vtesti-stack { display: flex; flex-direction: column; gap: 32px; }
.vtesti {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px);
}
@media (min-width: 768px) {
  .vtesti { grid-template-columns: 1fr 1fr; padding: 32px; gap: 32px; }
}
@media (min-width: 1024px) {
  .vtesti { padding: 40px; gap: 40px; }
}
.vtesti__name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.vtesti__role { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.vtesti__sub { display: flex; flex-direction: column; gap: 22px; }
.vtesti__sub-block .eyebrow { font-size: 11px; margin-bottom: 8px; }
.vtesti__sub-block p { color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.vtesti__video {
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a22, #0a0a0f);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.vtesti__video .play-btn { width: 64px; height: 64px; }
.vtesti__video .play-btn::before {
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* ============================================================
   PARALLAX SCROLL — video testimonials
   ============================================================ */
.vtesti {
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.6s var(--ease-out);
}
.vtesti.is-active { opacity: 1; }
.vtesti__video, .vtesti > div:first-child { will-change: transform; }

/* ============================================================
   TEAM marquee
   ============================================================ */
.team-marquee {
  position: relative;
  overflow: hidden;
  margin: 40px -24px 0;
  padding: 24px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
@media (min-width: 640px)  { .team-marquee { margin: 40px -32px 0; } }
@media (min-width: 1024px) { .team-marquee { margin: 40px -48px 0; } }

/* Phones: swipeable snap-scroll instead of rAF auto-scroll */
@media (max-width: 767px) {
  .team-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: default;
    /* relax the side mask so snapped cards aren't clipped */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .team-marquee::-webkit-scrollbar { display: none; }
  .team-track {
    transform: none !important;
    /* breathing room so first/last can center; card is ~78vw */
    padding-inline: 11vw;
  }
  .team-card {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}
.team-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}
.team-marquee { cursor: grab; }
.team-marquee.is-dragging { cursor: grabbing; user-select: none; }
.team-card {
  flex: 0 0 clamp(260px, 78vw, 340px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  position: relative;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 30px 80px -20px rgba(225,29,46,0.3);
}
.team-card__photo {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #2a2a35, #0f0f15);
}
.team-card__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 36px),
    radial-gradient(circle at 30% 25%, rgba(225,29,46,0.18), transparent 60%);
  transition: transform 0.6s var(--ease-out);
}
.team-card:hover .team-card__photo::before { transform: scale(1.06); }
.team-card__photo::after {
  content: '';
}
.team-card__num {
  position: absolute;
  top: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #fff;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}
.team-card__role-badge {
  position: absolute;
  bottom: 14px; right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  background: rgba(10,10,15,0.7);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.team-card__body { padding: 24px; }
.team-card__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.team-card__job {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.team-card__meta {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}
.team-card__meta div { flex: 1; }
.team-card__meta .k {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.team-card__meta .v {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-feature-settings: 'tnum';
}
.team-card__bio {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
@media (min-width: 1024px) {
  .founder-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; }
}
.founder__portrait {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #2a2a35 0%, #15151c 100%);
  box-shadow: 0 40px 100px -30px rgba(225,29,46,0.25), 0 0 0 1px var(--border-subtle);
}
.founder__img {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 40px),
    radial-gradient(circle at 30% 30%, rgba(225,29,46,0.12), transparent 60%),
    linear-gradient(180deg, #1f1f28 0%, #0f0f15 100%);
}
.founder__caption {
  padding: 16px 4px 0;
}

/* Center the founder CTA on phones; let it sit in flow on desktop */
@media (max-width: 767px) {
  .founder__cta { display: flex; margin: 0 auto; }
}

/* Stats row — fluid value size so the longest word ("Switzerland") fits one line */
.founder__stats > div > div:first-child {
  font-size: clamp(15px, 4.4vw, 24px) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.founder__stats > div > div:last-child {
  font-size: clamp(9px, 2.4vw, 11px) !important;
  letter-spacing: 0.16em !important;
}

.mid-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: clamp(28px, 6vw, 64px);
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
  box-shadow: 0 30px 80px -30px rgba(225,29,46,0.25);
}
@media (min-width: 768px) {
  .mid-cta { grid-template-columns: 1.4fr 1fr; }
}
.mid-cta h3 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 16px; }
.mid-cta p { color: var(--text-secondary); font-size: 16px; }
.mid-cta__ctas { display: flex; flex-direction: column; gap: 12px; }

.final-cta-wrap {
  position: relative;
  text-align: center;
}
.final-cta-glow {
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(circle at 50% 50%, var(--red-glow), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
@media (min-width: 768px) { .final-cta-glow { inset: -10% -20%; } }
.final-cta {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 64px);
  border-radius: 24px;
  box-shadow: 0 30px 80px -30px rgba(225,29,46,0.3);
}
.final-cta h2 { margin-bottom: 24px; }
.final-cta p { color: var(--text-secondary); font-size: 17px; max-width: 600px; margin: 0 auto 36px; }

/* ============================================================
   FOUR STEPS TIMELINE
   ============================================================ */

.steps {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}
.steps__line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .steps__line { left: 24px; transform: none; }
}
.steps__line svg { width: 100%; height: 100%; overflow: visible; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 32px;
}
@media (max-width: 767px) {
  .step {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
}
.step__node {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--red-primary);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  font-feature-settings: 'tnum';
  margin: 0 auto;
  box-shadow: 0 0 24px rgba(225,29,46,0.4);
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
}
@media (max-width: 767px) {
  .step__node { margin: 0; grid-column: 1; }
}
.step__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 28px);
}
.step__card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.step__card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.step--right .step__card { grid-column: 3; }
.step--left .step__card { grid-column: 1; text-align: right; }
@media (max-width: 767px) {
  .step--right .step__card,
  .step--left .step__card { grid-column: 2; text-align: left; }
}

.steps__cta { text-align: center; margin-top: 48px; }

/* ============================================================
   JOURNEY TIMELINE (showpiece)
   ============================================================ */

.journey {
  position: relative;
}
.journey__bg {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: linear-gradient(180deg, transparent, rgba(225,29,46,0.06) 30%, rgba(225,29,46,0.06) 70%, transparent);
  pointer-events: none;
  filter: blur(40px);
}
.journey__line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .journey__line { left: 24px; transform: none; }
}
.journey__line svg { width: 100%; height: 100%; overflow: visible; }
.journey__path {
  fill: none;
  stroke: var(--red-primary);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(225,29,46,0.6));
}

.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 80px;
  min-height: 200px;
}
@media (max-width: 767px) {
  .milestone {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    margin-bottom: 56px;
  }
}
.milestone__node {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red-primary);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-base), 0 0 0 6px rgba(225,29,46,0.3), 0 0 24px rgba(225,29,46,0.6);
  grid-column: 2;
  grid-row: 1;
}
@media (max-width: 767px) {
  .milestone__node { margin: 0; grid-column: 1; }
}
.milestone.is-visible .milestone__node {
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--bg-base), 0 0 0 6px rgba(225,29,46,0.3), 0 0 24px rgba(225,29,46,0.6); }
  50%      { box-shadow: 0 0 0 4px var(--bg-base), 0 0 0 10px rgba(225,29,46,0.15), 0 0 36px rgba(225,29,46,0.8); }
}

.milestone__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.milestone--left .milestone__content {
  grid-column: 1;
  align-items: flex-end;
  text-align: right;
  transform: translateX(-60px);
}
.milestone--right .milestone__content { grid-column: 3; }
.milestone.is-visible .milestone__content {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 767px) {
  .milestone__content,
  .milestone--left .milestone__content,
  .milestone--right .milestone__content {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
    transform: translateY(40px);
  }
  .milestone.is-visible .milestone__content { transform: translateY(0); }
}

.milestone__year {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--red-primary);
}
.milestone__year::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-primary);
}
.milestone--left .milestone__year { flex-direction: row-reverse; }
@media (max-width: 767px) {
  .milestone--left .milestone__year { flex-direction: row; }
}

.milestone__h {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.milestone__d {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: 75ch;
}
.milestone__img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/5;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f1f28, #0a0a0f);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s;
  clip-path: inset(0 100% 0 0);
}
.milestone--left .milestone__img { clip-path: inset(0 0 0 100%); }
.milestone.is-visible .milestone__img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out) 0.2s; }
.milestone__img:hover { border-color: var(--border-glow); }
.milestone__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 36px);
}
.milestone__img .tag {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) { .faq-grid { grid-template-columns: 1fr 1fr; } }
.faq-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.faq__chev {
  width: 12px; height: 12px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.4s var(--ease-out);
  flex-shrink: 0;
}
.faq.is-open .faq__chev { transform: rotate(45deg); }
.faq__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.faq.is-open .faq__content { grid-template-rows: 1fr; }
.faq__inner {
  overflow: hidden;
}
.faq__inner p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  padding: 0 28px 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 32px;
  text-align: center;
}
.footer__brand {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}
.footer__brand .dot {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--red-primary);
  border-radius: 50%;
  vertical-align: middle;
  transform: translateY(-22px);
  box-shadow: 0 0 20px var(--red-primary);
  margin-left: 6px;
}
.footer__tag {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}
.footer__social {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer__social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  color: var(--text-secondary);
}
.footer__social a:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background: rgba(225,29,46,0.08);
}
.footer__email {
  color: var(--text-secondary);
  font-size: 14px;
  display: inline-block;
  margin-bottom: 48px;
  transition: color 0.3s;
}
.footer__email:hover { color: var(--red-primary); }
.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; }
}
.footer__bottom .links { display: flex; gap: 18px; }
.footer__bottom a:hover { color: var(--text-secondary); }

/* ============================================================
   Real image helpers
   ============================================================ */
.milestone__img img,
.who__portrait img,
.founder__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.team-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* ============================================================
   Tweaks panel positioning hint
   ============================================================ */
.tweaks-hidden #tweaks-panel { display: none !important; }
@media (max-width: 380px) {
  #tweaks-panel .tw {
    width: calc(100vw - 32px) !important;
    right: 16px !important;
    bottom: 16px !important;
  }
}
