/* ---------- Tokens ---------- */
:root {
  --pink: #ff2a8e;
  --cyan: #18e8ff;
  --orange: #ff6b3d;
  --bg: #0a0014;
  --fg: #f0e9ff;
  --fg-dim: #b9b0d9;

  --glow-pink: 0 0 6px rgba(255, 42, 142, 0.85),
               0 0 18px rgba(255, 42, 142, 0.55),
               0 0 36px rgba(255, 42, 142, 0.3);
  --glow-cyan: 0 0 6px rgba(24, 232, 255, 0.85),
               0 0 18px rgba(24, 232, 255, 0.55),
               0 0 36px rgba(24, 232, 255, 0.3);
  --glow-orange: 0 0 6px rgba(255, 107, 61, 0.85),
                 0 0 18px rgba(255, 107, 61, 0.55),
                 0 0 36px rgba(255, 107, 61, 0.3);

  --ff-display: "Monoton", system-ui, sans-serif;
  --ff-mono: "Space Mono", ui-monospace, monospace;
  --ff-body: "Space Grotesk", system-ui, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Page ---------- */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.blurb {
  font-family: var(--ff-mono);
  color: var(--fg-dim);
  text-align: center;
  font-size: 0.95rem;
  margin: 8px auto 40px;
  max-width: 36ch;
}

@media (min-width: 720px) {
  body { font-size: 18px; }
  .page { padding: 64px 24px 96px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding-bottom: 56px;
  margin-bottom: 16px;
}

.logo {
  margin: 0 auto;
  width: min(420px, 80%);
  filter: drop-shadow(0 0 24px rgba(255, 42, 142, 0.25))
          drop-shadow(0 0 48px rgba(24, 232, 255, 0.15));
}

.subtitle {
  font-family: var(--ff-mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin: 24px 0 0;
  font-size: 0.85rem;
}

@media (min-width: 720px) {
  .subtitle { font-size: 1rem; }
}

/* ---------- Grid horizon ---------- */
.grid-horizon {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 200vw;
  height: 120px;
  transform: translateX(-50%) perspective(240px) rotateX(58deg);
  transform-origin: bottom center;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0 calc(5% - 1px),
      rgba(24, 232, 255, 0.55) calc(5% - 1px) 5%
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 calc(20px - 1px),
      rgba(24, 232, 255, 0.55) calc(20px - 1px) 20px
    );
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .grid-horizon {
    animation: gridScroll 2.4s linear infinite;
  }
  @keyframes gridScroll {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 0, 0 20px; }
  }
}

/* ---------- Section headings ---------- */
.section-heading {
  font-family: var(--ff-mono);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  font-size: 0.95rem;
  margin: 56px 0 12px;
}
.section-heading.pink   { color: var(--pink);   text-shadow: var(--glow-pink); }
.section-heading.cyan   { color: var(--cyan);   text-shadow: var(--glow-cyan); }
.section-heading.orange { color: var(--orange); text-shadow: var(--glow-orange); }

@media (min-width: 720px) {
  .section-heading { font-size: 1.05rem; }
}

/* ---------- Counter ---------- */
.counter {
  font-family: var(--ff-mono);
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin: 0 0 20px;
}
.counter.qualified {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* ---------- Rules list (checkbox cards) ---------- */
.rules { display: flex; flex-direction: column; gap: 10px; }

.rules label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 42, 142, 0.45);
  border-radius: 6px;
  background: rgba(255, 42, 142, 0.04);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.rules label:hover {
  border-color: var(--pink);
  background: rgba(255, 42, 142, 0.08);
  box-shadow: 0 0 12px rgba(255, 42, 142, 0.25);
}

/* Hide the native input but keep it accessible */
.rules input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.rules .box {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border: 2px solid var(--pink);
  border-radius: 3px;
  position: relative;
  margin-top: 2px;
  box-shadow: var(--glow-pink);
}

.rules .box::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  border-radius: 1px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 120ms ease, transform 120ms ease;
}

.rules input:checked + .box::after {
  opacity: 1;
  transform: scale(1);
}

.rules input:focus-visible + .box {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.rules .text {
  flex: 1;
  color: var(--fg);
}

.rules input:checked ~ .text {
  color: var(--fg-dim);
}

/* ---------- Lifetime variant: orange ---------- */
.checklist.lifetime .rules label {
  border-color: rgba(255, 107, 61, 0.5);
  background: rgba(255, 107, 61, 0.05);
}
.checklist.lifetime .rules label:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 61, 0.1);
  box-shadow: 0 0 12px rgba(255, 107, 61, 0.3);
}
.checklist.lifetime .rules .box {
  border-color: var(--orange);
  box-shadow: var(--glow-orange);
}
.checklist.lifetime .rules .box::after {
  background: var(--orange);
  box-shadow: var(--glow-orange);
}

/* ---------- Closer ---------- */
.closer {
  text-align: center;
  margin: 72px 0 24px;
}

.welcome {
  font-family: var(--ff-display);
  font-weight: 400;
  color: var(--pink);
  text-shadow: var(--glow-pink);
  font-size: clamp(2rem, 8vw, 3.5rem);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.15;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 56px;
  text-align: center;
  color: var(--fg-dim);
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

/* ---------- Scanlines overlay ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}
