/* =======================================================================
   Fauna — Landing Page Styles
   Palette: dark forest (#050d05) + green accent (#16a34a / #4ade80)
   Font: Inter (body) + system serif fallback (hero)
   ======================================================================= */

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

:root {
  --bg:           #050d05;
  --surface:      #091409;
  --surface2:     #0f1f0f;
  --surface3:     #162616;
  --border:       #1a2e1a;
  --border2:      #243824;

  --text:         #d4e8d4;
  --text-bright:  #edf6ed;
  --text-muted:   #7aab7a;
  --text-dim:     #3a5a3a;

  --accent:        #16a34a;
  --accent-bright: #4ade80;
  --accent-rgb:    22, 163, 74;
  --accent-dim:    rgba(22,163,74,0.12);
  --accent-glow:   rgba(22,163,74,0.06);

  --cta-bg:   #16a34a;
  --cta-text: #ffffff;
  --cta-hover-bg: #15803d;

  --nav-h: 64px;
  --max-w: 1120px;
  --r: 14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utility ─────────────────────────────────────────────────────────── */
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 12px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all .18s;
  border: none; outline: none;
}
.btn-primary {
  background: var(--cta-bg); color: var(--cta-text);
}
.btn-primary:hover { background: var(--cta-hover-bg); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--accent-bright);
  border: 1.5px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(5,13,5,.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 18px; color: var(--text-bright);
}
.nav-logo-hex {
  width: 30px; height: 30px;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-link {
  text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: color .15s;
}
.nav-link:hover { color: var(--text-bright); }
.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.locale-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  transition: all .18s;
}
.locale-link:hover { color: var(--text-bright); }
.locale-link.is-active {
  background: var(--accent-dim);
  color: var(--accent-bright);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 72px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid rgba(74,222,128,.25);
  padding: 6px 14px; border-radius: 99px;
  font-size: 12px; font-weight: 600; color: var(--accent-bright); margin-bottom: 28px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.8)} }

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
  color: var(--text-bright); margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--accent-bright); }
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px); color: var(--text-muted);
  max-width: 540px; margin: 0 auto 36px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.proof-strip { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.proof-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.proof-check { color: var(--accent-bright); font-style: normal; }

/* Hero image */
.hero-img-wrap {
  position: relative; max-width: 860px; margin: 60px auto 0;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
.hero-img { width: 100%; height: auto; display: block; }
.hero-img-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* Glows */
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.hero-glow-1 {
  width: 600px; height: 400px; top: -80px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(22,163,74,.18) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 400px; height: 300px; bottom: 0; right: 10%;
  background: radial-gradient(ellipse, rgba(74,222,128,.08) 0%, transparent 70%);
}

/* ── Features ─────────────────────────────────────────────────────────── */
.features { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 48px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature-title { font-size: 16px; font-weight: 700; color: var(--text-bright); margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── How to play ──────────────────────────────────────────────────────── */
.how { padding: 80px 0; background: var(--surface); }
.gameplay-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 28px;
  margin-top: 36px;
  margin-bottom: 48px;
  align-items: stretch;
}
.gameplay-stage,
.gameplay-story {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: 24px;
}
.gameplay-stage {
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 20px 50px rgba(0,0,0,.28);
}
.gameplay-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.gameplay-hud-badge,
.gameplay-turn-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.gameplay-hud-badge {
  color: var(--accent-bright);
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.18);
}
.gameplay-turn-pill {
  color: var(--text-bright);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.gameplay-board-shell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at top, rgba(74,222,128,.12), transparent 45%),
    linear-gradient(180deg, #081408, #050d05);
}
.gameplay-board {
  width: 100%;
  height: auto;
  display: block;
}
.gameplay-scene {
  opacity: 0;
  transition: opacity .45s ease;
}
.gameplay-scene.is-active { opacity: 1; }
.piece {
  stroke-width: 3;
  transition: transform .45s ease, opacity .45s ease;
}
.piece-white {
  fill: #dff8de;
  stroke: #79d894;
}
.piece-black {
  fill: #183225;
  stroke: #8fb89e;
}
.piece.support { fill: #9ff2b6; }
.piece.leader { filter: drop-shadow(0 0 18px rgba(74,222,128,.24)); }
.piece-black.leader { filter: drop-shadow(0 0 18px rgba(255,255,255,.08)); }
.piece.is-faded { opacity: .28; }
.gameplay-arrow {
  fill: none;
  stroke: #59d67e;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 12 12;
  opacity: .95;
  aspect-ratio: 1.06 / 1;
  min-height: 480px;
  animation: dash 10s linear infinite;
}
.gameplay-arrow--soft { stroke: #7fbef4; }
  height: 100%;
.gameplay-arrow--gold { stroke: #f0c15f; }
  transition: opacity .22s ease, transform .22s ease;
@keyframes dash {
.gameplay-board-shell.is-switching .gameplay-board {
  opacity: .72;
  transform: scale(.986);
.gameplay-focus {
.gameplay-board-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.gameplay-arrow {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 18 14;
  opacity: .92;
  animation: dash 10s linear infinite;
}
.gameplay-arrow--soft { stroke: #8cc8ff; }
.gameplay-arrow--danger { stroke: #ff996f; }
.gameplay-arrow--gold { stroke: #f0c15f; }
.gameplay-cell {
  stroke: #38482e;
  stroke-width: 2.2;
}
.gameplay-cell--selected { fill: #b8960a; }
.gameplay-cell--valid { fill: #4a7a4a; }
.gameplay-cell--last-move { fill: #5a7050; }
.gameplay-cell--threat { fill: #4a1a5a; }
.gameplay-cell--attack { fill: #7a2a2a; }
.gameplay-overlay-dot {
  fill: rgba(0,0,0,.22);
  justify-content: center;
.gameplay-overlay-ring {
  fill: none;
  stroke: rgba(0,0,0,.28);
  stroke-width: 5;
}
.gameplay-terrain-icon {
  stroke: rgba(244, 239, 229, .22);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.gameplay-throne-star {
  fill: #ffe8a0;
  opacity: .82;
  font-family: Georgia, serif;
  font-size: 22px;
}
.gameplay-focus {
  fill: rgba(251,191,36,.12);
  stroke: rgba(251,191,36,.5);
  stroke-width: 4;
  animation: pulseRing 2.8s ease infinite;
}
.gameplay-piece-group {
  transition: opacity .24s ease;
}
.gameplay-piece-group.is-used {
  opacity: .34;
}
.gameplay-piece-shadow {
  fill: rgba(0,0,0,.35);
}
.gameplay-piece-backing--white {
  fill: #ede5cc;
  stroke: #f5c842;
  stroke-width: 3;
}
.gameplay-piece-backing--black {
  fill: #1e2830;
  stroke: #9cb8a0;
  stroke-width: 3;
}
.gameplay-piece-ring--white {
  fill: none;
  stroke: #362c1a;
  stroke-width: 2;
}
.gameplay-piece-ring--black {
  fill: none;
  stroke: #aab8c4;
  stroke-width: 2;
}
.gameplay-piece-selected {
  fill: none;
  stroke: #fbbf24;
  stroke-width: 3;
}
.gameplay-piece-image--black {
  filter: grayscale(1) brightness(.55);
}
.gameplay-piece-crown {
  fill: #f5c842;
  stroke: #2a1d00;
  stroke-width: .8;
  paint-order: stroke;
  font-family: Georgia, serif;
  font-size: 20px;
}
.gameplay-piece-crown--black {
  fill: #9dd4a8;
  stroke: #0d1a0f;
}
.gameplay-hud-status {
  fill: #f4efe5;
  font-size: 18px;
  font-weight: 600;
}
.gameplay-hud-subtle {
  fill: rgba(244,239,229,.62);
  font-size: 13px;
}
.gameplay-win-text {
  fill: #f3d38a;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
.gameplay-dot {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 18px;
.gameplay-story-card:hover {
  transform: translateY(-1px);
  border-color: rgba(74,222,128,.24);
}
.gameplay-story-card.is-active {
  background: rgba(74,222,128,.08);
  border-color: rgba(74,222,128,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.gameplay-story-step {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--accent-bright);
}
.gameplay-story-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-bright);
}
.gameplay-story-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 48px; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-dim); border: 1.5px solid rgba(74,222,128,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--accent-bright);
  margin: 0 auto 16px;
}
.step-title { font-size: 15px; font-weight: 700; color: var(--text-bright); margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Animals ──────────────────────────────────────────────────────────── */
.animals { padding: 80px 0; }
.animals-grid {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px;
}
.animal-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 600; color: var(--text);
  transition: border-color .18s, color .18s;
}
.animal-pill:hover { border-color: var(--accent); color: var(--accent-bright); }
.animal-emoji { font-size: 18px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { padding: 80px 0; background: var(--surface); }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-left: auto; margin-right: auto; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; color: var(--text-bright);
  gap: 12px;
}
.faq-q:hover { color: var(--accent-bright); }
.faq-arrow { font-size: 18px; transition: transform .2s; flex-shrink: 0; color: var(--text-muted); }
.faq-item[open] .faq-arrow { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px 18px;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}
.faq-item[open] { border-color: var(--border2); }

/* ── CTA strip ───────────────────────────────────────────────────────── */
.cta-strip {
  padding: 80px 24px; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  position: relative; overflow: hidden;
}
.cta-strip-glow {
  position: absolute; width: 600px; height: 400px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(ellipse, rgba(22,163,74,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-strip h2 { font-size: clamp(28px,5vw,48px); font-weight: 800; color: var(--text-bright); margin-bottom: 12px; }
.cta-strip p { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; }
.cta-strip .btn { font-size: 16px; padding: 15px 32px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; max-width: var(--max-w); margin: 0 auto;
  font-size: 13px; color: var(--text-dim);
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--accent-bright); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 72px 0 56px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 320px; }
  .nav-links .nav-link { display: none; }
  .nav-actions { gap: 8px; }
  .locale-link { padding: 6px 8px; }
  .gameplay-showcase {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .gameplay-stage { padding: 14px; }
  .gameplay-board-shell {
    min-height: 340px;
  }
  .gameplay-story { padding: 10px; }
  .gameplay-story-card { padding: 16px; }
  .gameplay-story-title { font-size: 16px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 900px) {
  .gameplay-showcase {
    grid-template-columns: 1fr;
  }
}
