:root {
  --bg-1: #070814;
  --bg-2: #111a3d;
  --primary: #8b5cf6;
  --secondary: #22d3ee;
  --text: #ffffff;
  --muted: #b7c0d8;
  --glass: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.18);
}

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

body {
  min-height: 100vh;
  overflow: hidden;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.35), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(34, 211, 238, 0.28), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

body::before,
body::after {
  position: fixed;
  content: "";
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.25;
  pointer-events: none;
}

body::before {
  top: -120px;
  right: 12%;
  background: var(--primary);
  animation: floatOrb 9s ease-in-out infinite;
}

body::after {
  left: 8%;
  bottom: -140px;
  background: var(--secondary);
  animation: floatOrb 11s ease-in-out infinite reverse;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(780px, 100%);
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
  animation: cardIn 900ms ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 24px;
  color: #eaf8ff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
}

.badge-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 1.8s infinite;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.07em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.accent {
  color: var(--secondary);
}

.subtitle {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.time-box {
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  transition: transform 220ms ease, background 220ms ease;
}

.time-box:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-6px);
}

.time-box strong {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
}

.time-box span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-wrap {
  margin-bottom: 0;
  text-align: left;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #e9ecff;
  font-size: 0.95rem;
  font-weight: 600;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: inherit;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.55);
  transition: width 1.5s ease;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(40px, 28px, 0) scale(1.12);
  }
}

@media (max-width: 680px) {
  body {
    overflow-y: auto;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
