/*
 * dice.fun — Marketing Landing Page
 * Theme: Cartoon-Casino / Deep-Violet Casino Night
 * Design System: ui-ux-pro-max — Scroll-Triggered Storytelling + Hero+Features+CTA hybrid
 * Fonts: Fredoka (display) + Nunito (body)
 * Pattern: Mobile-first, single-scroll, no frameworks
 */

/* ─────────────────────────────────────────────────
   0. DESIGN TOKENS
───────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --bg:        #160a2e;
  --bg-grad:   radial-gradient(125% 95% at 50% -10%, #34176a 0%, #160a2e 55%, #100722 100%);
  --panel:     #241247;
  --panel-2:   #2b1656;
  --inset:     #1a0d38;
  --felt:      #18ac5d;
  --felt-edge: #0a5e34;
  --bone:      #fff6e9;
  --dim:       #b9a8df;
  --faint:     #7c6aa6;
  --line:      #3a2568;
  --line-2:    #4a2f80;

  /* Accent palette */
  --gold:      #ffce47;
  --green:     #45e08c;
  --ember:     #ff5d57;
  --cyan:      #4ed8e8;
  --purple:    #b884ff;
  --pink:      #ff8fc7;

  /* Shape */
  --r:         20px;
  --r-sm:      14px;
  --r-xs:      10px;

  /* Easing */
  --ease:      cubic-bezier(.34, 1.56, .64, 1);
  --ease2:     cubic-bezier(.22, .61, .36, 1);

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Z-index scale */
  --z-nav:     50;
  --z-modal:   100;
  --z-toast:   200;

  /* Typography */
  --font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body:    'Nunito', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--bone);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessible focus ring — uses --cyan per spec */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Reduce motion — disable all transitions/animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─────────────────────────────────────────────────
   2. TYPOGRAPHY
───────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bone);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }

p {
  color: var(--dim);
  line-height: 1.7;
  max-width: 64ch;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ─────────────────────────────────────────────────
   3. LAYOUT UTILITIES
───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-md); }
}

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

@media (min-width: 768px) {
  .section { padding: var(--space-xl) 0; }
}

/* ─────────────────────────────────────────────────
   4. BUTTONS — Chunky sticker-shadow pill style
───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  cursor: pointer;
  transition:
    transform 150ms var(--ease),
    box-shadow 150ms var(--ease),
    background 200ms ease,
    color 200ms ease;
  white-space: nowrap;
  min-height: 52px; /* touch target */
  border: none;
  text-decoration: none;
}

/* Primary — green win CTA */
.btn-primary {
  background: var(--green);
  color: #0a2a1a;
  box-shadow: 0 5px 0 #1a6e44, 0 8px 24px rgba(69, 224, 140, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #1a6e44, 0 12px 32px rgba(69, 224, 140, 0.45);
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #1a6e44, 0 4px 12px rgba(69, 224, 140, 0.25);
}

/* Secondary — ghost/outline style */
.btn-secondary {
  background: transparent;
  color: var(--bone);
  border: 2px solid var(--line-2);
  box-shadow: 0 4px 0 var(--line), 0 6px 20px rgba(74, 47, 128, 0.3);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
  box-shadow: 0 6px 0 var(--line), 0 10px 28px rgba(184, 132, 255, 0.25);
  color: var(--purple);
}
.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--line), 0 2px 8px rgba(74, 47, 128, 0.2);
}

/* Gold variant for final CTA */
.btn-gold {
  background: var(--gold);
  color: #2a1800;
  box-shadow: 0 5px 0 #a07800, 0 8px 24px rgba(255, 206, 71, 0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #a07800, 0 14px 36px rgba(255, 206, 71, 0.5);
}
.btn-gold:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #a07800, 0 4px 12px rgba(255, 206, 71, 0.25);
}

/* Large button variant */
.btn-lg {
  font-size: 1.2rem;
  padding: 1rem 2.6rem;
  min-height: 60px;
}

/* ─────────────────────────────────────────────────
   5. CARDS / PANELS
───────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
}

.card::before {
  /* Subtle inner top highlight */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

/* Elevated card with glow on hover */
.card-hover {
  transition: transform 220ms var(--ease2), box-shadow 220ms var(--ease2), border-color 220ms ease;
  cursor: default;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(74, 47, 128, 0.4), 0 0 0 1px var(--purple);
  border-color: var(--purple);
}

/* ─────────────────────────────────────────────────
   6. GLOW DOT MOTIF
───────────────────────────────────────────────── */
.glow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(69, 224, 140, 0.25), 0 0 12px rgba(69, 224, 140, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(69, 224, 140, 0.25), 0 0 12px rgba(69, 224, 140, 0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(69, 224, 140, 0.15), 0 0 22px rgba(69, 224, 140, 0.8); }
}

/* ─────────────────────────────────────────────────
   7. BADGE / PILL
───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.badge-coming-soon {
  background: rgba(255, 93, 87, 0.18);
  color: var(--ember);
  border: 1px solid rgba(255, 93, 87, 0.4);
}

/* ─────────────────────────────────────────────────
   8. SCROLL REVEAL
───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease2), transform 600ms var(--ease2);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ─────────────────────────────────────────────────
   9. NAVIGATION
───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1rem var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease;
}

.nav.scrolled {
  background: rgba(22, 10, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-2);
}

@media (min-width: 768px) {
  .nav { padding: 1.1rem var(--space-md); }
}

.nav-logo img {
  height: 40px;
  width: auto;
}

@media (min-width: 768px) {
  .nav-logo img { height: 48px; }
}

.nav-cta {
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────
   10. HERO SECTION
───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--space-sm) var(--space-lg);
  position: relative;
  overflow: hidden;
}

/* Decorative background felt-table circle */
.hero-bg-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 120vw);
  height: min(800px, 120vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 23, 106, 0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Decorative scattered dots */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-dots::before,
.hero-dots::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.hero-dots::before {
  width: 300px;
  height: 300px;
  top: -60px;
  right: -60px;
  background: radial-gradient(circle, rgba(184, 132, 255, 0.12) 0%, transparent 70%);
}
.hero-dots::after {
  width: 200px;
  height: 200px;
  bottom: 5%;
  left: -40px;
  background: radial-gradient(circle, rgba(78, 216, 232, 0.1) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 860px;
}

/* Hero entrance animation */
.hero-inner { animation: hero-enter 800ms var(--ease2) both; }
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

.hero-logo-square {
  width: clamp(80px, 15vw, 128px);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(184, 132, 255, 0.4)) drop-shadow(0 0 2px rgba(0,0,0,0.8));
  animation: float-logo 4s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero h1 {
  margin: 0;
}

.hero h1 span.accent-green {
  color: var(--green);
  text-shadow: 0 0 32px rgba(69, 224, 140, 0.5);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--dim);
  max-width: 56ch;
  line-height: 1.7;
  margin: 0 auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Floating die decoration — bottom right of hero */
.hero-die-accent {
  position: absolute;
  bottom: 8%;
  right: 5%;
  z-index: 1;
  pointer-events: none;
}

.hero-die-accent img {
  width: clamp(60px, 10vw, 110px);
  opacity: 0.55;
  animation: die-float 5s ease-in-out infinite;
  filter: drop-shadow(0 6px 20px rgba(255, 93, 87, 0.4));
}

@keyframes die-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(6deg); }
  66%       { transform: translateY(-6px) rotate(-4deg); }
}

/* Mascot decoration — bottom left */
.hero-mascot-accent {
  position: absolute;
  bottom: 6%;
  left: 3%;
  z-index: 1;
  pointer-events: none;
}

.hero-mascot-accent img {
  width: clamp(50px, 8vw, 90px);
  opacity: 0.45;
  animation: mascot-bob 3.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(255, 206, 71, 0.35));
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-8px) rotate(3deg); }
}

@media (max-width: 600px) {
  .hero-die-accent, .hero-mascot-accent { display: none; }
}

/* ─────────────────────────────────────────────────
   11. STATS STRIP
───────────────────────────────────────────────── */
.stats {
  background: var(--panel);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: var(--space-md) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  text-align: center;
}

@media (min-width: 480px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
}

.stat-item {
  padding: 1.5rem 1rem;
  position: relative;
}

@media (min-width: 480px) {
  .stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--line-2);
  }
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--bone);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

/* Live drift indicator */
.stat-live {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  padding: 0.15rem 0.4rem;
  background: rgba(69, 224, 140, 0.12);
  border-radius: 6px;
  border: 1px solid rgba(69, 224, 140, 0.25);
  margin-left: 0.4rem;
  animation: blink-live 2.5s ease-in-out infinite;
  align-self: center;
}

@keyframes blink-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.35rem;
}

/* ─────────────────────────────────────────────────
   12. HOW IT WORKS
───────────────────────────────────────────────── */
.how-it-works {
  padding: var(--space-lg) 0;
}

@media (min-width: 768px) {
  .how-it-works { padding: var(--space-xl) 0; }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin-top: 0.5rem;
}

.section-header p {
  margin: 1rem auto 0;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step-card {
  background: var(--panel);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  padding: 2rem 1.6rem;
  text-align: center;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--line-2);
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  user-select: none;
  pointer-events: none;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--inset);
  border: 1.5px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--dim);
  max-width: none;
}

/* Connector line between steps on desktop */
@media (min-width: 768px) {
  .steps-grid {
    position: relative;
  }
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 56px; /* aligned with icon center */
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1.5px;
    background: linear-gradient(90deg, var(--line-2), var(--purple), var(--line-2));
    pointer-events: none;
    z-index: 0;
  }
  .step-card { z-index: 1; }
}

/* ─────────────────────────────────────────────────
   13. GAME MODES
───────────────────────────────────────────────── */
.game-modes {
  padding: var(--space-lg) 0;
  background: linear-gradient(180deg, transparent, rgba(52, 23, 106, 0.2), transparent);
}

@media (min-width: 768px) {
  .game-modes { padding: var(--space-xl) 0; }
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: var(--space-md);
}

@media (min-width: 640px) {
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .modes-grid { grid-template-columns: repeat(3, 1fr); }
}

.mode-card {
  background: var(--panel-2);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  padding: 1.8rem 1.6rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease2), box-shadow 220ms var(--ease2), border-color 220ms ease;
  cursor: default;
}

.mode-card::after {
  /* Top color accent bar */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r) var(--r) 0 0;
}

.mode-card.standard::after  { background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.mode-card.strategic::after { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.mode-card.degen::after     { background: linear-gradient(90deg, var(--ember), var(--pink)); }

.mode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(74, 47, 128, 0.45);
  border-color: var(--purple);
}

.mode-card.degen:hover {
  box-shadow: 0 20px 60px rgba(255, 93, 87, 0.3);
  border-color: var(--ember);
}

.mode-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.mode-title-row h3 {
  font-size: 1.25rem;
}

.mode-card p {
  font-size: 0.92rem;
  color: var(--dim);
  max-width: none;
}

/* Mode icon chip */
.mode-chip {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mode-chip.standard  { background: rgba(78, 216, 232, 0.15); border: 1px solid rgba(78, 216, 232, 0.3); }
.mode-chip.strategic { background: rgba(69, 224, 140, 0.15); border: 1px solid rgba(69, 224, 140, 0.3); }
.mode-chip.degen     { background: rgba(255, 93, 87,  0.15); border: 1px solid rgba(255, 93, 87,  0.3); }

.mode-chip svg { width: 20px; height: 20px; }

/* ─────────────────────────────────────────────────
   14. WHY DICE.FUN (Features)
───────────────────────────────────────────────── */
.why-section {
  padding: var(--space-lg) 0;
}

@media (min-width: 768px) {
  .why-section { padding: var(--space-xl) 0; }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-card {
  background: var(--panel);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 220ms var(--ease2), box-shadow 220ms var(--ease2), border-color 220ms ease;
  cursor: default;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(74, 47, 128, 0.4);
  border-color: var(--purple);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon.gold-bg    { background: rgba(255, 206, 71,  0.15); border: 1px solid rgba(255, 206, 71, 0.3); }
.why-icon.green-bg   { background: rgba(69, 224, 140,  0.15); border: 1px solid rgba(69, 224, 140, 0.3); }
.why-icon.purple-bg  { background: rgba(184, 132, 255, 0.15); border: 1px solid rgba(184, 132, 255, 0.3); }

.why-icon svg { width: 26px; height: 26px; }

.why-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--dim);
  max-width: none;
  margin: 0;
}

/* ─────────────────────────────────────────────────
   15. FINAL CTA BANNER
───────────────────────────────────────────────── */
.cta-banner {
  padding: var(--space-lg) 0;
}

@media (min-width: 768px) {
  .cta-banner { padding: var(--space-xl) 0; }
}

.cta-banner-inner {
  background: linear-gradient(135deg, #2b1656 0%, #34176a 50%, #241247 100%);
  border: 1.5px solid var(--line-2);
  border-radius: calc(var(--r) + 8px);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Felt-texture top strip */
.cta-banner-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--purple), var(--gold), var(--ember));
  border-radius: calc(var(--r) + 8px) calc(var(--r) + 8px) 0 0;
}

/* Radial glow center */
.cta-banner-inner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(184, 132, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-banner-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2rem;
}

/* Die accents flanking banner */
.cta-die-left,
.cta-die-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.cta-die-left  { left: 2rem; }
.cta-die-right { right: 2rem; transform: translateY(-50%) scaleX(-1); }

.cta-die-left img,
.cta-die-right img {
  width: clamp(60px, 8vw, 100px);
  animation: die-float 6s ease-in-out infinite;
}

@media (max-width: 640px) {
  .cta-die-left, .cta-die-right { display: none; }
}

/* ─────────────────────────────────────────────────
   16. FOOTER
───────────────────────────────────────────────── */
.footer {
  background: var(--inset);
  border-top: 1px solid var(--line);
  padding: var(--space-md) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo img {
  height: 36px;
  width: auto;
  opacity: 0.85;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dim);
}

.footer-disclaimer {
  font-size: 0.73rem;
  color: var(--faint);
  line-height: 1.5;
  max-width: 58ch;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-disclaimer { text-align: right; }
}

/* ─────────────────────────────────────────────────
   17. DIVIDER / FELT LINE
───────────────────────────────────────────────── */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 3px;
  margin: 0.75rem auto 0;
}

/* ─────────────────────────────────────────────────
   18. SKIP LINK (A11Y)
───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--green);
  color: #0a2a1a;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-xs);
  z-index: 9999;
  transition: top 200ms;
}

.skip-link:focus {
  top: 1rem;
}

/* ─────────────────────────────────────────────────
   19. UTILITY
───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold    { color: var(--gold); }
.text-green   { color: var(--green); }
.text-ember   { color: var(--ember); }
.text-purple  { color: var(--purple); }
.text-cyan    { color: var(--cyan); }
.mt-sm        { margin-top: var(--space-sm); }
.mt-md        { margin-top: var(--space-md); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
