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

:root {
  --blue-light:  #7dd3fc;   /* sky-300 */
  --blue-mid:    #38bdf8;   /* sky-400 */
  --blue-bright: #0ea5e9;   /* sky-500 */
  --silver:      #cbd5e1;   /* slate-300 */
  --silver-dim:  #94a3b8;   /* slate-400 */
  --bg:          #060d18;   /* deep navy-black */
  --card-bg:     rgba(186,230,255,0.04);
  --border:      rgba(186,230,255,0.12);
  --text:        #f0f9ff;
  --muted:       #94a3b8;
  --mono: 'Space Mono', monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* ── Canvas ── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Nebula blobs ── */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.nebula-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.22) 0%, transparent 70%);
  top: -220px; left: -180px;
  animation: drift 18s ease-in-out infinite alternate;
}
.nebula-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(125,211,252,0.18) 0%, transparent 70%);
  bottom: -120px; right: -120px;
  animation: drift 24s ease-in-out infinite alternate-reverse;
}
.nebula-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(203,213,225,0.1) 0%, transparent 70%);
  top: 45%; left: 62%;
  animation: drift 28s ease-in-out infinite alternate;
}
.nebula-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(56,189,248,0.14) 0%, transparent 70%);
  top: 25%; left: 5%;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

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

.shooter {
  position: absolute;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, rgba(125,211,252,0) 0%, rgba(125,211,252,0.95) 50%, rgba(203,213,225,0.5) 100%);
  border-radius: 999px;
  transform: rotate(-35deg);
  animation: shoot 0.9s ease-out forwards;
}

@keyframes shoot {
  0%   { opacity: 0; transform: rotate(-35deg) translate(0, 0); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(-35deg) translate(300px, 150px); }
}

/* ── Layout ── */
.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  width: 100%;
  max-width: 700px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.logo-icon {
  filter: drop-shadow(0 0 14px rgba(56,189,248,0.7));
  animation: float 4s ease-in-out infinite;
}

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

.logo-wordmark {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.logo-wordmark span {
  background: linear-gradient(135deg, var(--blue-mid), var(--silver));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Card ── */
.card {
  position: relative;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3rem 3rem 2.5rem;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(186,230,255,0.05) inset,
    0 32px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(14,165,233,0.07);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,0.7), rgba(203,213,225,0.5), transparent);
}

.card-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(14,165,233,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid rgba(125,211,252,0.3);
  background: rgba(125,211,252,0.07);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-mid);
  box-shadow: 0 0 8px var(--blue-mid), 0 0 16px var(--blue-light);
  animation: blink 2s ease-in-out infinite;
}

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

/* ── Headline ── */
.headline {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
  color: #fff;
}

.headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--silver) 60%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(125,211,252,0.45));
}

/* ── Subtext ── */
.subtext {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
  width: 100%;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: rgba(186,230,255,0.04);
  border: 1px solid rgba(186,230,255,0.1);
  border-radius: 12px;
  padding: 0.6rem 0;
  flex: 1;
  min-width: 0;
}

.countdown-num {
  font-family: var(--mono);
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  font-weight: 700;
  background: linear-gradient(160deg, #fff 20%, var(--blue-light) 70%, var(--silver));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.countdown-label {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-dim);
  font-weight: 500;
}

.countdown-sep {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--silver-dim);
  margin-bottom: 1rem;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ── Form ── */
.form {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.input-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--silver-dim);
  pointer-events: none;
  flex-shrink: 0;
}

.email-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  background: rgba(186,230,255,0.05);
  border: 1px solid rgba(186,230,255,0.12);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.email-input::placeholder { color: var(--silver-dim); }

.email-input:focus {
  background: rgba(186,230,255,0.08);
  border-color: rgba(125,211,252,0.5);
  box-shadow: 0 0 0 3px rgba(125,211,252,0.1), 0 0 20px rgba(56,189,248,0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-mid) 50%, #bae6fd 100%);
  border: none;
  border-radius: 12px;
  color: #0c1a2e;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(14,165,233,0.4), 0 0 0 1px rgba(255,255,255,0.15) inset;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(14,165,233,0.55); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }

/* ── Form feedback ── */
.form-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--blue-light);
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.4s;
}
.form-note.visible { opacity: 1; }

/* ── Pills ── */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--silver-dim);
  border: 1px solid rgba(186,230,255,0.1);
  background: rgba(186,230,255,0.03);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}

.pill:hover {
  color: var(--blue-light);
  border-color: rgba(125,211,252,0.35);
}

/* ── Footer ── */
.footer {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: rgba(148,163,184,0.45);
}

.footer a {
  color: rgba(148,163,184,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: var(--blue-light); }

/* ── Responsive ── */
@media (max-width: 560px) {
  .card { padding: 2rem 1.5rem; border-radius: 20px; }
  .headline { font-size: 1.9rem; }
  .form { flex-direction: column; }
  .input-wrap, .btn { width: 100%; }
  .countdown-unit { padding: 0.5rem 0.6rem; }
  .countdown-num { font-size: 1.4rem; }
}
