/* === WildTales Theme === */
:root {
  --bg: #0a1a0f;
  --bg-surface: #0f2316;
  --bg-card: #142b1c;
  --fg: #f4efe6;
  --fg-muted: #9db89a;
  --fg-dim: #6b8a6d;
  --accent: #e89b3c;
  --accent-dim: #c47d28;
  --accent-glow: rgba(232, 155, 60, 0.12);
  --green-deep: #0a1a0f;
  --green-mid: #1e3d2f;
  --green-light: #2d6a4f;
  --gold: #e8c97a;
  --font-display: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Nunito', 'Georgia', serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
}
.nav-inner { max-width: 1200px; margin: 0 auto; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  opacity: 0.9;
}
.nav-logo span { letter-spacing: -0.01em; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-canopy {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at 70% 30%, #2d6a4f 0%, #1e3d2f 40%, transparent 70%);
  opacity: 0.6;
}

.hero-trees {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
}

.tree {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
}
.t1 { left: 5%; border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 120px solid #1e3d2f; opacity: 0.5; }
.t2 { left: 15%; border-left: 55px solid transparent; border-right: 55px solid transparent; border-bottom: 180px solid #163028; opacity: 0.6; }
.t3 { left: 30%; border-left: 35px solid transparent; border-right: 35px solid transparent; border-bottom: 140px solid #1e3d2f; opacity: 0.4; }
.t4 { right: 20%; border-left: 65px solid transparent; border-right: 65px solid transparent; border-bottom: 220px solid #163028; opacity: 0.7; }
.t5 { right: 8%; border-left: 45px solid transparent; border-right: 45px solid transparent; border-bottom: 160px solid #1e3d2f; opacity: 0.5; }

.hero-stars { position: absolute; inset: 0; }
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--fg);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
.s1 { top: 8%; left: 12%; animation-delay: 0s; }
.s2 { top: 15%; left: 45%; animation-delay: 1s; }
.s3 { top: 5%; left: 70%; animation-delay: 2s; }
.s4 { top: 20%; left: 85%; animation-delay: 0.5s; }
.s5 { top: 12%; left: 30%; animation-delay: 1.5s; }
.s6 { top: 18%; left: 60%; animation-delay: 2.5s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

.hero-firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(232, 201, 122, 0.4);
  animation: drift 8s ease-in-out infinite;
}
.ff1 { top: 55%; right: 25%; animation-delay: 0s; }
.ff2 { top: 70%; right: 15%; animation-delay: 3s; }
.ff3 { top: 40%; right: 35%; animation-delay: 6s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  25% { transform: translate(-20px, -15px); opacity: 1; }
  50% { transform: translate(-10px, -30px); opacity: 0.4; }
  75% { transform: translate(-30px, -10px); opacity: 0.9; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid rgba(232, 155, 60, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-divider {
  width: 1px;
  height: 36px;
  background: rgba(244, 239, 230, 0.1);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0a1a0f;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(232, 155, 60, 0.25);
}
.cta-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 155, 60, 0.35);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  border: 1px solid rgba(244, 239, 230, 0.15);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.cta-secondary:hover {
  border-color: rgba(244, 239, 230, 0.35);
  color: var(--fg);
  background: rgba(244, 239, 230, 0.04);
}

.closing-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── World Section ── */
.world {
  padding: 7rem 2rem;
  background: var(--bg-surface);
  position: relative;
}
.world::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 155, 60, 0.2), transparent);
}
.world-inner { max-width: 1100px; margin: 0 auto; }

.world-header { text-align: center; margin-bottom: 4rem; }

.section-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}

.world-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.world-header p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.world-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.map-region {
  background: var(--bg-card);
  border: 1px solid rgba(232, 155, 60, 0.1);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.map-region:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 155, 60, 0.3);
}
.map-region::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.map-region:hover::before { opacity: 1; }

.region-icon {
  margin-bottom: 1rem;
}
.map-region h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.map-region p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.lore-quote {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid rgba(232, 155, 60, 0.1);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 155, 60, 0.03), transparent);
}
.lore-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Features ── */
.features {
  padding: 7rem 2rem;
  background: var(--bg);
  position: relative;
}
.features-inner { max-width: 1100px; margin: 0 auto; }

.features-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 239, 230, 0.06);
  border-radius: 16px;
  padding: 2rem 2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(232, 155, 60, 0.2); }

.fc-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── Philosophy ── */
.philosophy {
  padding: 7rem 2rem;
  background: var(--bg-surface);
}
.philosophy-inner { max-width: 900px; margin: 0 auto; }

.philosophy-quote-block {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.pq-deco {
  margin: 0 auto 2rem;
  opacity: 0.8;
}

.big-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 600;
  font-style: italic;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.pq-attr {
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.philosophy-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pp-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(244, 239, 230, 0.05);
  border-radius: 12px;
}
.pp-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.pp-item p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Closing ── */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 155, 60, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.closing-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  font-style: italic;
}

/* ── Footer ── */
.site-footer {
  padding: 2.5rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid rgba(244, 239, 230, 0.05);
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--fg); }
.footer-copy { font-size: 0.8rem; color: var(--fg-dim); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .world-map { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .philosophy-points { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.25rem; }
  .hero-divider { display: none; }
  .hero-content { padding-right: 0; }
}
@media (max-width: 480px) {
  .hero { padding: 4rem 1.25rem 3rem; }
  .world { padding: 5rem 1.25rem; }
  .features { padding: 5rem 1.25rem; }
  .philosophy { padding: 5rem 1.25rem; }
  .closing { padding: 5rem 1.25rem; }
}