:root {
  --royal: #2a0e4a;
  --royal-deep: #160626;
  --gold: #d4a64a;
  --gold-light: #f3d68b;
  --text: #f7f1ff;
  --muted: #c7b8dd;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(212, 166, 74, 0.35);
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse at top, var(--royal) 0%, var(--royal-deep) 70%);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 80%, rgba(212, 166, 74, 0.12), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(150, 90, 220, 0.18), transparent 45%);
}

.wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 16px 32px;
  text-align: center;
}

/* Brand */
.crown {
  color: var(--gold);
  margin-bottom: 18px;
  animation: float 4s ease-in-out infinite;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
}

h1 span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  margin: 36px 0 28px;
}

.unit {
  min-width: 110px;
  padding: 22px 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.num.tick { animation: tick 0.35s ease; }

@keyframes tick {
  0% { transform: scale(1.08); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.label {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.sep {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  color: var(--gold);
  padding-top: 22px;
}

/* Progress */
.progress {
  width: 100%;
  max-width: 520px;
  height: 6px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  transition: width 1s linear;
}

.launch-time {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Launched state */
.launched {
  margin: 30px auto 0;
  padding: 28px;
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.launched h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.launched p { color: var(--muted); margin-bottom: 20px; }

/* Buttons & form */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  font: 600 0.95rem "Inter", sans-serif;
  color: var(--royal-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 166, 74, 0.35);
}

.notify {
  margin: 44px auto 0;
  max-width: 520px;
}

.notify label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.notify-row {
  display: flex;
  gap: 10px;
}

.notify input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
}

.notify input::placeholder { color: var(--muted); }
.notify input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.form-msg {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.footer {
  position: relative;
  padding: 20px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 560px) {
  .wrapper { padding-top: 44px; }
  .countdown { gap: 6px; }
  .unit { min-width: 0; flex: 1; padding: 16px 6px 12px; border-radius: 12px; }
  .sep { font-size: 2rem; padding-top: 14px; }
  .label { font-size: 0.65rem; letter-spacing: 0.12em; }
  .notify-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .crown, .num.tick { animation: none; }
  .progress-bar { transition: none; }
}
