/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-2);
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: oklch(0.75 0.19 300); color: var(--bg-2); }

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

.section-eyebrow {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  color: white;
  margin: 0;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Page background: gradient + stars + nebula halos */
.page-bg {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 900px 700px at 20% 0%, oklch(0.28 0.1 300 / 0.32), transparent 60%),
    radial-gradient(ellipse 900px 700px at 85% 15%, oklch(0.3 0.12 220 / 0.28), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
}
.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.stars-layer--a {
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, white, transparent),
    radial-gradient(1.5px 1.5px at 22% 34%, white, transparent),
    radial-gradient(1px 1px at 38% 8%, white, transparent),
    radial-gradient(2px 2px at 52% 22%, white, transparent),
    radial-gradient(1px 1px at 66% 45%, white, transparent),
    radial-gradient(1.5px 1.5px at 78% 12%, white, transparent),
    radial-gradient(1px 1px at 91% 30%, white, transparent),
    radial-gradient(2px 2px at 12% 60%, white, transparent),
    radial-gradient(1px 1px at 30% 72%, white, transparent),
    radial-gradient(1.5px 1.5px at 45% 85%, white, transparent),
    radial-gradient(1px 1px at 60% 65%, white, transparent),
    radial-gradient(2px 2px at 73% 78%, white, transparent),
    radial-gradient(1px 1px at 88% 92%, white, transparent),
    radial-gradient(1.5px 1.5px at 96% 55%, white, transparent),
    radial-gradient(1px 1px at 5% 90%, white, transparent);
  animation: twinkleA 4s ease-in-out infinite;
}
.stars-layer--b {
  background-image:
    radial-gradient(1px 1px at 15% 25%, oklch(0.85 0.1 220), transparent),
    radial-gradient(1px 1px at 34% 55%, oklch(0.85 0.1 300), transparent),
    radial-gradient(1.5px 1.5px at 50% 40%, white, transparent),
    radial-gradient(1px 1px at 68% 18%, oklch(0.85 0.1 340), transparent),
    radial-gradient(1px 1px at 82% 65%, white, transparent),
    radial-gradient(1px 1px at 95% 8%, oklch(0.85 0.1 220), transparent),
    radial-gradient(1px 1px at 25% 95%, white, transparent),
    radial-gradient(1px 1px at 58% 92%, oklch(0.85 0.1 90), transparent);
  animation: twinkleB 5.5s ease-in-out infinite;
}
.nebula-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.nebula-blob--tl {
  top: -10%; left: -5%; width: 500px; height: 500px;
  background: radial-gradient(circle, oklch(0.4 0.14 300 / 0.35), transparent 70%);
  animation: nebulaDrift 14s ease-in-out infinite;
}
.nebula-blob--br {
  bottom: -10%; right: -5%; width: 600px; height: 600px;
  background: radial-gradient(circle, oklch(0.4 0.14 220 / 0.3), transparent 70%);
  animation: nebulaDrift 18s ease-in-out infinite reverse;
}

/* Keyframes */
@keyframes float1 { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(5deg); } 50% { transform: translateY(-24px) rotate(-3deg); } }
@keyframes float3 { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes glowPulse { 0%,100% { opacity:0.55; } 50% { opacity:1; } }
@keyframes popIn { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
@keyframes twinkleA { 0%,100% { opacity:0.25; } 50% { opacity:0.9; } }
@keyframes twinkleB { 0%,100% { opacity:0.9; } 50% { opacity:0.3; } }
@keyframes nebulaDrift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-20px) scale(1.08); } 100% { transform: translate(0,0) scale(1); } }
@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitSpinRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes shootStar { 0% { transform: translate(0,0); opacity:1; } 90% { opacity:1; } 100% { transform: translate(-340px, 220px); opacity:0; } }
@keyframes planetBob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(6deg); } }
@keyframes confettiFall { 0% { transform: translateY(-20px) rotate(0deg); opacity:1; } 100% { transform: translateY(140px) rotate(280deg); opacity:0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
