:root {
  --bg-deep: #05060f;
  --bg-mid: #0b1026;
  --bg-glow: #1a1147;
  --accent: #7c5cff;
  --accent-2: #21d4fd;
  --star: #ffffff;
  --text: #e8ecff;
  --text-dim: #9aa3cc;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 20% 10%, var(--bg-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, #14213d 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Starfield ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.stars--small {
  background-image: radial-gradient(1px 1px at 20px 30px, var(--star), transparent),
    radial-gradient(1px 1px at 90px 60px, var(--star), transparent),
    radial-gradient(1px 1px at 160px 120px, #cdd6ff, transparent),
    radial-gradient(1px 1px at 230px 200px, var(--star), transparent),
    radial-gradient(1px 1px at 300px 80px, var(--star), transparent);
  background-size: 350px 350px;
  animation: drift 120s linear infinite;
  opacity: 0.7;
}

.stars--medium {
  background-image: radial-gradient(1.5px 1.5px at 50px 160px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 180px 40px, #b9c4ff, transparent),
    radial-gradient(1.5px 1.5px at 280px 240px, #fff, transparent),
    radial-gradient(2px 2px at 120px 300px, #fff, transparent);
  background-size: 400px 400px;
  animation: drift 80s linear infinite, twinkle 5s ease-in-out infinite;
  opacity: 0.85;
}

.stars--large {
  background-image: radial-gradient(2px 2px at 100px 100px, #fff, transparent),
    radial-gradient(2.5px 2.5px at 320px 180px, var(--accent-2), transparent),
    radial-gradient(2px 2px at 220px 320px, #fff, transparent);
  background-size: 500px 500px;
  animation: drift 50s linear infinite, twinkle 3.5s ease-in-out infinite;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-350px); }
}

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

/* ---------- Shooting stars ---------- */
.shooting-stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.6);
  opacity: 0;
}

.shooting-star::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
  transform: translateY(-50%);
}

.shooting-star:nth-child(1) {
  top: 10%;
  left: 70%;
  animation: shoot 7s ease-in infinite;
}
.shooting-star:nth-child(2) {
  top: 25%;
  left: 90%;
  animation: shoot 9s ease-in 3s infinite;
}
.shooting-star:nth-child(3) {
  top: 5%;
  left: 50%;
  animation: shoot 11s ease-in 6s infinite;
}

@keyframes shoot {
  0% { transform: translate(0, 0) rotate(20deg); opacity: 0; }
  3% { opacity: 1; }
  18% { transform: translate(-450px, 200px) rotate(20deg); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Content ---------- */
.content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 640px;
  animation: fade-up 1.2s ease both;
}

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

/* ---------- Solar system ---------- */
.solar-system {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 2.5rem;
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d6, #ffd36b 40%, #ff8a3c 80%);
  box-shadow: 0 0 30px 8px rgba(255, 170, 80, 0.6), 0 0 60px 20px rgba(255, 120, 40, 0.25);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 30px 8px rgba(255, 170, 80, 0.6), 0 0 60px 20px rgba(255, 120, 40, 0.25); }
  50% { box-shadow: 0 0 40px 12px rgba(255, 190, 110, 0.7), 0 0 80px 28px rgba(255, 130, 50, 0.35); }
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit--1 { width: 110px; height: 110px; animation: spin 7s linear infinite; }
.orbit--2 { width: 165px; height: 165px; animation: spin 13s linear infinite; }
.orbit--3 { width: 220px; height: 220px; animation: spin 21s linear infinite; }

.planet {
  position: absolute;
  border-radius: 50%;
}

.planet--1 {
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: radial-gradient(circle at 30% 30%, #7fe3ff, #21d4fd);
  box-shadow: 0 0 10px 2px rgba(33, 212, 253, 0.5);
}

.planet--2 {
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  background: radial-gradient(circle at 30% 30%, #c2a8ff, #7c5cff);
  box-shadow: 0 0 12px 3px rgba(124, 92, 255, 0.5);
}

.planet--3 {
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: radial-gradient(circle at 30% 30%, #ffd2a8, #ff7e5f);
  box-shadow: 0 0 12px 3px rgba(255, 126, 95, 0.45);
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.title {
  font-size: clamp(2.8rem, 9vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(120deg, #fff 10%, var(--accent-2) 50%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(124, 92, 255, 0.3);
}

.subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.tagline {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto 2rem;
}

/* ---------- Progress ---------- */
.progress {
  width: min(360px, 80%);
  height: 8px;
  margin: 0 auto 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
  animation: fill 2.2s ease-out 0.6s forwards;
}

@keyframes fill {
  to { width: 68%; }
}

.progress__label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* ---------- Signup ---------- */
.signup {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.signup__input {
  flex: 1 1 240px;
  max-width: 280px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup__input::placeholder {
  color: var(--text-dim);
}

.signup__input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(33, 212, 253, 0.15);
}

.signup__btn {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}

.signup__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.55);
}

.signup__btn:active {
  transform: translateY(0);
}

.signup__note {
  font-size: 0.9rem;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
  .progress__bar { width: 68%; }
}
