/* =========================================================
   Pasture — Landing Page Styles
   Aesthetic: Pokémon Emerald ending credits — rolling hills,
   golden hour, layered parallax, warm & pastoral.
   ========================================================= */

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

:root {
  --gold:       #f5c842;
  --gold-dark:  #c8960a;
  --warm-white: #fdf8ee;
  --warm-cream: #faf3e0;
  --text:       #2c1f0e;
  --text-muted: #6b5740;
  --border:     rgba(44,31,14,0.10);

  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;

  --font: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--warm-cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* =========================================================
   HERO — GBA Pixel Art Canvas
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20vh;
}

/* The canvas renders at 240×160, CSS scales it up pixel-perfect */
#gba-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges; /* Firefox */
  z-index: 0;
}

/* Scanlines — very subtle, just a whisper of texture */
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 4px,
    rgba(0, 0, 0, 0.04) 4px,
    rgba(0, 0, 0, 0.04) 5px
  );
  pointer-events: none;
}

/* Soft vignette — gentle, not dramatic */
.gba-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 20, 10, 0.30) 100%);
  pointer-events: none;
}

/* Pixel font override removed — title stays in Nunito */

/* -- Hero content -- */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: white;
  padding: 0 24px;
  width: 100%;
  max-width: 640px;
}
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.40);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: white;
  text-shadow: 0 2px 0 rgba(0,0,0,0.30), 0 4px 20px rgba(0,0,0,0.40);
  margin-bottom: 12px;
}
.hero-sub {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 2px 12px rgba(0,0,0,0.35);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.90);
  text-shadow: 0 1px 8px rgba(0,0,0,0.30);
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-desc a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -- CTA buttons -- */
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: white;
  color: #2a5c2a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-ghost {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.45);
}

/* =========================================================
   SECTIONS — shared
   ========================================================= */
.section {
  padding: 96px 24px;
}
.container {
  max-width: 1040px;
  margin: 0 auto;
}
.container.narrow {
  max-width: 640px;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 56px;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how {
  background: var(--warm-white);
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.step-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.step-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.step-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.step-arrow {
  font-size: 1.5rem;
  color: var(--gold-dark);
  opacity: 0.5;
  padding: 0 20px;
  align-self: center;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .step-arrow { display: none; }
  .steps { gap: 36px; }
  .step { min-width: 100%; }
}

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  background: var(--warm-cream);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44,31,14,0.08);
}
.feature-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* =========================================================
   REQUIREMENTS
   ========================================================= */
.requirements {
  background: var(--warm-white);
}
.requirements .section-title { margin-bottom: 32px; }
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.req-list li {
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1.5;
}
.req-list a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.req-check {
  color: #3d7a3c;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 540px;
  display: flex;
  align-items: center;
}
.download-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.dl-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2a1a4e 0%, #5c3070 40%, #c9506e 75%, #e8705c 100%);
}
.dl-hills {
  position: absolute;
  bottom: 0;
  width: 200%;
  left: -50%;
  border-radius: 50% 50% 0 0 / 20% 20% 0 0;
  animation: hillDrift linear infinite;
}
.dl-hills-far {
  height: 50%;
  background: #2a4a28;
  bottom: 18%;
  animation-duration: 70s;
  opacity: 0.9;
}
.dl-hills-near {
  height: 40%;
  background: #1a3018;
  bottom: 0;
  animation-duration: 30s;
  animation-direction: reverse;
}
.download-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 100px 24px;
  width: 100%;
}
.dl-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.dl-sub {
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 36px;
}
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1;
  min-width: 180px;
  padding: 13px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input::placeholder { color: rgba(255,255,255,0.55); }
.waitlist-form input:focus { border-color: rgba(255,255,255,0.7); }
.waitlist-form button {
  padding: 13px 22px;
  border-radius: 100px;
  border: none;
  background: var(--gold);
  color: #2c1f0e;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.waitlist-form button:hover { background: #f5d060; transform: translateY(-1px); }
.dl-small {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 16px;
}
.dl-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  transition: background 0.15s, transform 0.15s;
}
.btn-dl:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.btn-dl-mac { opacity: 0.7; }

@keyframes hillDrift {
  0%   { transform: translateX(0%); }
  50%  { transform: translateX(10%); }
  100% { transform: translateX(0%); }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 36px 24px;
}
.footer .container { max-width: 1040px; margin: 0 auto; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}
.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
}
.footer-nav a { opacity: 0.7; transition: opacity 0.15s; }
.footer-nav a:hover { opacity: 1; }
.footer-copy {
  font-size: 0.82rem;
  opacity: 0.5;
  text-align: center;
}

/* =========================================================
   SCROLL ANIMATION helpers
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 480px) {
  .hero-content { padding-bottom: 6vh; }
  .section { padding: 72px 20px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input, .waitlist-form button { width: 100%; }
}
