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

:root {
  --sand: #c58e3b;
  --sand-bright: #e8a84a;
  --sand-light: #f5d08a;
  --sunset: #e86e2a;
  --sunset-deep: #c44a18;
  --dune: #8b5a2b;
  --dune-dark: #5c3a1a;
  --night: #1a0f08;
  --night-card: rgba(26, 15, 8, 0.88);
  --night-glass: rgba(26, 15, 8, 0.75);
  --cream: #f5e6d0;
  --gray: #b89a7a;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --radius: 6px;
  --radius-lg: 12px;
  --glow-sand: 0 0 50px rgba(232, 168, 74, 0.4);
  --glow-sunset: 0 0 60px rgba(232, 110, 42, 0.35);
  --header-h: 72px;
  --timeline-h: 88px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--cream);
  line-height: 1.7;
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

.gold {
  color: var(--sand-bright);
  text-shadow: 0 0 20px rgba(232, 168, 74, 0.5);
}

.center {
  text-align: center;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

/* ── Ambient layers ── */
.sand-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.heat-haze {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 200, 100, 0.3) 2px,
    rgba(255, 200, 100, 0.3) 4px
  );
  animation: heatWave 4s ease-in-out infinite;
}

@keyframes heatWave {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-3px) scaleY(1.02); }
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(26, 15, 8, 0.95) 0%, rgba(26, 15, 8, 0.65) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 142, 59, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--sand);
  box-shadow: var(--glow-sand);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  image-rendering: pixelated;
}

.nav-brand:hover .nav-logo {
  transform: rotate(5deg) scale(1.08);
  box-shadow: var(--glow-sunset);
}

.nav-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-main {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sand-bright);
  letter-spacing: 0.08em;
}

.nav-ticker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.2em;
}

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

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray);
  border-radius: var(--radius);
  transition: color 0.3s, background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sand-bright);
  background: rgba(197, 142, 59, 0.12);
}

.nav-cta {
  background: linear-gradient(135deg, var(--sunset) 0%, var(--sand) 100%) !important;
  color: var(--night) !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  box-shadow: var(--glow-sunset);
}

.nav-socials {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gray);
  border: 1px solid rgba(197, 142, 59, 0.3);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}

.nav-social:hover {
  color: var(--sand-bright);
  border-color: var(--sand);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sand-bright);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Timeline rail ── */
.timeline-rail {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  height: var(--timeline-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(0deg, rgba(26, 15, 8, 0.95) 0%, transparent 100%);
  pointer-events: none;
}

.timeline-dots {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  list-style: none;
  pointer-events: auto;
}

.timeline-dots button {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(197, 142, 59, 0.5);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.timeline-dots button:hover,
.timeline-dots button.active {
  border-color: var(--sand-bright);
  transform: scale(1.3);
  box-shadow: var(--glow-sand);
}

.timeline-dots button.active {
  background: var(--sand);
}

.dot-label {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.timeline-dots button:hover .dot-label,
.timeline-dots button.active .dot-label {
  opacity: 1;
  color: var(--sand-bright);
}

.timeline-track {
  width: min(400px, 60vw);
  height: 2px;
  background: rgba(197, 142, 59, 0.2);
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}

.timeline-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sunset), var(--sand-bright));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--glow-sand);
}

/* ── Horizontal scroll container ── */
.scroll-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 0.1s linear;
}

.bg-image-dim {
  opacity: 0.35;
}

.bg-gradient {
  width: 100%;
  height: 100%;
}

.bg-desert-dawn {
  background: linear-gradient(160deg, #2a1810 0%, #5c3a1a 30%, #c44a18 70%, #e8a84a 100%);
}

.bg-desert-noon {
  background: linear-gradient(180deg, #e8a84a 0%, #c58e3b 40%, #8b5a2b 80%, #2a1810 100%);
}

.bg-desert-sunset {
  background: linear-gradient(135deg, #1a0f08 0%, #5c2a10 40%, #e86e2a 70%, #f5d08a 100%);
}

.bg-desert-dusk {
  background: linear-gradient(200deg, #1a0f08 0%, #3d2210 50%, #8b5a2b 100%);
}

.bg-desert-night {
  background: linear-gradient(180deg, #0d0805 0%, #1a0f08 40%, #2a1810 100%);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 15, 8, 0.7) 0%,
    rgba(26, 15, 8, 0.5) 50%,
    rgba(26, 15, 8, 0.85) 100%
  );
}

.bg-overlay-hero {
  background: linear-gradient(
    180deg,
    rgba(26, 15, 8, 0.55) 0%,
    rgba(26, 15, 8, 0.35) 40%,
    rgba(26, 15, 8, 0.75) 100%
  );
}

.bg-overlay-intense {
  background: linear-gradient(
    180deg,
    rgba(26, 15, 8, 0.8) 0%,
    rgba(26, 15, 8, 0.6) 50%,
    rgba(26, 15, 8, 0.9) 100%
  );
}

.sun-glow {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 60, 0.5) 0%, transparent 70%);
  animation: sunPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

/* ── Smoke animation ── */
.smoke-layer {
  position: absolute;
  top: 30%;
  right: 20%;
  z-index: 2;
  pointer-events: none;
}

.smoke {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(4px);
  animation: smokeRise 6s ease-in-out infinite;
}

.smoke-1 { left: 0; animation-delay: 0s; }
.smoke-2 { left: 12px; animation-delay: 2s; }
.smoke-3 { left: -8px; animation-delay: 4s; }

@keyframes smokeRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: translateY(-80px) scale(2.5); opacity: 0; }
}

/* ── Cactus decorations ── */
.cactus-deco {
  position: absolute;
  bottom: var(--timeline-h);
  width: 40px;
  height: 80px;
  z-index: 3;
  opacity: 0.3;
  pointer-events: none;
}

.cactus-deco::before,
.cactus-deco::after {
  content: "";
  position: absolute;
  background: #3d5a2a;
  border-radius: 20px 20px 4px 4px;
}

.cactus-deco::before {
  width: 20px;
  height: 60px;
  bottom: 0;
  left: 10px;
}

.cactus-deco::after {
  width: 14px;
  height: 25px;
  bottom: 25px;
  left: -8px;
  transform: rotate(-30deg);
}

.cactus-left { left: 3%; }
.cactus-right { right: 3%; transform: scaleX(-1); }

/* ── Slide content ── */
.slide-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: calc(var(--header-h) + 1.5rem) 1.5rem calc(var(--timeline-h) + 1.5rem);
  overflow-y: auto;
  overflow-x: hidden;
}

.slide-content.is-scrollable {
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + 2rem);
}

/* ── Hero ── */
.hero-seal {
  position: relative;
  margin-bottom: 1rem;
}

.hero-logo {
  width: clamp(100px, 18vw, 160px);
  height: clamp(100px, 18vw, 160px);
  border-radius: 50%;
  border: 3px solid var(--sand);
  box-shadow: var(--glow-sand), var(--glow-sunset);
  animation: logoFloat 4s ease-in-out infinite;
  image-rendering: pixelated;
  position: relative;
  z-index: 2;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.seal-ring {
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(232, 168, 74, 0.4);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite;
}

.seal-ring-2 {
  inset: -24px;
  border-color: rgba(232, 110, 42, 0.2);
  animation-delay: 1.5s;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-era {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.hero-title {
  text-align: center;
  margin-bottom: 1rem;
}

.title-main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--sand-bright);
  text-shadow:
    3px 3px 0 var(--dune-dark),
    0 0 40px rgba(232, 168, 74, 0.5);
  animation: titleGlow 3s ease-in-out infinite;
}

.title-sub {
  display: block;
  font-family: var(--font-pixel);
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  color: var(--sunset);
  margin-top: 0.5rem;
  letter-spacing: 0.15em;
}

@keyframes titleGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.hero-tagline {
  max-width: 560px;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.badge {
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(197, 142, 59, 0.5);
  border-radius: 100px;
  color: var(--sand-light);
  background: rgba(197, 142, 59, 0.1);
}

.badge-gold {
  border-color: var(--sand-bright);
  color: var(--sand-bright);
  box-shadow: var(--glow-sand);
}

.badge-Cubra {
  border-color: var(--sunset);
  color: var(--sunset);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: calc(var(--timeline-h) + 1rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  color: var(--gray);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--sand), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sunset) 0%, var(--sand) 100%);
  color: var(--night);
  box-shadow: 0 4px 20px rgba(232, 110, 42, 0.4);
}

.btn-primary:hover {
  box-shadow: var(--glow-sunset), 0 6px 30px rgba(232, 110, 42, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--sand-bright);
  border: 2px solid rgba(197, 142, 59, 0.6);
}

.btn-ghost:hover {
  background: rgba(197, 142, 59, 0.15);
  border-color: var(--sand-bright);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-copy {
  padding: 0.6rem 1.2rem;
  background: rgba(197, 142, 59, 0.2);
  color: var(--sand-bright);
  border: 1px solid rgba(197, 142, 59, 0.4);
}

.btn-copy.copied {
  background: rgba(76, 175, 80, 0.3);
  border-color: #4caf50;
  color: #81c784;
}

/* ── Section typography ── */
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.marker-chapter {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sunset);
}

.marker-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--sand-bright);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.section-lead {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--cream);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.content-text p {
  margin-bottom: 1rem;
  color: rgba(245, 230, 208, 0.85);
}

/* ── Desert frame ── */
.frame-desert {
  position: relative;
  padding: 1rem;
  background: var(--night-card);
  border: 2px solid rgba(197, 142, 59, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-sand);
}

.frame-desert img {
  width: 100%;
  max-width: 280px;
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
  border-radius: var(--radius);
}

.frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--sand-bright);
  border-style: solid;
}

.frame-tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.frame-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.frame-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.frame-br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }

.pixel-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  border-radius: var(--radius-lg);
  animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* ── Virtue list ── */
.virtue-list {
  list-style: none;
  margin-top: 1.5rem;
}

.virtue-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(197, 142, 59, 0.15);
}

.virtue-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.virtue-list strong {
  display: block;
  color: var(--sand-bright);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.virtue-list span {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ── Lore scroll ── */
.lore-scroll {
  display: flex;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.scroll-edge {
  width: 24px;
  background: linear-gradient(90deg, var(--dune-dark), var(--dune));
  border-radius: 4px 0 0 4px;
  flex-shrink: 0;
}

.scroll-right {
  border-radius: 0 4px 4px 0;
  background: linear-gradient(270deg, var(--dune-dark), var(--dune));
}

.scroll-body {
  flex: 1;
  padding: 2rem;
  background: var(--night-card);
  border-top: 2px solid rgba(197, 142, 59, 0.3);
  border-bottom: 2px solid rgba(197, 142, 59, 0.3);
}

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

.event-card {
  padding: 1.5rem;
  background: rgba(26, 15, 8, 0.6);
  border: 1px solid rgba(197, 142, 59, 0.2);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 142, 59, 0.5);
  box-shadow: var(--glow-sand);
}

.event-highlight {
  border-color: var(--sunset);
  background: rgba(232, 110, 42, 0.1);
}

.event-era {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sunset);
  margin-bottom: 0.5rem;
}

.event-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--sand-bright);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.event-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.stat-block {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--night-card);
  border: 1px solid rgba(197, 142, 59, 0.3);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-block:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-sand);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--sand-bright);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sunset);
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.mantra {
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  border-left: 3px solid var(--sunset);
  background: rgba(232, 110, 42, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.mantra p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.mantra cite {
  font-size: 0.85rem;
  color: var(--gray);
  font-style: normal;
}

/* ── Tokenomics ── */
.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.token-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--night-card);
  border: 1px solid rgba(197, 142, 59, 0.25);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, border-color 0.3s;
}

.token-card:hover {
  transform: translateY(-6px);
  border-color: var(--sand);
  box-shadow: var(--glow-sand);
}

.token-icon {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sunset);
  margin-bottom: 0.5rem;
}

.token-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.token-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sand-bright);
  letter-spacing: 0.05em;
}

.ca-panel {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--night-card);
  border: 1px solid rgba(197, 142, 59, 0.3);
  border-radius: var(--radius-lg);
}

.ca-panel label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.ca-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.ca-address {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--sand-light);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(197, 142, 59, 0.2);
  border-radius: var(--radius);
  word-break: break-all;
}

.ca-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray);
}

.copy-toast {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #81c784;
  opacity: 0;
  transition: opacity 0.3s;
}

.copy-toast.show {
  opacity: 1;
}

/* ── Social cards ── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--night-card);
  border: 1px solid rgba(197, 142, 59, 0.25);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.social-card:hover {
  transform: translateX(8px);
  border-color: var(--sand);
  box-shadow: var(--glow-sand);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(197, 142, 59, 0.15);
  color: var(--sand-bright);
  flex-shrink: 0;
  transition: background 0.3s;
}

.social-card:hover .social-icon {
  background: rgba(232, 110, 42, 0.25);
}

.social-tg {
  color: #29b6f6;
}

.social-text h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--sand-bright);
}

.social-text p {
  font-size: 0.9rem;
  color: var(--gray);
}

.social-arrow {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--sunset);
  transition: transform 0.3s;
}

.social-card:hover .social-arrow {
  transform: translateX(4px);
}

/* ── Launch steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.step-card {
  padding: 1.5rem 1.25rem;
  background: var(--night-card);
  border: 1px solid rgba(197, 142, 59, 0.2);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, border-color 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--sand);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sunset);
  margin-bottom: 0.5rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--sand-bright);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--gray);
}

.launch-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* ── Footer ── */
.slide-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(197, 142, 59, 0.2);
  width: 100%;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  border-radius: 50%;
  border: 2px solid var(--sand);
  image-rendering: pixelated;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--sand-bright);
  letter-spacing: 0.05em;
}

.footer-brand span {
  font-size: 0.8rem;
  color: var(--gray);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto 0.5rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(184, 154, 122, 0.6);
}

/* ── Reveal animations ── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-events {
    grid-template-columns: 1fr;
  }

  .stats-row,
  .token-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(26, 15, 8, 0.98);
    border-bottom: 1px solid rgba(197, 142, 59, 0.3);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
    width: 100%;
    text-align: center;
  }

  .nav-socials {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .timeline-rail {
    display: none;
  }

  .slide-content {
    padding-bottom: 2rem;
  }

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

  .lore-scroll {
    flex-direction: column;
  }

  .scroll-edge {
    width: 100%;
    height: 12px;
    border-radius: 4px 4px 0 0;
  }

  .scroll-right {
    border-radius: 0 0 4px 4px;
  }

  .cactus-deco {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-row,
  .token-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .ca-row {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
