:root {
  --bg: #05060f;
  --text: #e8ecff;
  --muted: #9aa3c7;
  --accent: #7dd3fc;
  --accent-2: #c4b5fd;
  --glow: rgba(125, 211, 252, 0.35);
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nebula {
  position: fixed;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 20%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 45% at 60% 80%, rgba(168, 85, 247, 0.16), transparent 50%);
  filter: blur(8px);
  animation: drift 28s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.05); }
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 40rem;
  padding: 4rem 1.75rem 3rem;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.15s;
}

h1 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-shadow: 0 0 40px var(--glow);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.3s;
}

.tagline {
  margin-top: 1.35rem;
  font-weight: 300;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 32rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.45s;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.6s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #061018;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.5);
}

.btn.ghost {
  border: 1px solid rgba(232, 236, 255, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

footer {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.75rem 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(154, 163, 199, 0.7);
  letter-spacing: 0.04em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nebula,
  .eyebrow,
  h1,
  .tagline,
  .actions {
    animation: none;
    opacity: 1;
  }
}
