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

:root {
  --dark:    #0D0D2B;
  --surface: #111130;
  --footer:  #080818;
  --gold:    #C9A84C;
  --purple:  #9B72CF;
  --text:    #F0EDE8;
  --muted:   #a0a0c0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Cinzel', serif; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1040 0%, #0D0D2B 70%);
}

/* ── STERNE ── */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.stars-layer-1,
.stars-layer-2,
.stars-layer-3 {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stars-layer-1 {
  background-image:
    radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 18%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 25%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 55%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 33% 92%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 72%, rgba(255,255,255,0.7) 0%, transparent 100%);
  animation: twinkle1 4s ease-in-out infinite;
}

.stars-layer-2 {
  background-image:
    radial-gradient(1.5px 1.5px at 25% 35%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 10%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 65%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 75%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 5% 50%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 95% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 18% 45%, rgba(255,255,255,0.6) 0%, transparent 100%);
  animation: twinkle2 6s ease-in-out infinite;
}

.stars-layer-3 {
  background-image:
    radial-gradient(2px 2px at 20% 60%, rgba(201,168,76,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 65% 30%, rgba(155,114,207,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 45% 75%, rgba(201,168,76,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 88% 15%, rgba(155,114,207,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 10% 25%, rgba(201,168,76,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 75% 85%, rgba(155,114,207,0.4) 0%, transparent 100%);
  animation: twinkle3 8s ease-in-out infinite;
}

@keyframes twinkle1 {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes twinkle2 {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes twinkle3 {
  0%, 100% { opacity: 0.6; }
  33% { opacity: 1; }
  66% { opacity: 0.2; }
}

/* ── LOGO ── */
.logo {
  width: 250px;
  margin-bottom: 24px;
  animation: logoPulse 10s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(155, 114, 207, 0.6));
}

@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(155, 114, 207, 0.6))
            drop-shadow(0 0 24px rgba(201, 168, 76, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(155, 114, 207, 0.9))
            drop-shadow(0 0 48px rgba(201, 168, 76, 0.4));
  }
}

/* ── HERO CONTENT ── */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}

.subline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--purple);
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #0D0D2B;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

/* ── HOW IT WORKS ── */
#how-it-works {
  background: #0a0a1f;
  padding: 100px 20px;
  text-align: center;
}

#how-it-works h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--gold);
  margin-bottom: 60px;
}

.steps {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.step { flex: 1; min-width: 200px; max-width: 260px; }
.step-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.step h3 { color: var(--gold); font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ── FEATURES ── */
#features {
  background: var(--dark);
  padding: 100px 20px;
  text-align: center;
}

#features h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 60px;
  color: var(--text);
}

.feature-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 40px 32px;
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.6);
}

.card-icon { font-size: 40px; display: block; margin-bottom: 16px; }
.card h3 { color: var(--gold); font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }

/* ── SHOWCASE ── */
#showcase {
  background: var(--footer);
  padding: 100px 20px;
  text-align: center;
}

#showcase h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text);
  margin-bottom: 60px;
}

.showcase-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.showcase-item { flex: 1; min-width: 240px; max-width: 340px; }

.showcase-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
  margin-bottom: 12px;
}

.showcase-item p {
  color: var(--muted);
  font-style: italic;
  font-size: 15px;
}

/* ── WAITLIST ── */
#waitlist {
  background: linear-gradient(135deg, #1a1040 0%, #0D0D2B 100%);
  padding: 120px 20px;
  text-align: center;
}

#waitlist h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text);
  margin-bottom: 16px;
}

.waitlist-sub {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 16px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--gold);
}

/* ── FOOTER ── */
footer {
  background: var(--footer);
  padding: 32px 20px;
  text-align: center;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-logo { width: 48px; margin-bottom: 8px; }
footer p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
footer nav { display: flex; gap: 24px; justify-content: center; }
footer nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
footer nav a:hover { color: var(--gold); }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .steps, .feature-cards, .showcase-grid { flex-direction: column; align-items: center; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input, .waitlist-form .btn-primary { width: 100%; }
}

/* ── GLOW STARS ── */
.glow-star {
  position: absolute;
  border-radius: 50%;
  background: var(--glow-color, rgba(255,255,255,0.9));
  animation: glowPulse var(--duration, 3s) ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.05;
    box-shadow: none;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    box-shadow:
      0 0 3px 1px var(--glow-color, rgba(255,255,255,0.4)),
      0 0 6px 2px var(--glow-color, rgba(255,255,255,0.15));
    transform: scale(1.3);
  }
}

/* ── NEBULA CANVAS ── */
#nebula-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}