/**
 * Pop&Bang showcase site — stylesheet.
 *
 * Visual language follows docs/01-brand-bible.md (Rebelle x Camarade),
 * docs/02-art-direction.md (neon-on-dark, glassmorphism, grain) and
 * docs/08-motion-system.md (durations/easings below reuse those tokens
 * verbatim via assets/tokens.css — no ad-hoc ms/px/hex values here beyond
 * one-off layout math that has no token equivalent, e.g. blur radii).
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---------------------------------------------------------------------
 * Film-grain texture — a whisper of noise over dark surfaces, per the
 * art direction's "grain filmique subtil sur les fonds sombres".
 * ------------------------------------------------------------------- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------------------------------------------------------------------
 * Ambient neon glow orbs — reused behind the hero and section breaks.
 * ------------------------------------------------------------------- */

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* ---------------------------------------------------------------------
 * Navigation
 * ------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-background);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(101, 92, 128, 0.35);
  transition: background var(--duration-fast) var(--easing-standard);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-brand img {
  height: 56px;
  width: auto;
}

.nav-brand-text {
  font-family: var(--font-gaming);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 680px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--easing-standard);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  padding: var(--space-2) var(--space-5);
}

@media (min-width: 680px) {
  .nav-cta {
    padding: var(--space-3) var(--space-6);
  }
}

/* ---------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: transform var(--duration-fast) var(--easing-bounce),
    box-shadow var(--duration-fast) var(--easing-standard),
    background var(--duration-fast) var(--easing-standard);
}

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

.btn-primary {
  background: var(--action-primary);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
}

.btn-ghost {
  background: rgba(245, 243, 247, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(245, 243, 247, 0.1);
}

/* Store badges ---------------------------------------------------------
 * Custom-drawn, brand-skinned equivalents of app-store badges (not the
 * official Google/Apple artwork — this repo doesn't hold licensed
 * assets for either mark, and the app isn't listed yet).
 */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.store-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(245, 243, 247, 0.04);
  min-width: 200px;
  transition: transform var(--duration-fast) var(--easing-bounce),
    border-color var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-fast) var(--easing-standard),
    background var(--duration-fast) var(--easing-standard);
}

.store-btn-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-btn-icon svg {
  width: 100%;
  height: 100%;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.store-btn-eyebrow {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-btn-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.store-btn.is-live {
  cursor: pointer;
  border-color: var(--color-xp-green);
}

.store-btn.is-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--color-xp-green), 0 8px 24px rgba(52, 211, 153, 0.18);
  background: rgba(52, 211, 153, 0.07);
}

.store-btn.is-disabled {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
  position: relative;
}

.store-btn-soon {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--color-level-gold);
  color: var(--text-on-brand);
  font-family: var(--font-gaming);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow-gold);
}

/* ---------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 192px;
  padding-bottom: var(--space-20);
  overflow: hidden;
}

.hero .glow-orb--violet {
  width: 560px;
  height: 560px;
  top: -220px;
  right: -160px;
  background: var(--color-pop-violet);
  opacity: 0.35;
}

.hero .glow-orb--cyan {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -140px;
  background: var(--color-signal-cyan);
  opacity: 0.25;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-gaming);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--action-secondary);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--action-secondary);
  box-shadow: var(--shadow-glow-cyan);
  animation: pulse-dot var(--duration-glow-pulse) var(--easing-standard) infinite;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.hero h1 .accent {
  color: var(--color-signal-cyan);
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  margin-bottom: var(--space-6);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--color-xp-green);
  flex-shrink: 0;
}

/* Hero visual — a stylised phone mockup of the app, built from CSS, not
 * a screenshot (no up-to-date rendered screenshot exists to point at —
 * docs/02-art-direction.md still flags final in-app art as pending). */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  border-radius: 42px;
  background: linear-gradient(160deg, var(--color-graphite), var(--color-void-black));
  border: 2px solid rgba(245, 243, 247, 0.08);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(145, 70, 255, 0.2);
  padding: 10px;
  animation: float-phone var(--duration-ambient) var(--easing-standard) infinite;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Screen — the clipped viewport. Frame (.phone) stays overflow-visible so
 * the notch and the floating XP badge can bleed past its edge; only the
 * screen content scrolls/clips, like a real device. */
.phone-screen {
  position: relative;
  height: 610px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--color-void-black);
  display: flex;
  flex-direction: column;
}

.phone-content {
  flex: 1;
  overflow: hidden;
  padding: 30px var(--space-3) var(--space-3);
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-1) var(--space-3);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.phone-status-dots {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.phone-status-dots span {
  display: block;
  width: 3px;
  background: var(--text-secondary);
  border-radius: 1px;
}

.phone-status-dots span:nth-child(1) { height: 4px; }
.phone-status-dots span:nth-child(2) { height: 6px; }
.phone-status-dots span:nth-child(3) { height: 8px; }

.phone-segment {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.phone-segment-item {
  font-family: var(--font-gaming);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: rgba(245, 243, 247, 0.06);
  color: var(--text-secondary);
}

.phone-segment-item.is-active {
  background: var(--action-primary);
  color: var(--text-on-brand);
}

.phone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.phone-card + .phone-card {
  margin-top: var(--space-3);
}

.phone-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.phone-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-bang-orange), var(--color-signal-cyan));
  flex-shrink: 0;
}

.phone-line {
  height: 7px;
  border-radius: var(--radius-full);
  background: rgba(245, 243, 247, 0.14);
}

.phone-line.w-60 { width: 60%; }
.phone-line.w-80 { width: 80%; }
.phone-line.w-40 { width: 40%; }

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-gaming);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Post image — a real 24-frame car-spin sprite, the same rendering
 * strategy as the app's onboarding hero (`components/SpriteSpin.tsx`): all
 * frames mounted at once, cycled via opacity so nothing re-decodes mid-
 * loop. One full rotation per `motion.duration.ambient` (`script.js`,
 * `initPhoneCarSpin` — same token, same pace as the native component). */
.phone-spin {
  position: relative;
  height: 118px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 62%, rgba(255, 77, 46, 0.16), transparent 70%),
    linear-gradient(180deg, var(--color-ink-black), var(--color-void-black));
}

.phone-spin::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 14px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(6px);
}

.phone-spin-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.phone-spin-frame.is-visible {
  opacity: 1;
}

.phone-spin-caption {
  font-size: 11px;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.phone-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  color: var(--text-secondary);
}

.phone-actions span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
}

.phone-actions svg {
  width: 14px;
  height: 14px;
}

.phone-actions .phone-actions-spacer {
  flex: 1;
}

.phone-toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-color: rgba(255, 200, 69, 0.5);
  box-shadow: var(--shadow-glow-gold);
}

.phone-toast-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: rgba(255, 200, 69, 0.16);
  color: var(--color-level-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-toast-icon svg {
  width: 16px;
  height: 16px;
}

.phone-toast-label {
  display: block;
  font-family: var(--font-gaming);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-level-gold);
  margin-bottom: 2px;
}

.phone-toast-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
}

.phone-xp {
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(245, 243, 247, 0.12);
  overflow: hidden;
  margin-top: var(--space-2);
}

.phone-xp-fill {
  height: 100%;
  width: 68%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-xp-green), var(--color-signal-cyan));
}

.phone-xp-label {
  margin-top: var(--space-2);
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--text-secondary);
}

.phone-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(44, 44, 68, 0), var(--color-void-black));
  pointer-events: none;
}

.phone-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--nav-background);
  border-top: 1px solid rgba(101, 92, 128, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.phone-tab {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.phone-tab.is-active {
  color: var(--action-primary);
}

.phone-float-badge {
  position: absolute;
  right: -64px;
  top: 12%;
  z-index: 3;
  background: var(--surface-elevated);
  border: 1px solid var(--color-level-gold);
  box-shadow: var(--shadow-glow-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-gaming);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  animation: float-badge var(--duration-ambient) var(--easing-standard) infinite;
  animation-delay: 300ms;
}

/* ---------------------------------------------------------------------
 * Section shell
 * ------------------------------------------------------------------- */

.section {
  position: relative;
  padding: var(--space-20) 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-eyebrow {
  font-family: var(--font-gaming);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--action-primary);
  margin-bottom: var(--space-3);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
}

/* ---------------------------------------------------------------------
 * Glass card
 * ------------------------------------------------------------------- */

.glass-card {
  background: rgba(77, 70, 103, var(--opacity-glass));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(101, 92, 128, 0.5);
  border-radius: var(--radius-xl);
}

/* ---------------------------------------------------------------------
 * Philosophy pillars
 * ------------------------------------------------------------------- */

.quote-block {
  max-width: 760px;
  margin: 0 auto var(--space-16);
  text-align: center;
  position: relative;
}

.quote-block blockquote {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.35;
}

.quote-block blockquote::before {
  content: '\201C';
  color: var(--action-primary);
}

.quote-block blockquote::after {
  content: '\201D';
  color: var(--action-secondary);
}

.pillars {
  display: grid;
  gap: var(--space-6);
}

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

.pillar {
  padding: var(--space-6);
}

.pillar-index {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--action-secondary);
  margin-bottom: var(--space-4);
}

.pillar h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: var(--space-3);
}

.pillar p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------------------------------------------------------------------
 * Features grid
 * ------------------------------------------------------------------- */

.features-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

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

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

.feature-card {
  padding: var(--space-6);
  transition: transform var(--duration-base) var(--easing-standard),
    border-color var(--duration-base) var(--easing-standard);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 46, 0.4);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  background: rgba(255, 77, 46, 0.12);
  color: var(--action-primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card:nth-child(2n) .feature-icon {
  background: rgba(34, 211, 238, 0.12);
  color: var(--action-secondary);
}

.feature-card:nth-child(3n) .feature-icon {
  background: rgba(255, 200, 69, 0.14);
  color: var(--color-level-gold);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: var(--space-2);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------------------------------------------------------------------
 * Universe strip — event categories
 * ------------------------------------------------------------------- */

.universe-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .universe-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.universe-card {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  border-top: 3px solid var(--tag-color, var(--action-primary));
}

.universe-card .tag-dot {
  width: 34px;
  height: 34px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-md);
  background: var(--tag-color, var(--action-primary));
  box-shadow: 0 0 18px color-mix(in srgb, var(--tag-color, var(--action-primary)) 55%, transparent);
}

.universe-card h4 {
  font-family: var(--font-gaming);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
}

.universe-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------------
 * Rarity strip
 * ------------------------------------------------------------------- */

.rarity-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-6);
}

.rarity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.rarity-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--rarity-color);
  box-shadow: 0 0 20px color-mix(in srgb, var(--rarity-color) 60%, transparent);
}

.rarity-item.is-legendary .rarity-orb {
  animation: pulse-dot var(--duration-ambient) var(--easing-standard) infinite;
}

.rarity-item span {
  font-family: var(--font-gaming);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------------
 * Download CTA
 * ------------------------------------------------------------------- */

.cta-section {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  border-radius: var(--radius-2xl);
  margin: 0 var(--space-6);
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 77, 46, 0.16), rgba(145, 70, 255, 0.16));
  border: 1px solid rgba(255, 77, 46, 0.25);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 48ch;
  margin: 0 auto var(--space-8);
}

.cta-section .store-row {
  justify-content: center;
}

/* ---------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer-brand-row img {
  height: 44px;
  width: auto;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-links h5 {
  font-family: var(--font-gaming);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: 14px;
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--easing-standard);
}

.footer-links a:hover {
  color: var(--action-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-pixel {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--color-signal-cyan);
  opacity: 0.7;
}

/* ---------------------------------------------------------------------
 * Reveal-on-scroll utility (see script.js)
 * ------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--easing-decelerate),
    transform var(--duration-slow) var(--easing-decelerate);
}

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

/* ---------------------------------------------------------------------
 * Legal pages
 * ------------------------------------------------------------------- */

.legal-header {
  padding-top: 184px;
  padding-bottom: var(--space-10);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.legal-back svg {
  width: 16px;
  height: 16px;
}

.legal-back:hover {
  color: var(--text-primary);
}

.legal-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: var(--space-3);
}

.legal-updated {
  font-size: 13px;
  color: var(--text-secondary);
}

.legal-intro {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 68ch;
  margin-top: var(--space-4);
}

.legal-body {
  padding-bottom: var(--space-20);
}

.legal-section {
  max-width: 760px;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 19px;
  margin-bottom: var(--space-3);
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.legal-section p + p {
  margin-top: var(--space-3);
}

.legal-section ul {
  list-style: disc;
  margin: var(--space-3) 0 0;
  padding-left: var(--space-5);
}

.legal-section li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-top: var(--space-2);
}

.legal-section li::marker {
  color: var(--action-secondary);
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------------------------------------------------------------------
 * Animations
 * ------------------------------------------------------------------- */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

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

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

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

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

  .phone,
  .phone-float-badge,
  .eyebrow .dot,
  .rarity-item.is-legendary .rarity-orb {
    animation: none;
  }
}
