/* ==========================================================================
   PROM13US — Parchment Neobrutalist Cel Diorama + Pixel Chrome
   Inspired by: internal design prototype + rizzmyrobot.com aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Parchment & Ink — warm light base */
  --parchment: #efe5d0;
  --parchment-2: #e3d6bd;
  --parchment-3: #d6c496;
  --bone: #fbf6e9;
  --ink: #0a0908;
  --ink-light: #1a1612;

  /* World tones */
  --blood: #b0241b;
  --gold: #c68a2b;
  --moss: #4a7b2e;
  --ash: #5c5448;

  /* 10 type tokens — cel-banded */
  --t-fire: #d9402b;
  --t-water: #2e78b0;
  --t-ground: #8c5a2c;
  --t-wind: #b8c9d6;
  --t-electric: #f2c033;
  --t-metal: #6e7480;
  --t-nature: #4a7b2e;
  --t-toxic: #7a4f9e;
  --t-dark: #2a1f2d;
  --t-neutral: #c9b58a;

  /* Outline system */
  --line: 4px solid var(--ink);
  --line-thick: 6px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  /* Type */
  --font-display: 'Cinzel', serif;
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: var(--font-pixel);
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  --shell-max: 1320px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Parchment grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(10,9,8,0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 76% 64%, rgba(10,9,8,0.035) 0 1px, transparent 1px),
    radial-gradient(circle at 38% 84%, rgba(10,9,8,0.03) 0 1px, transparent 1px);
  background-size: 9px 9px, 13px 13px, 11px 11px;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--blood); color: var(--bone); }

.shell { max-width: var(--shell-max); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; position: relative; }

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

.font-display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.font-pixel {
  font-family: var(--font-pixel);
  letter-spacing: 0.04em;
}

/* Inline highlights — neobrutalist colored blocks.
   inline-block so the background hugs the text width instead of
   stretching across the full line box of a block heading. */
.hl-gold,
.hl-blood,
.hl-moss,
.hl-ink {
  display: inline-block;
  padding: 2px 10px;
}
.hl-gold { background: var(--gold); color: var(--bone); }
.hl-blood { background: var(--blood); color: var(--bone); }
.hl-moss { background: var(--moss); color: var(--bone); }
.hl-ink { background: var(--ink); color: var(--bone); }

/* Section headers */
.section-header { margin-bottom: 48px; }
.section-title { font-size: clamp(32px, 4.5vw, 56px); margin-top: 14px; }
.section-sub { font-size: 16px; font-weight: 500; margin-top: 14px; max-width: 520px; line-height: 1.55; color: var(--ash); }

/* --------------------------------------------------------------------------
   SCROLL REVEAL — staggered cascade
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }
.stagger-9 { transition-delay: 0.9s; }

/* --------------------------------------------------------------------------
   PARTICLE CANVAS
   -------------------------------------------------------------------------- */
.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
}

/* --------------------------------------------------------------------------
   CEL PRIMITIVES
   -------------------------------------------------------------------------- */
.cel-thick {
  border: var(--line);
  box-shadow: var(--shadow);
  background: var(--bone);
  position: relative;
  overflow: hidden;
}

.diorama {
  border: var(--line-thick);
  box-shadow: var(--shadow-lg);
  background: var(--ink);
  overflow: hidden;
  position: relative;
}

/* Sigils — ceremonial serif labels */
.sigil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  background: var(--bone);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.sigil.gold { background: var(--gold); color: var(--bone); }
.sigil.blood { background: var(--blood); color: var(--bone); }
.sigil.moss { background: var(--moss); color: var(--bone); }
.sigil.ink { background: var(--ink); color: var(--bone); }

/* Pixel sigils — system tags */
.sigil-px {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  box-shadow: 3px 3px 0 var(--gold);
}
.sigil-px.live { background: var(--blood); }
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--bone);
  animation: blink 1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Stamp — rotated pixel tag */
.stamp {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
  text-align: center;
  border: 4px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
  position: relative;
  z-index: 10;
}

/* Scanlines on diorama "screens" */
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(10,9,8,0.08) 0 1px, transparent 1px 3px);
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 5;
}

/* Diorama HUD header bar */
.diorama-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bone);
  font-size: 9px;
  border-bottom: 3px solid var(--bone);
}

/* Type badges */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  background: var(--t-neutral);
  color: var(--ink);
}
.tb-fire     { background: var(--t-fire);     color: var(--bone); }
.tb-water    { background: var(--t-water);    color: var(--bone); }
.tb-ground   { background: var(--t-ground);   color: var(--bone); }
.tb-wind     { background: var(--t-wind);     color: var(--ink); }
.tb-electric { background: var(--t-electric); color: var(--ink); }
.tb-metal    { background: var(--t-metal);    color: var(--bone); }
.tb-nature   { background: var(--t-nature);   color: var(--bone); }
.tb-toxic    { background: var(--t-toxic);    color: var(--bone); }
.tb-dark     { background: var(--t-dark);     color: var(--bone); }
.tb-neutral  { background: var(--t-neutral);  color: var(--ink); }

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

.btn-blood { background: var(--blood); color: var(--bone); }
.btn-bone { background: var(--bone); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }

.btn-sm { padding: 10px 16px; font-size: 11px; }
.btn-lg { padding: 18px 28px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: var(--shadow-sm); }

/* Pulsing glow on primary CTA */
.btn-blood.btn-lg {
  animation: ctaPulse 2.5s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: var(--shadow-sm), 0 0 20px rgba(176,36,27,0.4), 0 0 40px rgba(176,36,27,0.15); }
}

/* --------------------------------------------------------------------------
   BOB ANIMATIONS
   -------------------------------------------------------------------------- */
.bob { animation: bob 3.2s ease-in-out infinite; }
.bob-2 { animation: bob 4.1s ease-in-out infinite; animation-delay: -1.2s; }
.bob-slow { animation: bob 5.5s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   NAV
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--parchment);
  border-bottom: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-text-fallback {
  font-size: 20px;
  letter-spacing: 0.04em;
  align-items: center;
}

.footer-wordmark { font-size: 18px; letter-spacing: 0.04em; }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Hamburger — visible on mobile only */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--parchment);
  border-top: var(--line);
  padding: 0;
}
.mobile-menu.active { display: flex; }
.mobile-menu-link {
  display: block;
  padding: 14px 32px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(10,9,8,0.1);
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu-link:last-child { border-bottom: var(--line); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-right .sigil-px { display: none; }
  .nav-right .btn { display: none; }
}

@media (max-width: 640px) {
  .logo-img { height: 24px; }
}

/* --------------------------------------------------------------------------
   CHRONICLE TICKER
   -------------------------------------------------------------------------- */
.divider-strip {
  height: 44px;
  background: var(--ink);
  color: var(--bone);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: var(--line);
  border-bottom: var(--line);
  position: relative;
  z-index: 5;
}

.marquee {
  display: flex;
  white-space: nowrap;
  gap: 0;
  animation: marquee 55s linear infinite;
}
.marquee:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 0 18px;
  opacity: 0.9;
}
.ticker-sigil { color: var(--gold); margin-right: 6px; font-size: 14px; }
.ticker-sep { color: var(--gold); opacity: 0.35; padding: 0 6px; font-size: 10px; }

/* --------------------------------------------------------------------------
   PERF HINTS — promote animated layers, isolate paint
   -------------------------------------------------------------------------- */
.marquee { will-change: transform; }
.hero-rotate-word,
.rotating-phrase { will-change: opacity, transform; }
.particle-canvas { will-change: contents; contain: strict; }
.phone-frame { will-change: transform; }
.creature-card { contain: layout style; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  padding: 48px 0 72px;
  border-bottom: var(--line);
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 80px, rgba(10,9,8,0.03) 80px 81px),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(10,9,8,0.03) 80px 81px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Left: pitch */
.hero-tags { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }

.hero-title {
  font-size: clamp(36px, 5vw, 72px);
  margin-bottom: 14px;
  animation: heroTitleIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hero entrance stagger */
.hero-tags { animation: heroFadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-body { animation: heroFadeUp 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-actions { animation: heroFadeUp 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-diorama-side { animation: heroSlideIn 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Rotating word in hero */
.hero-rotate-word,
.rotating-phrase {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-width: 3ch;
  position: relative;
}
.hero-rotate-out {
  opacity: 0;
  transform: translateY(20px);
}
.hero-rotate-in {
  animation: rotateWordIn 0.4s ease-out;
}
@keyframes rotateWordIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gold highlight shimmer */
.hl-gold {
  position: relative;
  overflow: hidden;
}
.hl-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

.hero-typewriter-legacy {
  font-size: 9px;
  color: var(--ash);
  min-height: 1.8em;
  margin-bottom: 16px;
  text-transform: uppercase;
  line-height: 1.8;
}
.cursor { color: var(--blood); animation: blink 1s steps(2, end) infinite; }

.hero-body {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 24px;
  color: var(--ink);
}
.hero-body strong { font-weight: 700; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Right: diorama */
.hero-diorama-side { position: relative; }

.hero-scene-img,
.hero-scene-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  max-height: 380px;
}
.hero-scene-img img,
.hero-scene-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-world-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.hero-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-world-stage {
  background: #0a0908;
}

.landing-world-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Keep the diorama constrained while allowing the stamp to render fully. */
.hero-diorama-side { max-width: 100%; overflow: visible; }

.hero-stamp {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 10;
}
@keyframes stampSlam {
  from { opacity: 0; transform: rotate(-4deg) scale(1.8) translateY(-30px); }
  to { opacity: 1; transform: rotate(-4deg) scale(1) translateY(0); }
}

/* --------------------------------------------------------------------------
   HOW IT WORKS
   -------------------------------------------------------------------------- */
.section-how {
  background: var(--parchment);
  border-bottom: var(--line);
}

.how-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
}

.how-card {
  flex: 1;
  max-width: 340px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s;
}
@media (hover: hover) {
  .how-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
}

.how-card-num {
  font-size: 9px;
  color: var(--ash);
}

.how-card-icon {
  font-size: 36px;
  line-height: 1;
}

.how-card-title {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.1;
}

.how-card-body {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ash);
}

.how-connector {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--gold);
  padding: 0 8px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .how-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .how-card { max-width: 480px; }
  .how-connector { transform: rotate(90deg); padding: 4px 0; }
}

/* --------------------------------------------------------------------------
   PITCH CARDS
   -------------------------------------------------------------------------- */
.section-pitch {
  background: var(--parchment-2);
  border-bottom: var(--line);
}

.pitch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pitch-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
@media (hover: hover) {
  .pitch-card:hover {
    transform: translateY(-8px);
    box-shadow: 12px 12px 0 var(--ink);
  }
  .pitch-card.pitch-card-offset:hover {
    transform: translateY(16px);
  }
}

.pitch-card-offset { transform: translateY(24px); }

.pitch-card-header {
  padding: 20px 22px;
  color: var(--bone);
  border-bottom: var(--line);
  position: relative;
}

.pitch-card-num {
  font-size: 9px;
  opacity: 0.7;
  margin-bottom: 8px;
  display: block;
  color: var(--bone);
}

.pitch-card-header h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1;
}

.pitch-card-scene {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: var(--line);
}
.pitch-card-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}
.pitch-card:hover .pitch-card-scene img { transform: scale(1.04); }

.pitch-card-body {
  padding: 20px 22px;
  flex: 1;
}
.pitch-card-body p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   CREATURE SHOWCASE
   -------------------------------------------------------------------------- */
.section-creatures {
  background: var(--parchment);
  border-bottom: var(--line);
}

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

.creature-card {
  transition: transform 0.15s ease-out;
  background: var(--bone);
}
@media (hover: hover) {
  .creature-card:hover {
    transform: translate(-2px, -2px) translateY(-4px);
    box-shadow: var(--shadow-lg);
    z-index: 2;
  }
}

.creature-card-type { height: 5px; }

.creature-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(circle at 50% 60%, rgba(251,246,233,0.76) 0 24%, rgba(251,246,233,0.24) 44%, transparent 68%),
    linear-gradient(135deg, rgba(251,246,233,0.55), rgba(251,246,233,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
  position: relative;
}
.creature-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(251,246,233,0.06), rgba(10,9,8,0.22)),
    var(--card-bg-image),
    linear-gradient(160deg, var(--card-bg-a, var(--parchment-2)), var(--card-bg-b, var(--bone)));
  background-position: center;
  background-size: cover;
  opacity: 0.86;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}
.creature-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(251,246,233,0.28), rgba(251,246,233,0.06) 48%, transparent 76%);
  pointer-events: none;
}
.creature-card:hover .creature-card-img::before,
.creature-card:focus-visible .creature-card-img::before {
  opacity: 1;
  transform: scale(1.06);
}
.creature-stage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(3px 3px 0 rgba(10,9,8,0.25));
  position: relative;
  z-index: 2;
  transition: opacity 0.28s ease-out, transform 0.28s ease-out, filter 0.28s ease-out;
}
.stage-evolved {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  opacity: 0;
  transform: scale(0.86) translateY(10px);
}
.stage-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
  padding: 5px 7px;
  border: 2px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 6px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.creature-card:hover .stage-hatchling,
.creature-card:focus-visible .stage-hatchling {
  opacity: 0;
  transform: scale(0.82) translateY(10px);
}
.creature-card:hover .stage-evolved,
.creature-card:focus-visible .stage-evolved {
  opacity: 1;
  transform: scale(1.06) translateY(0);
  filter: drop-shadow(5px 6px 0 rgba(10,9,8,0.34));
}
.creature-card:hover .stage-badge,
.creature-card:focus-visible .stage-badge {
  opacity: 1;
  transform: translateY(0);
}

.creature-card-info {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.creature-name {
  font-size: 11px;
  line-height: 1.1;
}

.creature-card-info .type-badge { align-self: flex-start; }

.creature-bg-water {
  --card-bg-a: #8dd7e8;
  --card-bg-b: #1d6c9f;
  --card-bg-image: url('/landing-assets/creatures/backgrounds/amphibian-slime-bg.webp');
}
.creature-bg-toxic {
  --card-bg-a: #b487d7;
  --card-bg-b: #38415f;
  --card-bg-image: url('/landing-assets/creatures/backgrounds/serpentine-bg.webp');
}
.creature-bg-wind {
  --card-bg-a: #d7edf7;
  --card-bg-b: #6f93b3;
  --card-bg-image: url('/landing-assets/creatures/backgrounds/avian-bg.webp');
}
.creature-bg-ground {
  --card-bg-a: #d9bc82;
  --card-bg-b: #76604b;
  --card-bg-image: url('/landing-assets/creatures/backgrounds/shelled-bg.webp');
}
.creature-bg-dark {
  --card-bg-a: #b47d58;
  --card-bg-b: #221d2c;
  --card-bg-image: url('/landing-assets/creatures/backgrounds/predator-beast-bg.webp');
}
.creature-bg-nature {
  --card-bg-a: #b6d979;
  --card-bg-b: #2d6738;
  --card-bg-image: url('/landing-assets/creatures/backgrounds/insectoid-bg.webp');
}
.creature-bg-crab {
  --card-bg-a: #8dd7e8;
  --card-bg-b: #1d6c9f;
  --card-bg-image: url('/landing-assets/creatures/backgrounds/crustacean-hardshell-bg.webp');
}
.creature-bg-fire {
  --card-bg-a: #ef8b3e;
  --card-bg-b: #752b24;
  --card-bg-image: url('/landing-assets/creatures/backgrounds/reptilian-bg.webp');
}
.creature-bg-metal {
  --card-bg-a: #c6c2ae;
  --card-bg-b: #53606e;
  --card-bg-image: url('/landing-assets/creatures/backgrounds/synthetic-forged-bg.webp');
}
.creature-bg-electric {
  --card-bg-a: #f5d34a;
  --card-bg-b: #8f6eb5;
  --card-bg-image: url('/landing-assets/creatures/backgrounds/oddball-anomalous-bg.webp');
}

/* --------------------------------------------------------------------------
   WORLD MAP
   -------------------------------------------------------------------------- */
.section-world {
  background: var(--ink);
  color: var(--bone);
  border-bottom: var(--line);
}
.section-world .section-header { color: var(--bone); }
.section-world .section-sub { color: var(--parchment-2); }

.world-diorama { border-color: var(--bone); }

.world-scene { position: relative; }
.world-scene img {
  width: 100%;
  display: block;
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}
.world-diorama:hover .world-scene img {
  transform: scale(1.08);
}

.world-scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.3) 0%, rgba(10,9,8,0.1) 40%, rgba(10,9,8,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.world-overlay-text {
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--bone);
  text-align: center;
  line-height: 1.2;
  text-shadow: 2px 2px 0 var(--ink);
}

/* --------------------------------------------------------------------------
   CHAT SIMULATION — phone mockup
   -------------------------------------------------------------------------- */
.section-controller {
  background: var(--parchment-2);
  border-bottom: var(--line);
}

.chat-layout {
  max-width: 360px;
  margin: 0 auto;
}

/* Phone frame */
.phone-frame {
  background: var(--ink);
  border-radius: 40px;
  padding: 12px;
  height: 560px;
  box-shadow: var(--shadow-lg), 0 20px 60px rgba(10,9,8,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(0.5deg); }
  66% { transform: translateY(-4px) rotate(-0.5deg); }
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  margin-bottom: -14px;
}

.phone-screen {
  background: var(--bone);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.phone-home-bar {
  width: 100px;
  height: 4px;
  background: var(--ink);
  border-radius: 2px;
  margin: 12px auto 10px;
  opacity: 0.3;
}

.chat-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 16px 10px;
  background: var(--ink);
  color: var(--bone);
  font-size: 8px;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bone);
}

.chat-bubble {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 82%;
  border-radius: 14px;
  animation: chatIn 0.3s ease-out;
}

.chat-bubble.agent {
  align-self: flex-start;
  background: var(--parchment);
  color: var(--ink);
  border: 2px solid rgba(10,9,8,0.12);
  border-radius: 14px 14px 14px 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid rgba(10,9,8,0.12);
  border-radius: 14px 14px 4px 14px;
}

.chat-bubble.typing {
  align-self: flex-start;
  background: var(--parchment);
  display: flex;
  gap: 5px;
  padding: 12px 18px;
  border: 2px solid rgba(10,9,8,0.12);
  border-radius: 14px 14px 14px 4px;
}

.chat-bubble.typing span {
  width: 7px;
  height: 7px;
  background: var(--ash);
  border-radius: 50%;
  display: block;
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 640px) {
  .chat-layout { max-width: 300px; }
  .phone-frame { border-radius: 32px; padding: 10px; height: 520px; }
  .phone-screen { border-radius: 22px; }
  .phone-notch { width: 100px; height: 24px; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.section-faq {
  background: var(--parchment);
  border-bottom: var(--line);
}

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  transition: box-shadow 0.15s;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: var(--bone);
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-q-text {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.2;
}

.faq-arrow {
  font-size: 12px;
  color: var(--gold);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  background: var(--bone);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ash);
}

/* --------------------------------------------------------------------------
   WAITLIST
   -------------------------------------------------------------------------- */
.section-waitlist {
  background: var(--blood);
  border-bottom: var(--line);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.section-waitlist::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 40px, rgba(251,246,233,0.04) 40px 41px);
  pointer-events: none;
}

.waitlist-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.waitlist-card {
  max-width: 480px;
  width: 100%;
  background: var(--bone);
  text-align: center;
  z-index: 2;
}

.waitlist-card-header {
  padding: 28px 28px 0;
}
.waitlist-card-header .sigil-px { margin-bottom: 16px; }
.waitlist-card-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 10px;
}
.waitlist-card-header p {
  font-size: 15px;
  font-weight: 500;
  color: var(--ash);
  margin-bottom: 24px;
}

.waitlist-form { padding: 0 28px 28px; }

.form-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.form-group input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--parchment);
  border: 3px solid var(--ink);
  color: var(--ink);
  outline: none;
}
.form-group input[type="email"]:focus { border-color: var(--blood); }
.form-group input[type="email"]::placeholder { color: var(--ash); }

.form-checkbox {
  text-align: left;
  padding: 0 4px;
}
.form-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ash);
  cursor: pointer;
  line-height: 1.5;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blood);
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-hint { font-size: 11px; opacity: 0.7; }

.form-success {
  display: none;
  padding: 14px;
  color: var(--moss);
  font-size: 10px;
}
.form-success.active { display: block; }

/* Floating creatures beside waitlist */
.waitlist-creature-float {
  width: 140px;
  flex-shrink: 0;
  opacity: 0.7;
  z-index: 1;
}
.waitlist-creature-float img {
  width: 100%;
  filter: drop-shadow(4px 4px 0 rgba(10,9,8,0.4));
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: 28px 0 20px;
  background: var(--ink);
  color: var(--bone);
  border-top: var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(10);
}
.footer-alpha { font-size: 7px; color: var(--ash); }

.footer-links { display: flex; gap: 6px; }
.footer-link-tag {
  font-size: 7px;
  padding: 6px 10px;
  border: 2px solid var(--bone);
  background: transparent;
  color: var(--bone);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  text-transform: uppercase;
}
.footer-link-tag:hover { background: var(--gold); color: var(--ink); }

.footer-colors {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-dot { width: 10px; height: 10px; border: 1px solid var(--bone); }
.footer-copy { font-size: 7px; color: var(--ash); }

/* --------------------------------------------------------------------------
   TOASTS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 68px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bone);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--ink);
  animation: toastIn 0.3s ease-out;
}
.toast.removing { animation: toastOut 0.3s ease-out forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(16px); } }
.toast-icon { font-size: 15px; }

/* --------------------------------------------------------------------------
   EASTER EGG
   -------------------------------------------------------------------------- */
body.party-mode { animation: partyBg 0.5s linear infinite; }
@keyframes partyBg {
  0% { background: #ff006e; }
  25% { background: #8338ec; }
  50% { background: #3a86ff; }
  75% { background: #06d6a0; }
  100% { background: #ff006e; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-diorama-side { max-width: 560px; }
  .hero-scene-img, .hero-scene-video { max-height: 320px; }
  .creatures-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .creatures-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
  .shell { padding: 0 16px; }
  .pitch-grid { grid-template-columns: 1fr; gap: 16px; }
  .pitch-card-offset { transform: none; }
  .creatures-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .creatures-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .form-group { flex-direction: column; }
  .waitlist-creature-float { display: none; }
  .waitlist-layout { gap: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .btn { font-size: 11px; padding: 14px 20px; }
  .faq-q-text { font-size: 13px; }
  .faq-question { padding: 14px 16px; }
  .faq-answer { padding: 0 16px 14px; }
  .section-header { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .creatures-grid { grid-template-columns: repeat(2, 1fr); }
  .creature-name { font-size: 9px; }
}

/* --------------------------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee { animation-play-state: paused; }
}
