/* ═══════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; }

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --red:        #ff1b2d;
  --red-dim:    rgba(255, 27, 45, 0.42);
  --red-faint:  rgba(255, 27, 45, 0.10);
  --bg:         #0a0a0c;
  --white:      #ffffff;
  --muted:      rgba(233, 188, 184, 0.80);
  --glass-bg:   rgba(255, 255, 255, 0.04);
  --glass-bd:   rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════ */
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0a0a0c;
}

/* ═══════════════════════════════════════════════
   VIDEO LAYER
═══════════════════════════════════════════════ */
.video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#vid1a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

#vid1b {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* Gradient overlay */
.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10,10,12,0.10) 0%,
    rgba(10,10,12,0.10) 8%,
    rgba(10,10,12,0.38) 35%,
    rgba(10,10,12,0.80) 65%,
    rgba(10,10,12,0.97) 100%
  );
  pointer-events: none;
}

/* Video 2 intro panel */
.vid-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.vid-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vid-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,12,0.32) 0%,
    rgba(10,10,12,0.45) 35%,
    rgba(10,10,12,0.80) 65%,
    rgba(10,10,12,0.96) 100%
  );
  pointer-events: none;
}
.vid-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px rgba(255,27,45,0.12);
  z-index: 1;
  pointer-events: none;
}
.vid-panel.active {
  opacity: 1;
  will-change: opacity;
}

/* GX sweep */
.gx-sweep {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    110deg,
    transparent          0%,
    rgba(255,27,45,0.08) 28%,
    rgba(255,27,45,0.70) 50%,
    rgba(255,27,45,0.08) 72%,
    transparent          100%
  );
  transform: translateX(-110%);
}

/* ═══════════════════════════════════════════════
   HERO CONTENT — z:3
═══════════════════════════════════════════════ */
.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-top: 68px;
  opacity: 0;
}

/* ═══════════════════════════════════════════════
   NAV BAR
═══════════════════════════════════════════════ */
.nav-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(8, 8, 10, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    inset 3px 0 0 rgba(255,27,45,0.55),
    0 4px 32px rgba(0,0,0,0.45);
}
@supports (backdrop-filter: blur(1px)) {
  .nav-bar {
    background: rgba(8, 8, 10, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}
.nav-bar::after {
  content: '';
  position: absolute;
  top: 100%; right: 0;
  width: 340px;
  height: 80px;
  background: linear-gradient(
    180deg,
    rgba(8,8,10,0.92) 0%,
    rgba(8,8,10,0.60) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  padding-inline: clamp(16px, 4vw, 60px);
  max-width: 1320px;
  margin-inline: auto;
}

.logo img {
  height: 30px;
  width: auto;
  aspect-ratio: 120/38;
}
@media (min-width: 768px) { .logo img { height: 36px; } }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--red);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 0 18px var(--red-dim);
  white-space: nowrap;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  cursor: pointer;
}
.nav-btn:hover {
  box-shadow: 0 0 36px var(--red-dim);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   HERO BODY
═══════════════════════════════════════════════ */
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(28px, 5vw, 64px);
  padding-inline: clamp(16px, 4vw, 60px);
  max-width: 1320px;
  width: 100%;
  margin-inline: auto;
}

/* Trust badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  margin-bottom: clamp(16px, 2.8vw, 26px);
}
@supports (backdrop-filter: blur(1px)) {
  .trust-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 7px #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1;  transform:scale(1);    }
  50%      { opacity:.4; transform:scale(1.35); }
}

.badge-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}

/* Headline */
.headline {
  font-family: 'Chivo', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 5.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 860px;
  margin-bottom: clamp(12px, 2vw, 22px);
  text-shadow: 0 2px 28px rgba(0,0,0,0.60);
}
.headline em { font-style:italic; color:var(--red); }

/* Subline */
.subline {
  font-size: clamp(14px, 1.9vw, 17px);
  line-height: 1.68;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: clamp(24px, 3.8vw, 42px);
  text-shadow: 0 1px 14px rgba(0,0,0,0.65);
}

/* CTA */
.cta-wrap { width:100%; max-width:360px; }

.cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(14px,2.4vw,18px) 32px;
  background: var(--red);
  color: var(--white);
  font-family: 'Chivo', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(16px,2.3vw,22px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.16);
  overflow: hidden;
  box-shadow: 0 0 30px var(--red-dim), 0 4px 24px rgba(0,0,0,0.45);
  transition: box-shadow 0.32s ease, transform 0.32s cubic-bezier(0.175,0.885,0.32,1.275);
  cursor: pointer;
  border-top: none;
  border-left: none;
  border-right: none;
  font-size: clamp(16px,2.3vw,22px);
}
.cta-btn:hover {
  box-shadow: 0 0 56px var(--red-dim), 0 8px 36px rgba(0,0,0,0.52);
  transform: translateY(-3px) scale(1.025);
}
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,0.20),transparent);
  transform: translateX(-100%);
  transition: transform 0.60s ease;
}
.cta-btn:hover::after { transform:translateX(100%); }

.cta-micro {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.03em;
  text-align: center;
}

/* ═══════════════════════════════════════════════
   CARD ENTRANCE
═══════════════════════════════════════════════ */
@keyframes card-in {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0);    }
}
.card {
  opacity: 0;
  animation: card-in 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-play-state: paused;
}
.cards-ready .card:nth-child(1) { animation-delay:0s;     animation-play-state:running; }
.cards-ready .card:nth-child(2) { animation-delay:0.15s;  animation-play-state:running; }
.cards-ready .card:nth-child(3) { animation-delay:0.30s;  animation-play-state:running; }

/* ═══════════════════════════════════════════════
   BENEFIT CARDS
═══════════════════════════════════════════════ */
.cards-section {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-bottom: clamp(22px,4vh,44px);
  padding-inline: clamp(16px,4vw,60px);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(10px,1.8vw,22px);
  align-items: stretch;
}
@media (max-width:580px) {
  .cards-grid { grid-template-columns:1fr; gap:10px; }
}

.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-bd);
  border-radius: 16px;
  padding: clamp(16px,2.2vw,24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-height: 150px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
@supports (backdrop-filter:blur(1px)) {
  .card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,27,45,0.28);
  box-shadow: 0 10px 36px rgba(0,0,0,0.32), 0 0 24px rgba(255,27,45,0.07);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.card-icon .material-symbols-outlined {
  font-size: 22px;
  color: var(--red);
  font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
}
.card-title {
  font-family: 'Chivo', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
}
.card-desc {
  font-size: 12px;
  line-height: 1.58;
  color: rgba(233,188,184,0.62);
}

/* ═══════════════════════════════════════════════
   SHORT VIEWPORT
═══════════════════════════════════════════════ */
@media (max-height:680px) {
  .hero-inner  { padding-top:60px; }
  .hero-body   { padding-block:10px; }
  .trust-badge { margin-bottom:10px; }
  .headline    { margin-bottom:8px; font-size:clamp(24px,4.5vw,42px); }
  .subline     { margin-bottom:14px; }
  .card        { min-height:120px; }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion:reduce) {
  .badge-dot { animation:none; }
  .card      { animation:none; opacity:1; }
  .cta-btn   { transition:none; }
}

/* ═══════════════════════════════════════════════
   A/B TEST MODE INDICATOR
   Shown only when TEST_MODE = true in main.js
   Centered overlay, high z-index, dismissible feel
═══════════════════════════════════════════════ */
#ab-indicator {
  display: none; /* JS shows it when TEST_MODE=true */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9000;
  text-align: center;
  padding: 36px 52px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid;
  font-family: 'JetBrains Mono', monospace;
  animation: ab-pulse 2.5s ease-in-out infinite;
}
@keyframes ab-pulse {
  0%,100% { box-shadow: 0 0 40px currentColor; }
  50%      { box-shadow: 0 0 80px currentColor; }
}
#ab-indicator.offer-1 {
  background: rgba(0, 200, 80, 0.15);
  border-color: #00c850;
  color: #00ff6a;
}
#ab-indicator.offer-2 {
  background: rgba(30, 100, 255, 0.15);
  border-color: #1e64ff;
  color: #5b9eff;
}
#ab-indicator .ab-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
#ab-indicator .ab-label {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}
#ab-indicator .ab-url {
  font-size: 13px;
  opacity: 0.75;
  display: block;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════
   DEBUG PANEL
   Shown only when URL contains ?debug=true
═══════════════════════════════════════════════ */
#debug-panel {
  display: none; /* JS shows it when ?debug=true */
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  width: 320px;
  background: rgba(5, 5, 8, 0.95);
  border: 1px solid rgba(255,27,45,0.40);
  border-radius: 12px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 24px rgba(255,27,45,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#debug-panel h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,27,45,0.25);
}
.dbg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 8px;
}
.dbg-row:last-child { border-bottom: none; }
.dbg-key {
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  flex-shrink: 0;
}
.dbg-val {
  color: var(--white);
  text-align: right;
  word-break: break-all;
  font-size: 10px;
}
.dbg-val.ok   { color: #22c55e; }
.dbg-val.wait { color: #f59e0b; }
.dbg-val.err  { color: #f87171; }