/* ==========================================================
   korvortexy — style.css
   Cyber Grid Design System
   Dark, purple‑blue accents, tech‑HUD atmosphere
   Covers ALL pages: index, play, about, faq, contact,
   responsible, how-it-works, terms, privacy, cookies
   ========================================================== */

/* ── FONTS ─────────────────────────────────────────────── */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --clr-bg:          #07070f;
  --clr-surface:     #0e0e1c;
  --clr-surface-2:   #141428;
  --clr-surface-3:   #1b1b35;
  --clr-border:      rgba(138,111,255,0.14);
  --clr-border-hi:   rgba(138,111,255,0.35);

  --clr-purple:      #8a6fff;
  --clr-purple-hi:   #a48fff;
  --clr-purple-dim:  rgba(138,111,255,0.15);
  --clr-blue:        #52d6ff;
  --clr-blue-dim:    rgba(82,214,255,0.12);

  --clr-text:        #e8e6ff;
  --clr-text-muted:  #9894c0;
  --clr-text-faint:  #5a5780;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Satoshi', system-ui, sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-full: 9999px;

  /* Shadows / glows */
  --glow-purple: 0 0 28px rgba(138,111,255,0.28), 0 0 8px rgba(138,111,255,0.16);
  --glow-blue:   0 0 24px rgba(82,214,255,0.22);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.36), 0 12px 40px rgba(0,0,0,0.28);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 220ms;
}

/* ── RESET / BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--sp-20);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
}

img, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.2;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--clr-purple);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── GRID BACKGROUND ─────────────────────────────────────── */
.bg-dark {
  background-color: var(--clr-bg);
}

.grid-bg {
  background-image:
    linear-gradient(to right, rgba(138,111,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138,111,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

section {
  padding-block: clamp(var(--sp-10), 6vw, var(--sp-20));
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  max-width: 68ch;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}

/* ── GRID HELPERS ─────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}

/* ── TYPOGRAPHY HELPERS ───────────────────────────────────── */
.text-muted  { color: var(--clr-text-muted); }
.text-faint  { color: var(--clr-text-faint); }
.text-purple { color: var(--clr-purple); }
.text-blue   { color: var(--clr-blue); }
.hidden      { display: none !important; }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,15,0.88);
  border-bottom: 1px solid var(--clr-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 72px;
  position: relative;
}

/* Logo */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
  z-index: 102;
}

.logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  background: linear-gradient(120deg, var(--clr-purple-hi), var(--clr-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop nav */
.nav { margin-left: auto; }

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: var(--sp-2);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}

.nav-link:hover {
  background: var(--clr-purple-dim);
  color: var(--clr-text);
}

.nav-link.active {
  background: rgba(138,111,255,0.2);
  color: var(--clr-text);
}

/* Nav CTA (Play Now) */
.nav-list li:last-child .nav-link {
  background: var(--clr-purple);
  color: #fff;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(138,111,255,0.35);
  transition: background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.nav-list li:last-child .nav-link:hover {
  background: var(--clr-purple-hi);
  box-shadow: var(--glow-purple);
  transform: translateY(-1px);
}

.nav-list li:last-child .nav-link.active {
  background: var(--clr-purple-hi);
}

/* Burger toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--clr-border-hi);
  border-radius: var(--r-md);
  background: var(--clr-surface-2);
  cursor: pointer;
  position: relative;
  z-index: 102;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}

.nav-toggle:hover {
  border-color: var(--clr-purple);
  background: var(--clr-surface-3);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--clr-text);
  transition: transform 0.28s var(--ease-out),
              opacity 0.28s ease;
}

.nav-open { overflow: hidden; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--sp-4);
    left: var(--sp-4);
    margin-left: 0;
    background: rgba(10,10,22,0.98);
    border: 1px solid var(--clr-border-hi);
    border-radius: var(--r-lg);
    padding: var(--sp-3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55), var(--glow-purple);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.24s var(--ease-out),
                transform 0.24s var(--ease-out),
                visibility 0.24s;
  }

  .nav.nav-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-1);
    width: 100%;
  }

  .nav-list li { width: 100%; }

  .nav-link {
    display: block;
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-base);
    border: 1px solid transparent;
    border-radius: var(--r-md);
  }

  .nav-link:hover {
    border-color: var(--clr-border-hi);
    background: var(--clr-purple-dim);
  }

  /* Override: Play Now on mobile */
  .nav-list li:last-child .nav-link {
    border-radius: var(--r-md);
    text-align: center;
    margin-top: var(--sp-2);
  }

  /* Burger animation */
  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--sp-4); }
  .header-inner { min-height: 64px; }
  .nav { left: var(--sp-3); right: var(--sp-3); }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

/* Primary */
.btn-primary {
  padding: var(--sp-3) var(--sp-6);
  background: var(--clr-purple);
  color: #fff;
  box-shadow: 0 0 20px rgba(138,111,255,0.3);
}

.btn-primary:hover {
  background: var(--clr-purple-hi);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

/* Outline */
.btn-outline {
  padding: var(--sp-3) var(--sp-6);
  background: transparent;
  color: var(--clr-purple-hi);
  border: 1.5px solid var(--clr-border-hi);
}

.btn-outline:hover {
  background: var(--clr-purple-dim);
  border-color: var(--clr-purple);
  transform: translateY(-2px);
}

/* Ghost */
.btn-ghost {
  padding: var(--sp-2) var(--sp-4);
  background: transparent;
  color: var(--clr-text-muted);
}

.btn-ghost:hover {
  background: var(--clr-purple-dim);
  color: var(--clr-text);
}

/* Sizes */
.btn-xl {
  font-size: var(--text-base);
  padding: var(--sp-4) var(--sp-10);
  letter-spacing: 0.01em;
}

.btn-sm {
  font-size: var(--text-xs);
  padding: var(--sp-2) var(--sp-4);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero,
.play-hero,
.about-hero,
.faq-hero,
.contact-hero,
.how-hero,
.responsible-hero,
.terms-hero,
.privacy-hero,
.cookies-hero {
  padding-block: clamp(var(--sp-12), 8vw, var(--sp-20));
  position: relative;
  overflow: hidden;
}

.hero::before,
.play-hero::before,
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
    rgba(138,111,255,0.12) 0%,
    rgba(82,214,255,0.05) 50%,
    transparent 100%);
  pointer-events: none;
}

.hero h1,
.play-hero h1,
.about-hero h1,
.faq-hero h1,
.contact-hero h1,
.how-hero h1,
.responsible-hero h1,
.terms-hero h1,
.privacy-hero h1,
.cookies-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 40%, var(--clr-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 18ch;
}

.hero-inner { display: flex; flex-direction: column; }

.hero-text {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  max-width: 56ch;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
  line-height: 1.65;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  transition: border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.card:hover {
  border-color: var(--clr-border-hi);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--clr-border-hi);
  transform: translateY(-3px);
}

.card h3 {
  font-size: var(--text-lg);
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
}

.card p {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: var(--sp-4);
  display: block;
}

/* ── STEPS ───────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.step {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  transition: border-color var(--dur) var(--ease-out);
}

.step:hover { border-color: var(--clr-border-hi); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--clr-purple), var(--clr-blue));
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-4);
  box-shadow: 0 0 18px rgba(138,111,255,0.35);
}

.step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
}

.step p {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin: 0;
}

/* ── GAME CARDS & PLAY PAGE ──────────────────────────────── */
.games-catalog { padding-block: clamp(var(--sp-8), 5vw, var(--sp-16)); }

.game-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.game-card:hover {
  border-color: var(--clr-border-hi);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--clr-border-hi);
}

.game-card-inner {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-inner h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.game-card-inner > p {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}

.game-placeholder {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-top: auto;
}

.game-canvas {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  border: 1px solid rgba(138,111,255,0.2);
  background: #020209;
  display: block;
}

.game-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border);
}

.game-balance {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-purple-hi);
  letter-spacing: 0.02em;
}

.game-balance span {
  color: var(--clr-blue);
  font-size: var(--text-base);
}

.game-status {
  font-size: var(--text-xs);
  color: var(--clr-text-faint);
  font-style: italic;
  min-width: 100px;
  text-align: center;
}

/* Spin button — special style */
#spin-random,
#spin-neonvoid,
#spin-quantumpulse {
  padding: var(--sp-2) var(--sp-6);
  background: linear-gradient(135deg, var(--clr-purple), #6a4fff);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              opacity var(--dur) ease;
  box-shadow: 0 0 16px rgba(138,111,255,0.4);
}

#spin-random::before,
#spin-neonvoid::before,
#spin-quantumpulse::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--dur) ease;
}

#spin-random:hover,
#spin-neonvoid:hover,
#spin-quantumpulse:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-purple);
}

#spin-random:hover::before,
#spin-neonvoid:hover::before,
#spin-quantumpulse:hover::before { opacity: 1; }

#spin-random:active,
#spin-neonvoid:active,
#spin-quantumpulse:active { transform: scale(0.96); }

#spin-random:disabled,
#spin-neonvoid:disabled,
#spin-quantumpulse:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* "Play This Experience" / "More Info" type buttons on game cards */
.game-cta {
  margin-top: var(--sp-4);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.game-cta a,
.game-cta button {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

/* Primary game CTA: "Play This Experience" */
.game-cta a.btn-primary,
.game-cta .btn-primary {
  background: var(--clr-purple);
  color: #fff;
  border: none;
  box-shadow: 0 0 18px rgba(138,111,255,0.3);
}

.game-cta a.btn-primary:hover,
.game-cta .btn-primary:hover {
  background: var(--clr-purple-hi);
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

/* Outline game CTA: "More Info" */
.game-cta a.btn-outline,
.game-cta .btn-outline,
.game-cta a.btn-sm.btn-outline,
.game-cta button.btn-sm.btn-outline {
  background: transparent;
  color: var(--clr-purple-hi);
  border: 1.5px solid var(--clr-border-hi);
}

.game-cta a.btn-outline:hover,
.game-cta .btn-outline:hover,
.game-cta a.btn-sm.btn-outline:hover,
.game-cta button.btn-sm.btn-outline:hover {
  background: var(--clr-purple-dim);
  border-color: var(--clr-purple);
  transform: translateY(-2px);
}

/* Virtual credits notice */
.virtual-credits-notice {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.virtual-credits-notice h2 { margin-bottom: var(--sp-4); }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testimonial {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  transition: border-color var(--dur) var(--ease-out);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  font-size: 4rem;
  font-family: var(--font-display);
  color: var(--clr-purple-dim);
  line-height: 1;
  pointer-events: none;
}

.testimonial:hover { border-color: var(--clr-border-hi); }

.testimonial-text {
  font-size: var(--text-base);
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
  font-style: italic;
}

.testimonial-author {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-purple-hi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── CHECKLIST ────────────────────────────────────────────── */
.checklist {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-6);
  max-width: 600px;
}

.checklist h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-purple-hi);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: var(--text-xs);
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.checklist-items li::before {
  content: '✦';
  color: var(--clr-purple);
  font-size: 0.75rem;
  margin-top: 0.2em;
  flex-shrink: 0;
}

/* ── BULLET LIST ──────────────────────────────────────────── */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-left: 0;
  list-style: none;
  margin-bottom: var(--sp-6);
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.bullet-list li::before {
  content: '→';
  color: var(--clr-blue);
  flex-shrink: 0;
  font-weight: 700;
}

/* ── FAQ ACCORDION ───────────────────────────────────────── */
.faq-list + .faq-list { margin-top: var(--sp-8); }

.accordion {
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out);
}

.accordion:focus-within {
  border-color: var(--clr-border-hi);
}

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: var(--clr-surface);
  width: 100%;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--clr-text);
  cursor: pointer;
  border: none;
  gap: var(--sp-4);
  transition: background var(--dur) var(--ease-out);
}

.accordion-trigger:hover { background: var(--clr-surface-2); }

.accordion-trigger::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--clr-purple-hi);
  flex-shrink: 0;
  transition: transform 0.24s var(--ease-out);
}

.accordion-trigger.active { background: var(--clr-surface-2); }

.accordion-trigger.active::after {
  content: '−';
}

.accordion-panel {
  padding: var(--sp-4) var(--sp-5);
  background: var(--clr-surface-2);
  border-top: 1px solid var(--clr-border);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.75;
}

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.purpose,
.values,
.how-we-work {
  padding-block: clamp(var(--sp-8), 4vw, var(--sp-16));
}

.purpose p,
.how-we-work p {
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  max-width: 72ch;
  margin-bottom: var(--sp-4);
}

/* ── RESPONSIBLE PAGE ────────────────────────────────────── */
.responsible-principles,
.session-plan,
.know-the-signs,
.support-resources {
  padding-block: clamp(var(--sp-8), 4vw, var(--sp-14));
}

.support-resources p {
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  max-width: 72ch;
  margin-bottom: var(--sp-4);
}

/* ── HOW IT WORKS PAGE ───────────────────────────────────── */
.steps-flow,
.tech-flow,
.demo-message {
  padding-block: clamp(var(--sp-8), 4vw, var(--sp-14));
}

.demo-message p {
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  max-width: 72ch;
  margin-bottom: var(--sp-4);
}

/* ── CONTACT PAGE ────────────────────────────────────────── */
.contact-info,
.contact-form-section,
.responsible-note {
  padding-block: clamp(var(--sp-8), 4vw, var(--sp-14));
}

.contact-info > .container > p,
.contact-form-section > .container > p,
.responsible-note p {
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  max-width: 72ch;
  margin-bottom: var(--sp-6);
}

.contact-form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  max-width: 720px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form-row label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: 0.01em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  color: var(--clr-text);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--clr-text-faint);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--clr-purple);
  box-shadow: 0 0 0 3px rgba(138,111,255,0.18);
}

.form-row textarea {
  min-height: 160px;
  resize: vertical;
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a6fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
}

.contact-form .btn-primary {
  margin-top: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
}

.responsible-note p a,
.contact-info a {
  color: var(--clr-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.responsible-note p a:hover,
.contact-info a:hover { color: var(--clr-purple-hi); }

/* ── LEGAL PAGES ─────────────────────────────────────────── */
.terms,
.privacy,
.cookies-content {
  padding-block: clamp(var(--sp-6), 4vw, var(--sp-12));
}

.terms h2,
.privacy h2,
.cookies-content h2 {
  font-size: var(--text-lg);
  color: var(--clr-text);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--clr-border);
}

.terms h2:first-child,
.privacy h2:first-child,
.cookies-content h2:first-child {
  margin-top: 0;
}

.terms p,
.privacy p,
.cookies-content p {
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  max-width: 72ch;
  margin-bottom: var(--sp-4);
  line-height: 1.75;
}

.terms ul,
.privacy ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.terms ul li,
.privacy ul li {
  padding-left: var(--sp-5);
  position: relative;
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.terms ul li::before,
.privacy ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-blue);
  font-weight: 700;
}

.terms code,
.privacy code,
.cookies-content code {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-sm);
  padding: 0.15em 0.45em;
  font-size: 0.9em;
  color: var(--clr-blue);
  font-family: 'Courier New', monospace;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-6);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}

.footer-brand .logo-text {
  font-size: var(--text-lg);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--clr-text-faint);
  max-width: 30ch;
  margin-top: var(--sp-3);
  line-height: 1.65;
}

.footer-nav h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-faint);
  margin-bottom: var(--sp-4);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--dur) ease;
}

.footer-nav a:hover { color: var(--clr-text); }

.footer-cta p {
  font-size: var(--text-sm);
  color: var(--clr-text-faint);
  margin-bottom: var(--sp-3);
}

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-6);
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--clr-text-faint);
  text-align: center;
  line-height: 1.7;
  max-width: 80ch;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8) var(--sp-6);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

/* ── COOKIE BANNER ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: min(calc(100% - var(--sp-8)), 720px);
  background: rgba(14,14,28,0.97);
  border: 1px solid var(--clr-border-hi);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  z-index: 999;
  box-shadow: var(--shadow-card), var(--glow-purple);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  transition: opacity 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              visibility 0.3s;
}

.cookie-banner[aria-hidden="true"] {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  visibility: hidden;
  pointer-events: none;
}

.cookie-banner[aria-hidden="false"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
}

.cookie-banner p {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: var(--clr-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .cookie-banner[aria-hidden="true"] {
    transform: translateY(100%);
  }
  .cookie-banner[aria-hidden="false"] {
    transform: translateY(0);
  }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ── ABOUT / INFO SECTIONS ───────────────────────────────── */
section.purpose > .container,
section.values > .container,
section.how-we-work > .container,
section.steps-flow > .container,
section.tech-flow > .container,
section.demo-message > .container,
section.responsible-principles > .container,
section.session-plan > .container,
section.know-the-signs > .container,
section.support-resources > .container {
  /* nothing extra — relies on global section padding */
}

section h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
  color: var(--clr-text);
}

/* ── UTILITY: SECTION DIVIDER ────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--clr-border-hi),
    transparent);
  margin-block: 0;
}

/* ── SCROLL REVEALS ──────────────────────────────────────── */
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* ── RESPONSIVE MISC ─────────────────────────────────────── */
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .hero h1,
  .play-hero h1,
  .about-hero h1,
  .faq-hero h1,
  .contact-hero h1,
  .how-hero h1,
  .responsible-hero h1,
  .terms-hero h1,
  .privacy-hero h1,
  .cookies-hero h1 {
    max-width: 100%;
  }

  .game-card { border-radius: var(--r-lg); }

  .contact-form { padding: var(--sp-5); }
  .checklist { max-width: 100%; }

  .section-lead { font-size: var(--text-base); }
}
