:root {
  --bg: #070816;
  --bg-alt: #0c0f2a;
  --ink: #f5f5ff;
  --muted: #b9c0ff;
  --accent: #8d7dff;
  --accent-2: #64d7ff;
  --glow: rgba(141, 125, 255, 0.45);
  --card: rgba(18, 23, 52, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(4, 6, 24, 0.65);
  --radius: 20px;
  --font-display: "Baloo 2", "Comic Sans MS", cursive;
  --font-body: "Nunito", "Trebuchet MS", sans-serif;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at top, #151845 0%, #0a0d22 45%, #05060f 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(7, 8, 22, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 1px;
  position: relative;
  padding-left: 32px;
}

.logo-glow {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c2 0%, #ffd77a 35%, rgba(255, 215, 122, 0.1) 70%);
  box-shadow: 0 0 18px rgba(255, 215, 122, 0.6);
}

.site-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.3s ease;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(16, 20, 45, 0.9);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(0px);
}

.hero::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(100, 215, 255, 0.35) 0%, rgba(100, 215, 255, 0) 70%);
  top: -120px;
  right: -60px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(141, 125, 255, 0.35) 0%, rgba(141, 125, 255, 0) 70%);
  bottom: -180px;
  left: -140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #9f8bff, #5ed4ff);
  color: #0a0b1f;
  box-shadow: 0 10px 25px rgba(94, 212, 255, 0.35);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

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

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 14px;
  background: rgba(141, 125, 255, 0.15);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid rgba(141, 125, 255, 0.2);
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moon-frame {
  position: relative;
  padding: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 68%);
  box-shadow: 0 0 50px rgba(141, 125, 255, 0.25);
}

.moon-frame img {
  width: min(360px, 80vw);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
}

.moon-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.orb-1 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(141, 125, 255, 0.1) 60%);
  top: 15%;
  left: 10%;
  animation: float 7s ease-in-out infinite;
}

.orb-2 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(94, 212, 255, 0.8) 0%, rgba(94, 212, 255, 0.05) 70%);
  bottom: 10%;
  right: 12%;
  animation: float 6s ease-in-out infinite reverse;
}

.section {
  padding: 80px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.section-grid.reverse .section-copy {
  order: 2;
}

.section-grid.reverse .section-media {
  order: 1;
}

.section-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 16px;
}

.section-copy p {
  color: var(--muted);
  margin-bottom: 20px;
}

.story-list {
  list-style: none;
  margin-bottom: 22px;
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.story-list li {
  padding-left: 20px;
  position: relative;
}

.story-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--accent-2);
}

.section-media img {
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.moon-friends {
  background: linear-gradient(150deg, rgba(17, 20, 45, 0.9), rgba(7, 8, 22, 0.9));
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading p {
  color: var(--muted);
  max-width: 620px;
  margin: 12px auto 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-height: 180px;
}

.card h3 {
  font-family: var(--font-display);
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

.glow-list {
  display: grid;
  gap: 16px;
}

.glow-list h4 {
  font-family: var(--font-display);
  margin-bottom: 6px;
}

.join {
  padding-bottom: 110px;
}

.join-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  background: radial-gradient(circle at top, rgba(141, 125, 255, 0.2), rgba(8, 10, 30, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.join-form {
  display: grid;
  gap: 14px;
}

.join-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.join-form input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 20, 0.8);
  color: var(--ink);
  font-size: 1rem;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
  background: rgba(6, 8, 22, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 24px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .join-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-grid.reverse .section-copy,
  .section-grid.reverse .section-media {
    order: initial;
  }

  .hero-media {
    margin-top: 20px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    top: 68px;
    right: 4vw;
    background: rgba(10, 12, 30, 0.95);
    border: 1px solid var(--border);
    padding: 18px 20px;
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

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

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .hero {
    padding-top: 70px;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .join-card {
    padding: 28px;
  }

  .section {
    padding: 64px 0;
  }
}
