/* Sporeborn waitlist: paleta teal/ferrugem + verde neon do jogo */
:root {
  --bg: #0a100e;
  --bg-2: #0f1916;
  --panel: #121f1b;
  --line: #24382f;
  --text: #d8e6df;
  --muted: #8aa39a;
  --neon: #6dff8b;
  --neon-dim: #3fbf5f;
  --teal: #2f8f86;
  --rust: #b8612e;
  --rust-2: #d9823f;
  --danger: #ff6b6b;
  --radius: 4px;
  --pixel: "Pixelify Sans", system-ui, sans-serif;
  --label: "Silkscreen", monospace;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  /* A Pixelify junta "fi" numa ligadura que parece "A" */
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

#spores {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(10, 16, 14, 0.92), rgba(10, 16, 14, 0));
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(10, 16, 14, 0.95); border-bottom: 1px solid var(--line); }
.nav-brand {
  font-family: var(--pixel);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--neon);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--label);
  font-size: 12px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--neon); }

/* BUTTONS */
.btn {
  display: inline-block;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #06110b;
  background: var(--neon);
  border: 0;
  padding: 14px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--neon-dim), 0 0 24px rgba(109, 255, 139, 0.25);
  transition: transform 0.1s, box-shadow 0.1s, filter 0.2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--neon-dim); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-small { font-size: 14px; padding: 9px 16px; }
.btn-wide { width: 100%; text-align: center; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--neon); color: var(--neon); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 110px 16px 80px;
  /* O poster aparece na hora enquanto o WebP animado carrega */
  background: var(--bg) url("assets/hero_poster.jpg") center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at center, rgba(10, 16, 14, 0.78) 0%, rgba(10, 16, 14, 0.45) 60%, rgba(10, 16, 14, 0.2) 100%),
    linear-gradient(to bottom, rgba(10, 16, 14, 0.35), rgba(10, 16, 14, 0) 30%, rgba(10, 16, 14, 0) 70%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    "eyebrow art"
    "logo    art"
    "h1      art"
    "lead    art"
    "status  art"
    "cta     art"
    "count   art";
  column-gap: clamp(28px, 4vw, 60px);
  align-items: center;
  text-align: left;
}
/* Itens do grid podem encolher abaixo do tamanho natural (evita a imagem esticar a coluna) */
.hero-content > * { min-width: 0; max-width: 100%; }
.hero-eyebrow { grid-area: eyebrow; }
.hero-content h1 { grid-area: h1; }
.hero-content .lead { grid-area: lead; margin-left: 0; }
.hero-cta { grid-area: cta; }
.hero-count { grid-area: count; }
.hero-art {
  grid-area: art;
  margin: 0;
  background: rgba(10, 16, 14, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 0 60px rgba(109, 255, 139, 0.18), 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: rotate(1deg);
  transition: transform 0.4s;
}
.hero-art:hover { transform: rotate(0deg) scale(1.02); }
.hero-art img { width: 100%; height: auto; border-radius: 2px; }
.hero-art figcaption { font-family: var(--label); font-size: 11px; color: var(--muted); margin-top: 8px; text-align: center; }
.onchain-status {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--label);
  font-size: 13px;
  color: var(--rust-2);
  margin: -14px 0 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.status-dot { width: 8px; height: 8px; background: var(--rust-2); box-shadow: 0 0 8px var(--rust-2); animation: pulse 1.8s ease-in-out infinite; }
.hero-logo {
  grid-area: logo;
  width: min(440px, 80vw);
  margin: 6px 0 14px;
  filter: drop-shadow(0 0 30px rgba(109, 255, 139, 0.25));
  animation: float 6s ease-in-out infinite;
}
h1 {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  text-shadow: 0 3px 0 #000;
}
h1 span { color: var(--neon); text-shadow: 0 0 22px rgba(109, 255, 139, 0.5), 0 3px 0 #000; }
.lead { font-size: clamp(16px, 2vw, 19px); color: #c6d8d0; max-width: 620px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-count { margin-top: 22px; font-family: var(--label); font-size: 13px; color: var(--muted); }
.hero-count b { color: var(--neon); }
@media (min-width: 901px) {
  /* Texto fica à esquerda no desktop: escurece esse lado para leitura */
  .hero-shade {
    background:
      linear-gradient(to right, rgba(10, 16, 14, 0.88) 0%, rgba(10, 16, 14, 0.6) 45%, rgba(10, 16, 14, 0.25) 75%, rgba(10, 16, 14, 0.35) 100%),
      linear-gradient(to bottom, rgba(10, 16, 14, 0.3), rgba(10, 16, 14, 0) 25%, rgba(10, 16, 14, 0) 70%, var(--bg) 100%);
  }
}
.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  animation: bob 2s ease-in-out infinite;
  z-index: 2;
}

.eyebrow {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-2);
  margin: 0 0 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.lead { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); }

/* SECTIONS */
.section {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) clamp(16px, 4vw, 40px);
  text-align: center;
}
h2 {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  margin: 0 0 18px;
}
h3 { font-family: var(--pixel); font-weight: 700; font-size: 22px; margin: 0 0 6px; }
.section-lead { color: var(--muted); max-width: 560px; margin: 0 auto 40px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 28px; }
.section-dark {
  max-width: none;
  background:
    linear-gradient(rgba(10, 16, 14, 0.88), rgba(10, 16, 14, 0.94)),
    url("assets/wildzone.webp") center / cover fixed;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* LOOP */
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.loop-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 24px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.loop-card:hover { transform: translateY(-4px); border-color: var(--neon-dim); }
.loop-img { overflow: hidden; aspect-ratio: 16 / 10; }
.loop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.loop-card:hover .loop-img img { transform: scale(1.06); }
.loop-step { display: block; font-family: var(--label); color: var(--neon); font-size: 12px; margin: 18px 22px 4px; }
.loop-card h3, .loop-card p { margin-left: 22px; margin-right: 22px; }
.loop-card p { color: var(--muted); margin-top: 0; font-size: 15px; }

/* MIXER */
.section-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; text-align: left; }
.split-img img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(109, 255, 139, 0.12);
}
.split-text p { color: var(--muted); }

/* TRUTH */
.truth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.truth-card { background: var(--panel); border: 1px solid var(--line); border-top-width: 4px; border-radius: var(--radius); padding: 24px; text-align: left; }
.truth-card ul { list-style: none; margin: 12px 0 0; padding: 0; }
.truth-card li { padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.truth-card li:last-child { border-bottom: 0; }
.truth-live { border-top-color: var(--neon); }
.truth-live h3 { color: var(--neon); }
.truth-next { border-top-color: var(--teal); }
.truth-next h3 { color: #5fd3c7; }
.truth-no { border-top-color: var(--rust); }
.truth-no h3 { color: var(--rust-2); }

/* REWARDS */
.reward-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reward-grid-2 { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
.reward { background: rgba(18, 31, 27, 0.85); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 18px; transition: border-color 0.25s, transform 0.25s; }
.reward:hover { border-color: var(--neon-dim); transform: translateY(-4px); }
.reward-num { display: block; font-family: var(--label); font-size: 34px; color: var(--neon); line-height: 1; margin-bottom: 12px; }
.reward p { color: var(--muted); font-size: 14px; margin: 0; }

/* JOIN */
.join-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
  text-align: left;
  box-shadow: 0 0 80px rgba(109, 255, 139, 0.08);
}
.join-head p:last-child { color: var(--muted); margin-top: 0; }
form label, .joined label { display: block; margin: 20px 0 0; }
form label > span, .joined label > span { display: block; font-family: var(--label); font-size: 12px; margin-bottom: 7px; }
form label em { color: var(--muted); font-style: normal; }
form small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 14px;
  font: 15px var(--body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus { outline: none; border-color: var(--neon-dim); box-shadow: 0 0 0 3px rgba(109, 255, 139, 0.15); }
input.invalid { border-color: var(--danger); }
#joinBtn { margin-top: 22px; }
.form-help {
  margin: 20px 0 0;
  padding: 12px 14px;
  background: var(--bg);
  border-left: 3px solid var(--neon-dim);
  font-size: 14px;
  color: var(--text);
}
.form-help a, .handle-note a { color: var(--neon); }
.tiers { margin: 18px 0 0; font-size: 15px; }
.tiers b { color: var(--neon); font-weight: 600; }
.handle-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--rust);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--rust-2);
}
.form-error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.joined-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 6px; }
.joined-stats-single { grid-template-columns: 1fr; }
.joined-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.joined-stats span { display: block; font-family: var(--label); font-size: 28px; color: var(--neon); }
.joined-stats small { color: var(--muted); font-size: 12px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-size: 13px; }
#shareBtn { margin-top: 18px; }

/* ROADMAP */
.roadmap { list-style: none; padding: 0; margin: 40px auto 0; max-width: 640px; text-align: left; }
.phase { display: flex; gap: 20px; align-items: flex-start; padding: 20px 0; border-left: 2px solid var(--line); padding-left: 24px; position: relative; }
.phase::before { content: ""; position: absolute; left: -7px; top: 26px; width: 12px; height: 12px; background: var(--line); }
.phase span { font-family: var(--label); color: var(--muted); font-size: 13px; padding-top: 4px; }
.phase p { color: var(--muted); margin: 0; }
.phase-now { border-left-color: var(--neon); }
.phase-now::before { background: var(--neon); box-shadow: 0 0 14px var(--neon); animation: pulse 1.8s ease-in-out infinite; }
.phase-now h3, .phase-now span { color: var(--neon); }

/* FAQ */
.faq { max-width: 720px; margin: 40px auto 0; text-align: left; }
details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
summary { cursor: pointer; font-family: var(--pixel); font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--neon); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* FOOTER */
.footer { position: relative; z-index: 2; text-align: center; padding: 60px 16px 40px; border-top: 1px solid var(--line); }
.footer-logo { width: 220px; margin: 0 auto 10px; opacity: 0.9; }
.footer p { color: var(--muted); margin: 6px 0; }
.footer-x { font-family: var(--label); font-size: 13px; color: var(--neon); }
.footer-links { color: var(--muted); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.loop-grid .reveal:nth-child(2), .truth-grid .reveal:nth-child(2), .reward-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.loop-grid .reveal:nth-child(3), .truth-grid .reveal:nth-child(3), .reward-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.reward-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .scroll-hint, .phase-now::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* MOBILE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 90px; background-image: url("assets/hero_poster_mobile.jpg"); }
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "eyebrow" "logo" "h1" "art" "lead" "status" "cta" "count";
    text-align: center;
    justify-items: center;
  }
  .hero-logo { width: min(300px, 70vw); margin: 4px auto 10px; }
  .hero-art { max-width: 520px; margin: 4px auto 18px; transform: none; }
  .hero-content .lead { margin: 0 auto 18px; }
  .onchain-status { margin: 0 0 20px; }
  .hero-cta { justify-content: center; }
  .reward-grid-2 { grid-template-columns: 1fr 1fr; }
  .loop-grid, .truth-grid { grid-template-columns: 1fr; }
  .reward-grid { grid-template-columns: 1fr 1fr; }
  .section-split { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .section-dark { background-attachment: scroll; }
}
@media (max-width: 480px) {
  .reward-grid { grid-template-columns: 1fr; }
  .copy-row { flex-direction: column; }
}
