/* ============================================================
   PIP RACER — LANDING PAGE STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

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

:root {
  --bg-a:      #070d1d;
  --bg-b:      #040b18;
  --text:      #e7f2ff;
  --muted:     #7a96b8;
  --accent:    #ffd041;
  --accent-dk: #d9a800;
  --bull:      #74c71e;
  --bear:      #ff6b60;
  --border:    rgba(160, 200, 255, 0.14);
  --border-hi: rgba(255, 208, 65, 0.35);
  --panel:     rgba(8, 18, 38, 0.85);
  --glow-y:    rgba(255, 208, 65, 0.22);
  --glow-b:    rgba(20, 100, 255, 0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-a);
  color: var(--text);
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Typography helpers ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(17px, 2.2vw, 26px);
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 18px;
  text-shadow: 0 0 32px rgba(255, 208, 65, 0.25);
}

.section-sub {
  font-size: 1.45rem;
  color: var(--muted);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  padding: 14px 26px;
  letter-spacing: 0.06em;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: #07100a;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #fff9e0;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 28px var(--glow-y);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: rgba(160, 200, 255, 0.45);
  color: var(--text);
}

.btn-lg  { font-size: 12px; padding: 16px 32px; }
.btn-xl  { font-size: 14px; padding: 20px 48px; }


/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav--scrolled { background: rgba(4, 8, 18, 0.97); }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 72px 28px 80px;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 80% 60% at 65% 50%, #0d1f40 0%, #060f20 50%, #030810 100%);
  overflow: hidden;
}

/* scanlines overlay */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.09) 3px,
    rgba(0, 0, 0, 0.09) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Flying candles background ── */
.flying-candles-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.flying-candles-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(8.33% - 1px),
      rgba(126, 145, 175, 0.3) calc(8.33% - 1px),
      rgba(126, 145, 175, 0.3) 8.33%
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(12.5% - 1px),
      rgba(126, 145, 175, 0.3) calc(12.5% - 1px),
      rgba(126, 145, 175, 0.3) 12.5%
    );
  animation: candles-grid-scroll 7.4s linear infinite;
}

.flying-candles-crawl {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.flying-candles-crawl::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(154, 175, 208, 0.2), transparent 58%);
  opacity: 0.4;
}

.flying-candle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  opacity: 0;
  will-change: transform, opacity;
  animation: candle-flight var(--sprite-duration, 9s) linear infinite;
  animation-delay: var(--sprite-delay, 0s);
  filter: drop-shadow(0 0 10px rgba(140, 168, 210, 0.2));
}

.flying-candle.flying-candle-bull,
.flying-candle.flying-candle-bear {
  width: 16px;
  height: 54px;
}

.flying-candle-wick {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 2px;
  height: 36px;
  transform: translateX(-50%);
  opacity: 0.95;
}

.flying-candle-body {
  position: absolute;
  left: 50%;
  top: 15px;
  width: 10px;
  height: 20px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.flying-candle-bull .flying-candle-wick,
.flying-candle-bull .flying-candle-body {
  background: #7ce531;
  box-shadow: 0 0 14px rgba(124, 229, 49, 0.46);
}

.flying-candle-bear .flying-candle-wick,
.flying-candle-bear .flying-candle-body {
  background: #ff665f;
  box-shadow: 0 0 14px rgba(255, 102, 95, 0.42);
}

@keyframes candles-grid-scroll {
  from { background-position: 0 0, 0 0; }
  to   { background-position: -84px 0, 0 -74px; }
}

@keyframes candle-flight {
  0% {
    transform: translate(-50%, -50%) rotate(var(--sprite-spin, 0deg)) scale(calc(var(--sprite-base-scale, 1) * 0.14));
    opacity: 0;
  }
  6%  { opacity: 0.95; }
  18% {
    transform: translate(-50%, -50%) rotate(calc(var(--sprite-spin, 0deg) * 0.95)) scale(calc(var(--sprite-base-scale, 1) * 0.22));
    opacity: 0.96;
  }
  42% {
    transform: translate(calc(-50% + var(--sprite-vx, 0px) * 0.36), calc(-50% + var(--sprite-vy, 0px) * 0.36)) rotate(calc(var(--sprite-spin, 0deg) * 1.1)) scale(calc(var(--sprite-base-scale, 1) * 0.58));
    opacity: 0.9;
  }
  66% {
    transform: translate(calc(-50% + var(--sprite-vx, 0px) * 0.98), calc(-50% + var(--sprite-vy, 0px) * 0.98)) rotate(calc(var(--sprite-spin, 0deg) * 0.22)) scale(calc(var(--sprite-base-scale, 1) * 1.2));
    opacity: 0.72;
  }
  82% { opacity: 0.36; }
  100% {
    transform: translate(calc(-50% + var(--sprite-vx, 0px) * 1.92), calc(-50% + var(--sprite-vy, 0px) * 1.92)) rotate(calc(var(--sprite-spin, 0deg) * -1.4)) scale(calc(var(--sprite-base-scale, 1) * 2.08));
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .flying-candle.flying-candle-bull,
  .flying-candle.flying-candle-bear {
    width: 13px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flying-candles-grid,
  .flying-candle { animation: none !important; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Left column: logo + title + video stacked ── */
.hero-text {
  display: flex;
  flex-direction: column;
}

/* ── FxScouts logo ── */
.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.fx-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  line-height: 0.9;
}

.fx-f {
  color: #f2f7ff;
  text-shadow: 1px 0 0 rgba(255,255,255,0.35), 0 0 8px rgba(255,255,255,0.22);
}

.fx-x {
  position: relative;
  top: -2px;
  color: #6f5eff;
  text-shadow: -2px 2px 0 #12d7ef, 0 0 10px rgba(111,94,255,0.5);
}

.fx-divider {
  width: 2px;
  height: 20px;
  background: rgba(255,255,255,0.84);
  opacity: 0.85;
}

.fx-word {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: #f4f8ff;
  text-shadow: 0 0 8px rgba(255,255,255,0.2);
}

/* ── Title letters ── */
.hero-title {
  font-family: 'Press Start 2P', monospace;
  line-height: 1.0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.title-row {
  display: flex;
  gap: clamp(4px, 0.8vw, 10px);
}

.title-top    { font-size: clamp(36px, 5vw, 62px); }
.title-bottom { font-size: clamp(42px, 5.8vw, 72px); }

.title-top span {
  color: #f5fbff;
  text-shadow: 0 0 12px rgba(120,225,234,0.12);
  display: inline-block;
  animation: letter-hop 1400ms steps(2, jump-none) infinite;
  animation-delay: calc(var(--letter-index, 0) * 160ms);
}

.title-bottom span {
  color: #ffd041;
  text-shadow: 0 0 10px rgba(255,208,65,0.14);
  display: inline-block;
  animation: letter-hop 1400ms steps(2, jump-none) infinite;
  animation-delay: calc(var(--letter-index, 0) * 160ms);
}

@keyframes letter-hop {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

.hero-tagline {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.6;
  opacity: 0.8;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ── Briefing block ── */
.hero-briefing {
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
  border-left: 2px solid rgba(255, 208, 65, 0.3);
  padding-left: 18px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.briefing-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--accent);
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.hero-briefing strong {
  color: var(--text);
}

/* ── Hero video ── */
.hero-visual {
  position: relative;
  width: 84%;
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(165deg, rgba(164, 202, 255, 0.14) 0%, rgba(164, 202, 255, 0) 22%),
    linear-gradient(180deg, #13243f 0%, #0b162a 56%, #081222 100%);
  border: 1px solid rgba(140, 185, 255, 0.32);
  -webkit-clip-path: inset(0 round 20px);
  clip-path: inset(0 round 20px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 10px 14px rgba(255, 255, 255, 0.03),
    inset 0 -12px 24px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(100, 150, 255, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.7),
    0 0 60px var(--glow-b);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 10px;
  border: 1px solid rgba(150, 195, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-visual video {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(22, 40, 67, 0.8);
}

/* ── Right column: hook + features + CTA ── */
.hero-right {
  display: flex;
  flex-direction: column;
  align-self: center;
  padding-top: 8px;
}

.hero-hook {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 2vw, 24px);
  color: var(--accent);
  line-height: 1.4;
  margin-bottom: 10px;
  text-shadow: 0 0 28px rgba(255, 208, 65, 0.3);
}

.hero-hook-sub {
  font-family: 'VT323', monospace;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--text);
  margin-bottom: 32px;
  opacity: 0.85;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-right .btn {
  align-self: flex-start;
  margin-left: 22px;
  padding-left: 48px;
  padding-right: 48px;
}

.hero-features li {
  font-family: 'VT323', monospace;
  font-size: clamp(20px, 1.9vw, 26px);
  color: var(--muted);
  line-height: 1.4;
  padding-left: 22px;
  position: relative;
}

.hero-features li::before {
  content: "►";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8em;
  top: 2px;
}

/* screenshot frame */
.screen-wrap {
  position: relative;
  background: #000;
  border: 2px solid rgba(130, 175, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(100, 150, 255, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.7),
    0 0 60px var(--glow-b);
  overflow: hidden;
}
.screen-wrap img { width: 100%; display: block; }

.screen-topbar {
  height: 20px;
  background: #0a1628;
  border-bottom: 1px solid rgba(130, 175, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}
.screen-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(130, 175, 255, 0.2);
}
.screen-topbar span:nth-child(1) { background: #ff6b60; opacity: 0.7; }
.screen-topbar span:nth-child(2) { background: #ffd041; opacity: 0.7; }
.screen-topbar span:nth-child(3) { background: #74c71e; opacity: 0.7; }

.hero-candles {
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
  pointer-events: none;
  opacity: 0.6;
}
.candle-deco { width: 100%; }


/* ============================================================
   TICKER STRIP
   ============================================================ */
.ticker-strip {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--accent);
  overflow: hidden;
  padding: 13px 0;
  border-top: 2px solid var(--accent-dk);
  border-bottom: 2px solid var(--accent-dk);
}

.ticker-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #07100a;
  letter-spacing: 0.08em;
}

.ticker-track .bull { color: #2a6a00; }
.ticker-track .bear { color: #8b1a00; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================================
   SECTIONS
   ============================================================ */
.section-a { background: var(--bg-a); padding: 100px 28px; }
.section-b { background: var(--bg-b); padding: 100px 28px; }

/* Major section transitions */
.section-transition {
  position: relative;
  --t: 0;
  height: clamp(28px, 4.5vh, 48px);
  overflow: hidden;
  isolation: isolate;
}

.section-transition::before,
.section-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-transition::before {
  background:
    linear-gradient(180deg, rgba(7, 13, 29, 0.14) 0%, rgba(7, 13, 29, 0.92) 100%);
  transform: translateY(calc((0.5 - var(--t)) * 16px)) scale(calc(0.99 + var(--t) * 0.03));
  opacity: calc(0.78 + var(--t) * 0.16);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  will-change: transform, opacity;
}

.section-transition::after {
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 56px,
      rgba(124, 151, 194, 0.06) 56px,
      rgba(124, 151, 194, 0.06) 57px
    ),
    linear-gradient(180deg, rgba(130, 175, 255, 0.08) 0%, rgba(130, 175, 255, 0) 44%);
  clip-path: polygon(0 18%, 8% 28%, 20% 22%, 34% 32%, 48% 20%, 63% 30%, 77% 24%, 90% 31%, 100% 22%, 100% 100%, 0 100%);
  transform: translateY(calc((var(--t) - 0.5) * 14px));
  opacity: calc(0.14 + var(--t) * 0.18);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  will-change: transform, opacity;
}

.section-transition--to-middle {
  background: linear-gradient(180deg, #0b152b 0%, var(--bg-a) 100%);
}

.section-transition--to-cta {
  background: linear-gradient(180deg, var(--bg-a) 0%, #081526 100%);
}

/* Tighter stack for trader -> rig -> market flow */
#traders.section-b,
#rigs.section-b,
#levels.section-a {
  padding-top: 64px;
  padding-bottom: 64px;
}

#traders .section-header,
#rigs .section-header,
#levels .section-header {
  margin-bottom: 44px;
}

/* Make section backgrounds distinct while matching trader + market */
#traders.section-b,
#levels.section-a {
  background: var(--bg-a);
}

#rigs.section-b {
  background: #06101f;
}


/* ============================================================
   HOW TO PLAY — STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.step-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  padding: 32px 22px 28px;
  position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(16px);
}
.step-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s, background 0.2s;
}
.step-card:hover {
  border-color: var(--border-hi);
  background: rgba(255, 208, 65, 0.04);
  transform: translateY(-5px);
}

.step-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  color: rgba(255, 208, 65, 0.12);
  position: absolute;
  top: 14px;
  right: 16px;
  line-height: 1;
  pointer-events: none;
}

.step-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}
.step-icon svg { width: 100%; height: 100%; }

.step-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Staggered animation delay */
.step-card:nth-child(1) { transition-delay: 0s;    }
.step-card:nth-child(2) { transition-delay: 0.08s; }
.step-card:nth-child(3) { transition-delay: 0.16s; }
.step-card:nth-child(4) { transition-delay: 0.24s; }

.howto-preview {
  max-width: 820px;
  margin: 0 auto;
}
.howto-preview video {
  width: 100%;
  display: block;
}
.screen-wrap--sm .screen-topbar { height: 18px; }


/* ============================================================
   TRADERS
   ============================================================ */
.traders-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.trader-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 16px 20px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(16px);
}
.trader-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s, background 0.2s;
}
.trader-card:hover {
  border-color: var(--border-hi);
  background: rgba(255, 208, 65, 0.05);
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.trader-card:nth-child(1) { transition-delay: 0s;    }
.trader-card:nth-child(2) { transition-delay: 0.06s; }
.trader-card:nth-child(3) { transition-delay: 0.12s; }
.trader-card:nth-child(4) { transition-delay: 0.18s; }
.trader-card:nth-child(5) { transition-delay: 0.24s; }
.trader-card:nth-child(6) { transition-delay: 0.30s; }

.trader-portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 2px solid var(--border);
  background: rgba(20, 40, 80, 0.5);
  transition: border-color 0.2s;
}
.trader-card:hover .trader-portrait { border-color: rgba(255, 208, 65, 0.5); }
.trader-portrait img { width: 100%; height: 100%; object-fit: cover; }

.trader-info h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 4px;
}

.archetype {
  font-size: 1.1rem;
  color: var(--muted);
}
.archetype--bull,
.archetype--bear { color: var(--muted); }


/* ============================================================
   LEVELS
   ============================================================ */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.level-card {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 36px 26px 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(16px);
}
.level-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.level-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }

.level-card:nth-child(1) { transition-delay: 0s;    }
.level-card:nth-child(2) { transition-delay: 0.08s; }
.level-card:nth-child(3) { transition-delay: 0.16s; }
.level-card:nth-child(4) { transition-delay: 0.24s; }

.level--demo     { background: rgba(120, 150, 190, 0.07); border-color: rgba(120, 150, 190, 0.22); }
.level--calm     { background: rgba(32, 215, 247, 0.05);  border-color: rgba(32, 215, 247, 0.22);  }
.level--volatile { background: rgba(255, 208, 65, 0.07);  border-color: rgba(255, 208, 65, 0.30);  }
.level--nuts     { background: rgba(255, 107, 96, 0.07);  border-color: rgba(255, 107, 96, 0.32);  }

/* Rig-specific tint map:
   MT4 green, MT5 blue, bTrader red, TradingSkew purple */
#rigs .level--demo {
  background: rgba(80, 176, 101, 0.13);
  border-color: rgba(126, 214, 145, 0.45);
}

#rigs .level--calm {
  background: rgba(70, 145, 230, 0.12);
  border-color: rgba(118, 185, 255, 0.44);
}

#rigs .level--volatile {
  background: rgba(196, 78, 94, 0.14);
  border-color: rgba(232, 120, 136, 0.45);
}

#rigs .level--nuts {
  background: rgba(138, 102, 201, 0.14);
  border-color: rgba(184, 150, 245, 0.46);
}

/* Slightly smaller rig boxes for tighter layout */
#rigs .levels-grid {
  gap: 14px;
}

#rigs .level-card {
  padding: 28px 20px 24px;
}

#rigs .level-card h3 {
  font-size: 12px;
  margin-bottom: 10px;
}

#rigs .level-card p {
  font-size: 1.15rem;
  line-height: 1.45;
}

/* Market section uses simple mode labels, not cards */
#levels .market-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

#levels .market-mode {
  position: relative;
  isolation: isolate;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 14px 12px;
  aspect-ratio: 1.15 / 1;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 8px;
  background-color: rgba(8, 16, 30, 0.72);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  overflow: hidden;
}

#levels .market-mode-title {
  display: block;
  line-height: 1.1;
  text-transform: uppercase;
}

#levels .market-mode-sub {
  display: block;
  margin-top: 4px;
  font-family: 'VT323', monospace;
  font-size: 1.02rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(233, 243, 255, 0.92);
  min-height: 1.1rem;
}

#levels .market-mode-sub--empty {
  visibility: hidden;
}

#levels .market-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.3) 0%, rgba(5, 10, 18, 0.72) 100%);
  z-index: -1;
}

#levels .market-mode--demo {
  color: #ffffff;
  border-bottom-color: rgba(158, 178, 202, 0.55);
  background-image: none;
}

#levels .market-mode--calm {
  color: #ffffff;
  border-bottom-color: rgba(121, 222, 255, 0.58);
  background-image: url("assets/calm-256a4ff8-e95e-4c0e-8022-0df4ae472947.png");
}

#levels .market-mode--volatile {
  color: #ffffff;
  border-bottom-color: rgba(255, 217, 119, 0.62);
  background-image: url("assets/volatile-a8a0e014-aeb6-44b9-a1f3-1d4df8d1de9d.png");
}

#levels .market-mode--nuts {
  color: #ffffff;
  border-bottom-color: rgba(255, 159, 152, 0.62);
  background-image: url("assets/nuts-3b838d52-afb5-4283-9a0d-8b77ea6f60d9.png");
}

.level-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.level-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 6px 11px;
  letter-spacing: 0.1em;
}
.level--demo     .level-badge { background: rgba(120,150,190,0.18); color: #93a9c5; }
.level--calm     .level-badge { background: rgba(32,215,247,0.14);  color: #20d7f7; }
.level--volatile .level-badge { background: rgba(255,208,65,0.18);  color: var(--accent); }
.level--nuts     .level-badge { background: rgba(255,107,96,0.18);  color: var(--bear); }

.heat-bar {
  display: flex;
  gap: 5px;
}
.pip {
  display: block;
  width: 18px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
}
.level--demo     .pip.on { background: #93a9c5; }
.level--calm     .pip.on { background: #20d7f7; }
.level--volatile .pip.on { background: var(--accent); }
.level--nuts     .pip.on { background: var(--bear); }

.level-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
}

.level-card p {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}


/* ============================================================
   SCREENSHOTS
   ============================================================ */
.shots-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 16px;
}

.shot-main .screen-wrap { height: 100%; }
.shot-main .screen-wrap img { height: 100%; object-fit: cover; }

.shot-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.section-cta {
  position: relative;
  background: linear-gradient(160deg, #0d2040 0%, #060e1e 60%, #030810 100%);
  padding: 120px 28px;
  text-align: center;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cta-candle-lanes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.42;
}

#cta-candle-layer {
  position: absolute;
  inset: 0;
}

.flying-candle.cta-chart-candle {
  left: 110vw;
  top: var(--candle-y, 50%);
  width: var(--candle-w, 12px);
  height: var(--candle-h, 54px);
  animation: cta-chart-scroll var(--candle-duration, 140s) linear infinite;
  animation-delay: var(--candle-delay, 0s);
  opacity: 0;
  filter: saturate(1.3) brightness(1.15) drop-shadow(0 0 8px rgba(170, 215, 255, 0.2));
}

.cta-chart-candle .flying-candle-wick {
  height: var(--candle-h, 54px);
  top: 0;
  width: 2px;
}

.cta-chart-candle .flying-candle-body {
  top: var(--body-top, 14px);
  height: var(--body-h, 26px);
  width: var(--candle-w, 12px);
  left: 50%;
  transform: translateX(-50%);
}

@keyframes cta-chart-scroll {
  0%   { transform: translateX(0) translateY(-50%); opacity: 0; }
  5%   { opacity: var(--candle-opacity, 0.58); }
  92%  { opacity: var(--candle-opacity, 0.58); }
  100% { transform: translateX(-130vw) translateY(-50%); opacity: 0; }
}

.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.58) 0%, rgba(4, 10, 20, 0.74) 100%);
  pointer-events: none;
  z-index: 0;
}

.cta-inner { position: relative; z-index: 1; }

.section-cta h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(20px, 3vw, 34px);
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 20px;
}

.section-cta p {
  font-size: 1.6rem;
  color: var(--muted);
  margin-bottom: 48px;
  line-height: 1.5;
}

.cta-meta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--muted);
  opacity: 0.6;
  letter-spacing: 0.06em;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #020609;
  padding: 32px 28px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-logo  { height: 36px; width: auto; opacity: 0.55; filter: brightness(1.1); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 1.1rem;
  color: var(--muted);
  opacity: 0.45;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.35;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
  margin-top: 20px;
  line-height: 1.7;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BACKGROUND MUSIC CONTROL
   ============================================================ */
.music-control {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 240;
}

.music-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  padding: 9px 11px;
  color: var(--muted);
  background: rgba(5, 11, 22, 0.72);
  border: 1px solid rgba(160, 200, 255, 0.16);
  border-radius: 999px;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.music-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 208, 65, 0.4);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.36),
    0 0 24px rgba(255, 208, 65, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.music-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.music-button--on {
  color: #07100a;
  background: var(--accent);
  border-color: var(--accent);
}

.music-button--off {
  color: var(--muted);
  background: rgba(5, 11, 22, 0.72);
  border-color: rgba(160, 200, 255, 0.16);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .traders-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-right  { padding-top: 0; }

  .steps-grid  { grid-template-columns: repeat(2, 1fr); }
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  #levels .market-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots-grid  { grid-template-columns: 1fr; }
  .shot-main .screen-wrap img { height: auto; }
}

@media (max-width: 640px) {
  .nav-links         { display: none; }
  .traders-grid      { grid-template-columns: repeat(2, 1fr); }
  .levels-grid       { grid-template-columns: 1fr; }
  #levels .market-modes { grid-template-columns: 1fr; gap: 10px; }
  .steps-grid        { grid-template-columns: 1fr; }
  .hero-ctas         { flex-direction: column; align-items: flex-start; }
  .footer-bottom     { flex-direction: column; align-items: flex-start; }
  .section-a, .section-b { padding: 72px 20px; }
  .music-control     { top: 12px; right: 12px; }
  .music-button      { min-width: 76px; padding: 8px 10px; font-size: 7px; }
}
