:root {
  color-scheme: dark;
  --bg-0: #05060d;
  --bg-1: #0b1220;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --brand: #60a5fa;
  --brand-2: #a78bfa;
  --panel-bg: rgba(10, 14, 28, 0.58);
  --panel-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% 10%, #1c254a 0%, transparent 60%),
    radial-gradient(900px 600px at 80% 85%, #1f1650 0%, transparent 62%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  color: var(--text-main);
  overflow: hidden;
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  isolation: isolate;
}

.noise,
.aurora,
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.noise {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.26;
  z-index: -3;
}

.aurora {
  filter: blur(40px) saturate(1.15);
  z-index: -2;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 38vmax;
  height: 38vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: drift 16s ease-in-out infinite alternate;
}

.aurora::before {
  left: -10vmax;
  top: -6vmax;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.75), rgba(96, 165, 250, 0));
}

.aurora::after {
  right: -12vmax;
  bottom: -8vmax;
  animation-delay: -8s;
  background: radial-gradient(circle at 40% 30%, rgba(167, 139, 250, 0.7), rgba(167, 139, 250, 0));
}

.stars {
  z-index: -1;
  opacity: 0.85;
}

.panel {
  width: min(720px, 100%);
  padding: clamp(1.5rem, 2.2vw, 2.5rem);
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(140deg, rgba(17, 24, 39, 0.78), var(--panel-bg));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 .highlight {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  margin: 1rem auto 0;
  color: var(--text-muted);
  max-width: 52ch;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.countdown {
  margin: 1.6rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #dbeafe;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.4);
  background: rgba(30, 58, 138, 0.25);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.78rem 1.15rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button-primary {
  color: #0b1220;
  background: linear-gradient(90deg, #93c5fd, #c4b5fd);
  box-shadow: 0 8px 26px rgba(147, 197, 253, 0.35);
}

.button-secondary {
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.6);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary:hover {
  box-shadow: 0 10px 32px rgba(196, 181, 253, 0.45);
}

.footer {
  margin-top: 1.1rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(4vmax, -3vmax, 0) scale(1.08);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.65;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .panel {
    border-radius: 20px;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
