:root {
  --bg: #0b0e1a;
  --bg-alt: #0f1326;
  --ink: #e8e6f0;
  --ink-dim: #a5a7c4;
  --moon: #e8e6f0;
  --mars: #ff6a3d;
  --mars-dim: #7a3320;
  --gold: #ffc857;
  --line: rgba(232, 230, 240, 0.12);
  --container: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; color: var(--ink-dim); }

a { color: inherit; text-decoration: none; }

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

.narrow { max-width: 760px; }
.center { text-align: center; }

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% -10%, #161c38 0%, var(--bg) 55%);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 14, 26, 0.75);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-right: auto;
  white-space: nowrap;
}

.brand-orb {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--moon) 45%, #9a97ad 100%);
  box-shadow: 0 0 14px rgba(232, 230, 240, 0.5);
}

.ticker { color: var(--gold); font-weight: 500; font-size: 0.85em; }

.nav-links {
  display: flex;
  gap: 6px;
  font-size: 0.8rem;
}

.nav-links a {
  white-space: nowrap;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(232, 230, 240, 0.03);
  color: var(--ink-dim);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(255, 200, 87, 0.08);
}

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--mars));
  color: #17110a;
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-dim);
  padding: 9px 16px;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--ink);
}

.accent-mars { color: var(--mars); }

.hero-sub {
  font-size: 1.08rem;
  max-width: 640px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.stat { display: flex; flex-direction: column; }
.stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; }
.stat-label { color: var(--ink-dim); font-size: 0.85rem; }

.hero-orbit {
  position: absolute;
  right: -80px;
  top: 40px;
  width: 480px;
  height: 480px;
  z-index: 1;
}

.orbit-path {
  position: absolute;
  inset: 40px;
  border: 1px dashed var(--line);
  border-radius: 50%;
}

.planet { position: absolute; border-radius: 50%; }

.planet.moon {
  width: 130px;
  height: 130px;
  top: 10px;
  left: 60px;
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--moon) 40%, #8f8ca3 100%);
  box-shadow: 0 0 60px rgba(232, 230, 240, 0.35);
}

.planet.mars {
  width: 90px;
  height: 90px;
  bottom: 20px;
  right: 30px;
  background: radial-gradient(circle at 35% 30%, #ff9a6e, var(--mars) 45%, var(--mars-dim) 100%);
  box-shadow: 0 0 60px rgba(255, 106, 61, 0.35);
  animation: orbit 14s linear infinite;
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(0); }
  50% { transform: rotate(180deg) translateX(14px); }
  to { transform: rotate(360deg) translateX(0); }
}

/* Marquee */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll-left 22s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { position: relative; overflow: hidden; padding: 88px 0; }
.section.alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--mars));
  color: #17110a;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.5);
  animation: proof-pulse 2.2s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.source-link:hover { transform: translateY(-1px); }

@keyframes proof-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 87, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(255, 200, 87, 0); }
}

/* Content card (wraps loose paragraph/list blocks so they don't float bare) */
.content-card {
  position: relative;
  z-index: 1;
  background: rgba(232, 230, 240, 0.04);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 40px;
}

.content-card p:last-child { margin-bottom: 0; }

/* Decorative background planets */
.deco-planet {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.deco-moon {
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--moon) 40%, #8f8ca3 100%);
  box-shadow: 0 0 100px rgba(232, 230, 240, 0.3);
  opacity: 0.4;
}

.deco-mars {
  background: radial-gradient(circle at 35% 30%, #ff9a6e, var(--mars) 45%, var(--mars-dim) 100%);
  box-shadow: 0 0 100px rgba(255, 106, 61, 0.3);
  opacity: 0.4;
}

.deco-spark-mars { width: 280px; height: 280px; right: -90px; bottom: -80px; }
.deco-tokenomics-moon { width: 240px; height: 240px; left: -80px; top: -60px; }
.deco-tracker-mars { width: 200px; height: 200px; right: -60px; bottom: -60px; }
.deco-roadmap-moon { width: 160px; height: 160px; right: 40px; top: -40px; }
.deco-cta-moon { width: 150px; height: 150px; left: 5%; top: -50px; }
.deco-cta-mars { width: 110px; height: 110px; right: 8%; bottom: -40px; }

@media (max-width: 720px) {
  .deco-planet { opacity: 0.22; }
}

/* Shooting stars */
.shooting-star {
  position: fixed;
  top: 0;
  left: 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  border-radius: 999px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

.shooting-star.fly {
  animation: shooting-star-fly 1.4s ease-out forwards;
}

@keyframes shooting-star-fly {
  0% { opacity: 0; transform: translate(0, 0) rotate(-35deg) scaleX(0.4); }
  8% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-380px, 260px) rotate(-35deg) scaleX(1); }
}

/* UFOs */
.ufo {
  position: fixed;
  left: -100px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 200, 87, 0.35));
}

.ufo.fly {
  animation: ufo-fly 10s linear forwards;
}

@keyframes ufo-fly {
  0% { opacity: 0; transform: translate(0, 0) rotate(-4deg); }
  8% { opacity: 0.9; }
  25% { transform: translate(30vw, -22px) rotate(3deg); }
  50% { transform: translate(60vw, 14px) rotate(-3deg); }
  75% { transform: translate(90vw, -16px) rotate(3deg); }
  92% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(120vw, 0) rotate(-4deg); }
}

.ufo.reverse { animation-direction: reverse; }
.ufo.reverse svg { transform: scaleX(-1); }

/* Rockets */
.rocket {
  position: fixed;
  bottom: -110px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 106, 61, 0.4));
}

.rocket.launch {
  animation: rocket-launch 6s cubic-bezier(0.3, 0, 0.7, 1) forwards;
}

@keyframes rocket-launch {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  6% { opacity: 1; }
  35% { transform: translate(12px, -45vh) rotate(2deg); }
  70% { transform: translate(-10px, -85vh) rotate(-2deg); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translate(6px, -125vh) rotate(1deg); }
}

.rocket-flame {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: rocket-flame-flicker 0.15s ease-in-out infinite alternate;
}

@keyframes rocket-flame-flicker {
  from { transform: scaleY(0.85); opacity: 0.75; }
  to { transform: scaleY(1.15); opacity: 1; }
}

/* Spaceships */
.spaceship {
  position: fixed;
  left: -110px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(232, 230, 240, 0.3));
}

.spaceship.fly {
  animation: spaceship-fly 6.5s ease-in-out forwards;
}

@keyframes spaceship-fly {
  0% { opacity: 0; transform: translate(0, 0); }
  6% { opacity: 0.95; }
  50% { transform: translate(60vw, -14px); }
  93% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(120vw, 8px); }
}

.spaceship.reverse { animation-direction: reverse; }
.spaceship.reverse svg { transform: scaleX(-1); }

/* Hidden YouTube audio player */
.yt-holder {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Ambient audio toggle */
.audio-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 14, 26, 0.75);
  backdrop-filter: blur(10px);
  color: var(--ink-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.audio-toggle:hover { color: var(--ink); border-color: var(--gold); }

.audio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-dim);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.audio-toggle.is-on .audio-dot {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: audio-pulse 1.6s ease-in-out infinite;
}

@keyframes audio-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 720px) {
  .audio-toggle { right: 14px; bottom: 14px; padding: 9px 14px; font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .shooting-star.fly { animation: none; opacity: 0; }
  .ufo.fly, .rocket.launch, .spaceship.fly { animation: none; opacity: 0; }
  .rocket-flame { animation: none; }
  .deco-planet { transform: none !important; }
  .source-link { animation: none; }
}

/* Flow */
.flow {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1 1 200px;
  background: rgba(232, 230, 240, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--mars));
  color: #17110a;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 14px;
}

.flow-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.flow-step p { font-size: 0.9rem; margin: 0; }

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--ink-dim);
  font-size: 1.4rem;
}

.flow-note {
  margin-top: 28px;
  font-size: 0.88rem;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

/* Tokenomics */
.tokenomics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}

.pie {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(
    var(--mars) 0% calc(var(--p1) * 1%),
    var(--gold) calc(var(--p1) * 1%) calc((var(--p1) + var(--p2)) * 1%),
    var(--moon) calc((var(--p1) + var(--p2)) * 1%) 100%
  );
  box-shadow: 0 0 0 8px rgba(232, 230, 240, 0.04);
  margin-bottom: 24px;
}

.pie-legend { list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.92rem; }
.pie-legend li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--ink); }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-1 { background: var(--mars); }
.dot-2 { background: var(--gold); }

.pie-caption { font-size: 0.82rem; }

.token-table {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.token-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.token-row:last-child { border-bottom: none; }
.token-row span:first-child { color: var(--ink-dim); }
.token-row span:last-child { text-align: right; font-weight: 500; }
.token-row .pending { color: var(--gold); font-weight: 500; }

/* Tracker */
.tracker-sub { font-size: 0.92rem; }

.tracker-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.tracker-card {
  background: rgba(232, 230, 240, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 36px;
  min-width: 180px;
}

.tracker-value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.tracker-label { font-size: 0.85rem; color: var(--ink-dim); }

/* Roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.road-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: rgba(232, 230, 240, 0.03);
}

.road-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mars);
  margin-bottom: 10px;
}

.road-item h3 { font-size: 1.05rem; }
.road-item p { font-size: 0.88rem; margin: 0; }

/* CTA / buy */
.cta-section h2 { margin-bottom: 12px; }

.ca-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(232, 230, 240, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 22px;
  margin: 28px auto;
  max-width: 480px;
  font-size: 0.9rem;
}

.social-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
  .tokenomics-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .hero-orbit { opacity: 0.35; right: -160px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .buy-btn { display: none; }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 18px;
  }

  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
  .roadmap { grid-template-columns: 1fr; }
  .hero-orbit { display: none; }
}
