@import url('https://fonts.googleapis.com/css2?family=Anton&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,700;1,6..72,400;1,6..72,700&family=Space+Grotesk:wght@400;500;700&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Surfaces (Warm Paper) */
  --surface: #fbf9f5;
  --surface-container-low: #f5f3ef;
  --surface-container: #efeeea;
  --surface-container-high: #eae8e4;
  --surface-container-highest: #e4e2de;

  /* Ink */
  --on-surface: #1b1c1a;
  --on-surface-variant: #5b403b;

  /* Crimson Energy */
  --primary: #b01803;
  --primary-container: #d4341c;

  /* Rules */
  --outline: #90706a;

  /* Typography scale */
  --font-display: 'Anton', sans-serif;
  --font-body: 'Newsreader', serif;
  --font-label: 'Space Grotesk', sans-serif;

  /* Spacing */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
}

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

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar (App Crimson Red) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--surface-container-low);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--surface-container-low);
  border-left: 2px solid var(--on-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border: 2px solid var(--on-surface);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-container);
}

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

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

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

button {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 11px;
}

.italic {
  font-style: italic;
}

.crimson {
  color: var(--primary);
}

/* ============================================================
   LAYOUT UTILS
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.section {
  padding: var(--space-96) 0;
  border-top: 2px solid var(--on-surface);
}

.section.bg-ink {
  background-color: var(--on-surface);
  color: var(--surface);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: var(--space-64);
}

.section-header.inverse .section-eyebrow {
  color: var(--outline);
}

.section-header.inverse .section-title {
  color: var(--surface);
}

.section-eyebrow {
  display: block;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-12);
}

.section-title {
  font-size: clamp(36px, 5vw, 60px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.brutal-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  border: 2px solid var(--on-surface);
  border-radius: 0;
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 4px 4px 0px 0px var(--on-surface);
  transition: transform 150ms ease, box-shadow 150ms ease;
  text-decoration: none;
  white-space: nowrap;
}

.brutal-button.large {
  padding: 16px 40px;
  font-size: 14px;
}

.brutal-button.primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
  box-shadow: 4px 4px 0px 0px var(--primary-container);
}

.brutal-button:hover,
.brutal-button:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 0 var(--on-surface);
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}

.brutal-button.primary:hover,
.brutal-button.primary:focus-visible {
  box-shadow: 0 0 0 0 var(--primary-container);
  outline: 2px dashed var(--on-surface);
  outline-offset: 4px;
}

.btn-platform-label {
  font-size: 9px;
  opacity: 0.75;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 2px;
}

.btn-store-name {
  font-family: var(--font-label);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-16) var(--space-24);
  border-bottom: 2px solid var(--on-surface);
  background-color: var(--surface);
  gap: var(--space-24);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--on-surface);
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 56px;
  width: auto;
  margin-right: 16px;
}

.wordmark-but {
  color: var(--primary);
}

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

.nav-link {
  font-family: var(--font-label);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--on-surface-variant);
  transition: color 150ms ease;
  padding: 12px 8px;
  margin: -12px -8px;
  /* Offset padding so visual layout doesn't change much */
}

.nav-link:hover {
  color: var(--on-surface);
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.burger-btn:focus-visible {
  outline: 2px dashed var(--primary);
  outline-offset: 6px;
}

.burger-line {
  width: 100%;
  height: 4px;
  background-color: var(--on-surface);
  transition: all 0.2s ease-in-out;
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  border-bottom: 2px solid var(--on-surface);
  background-color: var(--surface-container-low);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-24) var(--space-64);
}

.issue-label {
  display: inline-block;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--outline);
  padding-bottom: var(--space-8);
}

.hero-title {
  font-size: clamp(52px, 7vw, 88px);
  margin-bottom: var(--space-24);
}

.hero-body {
  font-size: 18px;
  color: var(--on-surface-variant);
  max-width: 460px;
  margin-bottom: var(--space-16);
}

.hero-actions {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
  margin-bottom: var(--space-48);
}

/* Stat Row */
.hero-stat-row {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  border-top: 1px solid var(--outline);
  padding-top: var(--space-24);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.stat-label {
  color: var(--on-surface-variant);
  font-size: 10px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--outline);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  position: relative;
  margin-top: -120px;
}

.contract-seal {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}

/* ─── Real GenieFlame — 4-layer SVG system ─── */
.genie-flame-wrap {
  position: relative;
  width: 160px;
  height: 230px;
  /* 100:140 aspect ratio * 1.6 */
  filter: drop-shadow(3px 3px 0 var(--on-surface));
  transition: filter 200ms ease;
}

/* All 4 flame layers share absolute positioning over the same space */
.genie-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Outer glow — atmospheric halo, barely visible, slowest */
.genie-outer-glow {
  opacity: 0.07;
  animation: genie-breathe 4s ease-in-out infinite;
}

/* Mid glow — depth illusion */
.genie-mid-glow {
  opacity: 0.24;
  animation: genie-breathe 3s ease-in-out infinite 0.8s;
}

/* Main body — the flame itself, flickering */
.genie-main-body {
  opacity: 0.97;
  animation:
    genie-sway 3.2s ease-in-out infinite,
    genie-flicker 2.2s ease-in-out infinite 1.6s;
}

/* Inner core — warm ember heart, fastest shimmer */
.genie-inner-core {
  opacity: 0.88;
  animation:
    genie-sway 3.2s ease-in-out infinite 0.3s,
    genie-pulse 1.2s ease-in-out infinite 0.6s;
}

/* Diamond ember luminance points */
.genie-ember {
  position: absolute;
  width: 18px;
  height: 18px;
  animation: genie-ember-pulse 1.5s ease-in-out infinite;
}

.genie-ember-left {
  left: calc(50% - 17px);
  top: 53px;
  /* ~38% of 140px * 1.6 ≈ 85px, adjusted for SVG crop */
  animation-delay: 0s;
}

.genie-ember-right {
  left: calc(50% + 1px);
  top: 57px;
  opacity: 0.85;
  animation-delay: 0.4s;
}

/* Floating particles */
.genie-particle {
  position: absolute;
  border-radius: 0;
  /* square, per brand language */
  transform: rotate(45deg);
  animation: genie-particle-rise 3s ease-in-out infinite;
  pointer-events: none;
}

.p1 {
  width: 4px;
  height: 4px;
  background: #b01803;
  left: 55px;
  top: 90px;
  animation-delay: 0s;
  animation-duration: 2.5s;
}

.p2 {
  width: 3px;
  height: 3px;
  background: #650b00;
  left: 90px;
  top: 80px;
  animation-delay: 0.6s;
  animation-duration: 3.1s;
}

.p3 {
  width: 3px;
  height: 3px;
  background: #b01803;
  left: 70px;
  top: 60px;
  animation-delay: 1.2s;
  animation-duration: 2.8s;
}

.p4 {
  width: 2px;
  height: 2px;
  background: #9c5700;
  left: 45px;
  top: 70px;
  animation-delay: 1.8s;
  animation-duration: 3.4s;
}

.p5 {
  width: 4px;
  height: 4px;
  background: #1a1a1a;
  left: 100px;
  top: 95px;
  animation-delay: 0.3s;
  animation-duration: 2.6s;
}

.p6 {
  width: 2px;
  height: 2px;
  background: #b01803;
  left: 60px;
  top: 50px;
  animation-delay: 0.9s;
  animation-duration: 3.2s;
}

.p7 {
  width: 3px;
  height: 3px;
  background: #650b00;
  left: 85px;
  top: 65px;
  animation-delay: 1.5s;
  animation-duration: 2.9s;
}

.p8 {
  width: 2px;
  height: 2px;
  background: #9c5700;
  left: 50px;
  top: 85px;
  animation-delay: 2.1s;
  animation-duration: 3.6s;
}

/* Mood: activated when hovering CTAs */
.genie-flame-wrap.mood-corrupting .genie-main-body {
  animation-duration: 0.8s, 0.6s;
  opacity: 1;
  filter: hue-rotate(0deg) brightness(1.15);
}

.genie-flame-wrap.mood-corrupting .genie-inner-core {
  opacity: 1;
  animation-duration: 0.8s, 0.4s;
}

.genie-flame-wrap.mood-corrupting .genie-ember-left,
.genie-flame-wrap.mood-corrupting .genie-ember-right {
  animation-duration: 0.5s;
  opacity: 1;
}

.genie-flame-wrap.mood-corrupting .genie-particle {
  animation-duration: 1s;
}

/* Flame keyframes */
@keyframes genie-sway {

  0%,
  100% {
    transform: skewX(-1.5deg) scaleX(1);
  }

  30% {
    transform: skewX(1deg) scaleX(0.97);
  }

  65% {
    transform: skewX(-2deg) scaleX(1.02);
  }
}

@keyframes genie-breathe {

  0%,
  100% {
    transform: scaleY(1) scaleX(1);
  }

  50% {
    transform: scaleY(1.04) scaleX(0.98);
  }
}

@keyframes genie-flicker {

  0%,
  100% {
    opacity: 0.97;
    transform: scaleY(1);
  }

  25% {
    opacity: 0.92;
    transform: scaleY(1.02);
  }

  50% {
    opacity: 0.98;
    transform: scaleY(0.98);
  }

  75% {
    opacity: 0.94;
    transform: scaleY(1.03);
  }
}

@keyframes genie-pulse {

  0%,
  100% {
    opacity: 0.82;
    transform: scaleY(0.97);
  }

  50% {
    opacity: 0.94;
    transform: scaleY(1.04);
  }
}

@keyframes genie-ember-pulse {

  0%,
  100% {
    transform: rotate(45deg) scale(0.85);
    opacity: 0.6;
  }

  50% {
    transform: rotate(45deg) scale(1.15);
    opacity: 1;
  }
}

@keyframes genie-particle-rise {
  0% {
    transform: rotate(45deg) translateY(0) scale(1);
    opacity: 0;
  }

  15% {
    opacity: 0.8;
  }

  85% {
    opacity: 0.6;
  }

  100% {
    transform: rotate(45deg) translateY(-80px) scale(0.2);
    opacity: 0;
  }
}

.contract-stamp {
  position: absolute;
  bottom: -8px;
  right: calc(50% - 80px);
  border: 2px solid var(--primary);
  padding: 4px 12px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--primary);
  transform: rotate(-6deg);
}

.stamp-text {
  color: var(--primary);
  font-size: 13px;
}

/* Wish/Corruption preview card */
.wish-example-card {
  width: 100%;
  border: 2px solid var(--on-surface);
  box-shadow: 4px 4px 0 var(--on-surface);
  background-color: var(--surface);
}

.wish-example-header {
  background-color: var(--on-surface);
  color: var(--surface);
  padding: 6px var(--space-16);
  font-size: 10px;
}

.wish-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: var(--on-surface-variant);
  padding: var(--space-16);
  border-bottom: 1px solid var(--surface-container-high);
}

.corruption-divider {
  padding: 4px var(--space-16);
  border-bottom: 1px solid var(--surface-container-high);
  background-color: var(--surface-container-low);
}

.corruption-label {
  font-size: 10px;
}

.corruption-text {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--primary);
  padding: var(--space-16);
  line-height: 1.2;
  text-transform: uppercase;
}

/* Ticker */
.ticker-wrap {
  border-top: 2px solid var(--on-surface);
  border-bottom: none;
  overflow: hidden;
  background-color: var(--on-surface);
  padding: var(--space-12) 0;
}

.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--surface);
  letter-spacing: 0.1em;
  gap: var(--space-32);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   FLAME ANIMATIONS
   ============================================================ */
.flame-group {
  transform-origin: 100px 150px;
  animation: flame-sway 4s ease-in-out infinite;
}

.flame-outer {
  animation: flame-breathe 3s ease-in-out infinite;
}

.flame-inner {
  animation: flame-pulse 2s ease-in-out infinite;
}

.flame-core {
  animation: core-pulse 1.5s ease-in-out infinite;
}

.ember {
  animation: ember-float 3s ease-in-out infinite;
}

.e1 {
  animation-delay: 0s;
  animation-duration: 2.5s;
}

.e2 {
  animation-delay: 0.8s;
  animation-duration: 3.2s;
}

.e3 {
  animation-delay: 1.5s;
  animation-duration: 2.8s;
}

.e4 {
  animation-delay: 0.3s;
  animation-duration: 3.5s;
}

@keyframes flame-sway {

  0%,
  100% {
    transform: rotate(-2deg) scaleX(1);
  }

  50% {
    transform: rotate(2deg) scaleX(0.97);
  }
}

@keyframes flame-breathe {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.04);
  }
}

@keyframes flame-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scaleY(0.95);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.05);
  }
}

@keyframes core-pulse {

  0%,
  100% {
    ry: 10;
    opacity: 0.8;
  }

  50% {
    ry: 14;
    opacity: 1;
  }
}

@keyframes ember-float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-12px) scale(0.8);
    opacity: 1;
  }

  100% {
    transform: translateY(-20px) scale(0);
    opacity: 0;
  }
}

/* Genie activated state */
.genie-activated .flame-outer {
  fill: var(--primary);
  animation-duration: 1.2s;
}

.genie-activated .flame-mid {
  fill: var(--primary-container);
  animation-duration: 0.8s;
}

.genie-activated .flame-core {
  fill: var(--surface);
}

.genie-activated .flame-group {
  animation-duration: 1s;
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step-item {
  flex: 1;
  padding: var(--space-24);
  border: 2px solid var(--on-surface);
  box-shadow: 4px 4px 0 var(--on-surface);
  background-color: var(--surface);
  position: relative;
}

.step-item+.step-item {
  border-left: none;
}

.step-number {
  font-size: 32px;
  color: var(--primary);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: var(--space-16);
}

.step-connector {
  display: flex;
  align-items: flex-start;
  padding-top: 32px;
  font-size: 24px;
  color: var(--outline);
  flex-shrink: 0;
}

.step-heading {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.step-copy {
  font-size: 16px;
  color: var(--on-surface-variant);
}

/* ============================================================
   MODES GRID
   ============================================================ */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.mode-card {
  border: 2px solid var(--outline);
  padding: var(--space-32);
  background-color: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  transition: border-color 150ms ease;
}

.mode-card.accent {
  border-color: var(--primary);
  box-shadow: 4px 4px 0 var(--primary);
}

.mode-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.mode-icon {
  font-size: 16px;
}

.mode-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.mode-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.mode-card.accent .mode-desc {
  color: rgba(255, 255, 255, 0.85);
}

.mode-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  flex: 1;
}

.mode-features li {
  font-family: var(--font-label);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  padding-left: var(--space-16);
  position: relative;
  letter-spacing: 0.04em;
}

.mode-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.mode-tag {
  font-size: 10px;
  border: 1px solid var(--outline);
  display: inline-flex;
  padding: 4px 10px;
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.5);
}

.mode-tag.crimson {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   EDITORIAL STRIP — CORRUPTION LEDGER
   ============================================================ */
.editorial-strip {
  background-color: var(--surface-container-low);
}

.corruption-ledger {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.ledger-row {
  display: grid;
  grid-template-columns: 56px 1fr 64px;
  align-items: center;
  gap: var(--space-24);
  border: 2px solid var(--on-surface);
  border-top: none;
  padding: var(--space-24);
  background-color: var(--surface);
  transition: background-color 150ms ease;
}

.ledger-row:first-child {
  border-top: 2px solid var(--on-surface);
}

.ledger-row:hover {
  background-color: var(--surface-container-high);
}

.ledger-rank {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--on-surface-variant);
}

.ledger-wish {
  font-style: italic;
  color: var(--on-surface-variant);
  font-size: 15px;
  margin-bottom: var(--space-8);
}

.ledger-corruption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
}

.ledger-score {
  font-family: var(--font-display);
  font-size: 28px;
  text-align: right;
  color: var(--primary);
}

/* ============================================================
   CTA CONTRACT SECTION
   ============================================================ */
.cta-section {
  background-color: var(--surface-container-low);
}

.cta-contract {
  border: 2px solid var(--on-surface);
  box-shadow: 8px 8px 0 var(--on-surface);
  padding: var(--space-64);
  background-color: var(--surface);
  margin-right: 12px;
  /* room for the hard shadow */
}

.cta-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

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

.cta-body {
  font-size: 20px;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-48);
  max-width: 600px;
  border-left: 3px solid var(--primary);
  padding-left: var(--space-24);
}

.download-buttons {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
  margin-bottom: var(--space-32);
}

.cta-fine-print {
  font-family: var(--font-label);
  font-size: 10px;
  color: var(--on-surface-variant);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--outline);
  padding-top: var(--space-16);
}

.fine-print-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fine-print-link:hover {
  color: var(--primary-container);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 2px solid var(--on-surface);
  background-color: var(--on-surface);
  color: var(--surface);
}

.site-footer .wordmark {
  color: var(--surface);
}

.footer-inner {
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
}

.footer-link {
  font-family: var(--font-label);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 150ms ease;
  padding: 8px 0;
}

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

.footer-copy {
  font-family: var(--font-label);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-16);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-48);
    padding-top: var(--space-16);
  }

  .hero-visual {
    order: -1;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0;
  }

  .genie-flame-wrap {
    transform: scale(0.85);
    transform-origin: center center;
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    flex-direction: column;
    gap: var(--space-16);
  }

  .step-item+.step-item {
    border-left: 2px solid var(--on-surface);
    border-top: 2px solid var(--on-surface);
  }

  .step-connector {
    display: none;
  }

  .cta-contract {
    padding: var(--space-32);
  }

  .cta-header {
    flex-direction: column;
    gap: var(--space-16);
  }

  .ledger-row {
    grid-template-columns: 40px 1fr 48px;
    gap: var(--space-12);
    padding: var(--space-16);
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: var(--space-12) var(--space-16);
    gap: var(--space-12);
  }

  .wordmark {
    font-size: 18px;
  }

  .burger-btn {
    display: flex;
  }

  .header-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--surface);
    padding: 80px var(--space-24) var(--space-24);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 105;
    gap: var(--space-32);
    align-items: center;
    justify-content: center;
  }

  .header-nav.nav-open {
    transform: translateX(0);
  }

  .header-nav .nav-link {
    font-size: 24px;
    padding: 16px;
  }

  .burger-btn.open .burger-line:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
  }

  .burger-btn.open .burger-line:nth-child(2) {
    opacity: 0;
  }

  .burger-btn.open .burger-line:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-stat-row {
    flex-wrap: wrap;
    gap: var(--space-16);
    justify-content: center;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-visual {
    flex-direction: column;
    align-items: center;
  }

  .wish-example-card {
    width: 100%;
  }

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

  .cta-contract {
    padding: var(--space-24);
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .download-buttons .brutal-button {
    width: 100%;
  }

  .ledger-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-16);
    position: relative;
    padding-top: var(--space-48);
  }

  .ledger-rank {
    position: absolute;
    top: var(--space-16);
    left: 50%;
    transform: translateX(-50%);
  }

  .ledger-score {
    text-align: center;
  }
}

/* ============================================================
   INTERACTIVE LIVE DEMO WIDGET
   ============================================================ */
.demo-section {
  background-color: var(--surface-container-low);
  border-bottom: 2px solid var(--on-surface);
}

.demo-card {
  border: 3px solid var(--on-surface);
  box-shadow: 8px 8px 0px 0px var(--on-surface);
  background-color: var(--surface);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.demo-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.demo-label {
  font-size: 12px;
  color: var(--on-surface-variant);
  letter-spacing: 0.08em;
}

.demo-input-wrapper {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.demo-input {
  flex: 1;
  min-width: 260px;
  font-family: var(--font-body);
  font-size: 18px;
  padding: 12px 16px;
  border: 2px solid var(--on-surface);
  background-color: var(--surface);
  color: var(--on-surface);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.demo-input:focus {
  border-color: var(--primary);
  box-shadow: 4px 4px 0px 0px var(--primary);
}

.demo-preset-chips {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.chip-label {
  font-size: 10px;
  color: var(--on-surface-variant);
}

.demo-chip {
  background-color: var(--surface-container-high);
  border: 1px solid var(--on-surface);
  padding: 4px 10px;
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--on-surface);
  cursor: pointer;
  transition: all 150ms ease;
}

.demo-chip:hover {
  background-color: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

/* Official Mobile App ShareCard Replica */
.share-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  width: 100%;
}

.app-share-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--surface);
  border: 2px solid var(--on-surface);
  box-shadow: 6px 6px 0px 0px var(--on-surface);
  overflow: hidden;
  position: relative;
  transition: opacity 300ms ease, transform 300ms ease;
}

.app-share-card.corrupting {
  opacity: 0.5;
  transform: scale(0.98);
}

.card-header-row {
  min-height: 64px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-brand-group {
  display: flex;
  flex-direction: column;
}

.card-issue {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--on-surface-variant);
}

.card-brand {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--on-surface);
  line-height: 1.1;
  padding-top: 2px;
}

.card-constraint-tag {
  border: 1px solid var(--primary);
  padding: 4px 8px;
  max-width: 150px;
}

.card-constraint-tag span {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--primary);
  line-height: 1.2;
  text-align: right;
  display: block;
}

.card-body-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-section-label {
  font-size: 9px;
  letter-spacing: 0.2em;
}

.card-wish-text {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.4;
  color: var(--on-surface-variant);
}

.card-divider-rule {
  width: 100%;
  height: 1px;
  background-color: var(--outline);
  opacity: 0.55;
  margin: 6px 0;
}

.card-corruption-text {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: bold;
  line-height: 1.35;
  color: var(--on-surface);
}

.card-footer-row {
  min-height: 72px;
  padding: 12px 18px;
  border-top: 1px solid var(--outline);
  background-color: var(--surface-container-low);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-footer-left {
  display: flex;
  flex-direction: column;
}

.card-footer-label {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
}

.card-footer-brand {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--on-surface);
  padding-top: 2px;
}

.card-seal-stamp {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}

.seal-text {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.demo-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 420px;
  flex-wrap: wrap;
  gap: var(--space-12);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  .genie-outer-glow,
  .genie-mid-glow,
  .genie-main-body,
  .genie-inner-core,
  .genie-ember,
  .genie-particle,
  .ticker-inner {
    animation: none !important;
  }
}

/* ============================================================
   CUSTOM BRUTALIST MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(27, 28, 26, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--surface);
  border: 3px solid var(--on-surface);
  box-shadow: 8px 8px 0px 0px var(--on-surface);
  max-width: 480px;
  width: 100%;
  padding: var(--space-32);
  transform: translateY(20px) scale(0.96);
  transition: transform 200ms ease;
  position: relative;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-12);
}

.modal-eyebrow {
  font-size: 11px;
  color: var(--on-surface-variant);
  letter-spacing: 0.08em;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: var(--on-surface);
  line-height: 1;
  padding: 4px 8px;
}

.modal-close-btn:hover {
  color: var(--primary);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: var(--space-16);
  letter-spacing: 0.04em;
}

.modal-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--on-surface);
  margin-bottom: var(--space-24);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}