/* ============================================================
   Banana Madness — landing page
   Palette and typography mirror the game's design system.
   ============================================================ */

:root {
  --banana: #ffd447;
  --orange: #ff8f29;
  --deep: #140e2b;
  --purple: #2b1f57;
  --panel: #241a48;
  --ink: #170f21;
  --green: #5cc76b;
  --sky: #61a6f0;
  --red: #f25955;
  --text: #f4f1ff;
  --text-dim: rgba(244, 241, 255, 0.66);
  --radius: 20px;
  --font: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--deep);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

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

/* ---------------- Nav ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(20, 14, 43, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.nav-brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--banana), #f0b81f);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 96px 20px 80px;
}

#sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  letter-spacing: 1px;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35));
}

.wordmark-banana {
  font-size: clamp(56px, 11vw, 118px);
  font-weight: 900;
  background: linear-gradient(180deg, #ffe27a, var(--banana) 55%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: rotate(-2deg);
}

.wordmark-madness {
  font-size: clamp(42px, 8.4vw, 90px);
  font-weight: 900;
  color: #fff;
  transform: rotate(-2deg) translateY(-4px);
}

.tagline {
  margin-top: 22px;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  color: var(--banana);
}

.sub {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: clamp(15px, 2vw, 17.5px);
  font-weight: 500;
}

.cta-row {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16.5px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--banana), #f2b619);
  box-shadow: 0 8px 28px rgba(255, 212, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-ghost:hover { border-color: var(--banana); color: var(--banana); }

.pledge-row {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}

.pledge-row li {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  padding: 6px 13px;
  border-radius: 999px;
}

.hero-fade {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--deep));
  pointer-events: none;
}

/* Wind chip (updated by the hero animation) */

.wind-chip {
  position: absolute;
  z-index: 2;
  top: 76px;
  right: clamp(14px, 3vw, 34px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 900;
}

.wind-label { font-size: 10.5px; letter-spacing: 1px; color: var(--text-dim); }
.wind-arrows { color: var(--banana); font-size: 15px; letter-spacing: -2px; }
.wind-value { font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------------- Sections ---------------- */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 4vw, 32px);
}

.section-title {
  font-size: clamp(30px, 5.4vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.2px;
  text-align: center;
}

.accent {
  background: linear-gradient(180deg, #ffe27a, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  margin: 16px auto 0;
  max-width: 560px;
  text-align: center;
  color: var(--text-dim);
  font-weight: 500;
}

/* Feature cards */

.grid {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

.features-grid { grid-template-columns: repeat(3, 1fr); }

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

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 212, 71, 0.5);
  background: rgba(255, 255, 255, 0.085);
}

.card-icon { font-size: 30px; margin-bottom: 12px; }

.card h3 { font-size: 18.5px; font-weight: 900; margin-bottom: 7px; }

.card p { color: var(--text-dim); font-size: 14.5px; }

/* Worlds */

.worlds-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 44px;
}

@media (max-width: 960px) { .worlds-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .worlds-row { grid-template-columns: repeat(2, 1fr); } }

.world {
  border-radius: var(--radius);
  padding: 130px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.world:hover { transform: translateY(-5px) scale(1.02); }

.world h3 { font-size: 16px; font-weight: 900; line-height: 1.2; }
.world p { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); margin-top: 4px; }

.world-downtown {
  background:
    radial-gradient(circle at 78% 20%, rgba(244, 241, 222, 0.85) 0 8%, transparent 9%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5) 0 1.2%, transparent 2%),
    radial-gradient(circle at 55% 14%, rgba(255, 255, 255, 0.5) 0 1%, transparent 2%),
    linear-gradient(180deg, #0b1026, #3a3577);
}

.world-jungle {
  background:
    radial-gradient(circle at 24% 78%, rgba(155, 229, 100, 0.5) 0 2%, transparent 3%),
    radial-gradient(circle at 70% 62%, rgba(155, 229, 100, 0.4) 0 1.6%, transparent 3%),
    linear-gradient(180deg, #09231a, #2f7a45);
}

.world-frozen {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.9) 0 1.4%, transparent 2.4%),
    radial-gradient(circle at 68% 44%, rgba(255, 255, 255, 0.8) 0 1.1%, transparent 2%),
    radial-gradient(circle at 48% 70%, rgba(255, 255, 255, 0.7) 0 1.2%, transparent 2.2%),
    linear-gradient(180deg, #7fb5d9, #d9edf9);
}

.world-frozen h3 { color: #12314a; }
.world-frozen p { color: rgba(18, 49, 74, 0.75); }

.world-volcanic {
  background:
    radial-gradient(ellipse at 50% 96%, rgba(255, 122, 41, 0.75) 0 26%, transparent 60%),
    radial-gradient(circle at 24% 40%, rgba(255, 143, 41, 0.6) 0 1.4%, transparent 2.6%),
    linear-gradient(180deg, #170404, #611b0c);
}

.world-sky {
  background:
    radial-gradient(ellipse at 22% 30%, rgba(255, 255, 255, 0.85) 0 12%, transparent 24%),
    radial-gradient(ellipse at 74% 58%, rgba(255, 255, 255, 0.7) 0 10%, transparent 22%),
    linear-gradient(180deg, #4a94dd, #bfe1f7);
}

.world-sky h3 { color: #123456; }
.world-sky p { color: rgba(18, 52, 86, 0.75); }

/* Screenshots */

.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 44px;
}

@media (max-width: 760px) { .screens-grid { grid-template-columns: 1fr; } }

.shot img {
  border-radius: 22px;
  border: 5px solid #0c0819;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.shot:hover img { transform: scale(1.02) rotate(-0.4deg); }

.shot figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dim);
}

/* Apes roster */

.roster {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: center;
}

.ape-chip {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 10px 16px;
  border-radius: 999px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ape-chip b { color: var(--text); font-weight: 900; margin-right: 6px; }

.ape-chip:hover { transform: translateY(-3px); border-color: rgba(255, 212, 71, 0.55); }

.ape-chip-premium {
  border-color: rgba(255, 212, 71, 0.5);
  background: rgba(255, 212, 71, 0.1);
}

/* Fair-play pledge */

.section-pledge { padding-bottom: clamp(70px, 10vw, 130px); }

.pledge-panel {
  background: linear-gradient(180deg, rgba(255, 212, 71, 0.1), rgba(255, 143, 41, 0.05));
  border: 1.5px solid rgba(255, 212, 71, 0.35);
  border-radius: 28px;
  padding: clamp(30px, 5vw, 54px);
}

.pledge-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 34px;
}

@media (max-width: 640px) { .pledge-grid { grid-template-columns: 1fr; } }

.pledge-grid h3 { font-size: 17px; font-weight: 900; color: var(--banana); margin-bottom: 5px; }
.pledge-grid p { font-size: 14.5px; color: var(--text-dim); }

/* Footer */

.footer {
  text-align: center;
  padding: 54px 20px 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer img { margin: 0 auto 14px; border-radius: 10px; }

.footer p { font-weight: 700; }

.footer-fine { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--text-dim); }

.footer-fine a { color: var(--text-dim); }
.footer-fine a:hover { color: var(--banana); }

/* Scroll reveal — hidden state only applies when JS is running (progressive
   enhancement: with scripts blocked, everything is simply visible). */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .world, .shot img, .ape-chip { transition: none; }
}

/* ---------------- Privacy page ---------------- */

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 130px 22px 80px;
}

.prose h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 900; margin-bottom: 10px; }
.prose .updated { color: var(--text-dim); font-size: 13.5px; margin-bottom: 34px; }
.prose h2 { font-size: 20px; font-weight: 900; margin: 30px 0 8px; color: var(--banana); }
.prose p { color: var(--text-dim); margin-bottom: 12px; }
.prose a { color: var(--banana); }
