/* ============================================
   WEALDOR — The Forest Rises. The War Begins.
   Dark forest MMO strategy game — production CSS
   ============================================ */

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

:root {
  /* Core palette */
  --bg-darkest: #060f0a;
  --bg-dark: #0d1f14;
  --bg-forest: #1a3225;
  --bg-card: #0f2418;
  --bg-card-hover: #142a1c;

  /* Accents */
  --gold: #c9a961;
  --gold-bright: #e0c280;
  --amber: #d4943a;
  --amber-dim: #a06d28;
  --sage: #7ba87b;
  --sage-dim: #4a6a4a;

  /* Text */
  --text-primary: #e8e6e1;
  --text-secondary: #b0c4b0;
  --text-muted: #6a8a6a;
  --text-gold: #c9a961;

  /* Fonts */
  --font-heading: 'Cormorant', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Effects */
  --glow-gold: 0 0 30px rgba(201, 169, 97, 0.15);
  --glow-gold-strong: 0 0 40px rgba(201, 169, 97, 0.3);
  --border-subtle: 1px solid rgba(201, 169, 97, 0.12);
  --border-medium: 1px solid rgba(201, 169, 97, 0.25);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Particle Canvas ===== */
#emberCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ===== Navigation ===== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: var(--transition);
  background: transparent;
}

#nav.scrolled {
  background: rgba(6, 15, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-subtle);
  padding: 0.8rem 3rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-logo:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(201, 169, 97, 0.4);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Section Helpers ===== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  text-align: center;
  color: var(--text-gold);
  margin-bottom: 3.5rem;
  opacity: 0.85;
}

.accent-gold {
  color: var(--gold);
  font-style: italic;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center, var(--bg-forest) 0%, var(--bg-dark) 50%, var(--bg-darkest) 100%);
  overflow: hidden;
  z-index: 2;
}

.hero-mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(123, 168, 123, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(201, 169, 97, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(13, 31, 20, 0.8) 0%, transparent 70%);
  pointer-events: none;
  animation: mistDrift 20s ease-in-out infinite alternate;
}

@keyframes mistDrift {
  0% { transform: translateX(0) translateY(0); opacity: 0.7; }
  100% { transform: translateX(-30px) translateY(-10px); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeInUp 1s 0.2s forwards;
}

.hero-eyebrow-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 1.2s 0.4s forwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 1.2s 0.6s forwards;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-darkest);
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  border: none;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 1.2s 0.8s forwards;
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 97, 0.35);
}

.btn-large {
  padding: 1.2rem 3.5rem;
  font-size: 1rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  opacity: 0;
  animation: fadeInUp 1.2s 1s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

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

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1.5s 1.5s forwards;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== The World ===== */
.world {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background:
    linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 30%, var(--bg-dark) 70%, var(--bg-darkest) 100%);
}

.pentagon-container {
  position: relative;
  max-width: 650px;
  margin: 0 auto 3rem;
  padding: 2rem;
}

.pentagon-map {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(201, 169, 97, 0.08));
}

/* Realm shapes */
.realm-group {
  cursor: pointer;
  transition: var(--transition);
}

.realm-group .realm-shape {
  transition: var(--transition);
}

.realm-group:hover .realm-shape {
  fill-opacity: 0.95;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 12px rgba(201, 169, 97, 0.3));
}

.realm-group:hover {
  transform: scale(1.05);
  transform-origin: center;
}

/* Labels in SVG */
.realm-label {
  font-family: 'Cormorant', serif;
  font-size: 13px;
  font-weight: 600;
  fill: var(--text-primary);
  pointer-events: none;
  letter-spacing: 0.05em;
}

.realm-sub-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  fill: var(--text-muted);
  pointer-events: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.heartwood-label {
  font-family: 'Cormorant', serif;
  font-size: 16px;
  font-weight: 700;
  fill: var(--gold);
  pointer-events: none;
  letter-spacing: 0.05em;
}

.heartwood-sub-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  fill: var(--amber);
  pointer-events: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.heartwood-group {
  cursor: pointer;
}

.heartwood-circle {
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: 0.5; }
}

/* Tooltip */
.realm-tooltip {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 15, 10, 0.95);
  border: var(--border-medium);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 260px;
  max-width: 340px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(8px);
}

.realm-tooltip.active {
  opacity: 1;
  visibility: visible;
}

.tooltip-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.tooltip-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.tooltip-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* World lore text */
.world-lore {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.world-lore p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

.world-lore-small {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-style: normal !important;
  color: var(--text-secondary) !important;
  margin-top: 1rem;
  line-height: 1.8;
}

/* ===== Gameplay ===== */
.gameplay {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background: var(--bg-darkest);
}

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

.feature-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 169, 97, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Heroes (NFTs) ===== */
.heroes {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background:
    linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 50%, var(--bg-darkest) 100%);
}

.hero-cards {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
  perspective: 1500px;
}

.hero-card {
  width: 340px;
  height: 520px;
  perspective: 1500px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.hero-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  border: var(--border-medium);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-front {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-darkest) 100%);
}

.card-back {
  background: linear-gradient(180deg, var(--bg-forest) 0%, var(--bg-darkest) 100%);
  transform: rotateY(180deg);
  justify-content: center;
  text-align: center;
}

.card-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 0.3rem 1rem;
  margin-bottom: 1rem;
}

.card-badge.agent {
  color: var(--sage);
  border-color: var(--sage);
}

.card-art {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(201, 169, 97, 0.2);
}

.card-art.agent-art {
  border-color: rgba(123, 168, 123, 0.2);
}

.card-svg {
  width: 100%;
  height: 100%;
}

.card-front h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.card-supply {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.card-traits {
  list-style: none;
  text-align: center;
  width: 100%;
}

.card-traits li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-top: 1px solid rgba(201, 169, 97, 0.08);
}

.card-traits li:first-child {
  border-top: none;
}

.card-flip-hint {
  margin-top: auto;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
}

.card-back h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.card-back p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-back-quote {
  font-family: var(--font-heading) !important;
  font-style: italic !important;
  color: var(--gold) !important;
  font-size: 1.1rem !important;
  margin-top: 1rem;
}

.heroes-footer {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.heroes-footer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Soulbound Staking ===== */
.staking {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background: var(--bg-darkest);
}

.staking-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
}

.staking-step {
  flex: 0 0 200px;
  text-align: center;
  padding: 0 1rem;
}

.staking-step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.staking-step-icon {
  width: 48px;
  height: 48px;
  color: var(--sage);
  margin: 0 auto 1.5rem;
}

.staking-step-icon svg {
  width: 100%;
  height: 100%;
}

.staking-step h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.staking-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.staking-connector {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3.5rem;
}

.connector-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.staking-callout {
  text-align: center;
  margin-top: 2rem;
}

.staking-callout p {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--text-primary);
}

/* ===== Rewards ===== */
.rewards {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background:
    linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 50%, var(--bg-darkest) 100%);
}

.rewards-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  background: var(--bg-card);
  border: var(--border-medium);
  border-radius: 8px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.rewards-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.reward-block {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}

.reward-block.grand-finale {
  position: relative;
}

.reward-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: var(--glow-gold);
}

.grand-finale .reward-number {
  color: var(--amber);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
}

.reward-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.reward-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.reward-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 97, 0.2), transparent);
}

.rewards-note {
  text-align: center;
}

.rewards-note p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* ===== Timeline ===== */
.timeline-section {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background: var(--bg-darkest);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 5%, var(--gold) 95%, transparent);
  opacity: 0.2;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  flex: 0 0 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  z-index: 2;
  transition: var(--transition);
}

.timeline-marker span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.timeline-marker.finale {
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(212, 148, 58, 0.2);
}

.timeline-marker.finale span {
  color: var(--amber);
}

.timeline-item:hover .timeline-marker {
  box-shadow: 0 0 25px rgba(201, 169, 97, 0.3);
  transform: scale(1.05);
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-content.finale h4 {
  color: var(--amber);
}

.timeline-seasons {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.timeline-content > p:last-child {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-darkest);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(26, 50, 37, 0.6) 0%, var(--bg-darkest) 70%),
    radial-gradient(ellipse 60% 40% at 50% 40%, rgba(201, 169, 97, 0.06) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 3;
  padding: 4rem 2rem;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: var(--glow-gold);
}

.cta-tagline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.count-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

.count-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg-darkest);
  border-top: var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 0 0 auto;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-tag {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(201, 169, 97, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--gold);
}

.footer-copy {
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rewards-highlight {
    flex-direction: column;
    gap: 2rem;
  }

  .reward-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.2), transparent);
  }
}

@media (max-width: 768px) {
  #nav {
    padding: 1rem 1.5rem;
  }

  #nav.scrolled {
    padding: 0.6rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 15, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero-stat {
    min-width: 45%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    flex-direction: column;
    align-items: center;
  }

  .staking-flow {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .staking-step {
    flex: 0 0 auto;
  }

  .staking-connector {
    flex: 0 0 30px;
    padding-top: 0;
  }

  .connector-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-countdown {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .countdown-unit {
    min-width: 65px;
  }

  .count-num {
    font-size: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    flex: 0 0 40px;
    height: 40px;
  }

  .timeline-marker span {
    font-size: 0.7rem;
  }

  .section-inner {
    padding: 0 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .world-lore p {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  .hero-card {
    width: 100%;
    max-width: 320px;
  }

  .reward-block {
    padding: 0 0.5rem;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  #emberCanvas {
    display: none;
  }
}
