/* === RECLAIM - Dark Fantasy Landing Page === */

:root {
  --bg: #0a0a0c;
  --bg-elevated: #111114;
  --bg-card: #16161a;
  --fg: #d4cfc4;
  --fg-dim: #8a857a;
  --fg-bright: #f0ece3;
  --gold: #d4a030;
  --gold-dim: #a37a24;
  --gold-glow: rgba(212, 160, 48, 0.15);
  --ember: #c44d1a;
  --ember-glow: rgba(196, 77, 26, 0.2);
  --border: rgba(212, 160, 48, 0.12);
  --font-display: 'Cinzel', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --container: 1100px;
}

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

html { scroll-behavior: smooth; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }

.section-kicker {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(196, 77, 26, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(212, 160, 48, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0c 0%, #0e0c08 70%, #12100a 100%);
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 760px;
  padding: 40px 24px;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--fg-bright);
  line-height: 1.2;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 13px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Gate silhouette */
.hero-gate {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 280px;
  z-index: 2;
  opacity: 0.12;
}

.gate-pillar {
  position: absolute;
  bottom: 0;
  width: 24px;
  height: 240px;
  background: linear-gradient(0deg, var(--gold) 0%, transparent 100%);
}

.gate-pillar.left { left: 0; }
.gate-pillar.right { right: 0; }

.gate-arch {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  border: 24px solid transparent;
  border-bottom: none;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  background: linear-gradient(180deg, var(--gold), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.gate-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 200px;
  background: radial-gradient(ellipse at center bottom, rgba(212, 160, 48, 0.3) 0%, transparent 70%);
  filter: blur(20px);
}

/* Ember particles */
.hero-ember-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.ember {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(212, 160, 48, 0.4);
  animation: float-up 6s ease-in infinite;
}

.ember.e1 { left: 15%; bottom: -10px; animation-delay: 0s; animation-duration: 7s; }
.ember.e2 { left: 35%; bottom: -10px; animation-delay: 1.2s; animation-duration: 5.5s; }
.ember.e3 { left: 55%; bottom: -10px; animation-delay: 2.8s; animation-duration: 6.5s; }
.ember.e4 { left: 75%; bottom: -10px; animation-delay: 0.6s; animation-duration: 8s; }
.ember.e5 { left: 25%; bottom: -10px; animation-delay: 3.5s; animation-duration: 6s; width: 2px; height: 2px; background: var(--ember); }
.ember.e6 { left: 65%; bottom: -10px; animation-delay: 4.1s; animation-duration: 7.5s; width: 2px; height: 2px; background: var(--ember); }
.ember.e7 { left: 45%; bottom: -10px; animation-delay: 1.8s; animation-duration: 5s; }
.ember.e8 { left: 85%; bottom: -10px; animation-delay: 2.2s; animation-duration: 6.8s; width: 2px; height: 2px; }

@keyframes float-up {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* ====== PROBLEM ====== */
.problem {
  padding: 120px 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--fg-bright);
  line-height: 1.3;
  margin-bottom: 24px;
}

.problem-text p {
  color: var(--fg);
  margin-bottom: 16px;
}

.problem-numbers {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.number-card {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.big-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.num-desc {
  font-size: 14px;
  color: var(--fg-dim);
}

/* ====== STAGES ====== */
.stages {
  padding: 120px 0;
  text-align: center;
}

.stages h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--fg-bright);
  line-height: 1.3;
  margin-bottom: 64px;
}

.stage-path {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.stage-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--border) 0%, var(--gold-dim) 50%, var(--gold) 100%);
}

.stage-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  position: relative;
}

.stage-marker {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.stage-marker span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dim);
}

.stage-marker.final {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.stage-marker.final span {
  color: var(--gold);
}

.stage-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-bright);
  margin-bottom: 4px;
}

.stage-info p {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ====== ARSENAL ====== */
.arsenal {
  padding: 120px 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
  text-align: center;
}

.arsenal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--fg-bright);
  margin-bottom: 56px;
}

.arsenal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: left;
}

.arsenal-item {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.arsenal-item:hover {
  border-color: var(--gold-dim);
}

.arsenal-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 20px;
}

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

.arsenal-item h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-bright);
  margin-bottom: 8px;
}

.arsenal-item p {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ====== PHILOSOPHY ====== */
.philosophy {
  padding: 120px 0;
}

.philosophy-inner {
  text-align: center;
}

.philosophy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--fg-bright);
  line-height: 1.3;
  margin-bottom: 56px;
}

.philosophy-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
}

.phil-col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.phil-col p {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* ====== CLOSING ====== */
.closing {
  padding: 140px 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(212, 160, 48, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(196, 77, 26, 0.08) 0%, transparent 50%),
    var(--bg);
}

.closing-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.closing-embers {
  position: absolute;
  inset: -60px;
  overflow: hidden;
  pointer-events: none;
}

.closing-embers .ember {
  box-shadow: 0 0 4px 1px rgba(212, 160, 48, 0.3);
}

.closing-embers .e1 { left: 10%; bottom: -10px; animation-delay: 0s; }
.closing-embers .e2 { left: 40%; bottom: -10px; animation-delay: 1.5s; }
.closing-embers .e3 { left: 70%; bottom: -10px; animation-delay: 3s; }
.closing-embers .e4 { left: 90%; bottom: -10px; animation-delay: 4.5s; }

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--fg-bright);
  line-height: 1.3;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.closing p {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

/* ====== FOOTER ====== */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 4px;
}

.footer-meta p {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ====== QUIZ CTA ====== */
.stages-cta {
  text-align: center;
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-primary-quiz {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary-quiz:hover {
  background: var(--fg-bright);
  transform: translateY(-1px);
}

.stages-cta-sub {
  font-size: 14px;
  color: var(--fg-dim);
}

/* Closing CTA */
.btn-closing-quiz {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--ember);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 40px;
}

.btn-closing-quiz:hover {
  background: #d05a1f;
  transform: translateY(-1px);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .philosophy-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 22px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-gate {
    width: 140px;
    height: 200px;
    bottom: 40px;
  }

  .gate-pillar {
    width: 16px;
    height: 160px;
  }

  .gate-arch {
    height: 80px;
    border-width: 16px;
  }

  .problem, .stages, .arsenal, .philosophy {
    padding: 80px 0;
  }

  .closing {
    padding: 100px 0;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .stage-card {
    gap: 16px;
  }

  .stage-marker {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .arsenal-item {
    padding: 24px;
  }
}