/* Countdown Launch. Change the colors here. */
:root {
  --bg: #070b1a;
  --panel: rgb(255 255 255 / 0.05);
  --panel-line: rgb(255 255 255 / 0.1);
  --text: #eef1ff;
  --muted: #9aa3c7;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-text: #04121a;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Background: soft glows plus a field of stars drawn with gradients */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 50% -10%, rgb(129 140 248 / 0.35), transparent 70%),
    radial-gradient(600px 400px at 90% 110%, rgb(94 234 212 / 0.18), transparent 70%),
    var(--bg);
}
.sky::before, .sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 81%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 69% 33%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 83% 57%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 88%, #fff 50%, transparent 51%);
  opacity: 0.55;
}
.sky::after {
  transform: translate(7%, 11%) scale(1.3);
  opacity: 0.3;
  animation: twinkle 6s ease-in-out infinite alternate;
}

.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(880px, 100% - 40px);
  margin: 0 auto;
  padding: 56px 0 32px;
  text-align: center;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 56px;
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none;
}
.logo svg { width: 30px; height: 30px; color: var(--accent); }

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2vw, 18px);
  width: 100%;
  max-width: 640px;
}

.unit {
  padding: clamp(14px, 3vw, 26px) 8px;
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.num {
  display: block;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #c7cdf2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(0.65rem, 1.6vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.date { margin: 18px 0 56px; color: var(--muted); font-size: 0.95rem; }

.title {
  max-width: 680px;
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lead { max-width: 540px; margin: 0 0 32px; color: var(--muted); font-size: 1.05rem; }

.notify {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  padding: 6px;
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  background: var(--panel);
}
.notify input {
  flex: 1; min-width: 0; height: 46px;
  padding: 0 14px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.notify input::placeholder { color: var(--muted); }
.notify input:focus-visible { outline-offset: 0; }
.notify button {
  height: 46px; padding: 0 22px;
  border: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-text);
  font: inherit; font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}
.notify button:hover { filter: brightness(1.1); }

.note { min-height: 1.6em; margin: 14px 0 0; color: var(--accent); font-weight: 500; }

.is-live .unit { border-color: rgb(94 234 212 / 0.4); }

.foot { padding: 24px 20px 32px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.foot p { margin: 0; }

@media (max-width: 480px) {
  .notify { flex-direction: column; }
  .notify button { width: 100%; }
  .unit { border-radius: 12px; }
}

@keyframes twinkle { to { opacity: 0.6; } }

@media (prefers-reduced-motion: reduce) {
  .sky::after { animation: none; }
}
