/* ═══════════════════════════════════════════════════════════
   PIXEL CUP SOCCER — ULTIMATE | Basilisk Faun
   styles.css — complete design system
   ═══════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────
   0. CSS CUSTOM PROPERTIES
   ─────────────────────────────────────────── */
:root {
  /* Palette */
  --bg: #071a22;
  --bg2: #0b2a33;
  --panel: #111c2e;
  --panel2: #182b46;
  --teal: #13c9d2;
  --teal-dark: #0a7f91;
  --orange: #ec7a16;
  --red: #b84b3d;
  --gold: #d4ad5d;
  --grass: #69a556;
  --white: #f7f6e8;
  --muted: #9cb4b6;
  --shadow: #02070a;
  --line: rgba(247, 246, 232, 0.16);

  /* Typography */
  --font-heading:
    Impact, Haettenschweiler, 'Arial Narrow Bold', 'Trebuchet MS', system-ui,
    sans-serif;
  --font-body: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;

  /* Pixel effects */
  --pixel:
    0 4px 0 var(--shadow), 4px 0 0 var(--shadow), -4px 0 0 var(--shadow),
    0 -4px 0 var(--shadow);
  --border-arcade: 4px solid #81b8ce;
  --shadow-arcade: 0 0 0 4px #061017, 9px 9px 0 rgba(0, 0, 0, 0.42);

  /* Layout */
  --space: clamp(18px, 4vw, 64px);
  --max-width: 1440px;
  --header-height: 76px;

  /* Misc */
  --radius: 0;
  --transition: 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--white);
  background-color: var(--bg);
  background-image:
    radial-gradient(
      circle at 20% 0%,
      rgba(19, 201, 210, 0.17),
      transparent 28rem
    ),
    radial-gradient(
      circle at 80% 14%,
      rgba(236, 122, 22, 0.13),
      transparent 30rem
    ),
    linear-gradient(180deg, var(--bg), #06121a 44%, #0b1722);
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

/* ───────────────────────────────────────────
   2. ATMOSPHERIC EFFECTS
   ─────────────────────────────────────────── */
/* 32 px CSS grid pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* CRT scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.16;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 4px,
    rgba(255, 255, 255, 0.14) 5px,
    transparent 6px
  );
  mix-blend-mode: soft-light;
}

/* Teal ambient glow at page bottom */
.page-glow {
  position: fixed;
  inset: auto 0 0;
  height: 40vh;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(19, 201, 210, 0.1));
}

/* ───────────────────────────────────────────
   3. TYPOGRAPHY
   ─────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0.03em;
  text-shadow: var(--pixel);
}

h1 {
  font-size: clamp(52px, 9vw, 140px);
  letter-spacing: 0.0045em;
}
h2 {
  font-size: clamp(38px, 6vw, 100px);
}
h3 {
  font-size: clamp(28px, 4vw, 64px);
}
h4 {
  font-size: clamp(20px, 2.5vw, 36px);
  letter-spacing: -0.02em;
}

.status-label {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.5vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 3px 3px 0 #000;
}

.lead {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.4;
  color: #d3e5df;
}

.text-muted {
  color: var(--muted);
}
.text-gold {
  color: var(--gold);
}
.text-teal {
  color: var(--teal);
}

/* ───────────────────────────────────────────
   4. SKIP LINK
   ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space);
  z-index: 200;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  text-transform: uppercase;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-arcade);
  transition: top var(--transition);
}

.skip-link:focus-visible {
  top: 12px;
  outline: none;
}

/* ───────────────────────────────────────────
   5. FOCUS STATES & SELECTION
   ─────────────────────────────────────────── */
*:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection {
  background-color: var(--teal-dark);
  color: var(--white);
}

/* ───────────────────────────────────────────
   6. CUSTOM SCROLLBAR
   ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--teal-dark);
  border-left: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* ───────────────────────────────────────────
   7. PIXEL BORDER SYSTEM
   ─────────────────────────────────────────── */
.arcade-frame,
.panel-border {
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
}

/* ───────────────────────────────────────────
   8. BUTTONS
   ─────────────────────────────────────────── */
.pixel-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 26px;
  min-height: 56px;
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.7vw, 21px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 4px solid var(--white);
  box-shadow: 6px 6px 0 #000;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.pixel-button:hover,
.pixel-button:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
  filter: brightness(1.08);
  outline: none;
}

.pixel-button.primary {
  background: var(--orange);
  color: var(--white);
}

.pixel-button.ghost {
  background: var(--panel);
  color: var(--teal);
  border-color: var(--teal);
}

.pixel-button.outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ───────────────────────────────────────────
   9. LAYOUT UTILITIES
   ─────────────────────────────────────────── */
.section {
  padding: clamp(72px, 11vw, 150px) var(--space);
}

.section-inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.text-panel {
  background: rgba(17, 28, 46, 0.92);
  padding: clamp(24px, 4vw, 46px);
  font-size: 19px;
  line-height: 1.6;
  color: #d1e0e0;
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
}

.text-panel p:first-child {
  margin-top: 0;
}
.text-panel p:last-child {
  margin-bottom: 0;
}

.grid-1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

/* ───────────────────────────────────────────
   10. ACCESSIBILITY UTILITIES
   ─────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gallery live-announce region — visually hidden, screen reader accessible */
.gallery-filter-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ───────────────────────────────────────────
   10c. SCROLL REVEAL
   ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* ───────────────────────────────────────────
   11. SITE HEADER
   ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px var(--space);
  height: var(--header-height);
  background: rgba(7, 26, 34, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 4px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: clamp(16px, 2vw, 22px);
  text-transform: uppercase;
  text-shadow: var(--pixel);
  white-space: nowrap;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: clamp(16px, 2.5vw, 40px);
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.4vw, 18px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.download-pill {
  padding: 10px 18px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 3px solid var(--white);
  box-shadow: 4px 4px 0 #000;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.download-pill:hover,
.download-pill:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  outline: none;
}

.menu-button {
  display: none;
  background: var(--panel);
  border: 3px solid var(--teal);
  padding: 10px 14px;
  box-shadow: 4px 4px 0 #000;
  font-size: 22px;
  line-height: 1;
  color: var(--white);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  max-width: max-content;
}

.menu-button:hover,
.menu-button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
  outline: none;
}

/* ───────────────────────────────────────────
   12. MOBILE NAV
   ─────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: var(--space);
  right: var(--space);
  z-index: 29;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: rgba(7, 26, 34, 0.97);
  border: 4px solid #81b8ce;
  box-shadow: 6px 6px 0 #000;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  background: var(--panel);
  font-family: var(--font-heading);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition:
    color var(--transition),
    background var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--white);
  background: var(--panel2);
}

.mobile-nav-cta {
  margin-top: 8px;
  background: var(--orange) !important;
  color: var(--white) !important;
  border: 2px solid rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ───────────────────────────────────────────
   13. HERO
   ─────────────────────────────────────────── */
.hero {
  position: relative;
  margin: 32px var(--space) 0;
  min-height: calc(100vh - var(--header-height) - 32px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 5vw, 76px);
  background:
    linear-gradient(180deg, rgba(11, 42, 51, 0.86), rgba(7, 18, 28, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(105, 165, 86, 0.13) 0 90px,
      rgba(105, 165, 86, 0.22) 90px 180px
    );
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
  overflow: hidden;
}

/* Pitch centre-line */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 50%,
    rgba(255, 255, 255, 0.055) 50% 50.4%,
    transparent 50.4%
  );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy .status-label {
  margin-bottom: 18px;
}

.hero-copy h1 span {
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  background: var(--panel);
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
  transform-style: preserve-3d;
  transition: transform 0.18s ease;
}

.hero-visual img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
}

.score-hud {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(184, 75, 61, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.5);
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.8vw, 38px);
  text-shadow: var(--pixel);
  white-space: nowrap;
}

.score-hud strong {
  font-size: 1.15em;
}

.hero-badge {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: clamp(120px, 14vw, 240px);
  opacity: 0.9;
  filter: drop-shadow(8px 8px 0 #000);
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding: clamp(48px, 7vw, 100px) var(--space);
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(11, 42, 51, 0.9), rgba(7, 18, 28, 0.96)),
    repeating-linear-gradient(
      90deg,
      rgba(105, 165, 86, 0.07) 0 90px,
      rgba(105, 165, 86, 0.13) 90px 180px
    );
  border-bottom: 4px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 50%,
    rgba(255, 255, 255, 0.04) 50% 50.4%,
    transparent 50.4%
  );
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}

.page-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.page-hero-img {
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
  transform: rotate(1deg);
}

.page-hero-img img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ───────────────────────────────────────────
   14. STATS STRIP
   ─────────────────────────────────────────── */
.stats-strip {
  margin: 0 var(--space);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #062331;
  border-block: 6px solid var(--orange);
  box-shadow:
    inset 0 8px 0 rgba(255, 255, 255, 0.06),
    0 8px 0 #02070a;
}

.stats-strip-item {
  padding: clamp(18px, 2.8vw, 28px) clamp(14px, 2vw, 24px);
  border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.stats-strip-item:last-child {
  border-right: none;
}

.stats-strip-item strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 66px);
  line-height: 0.9;
  text-shadow: var(--pixel);
}

.stats-strip-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: clamp(12px, 1.2vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ───────────────────────────────────────────
   15. FEATURE CARDS
   ─────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: #0e1f32;
  padding: clamp(22px, 3vw, 34px);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow:
    0 0 0 4px #061017,
    12px 12px 0 rgba(0, 0, 0, 0.42);
}

.card-number {
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: clamp(52px, 5.5vw, 80px);
  line-height: 0.75;
  text-shadow: var(--pixel);
}

.feature-card h3 {
  margin: 28px 0 10px;
}

.feature-card p {
  color: #c8d6d7;
  line-height: 1.5;
  margin: 0;
  font-size: 17px;
}

/* ───────────────────────────────────────────
   16. MODE TABS / STAGE
   ─────────────────────────────────────────── */
.modes-section {
  margin: clamp(72px, 11vw, 150px) var(--space);
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(
    180deg,
    rgba(18, 33, 58, 0.97),
    rgba(7, 20, 30, 0.97)
  );
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
}

.mode-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.mode-tab,
.gallery-filter {
  cursor: pointer;
  background: #102537;
  border: 3px solid #81b8ce;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 #000;
  color: var(--muted);
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.mode-tab:hover,
.gallery-filter:hover {
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.mode-tab.is-active,
.gallery-filter.is-active {
  background: var(--teal-dark);
  color: var(--white);
  border-color: var(--white);
}

.mode-stage {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: stretch;
}

.mode-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 6px 6px 0 #000;
  display: block;
}

.mode-copy {
  background: rgba(8, 17, 29, 0.96);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mode-kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 26px);
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #000;
}

.mode-copy p:last-child {
  color: #d5e7e4;
  line-height: 1.55;
  margin: 0;
  font-size: 17px;
}

/* ───────────────────────────────────────────
   17. PLAYBOOK GRID
   ─────────────────────────────────────────── */
.playbook-section {
  background: linear-gradient(110deg, rgba(105, 165, 86, 0.1), transparent 55%);
}

.playbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.playbook-item {
  min-height: 220px;
  padding: clamp(18px, 2.5vw, 28px);
  background: #101d2e;
  display: flex;
  flex-direction: column;
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
}

.playbook-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-bottom: 26px;
  background: var(--red);
  border: 3px solid rgba(255, 255, 255, 0.55);
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 36px);
  text-shadow: 3px 3px 0 #000;
  align-self: flex-start;
}

.playbook-item h3 {
  font-size: clamp(20px, 2.5vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.playbook-item p {
  color: #c8d6d7;
  line-height: 1.5;
  margin: 0;
  font-size: 17px;
}

/* ───────────────────────────────────────────
   18. SHOWCASE (SPLIT SECTIONS)
   ─────────────────────────────────────────── */
.showcase-section {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
}

.showcase-section.reverse {
  grid-template-columns: 1fr 0.95fr;
}

.showcase-section.reverse .showcase-visual {
  order: 2;
}
.showcase-section.reverse .showcase-copy {
  order: 1;
}

.phone-card {
  background: #0d1c2c;
  padding: 10px;
  transform: rotate(-2deg);
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
  transition: transform var(--transition);
}

.phone-card:hover {
  transform: rotate(0deg);
}

.phone-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  display: block;
}

.showcase-copy p {
  color: #d1e0e0;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
  max-width: 680px;
  margin: 16px 0 24px;
}

/* ───────────────────────────────────────────
   19. SCREENSHOT PANELS
   ─────────────────────────────────────────── */
/* Split: equal two-column */
.screenshot-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.screenshot-split.img-right .screenshot-img {
  order: 2;
}
.screenshot-split.img-right .screenshot-copy {
  order: 1;
}

.screenshot-img {
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
}

.screenshot-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Float: slight rotation */
.screenshot-float {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.screenshot-float .screenshot-img {
  transform: rotate(1.5deg);
  transition: transform var(--transition);
}

.screenshot-float .screenshot-img:hover {
  transform: rotate(0deg);
}

/* Background image section */
.screenshot-bg-section {
  position: relative;
  overflow: hidden;
}

.screenshot-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.screenshot-bg-section > *:not(.screenshot-bg-img) {
  position: relative;
  z-index: 1;
}

/* Screenshot copy block */
.screenshot-copy p {
  color: #d1e0e0;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.6;
  margin: 16px 0 0;
}

/* ───────────────────────────────────────────
   20. GALLERY
   ─────────────────────────────────────────── */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

/* Default: span 4 (3 per row) */
.gallery-card {
  grid-column: span 4;
}

.gallery-card.span-6 {
  grid-column: span 6;
}
.gallery-card.span-3 {
  grid-column: span 3;
}
.gallery-card.span-8 {
  grid-column: span 8;
}
.gallery-card.span-12 {
  grid-column: span 12;
}

.gallery-card {
  cursor: zoom-in;
  padding: 0;
  overflow: hidden;
  background: #0c1828;
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
  min-height: 160px;
  position: relative;
  display: block;
  width: 100%;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.2) brightness(1.05);
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: rgba(7, 26, 34, 0.82);
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  transform: translateY(100%);
  transition: transform 0.2s ease;
}

.gallery-card:hover .gallery-card-label,
.gallery-card:focus-visible .gallery-card-label {
  transform: translateY(0);
}

/* Gallery teaser CTA link */
.gallery-teaser-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* Contact card button spacing */
.contact-card .pixel-button {
  margin-top: 28px;
  display: inline-flex;
}

/* ───────────────────────────────────────────
   21. LIGHTBOX
   ─────────────────────────────────────────── */
.lightbox {
  position: relative;
  max-width: min(1200px, 92vw);
  width: max-content;
  padding: 10px;
  background: #07111d;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 6px #000;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox-img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  right: -18px;
  top: -18px;
  width: 52px;
  height: 52px;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #d45548;
  outline: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 26, 34, 0.85);
  border: 3px solid #81b8ce;
  box-shadow: 4px 4px 0 #000;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--teal-dark);
  outline: none;
}

.lightbox-nav.prev {
  left: -68px;
}
.lightbox-nav.next {
  right: -68px;
}

/* ───────────────────────────────────────────
   22. CTA SECTION
   ─────────────────────────────────────────── */
.cta-section {
  margin: 0 var(--space) clamp(48px, 8vw, 100px);
  padding: clamp(32px, 5vw, 68px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(184, 75, 61, 0.85), rgba(19, 201, 210, 0.22)),
    #0b2330;
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
}

.cta-copy h2 {
  font-size: clamp(28px, 4vw, 64px);
  margin-bottom: 12px;
}

.cta-copy p {
  max-width: 720px;
  color: #d3e5df;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.5;
  margin: 0;
}

.cta-price-note {
  display: inline-block;
  margin-top: 16px;
  padding: 7px 16px;
  background: rgba(236, 122, 22, 0.9);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 26px);
  text-shadow: 2px 2px 0 #000;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

/* ───────────────────────────────────────────
   23. CONTACT
   ─────────────────────────────────────────── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 0.58fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.contact-card {
  background: rgba(17, 28, 46, 0.94);
  padding: clamp(28px, 5vw, 56px);
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
}

.contact-card h2,
.contact-card h3 {
  color: var(--gold);
  margin-bottom: 8px;
}
.contact-card h1 {
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-name {
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 20px;
}

.contact-link {
  display: block;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.5vw, 46px);
  text-shadow: 4px 4px 0 #000;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--teal);
}

.contact-emblem {
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle,
    rgba(212, 173, 93, 0.22),
    transparent 65%
  );
  min-height: 280px;
}

.contact-emblem img {
  width: 100%;
  height: 100%;

  filter: drop-shadow(12px 12px 0 #000);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.form-group label .required {
  color: var(--orange);
  margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0c1828;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  border: 3px solid #81b8ce;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.3);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  appearance: none;
  border-radius: 0;
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  border-color: var(--teal);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(19, 201, 210, 0.25),
    inset 0 2px 0 rgba(0, 0, 0, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
}

.form-select {
  cursor: pointer;
}
.form-select option {
  background: #0c1828;
}

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

/* Honeypot — visually & pointer hidden */
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-notice {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Inline field validation errors (JS-driven, below each input) */
.field-error {
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e87b6e;
  min-height: 18px; /* reserve one line so adjacent errors don't shift siblings */
}

/* ── Contact form: feedback without layout shift ────────────── */

/* Wrapper is the height anchor for the success overlay */
.contact-form-wrap {
  position: relative;
}

/* Success overlay — absolute, sits over the form, zero layout impact */
.form-success-layer {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: clamp(28px, 5vw, 56px);
  background: rgba(7, 26, 34, 0.97);
  border: var(--border-arcade);
  box-shadow: var(--shadow-arcade);
  z-index: 2;
}

.contact-form-wrap[data-state='success'] .form-success-layer {
  display: flex;
  animation: formSuccessIn 0.35s ease both;
}

/* Form hidden under overlay on success; stays in DOM for height */
.contact-form-wrap[data-state='success'] .contact-form {
  visibility: hidden;
  pointer-events: none;
}

.form-success-check {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  color: var(--grass);
  text-shadow: var(--pixel);
}

.form-success-msg {
  margin: 0;
  max-width: 400px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.5vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 #000;
  line-height: 1.6;
}

@keyframes formSuccessIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Error toast — position:fixed, zero layout impact anywhere */
.form-toast {
  position: fixed;
  bottom: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  z-index: 60;
  max-width: min(460px, calc(100vw - 32px));
  padding: 14px 16px;
  background: #07111d;
  border: 4px solid var(--red);
  box-shadow: 6px 6px 0 #000;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.3s ease both;
}

.form-toast-icon {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--red);
}

.form-toast-msg {
  margin: 0;
  flex: 1;
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e87b6e;
  line-height: 1.55;
}

.form-toast-close {
  flex-shrink: 0;
  background: transparent;
  border: 2px solid rgba(184, 75, 61, 0.45);
  padding: 3px 8px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--red);
  cursor: pointer;
  margin-top: 1px;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.form-toast-close:hover,
.form-toast-close:focus-visible {
  background: rgba(184, 75, 61, 0.15);
  border-color: var(--red);
  outline: none;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ───────────────────────────────────────────
   24. COOKIE BANNER
   ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 16px var(--space);
  background: rgba(7, 26, 34, 0.97);
  border-top: 4px solid var(--teal);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  min-width: 200px;
}

.cookie-banner-text a {
  color: var(--teal);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-actions .pixel-button {
  min-height: 48px;
  font-size: 15px;
  padding: 10px 20px;
  box-shadow: 4px 4px 0 #000;
}

.cookie-banner-actions .pixel-button:hover,
.cookie-banner-actions .pixel-button:focus-visible {
  box-shadow: 7px 7px 0 #000;
}

/* ───────────────────────────────────────────
   25. LEGAL PAGES
   ─────────────────────────────────────────── */
.legal-page {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 100px) var(--space);
}

.legal-page h1 {
  font-size: clamp(36px, 5vw, 72px);
  color: var(--gold);
  margin-bottom: clamp(8px, 1.5vw, 16px);
}

.legal-date {
  display: block;
  margin-bottom: clamp(28px, 4vw, 48px);
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.legal-page h2 {
  font-size: clamp(22px, 3vw, 40px);
  color: var(--teal);
  margin-top: clamp(32px, 4vw, 56px);
  margin-bottom: 14px;
}

.legal-page p,
.legal-page li {
  font-size: 17px;
  font-weight: 700;
  color: #c8d6d7;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--teal);
  text-decoration: underline;
}

/* ───────────────────────────────────────────
   26. 404 PAGE
   ─────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 6vw, 80px) var(--space);
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(100px, 20vw, 220px);
  line-height: 0.85;
  color: var(--red);
  text-shadow:
    var(--pixel),
    0 0 60px rgba(184, 75, 61, 0.35);
  letter-spacing: -0.04em;
}

.error-page h1 {
  font-size: clamp(26px, 3.5vw, 52px);
  margin: 16px 0 20px;
}

.error-page p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto 32px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ───────────────────────────────────────────
   27. FOOTER
   ─────────────────────────────────────────── */
.site-footer {
  background: #050d14;
  border-top: 4px solid var(--line);
  overflow: hidden;
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(48px, 6vw, 80px) var(--space) clamp(32px, 4vw, 56px);
}

.footer-brand img {
  margin-bottom: 14px;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2vw, 26px);
  text-transform: uppercase;
  text-shadow: var(--pixel);
  line-height: 1.1;
  margin-bottom: 8px;
}

.footer-tagline strong {
  color: var(--gold);
}

.footer-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.footer-nav-heading {
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 #000;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 15px;
  color: var(--muted);
  transition: color var(--transition);
}

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

.footer-cta-col .footer-nav-heading {
  margin-bottom: 14px;
}

.footer-play-btn {
  font-size: 14px !important;
  min-height: 48px !important;
  padding: 10px 16px !important;
  width: 100%;
  display: flex !important;
  margin-bottom: 16px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-info a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-contact-info a:hover {
  color: var(--teal);
}

.footer-bottom {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px var(--space);
  border-top: 2px solid var(--line);
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-top-link {
  color: var(--teal);
  transition: color var(--transition);
}

.footer-top-link:hover {
  color: var(--white);
}

/* ───────────────────────────────────────────
   28. RESPONSIVE BREAKPOINTS
   ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .playbook-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1050px) {
  /* Header */
  .site-header {
    grid-template-columns: auto 1fr auto;
  }
  .main-nav {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
  .mobile-nav {
    display: flex;
  }

  /* Hero & page-hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-badge {
    position: static;
    width: 180px;
  }
  .page-hero-split {
    grid-template-columns: 1fr;
  }
  .page-hero-img {
    display: none;
  } /* hide on tablet/mobile for space */

  /* Content layouts */
  .showcase-section,
  .showcase-section.reverse {
    grid-template-columns: 1fr;
  }
  .showcase-section.reverse .showcase-visual,
  .showcase-section.reverse .showcase-copy {
    order: unset;
  }

  .screenshot-split,
  .screenshot-float {
    grid-template-columns: 1fr;
  }
  .contact-section {
    grid-template-columns: 1fr;
  }
  .cta-section {
    grid-template-columns: 1fr;
  }
  .mode-stage {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gallery */
  .gallery-card,
  .gallery-card.span-6,
  .gallery-card.span-8,
  .gallery-card.span-3 {
    grid-column: span 6;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .playbook-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .lightbox-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --space: 16px;
  }

  /* Header */
  .brand span {
    display: none;
  }
  .download-pill {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 22px;
  }
  .score-hud {
    top: 10px;
    font-size: 18px;
    padding: 8px 12px;
    gap: 10px;
  }
  .hero-actions {
    flex-direction: column;
  }

  /* Stats */
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gallery */
  .gallery-card,
  .gallery-card.span-6,
  .gallery-card.span-8,
  .gallery-card.span-3 {
    grid-column: span 12;
  }

  /* Cookie banner */
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner-actions .pixel-button {
    flex: 1;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* CTA */
  .cta-section {
    text-align: center;
  }
  .cta-section .pixel-button {
    width: 100%;
  }

  /* Reduced shadow weight on mobile */
  .arcade-frame,
  .panel-border,
  .feature-card,
  .playbook-item,
  .gallery-card,
  .phone-card,
  .hero-visual,
  .modes-section,
  .text-panel {
    box-shadow:
      0 0 0 3px #061017,
      6px 6px 0 rgba(0, 0, 0, 0.42);
  }
}

/* ───────────────────────────────────────────
   29. REDUCED MOTION
   ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-visual {
    transform: none !important;
  }

  .screenshot-float .screenshot-img {
    transform: none !important;
  }
  .phone-card {
    transform: none !important;
  }
}
