@font-face {
  font-family: 'BONKSANS';
  src: url('./fonts/BONKSANS.otf') format('opentype');
  font-display: block;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('./fonts/SpaceGrotesk-Variable.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --primary: #FF432D;
  --primary-soft: #d62718;
  --secondary: #FF9A4B;
  --bg: #E5E4D4;
  --bg-dark: #1A1A1A;
  --surface: #D5D4C4;
  --border: #1A1A1A;
  --border-w: 2px;
  --ink: #1A1A1A;
  --muted: #5a5a52;
}

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

html, body {
  background-color: #ffffff;
  background-image: linear-gradient(180deg, #4ea3d8 0%, #8fc8e8 45%, #d8e8ed 80%, #ffffff 100%);
  background-repeat: no-repeat;
  background-size: 100% 100vh;
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Allow horizontal overflow guard only on body, leave html alone so scroll works */
body { overflow-x: hidden; }

h1, h2, h3, .display {
  font-family: 'BONKSANS', 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
}

a { color: inherit; }

/* ============ NAV — just red icons, no container, fun hover ============ */
.nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  display: flex; align-items: center;
  gap: 24px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.nav .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-soft);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  width: auto;
  height: auto;
  transition: color 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav .social svg {
  display: block;
  width: 26px; height: 26px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.15));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav .social:hover { color: var(--ink); }
.nav .social:hover svg {
  transform: rotate(-12deg) scale(1.25) translateY(-2px);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: calc(30vh + 30px) 24px 80px;
  display: flex; align-items: flex-start; justify-content: center;
}
.hero-inner {
  position: relative;
  width: 100%; max-width: 1200px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-titlewrap {
  position: relative;
  display: inline-block;
}
.hero-title {
  font-family: 'BONKSANS', sans-serif;
  font-size: clamp(76px, 17vw, 240px);
  color: var(--primary);
  text-shadow: 0 6px 0 var(--ink);
  line-height: 0.9;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.hero-chicken {
  position: absolute;
  top: clamp(-220px, -18vw, -160px);
  left: 69%;
  transform: translateX(-50%);
  width: clamp(190px, 22vw, 290px);
  aspect-ratio: 1 / 1;
  z-index: 200;
  pointer-events: none;
}
.hero-chicken canvas { width: 100%; height: 100%; display: block; }

.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 20px);
  max-width: 540px;
  color: var(--ink);
  opacity: 0.85;
}
.hero-cta {
  margin-top: 28px;
  display: inline-block;
  background: var(--ink); color: white;
  font-family: 'BONKSANS', sans-serif; font-size: 18px; letter-spacing: 0.04em;
  padding: 14px 28px;
  border: var(--border-w) solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--primary);
  transition: transform 0.15s ease;
}
.hero-cta:hover { transform: translateY(-2px); }

/* ============ COOP INTRO (per spec) ============ */
.coop-intro {
  position: relative;
  background: #ffffff;
  padding: 100px 24px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.coop-intro h2 {
  font-family: 'BONKSANS', sans-serif;
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: #1A1A1A;
  max-width: 900px;
}
.coop-intro h2 .accent { color: #FF432D; }
.coop-intro p {
  font-family: 'BONKSANS', sans-serif;
  text-transform: uppercase;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #1A1A1A;
  max-width: 800px;
}
.coop-intro p .accent { color: #FF432D; }

/* ============ COOP VIDEO (per spec) ============ */
.coop {
  position: relative;
  background: #ffffff;
  padding: 0 16px 100px;
  display: flex;
  justify-content: center;
}
.coop-video-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 12px #1a1a1a,
    0 0 0 14px #2a2a2a,
    0 24px 50px rgba(0, 0, 0, 0.35);
}
.coop-video {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ DON'T GET CAUGHT (per spec) ============ */
.caught {
  position: relative;
  background: #1A1A1A;
  color: #efe7d2;
  padding: 140px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.caught h2 {
  font-family: 'BONKSANS', sans-serif;
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 96px);
  text-align: center;
  max-width: 1000px;
  color: #efe7d2;
  line-height: 0.9;
}
.caught h2 .accent { color: #FF432D; }

.caught-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  width: 100%;
  align-items: center;
}

.phone-mock {
  background: #0d0d0d;
  border: 2px solid #efe7d2;
  border-radius: 36px;
  aspect-ratio: 9 / 19;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 0 #FF432D;
}
.phone-mock .notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone-mock .screen {
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  background: #FF432D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
}
.phone-mock .screen .lock { font-size: 64px; }
.phone-mock .screen h3 {
  font-family: 'BONKSANS', sans-serif;
  font-size: 56px;
  color: white;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.phone-mock .screen p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
  max-width: 240px;
  margin: 0 auto;
}
.phone-mock .screen .ok-btn {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px 38px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.phone-mock .screen .ok-btn:hover {
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

.caught-copy h3 {
  font-family: 'BONKSANS', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  color: #efe7d2;
  margin-bottom: 16px;
}
.caught-copy p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  color: #c9c5b0;
  max-width: 460px;
}
.caught-copy ul {
  margin-top: 18px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.caught-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: #d8d3bb;
}
.caught-copy li::before {
  content: '';
  flex: 0 0 8px;
  width: 8px; height: 8px;
  background: #FF9A4B;
  border-radius: 50%;
  margin-top: 8px;
}

/* ============ MODES — centered, narrower cards ============ */
.modes {
  background: var(--bg);
  padding: 140px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.modes h2 {
  font-size: clamp(40px, 7vw, 80px);
  text-align: center; max-width: 900px;
}
.modes h2 .accent { color: var(--primary); }
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  justify-items: center;
}
.mode-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 6px 0 var(--border);
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  min-height: 300px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}
.mode-card .tag {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary); font-weight: 700;
}
.mode-card h3 { font-family: 'BONKSANS', sans-serif; font-size: 30px; }
.mode-card p { color: var(--muted); font-size: 15px; }
.mode-card .glyph {
  margin-top: auto;
  width: 56px; height: 56px;
  border: var(--border-w) solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: 'BONKSANS', sans-serif; font-size: 22px;
}

/* ============ CTA ============ */
.cta-section {
  background: var(--primary);
  color: white;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 24px;
  padding: 140px 24px;
  border-top: var(--border-w) solid var(--border);
  border-bottom: var(--border-w) solid var(--border);
}
.cta-section .eyebrow {
  font-size: 12px; letter-spacing: 0.25em;
  text-transform: uppercase; opacity: 0.85;
}
.cta-section h2 {
  font-size: clamp(48px, 9vw, 120px);
  max-width: 1000px;
  line-height: 0.9;
}
.cta-section h2 .accent { color: var(--ink); }
.cta-section p { max-width: 540px; font-size: 17px; opacity: 0.9; }
.cta-section a.btn {
  display: inline-block;
  background: var(--ink); color: white;
  font-family: 'BONKSANS', sans-serif; font-size: 22px; letter-spacing: 0.05em;
  padding: 20px 40px;
  border: var(--border-w) solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0,0,0,0.4);
  transition: transform 0.12s ease;
}
.cta-section a.btn:hover { transform: translateY(-2px); }

footer {
  background: var(--bg-dark);
  color: #999;
  padding: 40px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 13px;
}
footer .links { display: flex; gap: 22px; }
footer a { color: #cfcfcf; text-decoration: none; }
footer a:hover { color: white; }

/* Fallback chicken — only shows if Rive truly can't load */
.chicken-fallback { display: flex; align-items: center; justify-content: center; }
.chicken-fallback .chicken-emoji { font-size: clamp(60px, 18vw, 200px); line-height: 1; }
.chicken-fallback canvas { display: none; }

/* ============ Responsive ============ */
@media (max-width: 880px) {
  .modes-grid { grid-template-columns: 1fr; max-width: 360px; }
  .hero { padding-top: calc(28vh + 30px); }
  .hero-chicken {
    top: clamp(-150px, -20vw, -110px);
    left: 70%;
    width: 36vw;
  }
}
@media (max-width: 720px) {
  .caught-row { grid-template-columns: 1fr; gap: 32px; }
}
