:root {
  --space-void: #05060a;
  --space-deep: #0a0d16;
  --lunar-ash: #c8c4bb;
  --lunar-mist: #9a958c;
  --lunar-stone: #6e6a63;
  --star-blue: #7ec8e8;
  --star-blue-dim: rgba(126, 200, 232, 0.35);
  --star-white: #f2f4f8;
  --mars: #c45c3e;
  --neptune: #4a7fd4;
  --ringed: #d4b896;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Outfit", Georgia, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--lunar-ash);
  background: var(--space-void);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.space-dust {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 78% 32%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 44% 72%, rgba(126, 200, 232, 0.45), transparent),
    radial-gradient(1px 1px at 91% 81%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 23% 88%, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0.55;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0));
  backdrop-filter: blur(2px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--star-white);
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px var(--star-blue-dim);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--lunar-mist);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--star-white);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--star-blue-dim);
  color: var(--star-blue) !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: rgba(126, 200, 232, 0.1);
  border-color: var(--star-blue);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--lunar-ash);
  margin-inline: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 5.5rem 5vw 3.5rem;
  overflow: hidden;
}

#moon-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.orbit-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit {
  position: absolute;
  top: 40%;
  left: 50%;
  border: 1px solid rgba(126, 200, 232, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(62deg);
  transform-style: preserve-3d;
}

.orbit-1 {
  width: min(48vw, 340px);
  height: min(48vw, 340px);
  animation: spin 28s linear infinite;
}

.orbit-2 {
  width: min(64vw, 480px);
  height: min(64vw, 480px);
  animation: spin 42s linear infinite reverse;
}

.orbit-3 {
  width: min(80vw, 640px);
  height: min(80vw, 640px);
  animation: spin 58s linear infinite;
}

.orbit-4 {
  width: min(96vw, 820px);
  height: min(96vw, 820px);
  animation: spin 76s linear infinite reverse;
}

.planet {
  position: absolute;
  top: 0;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(-62deg);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.planet-mercury {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 30% 30%, #e8e2d6, #8a8478);
}

.planet-mars {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #e8886a, var(--mars));
  box-shadow: 0 0 14px rgba(196, 92, 62, 0.45);
}

.planet-neptune {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #9ec4ff, var(--neptune));
  box-shadow: 0 0 18px rgba(74, 127, 212, 0.5);
}

.planet-ringed {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, #f0e0c4, var(--ringed));
  box-shadow:
    0 0 0 4px rgba(212, 184, 150, 0.15),
    0 0 0 7px rgba(212, 184, 150, 0.08),
    0 0 20px rgba(212, 184, 150, 0.35);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotateX(62deg) rotateZ(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 40rem;
  text-align: center;
  margin-top: auto;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(4.8rem, 14vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0.08em;
  color: var(--star-white);
  text-shadow:
    0 0 40px rgba(126, 200, 232, 0.4),
    0 0 90px rgba(126, 200, 232, 0.18);
  animation: fade-up 1s ease both;
}

.hero-copy {
  margin-top: 0.85rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--lunar-mist);
  animation: fade-up 1s ease 0.1s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  animation: fade-up 1s ease 0.18s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #dfe8f0, #a8c4d8);
  color: #0a0d16;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffffff, #c5dcef);
}

.btn-ghost {
  border: 1px solid rgba(126, 200, 232, 0.35);
  color: var(--star-blue);
  background: rgba(126, 200, 232, 0.04);
}

.btn-ghost:hover {
  border-color: var(--star-blue);
  background: rgba(126, 200, 232, 0.1);
}

.hero-logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-8vh);
  animation: float-logo 7s ease-in-out infinite;
}

.hero-logo {
  width: min(52vw, 420px);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 48px rgba(126, 200, 232, 0.28));
}

.logo-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 200, 232, 0.28), transparent 70%);
  filter: blur(28px);
  animation: pulse-glow 4.5s ease-in-out infinite;
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(-8vh);
  }
  50% {
    transform: translateY(calc(-8vh - 14px));
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Banner ——— */
.banner-plane {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(126, 200, 232, 0.12);
}

.banner-plane img {
  width: 100%;
  max-height: min(52vh, 520px);
  object-fit: cover;
  object-position: center;
}

/* ——— Sections ——— */
.about,
.token,
.links {
  position: relative;
  z-index: 1;
  padding: 5.5rem 5vw;
}

.section-inner {
  max-width: 720px;
  margin-inline: auto;
}

.about {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(126, 200, 232, 0.07), transparent),
    linear-gradient(180deg, var(--space-void), var(--space-deep));
  text-align: center;
}

.about h2,
.token h2,
.links h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: 0.08em;
  color: var(--star-white);
  margin-bottom: 1rem;
}

.about p,
.token-lead {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--lunar-mist);
}

.token {
  background: var(--space-deep);
  text-align: center;
}

.token-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 1.75rem 0;
  border-block: 1px solid rgba(126, 200, 232, 0.12);
}

.token-facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lunar-stone);
  margin-bottom: 0.4rem;
}

.token-facts dd {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--star-white);
}

.ca-block {
  margin: 0 auto 2rem;
  max-width: 36rem;
  text-align: center;
}

.ca-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lunar-stone);
  margin-bottom: 0.65rem;
}

.ca-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(126, 200, 232, 0.2);
  background: rgba(126, 200, 232, 0.04);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ca-copy:hover,
.ca-copy.is-copied {
  border-color: var(--star-blue);
  background: rgba(126, 200, 232, 0.1);
}

.ca-value {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: clamp(0.7rem, 2.4vw, 0.85rem);
  word-break: break-all;
  color: var(--star-white);
  line-height: 1.4;
}

.ca-hint {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--star-blue);
}

.token-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.links {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(126, 200, 232, 0.06), transparent),
    var(--space-void);
  text-align: center;
}

.link-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(126, 200, 232, 0.12);
  transition: color 0.2s ease, padding 0.2s ease;
}

.link-list a:hover {
  color: var(--star-blue);
  padding-inline: 0.5rem;
}

.link-label {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: var(--star-white);
}

.link-list a:hover .link-label {
  color: var(--star-blue);
}

.link-url {
  font-size: 0.9rem;
  color: var(--lunar-mist);
}

/* ——— Footer ——— */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 5vw 4rem;
  text-align: center;
  border-top: 1px solid rgba(126, 200, 232, 0.1);
  background: #030408;
}

.site-footer img {
  margin: 0 auto 1rem;
  border-radius: 50%;
  opacity: 0.9;
}

.site-footer p {
  font-size: 0.95rem;
  color: var(--lunar-mist);
}

.footer-links {
  margin-top: 0.65rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.85rem !important;
}

.footer-links a:hover {
  color: var(--star-blue);
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .hero {
    justify-content: flex-end;
    padding-bottom: 2.5rem;
  }

  .hero-logo {
    width: min(68vw, 280px);
  }

  .hero-logo-wrap {
    transform: translateY(-12vh);
  }

  @keyframes float-logo {
    0%,
    100% {
      transform: translateY(-12vh);
    }
    50% {
      transform: translateY(calc(-12vh - 10px));
    }
  }

  .orbit-1 {
    width: 230px;
    height: 230px;
  }

  .orbit-2 {
    width: 310px;
    height: 310px;
  }

  .orbit-3 {
    width: 400px;
    height: 400px;
  }

  .orbit-4 {
    width: 500px;
    height: 500px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 84vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.75rem 2rem;
    background: rgba(8, 10, 18, 0.97);
    border-left: 1px solid rgba(126, 200, 232, 0.12);
    transform: translateX(105%);
    transition: transform 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .token-facts {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .link-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit,
  .hero-logo-wrap,
  .logo-glow,
  .brand-title,
  .hero-copy,
  .hero-actions {
    animation: none !important;
  }

  .hero-logo-wrap {
    transform: translateY(-8vh);
  }
}
