:root {
  --bg: #0f1219;
  --navy: #1a1f3a;
  --accent: #ffd700;
  --accent2: #ffef8a;
  --text: #ffffff;
  --muted: #b0b8d4;
  --alert: #ff6b6b;
  --ok: #3ae374;

  --card: rgba(26, 31, 58, 0.78);
  --border: rgba(255, 215, 0, 0.22);
  --line: rgba(176, 184, 212, 0.18);

  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadowSoft: 0 10px 24px rgba(0, 0, 0, 0.35);
  --radius: 12px;

  --max: 1200px;
  --padX: clamp(20px, 4vw, 44px);
  --padY: clamp(56px, 7vw, 90px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 900px at 10% 10%, rgba(255, 215, 0, 0.08), transparent 55%),
    radial-gradient(900px 800px at 85% 30%, rgba(255, 215, 0, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(26, 31, 58, 0.36), rgba(15, 18, 25, 0.2)),
    var(--bg);
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise (CSS-only) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

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

a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 215, 0, 0.75);
  text-underline-offset: 4px;
}

.skipLink {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--navy);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1000;
}

.skipLink:focus {
  left: 12px;
}

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

.section {
  padding: var(--padY) 0;
}

.hero {
  padding-top: calc(var(--padY) + 8px);
  padding-bottom: var(--padY);
  background: radial-gradient(900px 650px at 20% 5%, rgba(255, 215, 0, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(26, 31, 58, 0.88), rgba(15, 18, 25, 0.05));
  border-bottom: 1px solid rgba(176, 184, 212, 0.12);
}

.heroGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.heroCopy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 215, 0, 0.95);
  margin: 0 0 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.15);
}

.heroTitle {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(42px, 6.2vw, 64px);
}

.heroTitle .stagger {
  display: block;
}

.heroSub {
  margin: 18px 0 18px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
}

.scarcityLine {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.09);
  border: 1px solid rgba(255, 107, 107, 0.3);
  margin: 0 0 18px;
}

.scarcityIcon {
  opacity: 0.95;
}

.scarcityText {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.scarcityRemaining {
  color: var(--alert);
  font-weight: 800;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    text-shadow: 0 0 0 rgba(255, 107, 107, 0);
  }
  50% {
    transform: translateY(-1px);
    text-shadow: 0 0 14px rgba(255, 107, 107, 0.35);
  }
}

.heroForm {
  margin-top: 0;
}

.inputRow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.inputWrap {
  position: relative;
}

input[type="email"] {
  width: 100%;
  appearance: none;
  border-radius: 12px;
  padding: 16px 46px 16px 16px;
  border: 1px solid rgba(176, 184, 212, 0.25);
  background: rgba(26, 31, 58, 0.62);
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom */
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

input[type="email"]::placeholder {
  color: rgba(176, 184, 212, 0.68);
}

input[type="email"]:focus-visible {
  border-color: rgba(255, 215, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.18);
}

input[type="email"][data-invalid="true"] {
  border-color: rgba(255, 107, 107, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

.validIcon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ok);
  opacity: 0;
  transition: opacity 180ms ease;
}

.validIcon[data-visible="true"] {
  opacity: 1;
}

.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: 12px;
  padding: 16px 18px;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease, background 200ms ease,
    border-color 200ms ease;
  user-select: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.22);
}

.btnPrimary {
  background: linear-gradient(180deg, rgba(255, 215, 0, 1), rgba(255, 215, 0, 0.86));
  color: #0b0d12;
  box-shadow: 0 14px 28px rgba(255, 215, 0, 0.18);
}

.btnPrimary:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(0.95);
  box-shadow: 0 18px 40px rgba(255, 215, 0, 0.22);
}

.btnPrimary:active {
  transform: translateY(0) scale(1.01);
}

.btnWide {
  width: 100%;
}

.btnGhost {
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
}

.btnGhost:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadowSoft);
  border-color: rgba(255, 215, 0, 0.6);
}

.micro {
  margin: 10px 0 0;
  color: rgba(176, 184, 212, 0.9);
  font-size: 14px;
}

.micro.secondary {
  margin-top: 6px;
  color: rgba(176, 184, 212, 0.78);
}

.error {
  min-height: 20px;
  margin: 10px 0 0;
  color: rgba(255, 107, 107, 0.95);
  font-size: 14px;
}

.success {
  min-height: 20px;
  margin: 10px 0 0;
  color: rgba(58, 227, 116, 0.92);
  font-size: 14px;
}

.ctaRow {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.heroVisual {
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

.visualFrame {
  border-radius: 18px;
  background: rgba(26, 31, 58, 0.55);
  border: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.visualFrame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 280px at 30% 20%, rgba(255, 215, 0, 0.16), transparent 55%);
  pointer-events: none;
}

.visualSvg {
  display: block;
  width: 100%;
  height: auto;
}

.sectionHeader h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.lead {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: clamp(16px, 2.3vw, 18px);
}

.muted {
  color: var(--muted);
}

.statsGrid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.statCard {
  background: var(--card);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.statTop {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.statBottom {
  margin-top: 6px;
  color: rgba(176, 184, 212, 0.95);
}

.trust {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.problemGrid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.problemList {
  margin: 14px 0 16px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.problemList li {
  margin: 10px 0;
}

.insight {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.bridge {
  margin: 14px 0 0;
  color: rgba(176, 184, 212, 0.92);
}

.ctaCard {
  background: radial-gradient(650px 220px at 35% 20%, rgba(255, 215, 0, 0.18), transparent 55%),
    var(--card);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 18px;
  box-shadow: var(--shadowSoft);
  padding: 18px;
}

.ctaCardInner {
  padding: 8px 4px;
}

.ctaTitle {
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 22px;
}

.cardsGrid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transform: translateY(0) scale(1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  outline: none;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 215, 0, 0.32);
}

.card h3 {
  margin: 10px 0 8px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1.2;
}

.card p {
  margin: 0;
}

.cardIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.26);
  background: rgba(255, 215, 0, 0.12);
}

.iconDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.12);
}

.confidence {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(26, 31, 58, 0.42);
  border: 1px solid rgba(176, 184, 212, 0.16);
  border-radius: 18px;
  padding: 20px;
}

.badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(58, 227, 116, 0.35);
  background: rgba(58, 227, 116, 0.12);
  color: rgba(58, 227, 116, 0.95);
}

.confidenceCopy h2 {
  margin: 0;
}

.eaShell {
  background: radial-gradient(900px 420px at 20% 0%, rgba(255, 215, 0, 0.16), transparent 55%),
    rgba(26, 31, 58, 0.52);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.scarcityBanner {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.09);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.eaForm {
  margin-top: 16px;
}

.footer {
  border-top: 1px solid rgba(176, 184, 212, 0.12);
  padding: 28px 0;
}

.footerInner {
  display: grid;
  gap: 12px;
  align-items: center;
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger {
  opacity: 0;
  transform: translateY(10px);
  animation: in 520ms ease forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%) translateY(-10px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast[data-open="true"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toastInner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(26, 31, 58, 0.92);
  border: 1px solid rgba(58, 227, 116, 0.28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  max-width: min(calc(100vw - 24px), 680px);
}

.toastIcon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(58, 227, 116, 0.14);
  border: 1px solid rgba(58, 227, 116, 0.28);
  color: rgba(58, 227, 116, 0.98);
}

.toastText {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 14px;
}

@media (min-width: 768px) {
  .heroGrid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }

  .inputRow {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .statsGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .problemGrid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
  }

  .cardsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .confidence {
    grid-template-columns: auto 1fr;
    gap: 18px;
  }

  .footerInner {
    grid-template-columns: 1fr auto auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stagger {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scarcityRemaining {
    animation: none;
  }

  .btn {
    transition: none;
  }

  .toast {
    transition: none;
  }
}
