@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Manrope:wght@600;700&display=swap");

:root {
  --bg: #0f172a;
  --card: rgba(15, 23, 42, 0.8);
  --border: rgba(148, 163, 184, 0.2);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  --accent: #60a5ff;
  --accent-soft: rgba(96, 165, 255, 0.18);
  --accent-strong: #3b82f6;
  --success: #22c55e;
  --shadow: rgba(15, 23, 42, 0.45);
  --max-width: min(520px, 92vw);
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display: "Manrope", var(--font-body);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 4rem);
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.6;
  transform: translate(-50%, -50%);
  mix-blend-mode: lighten;
  animation: float 16s ease-in-out infinite;
}

.orb--primary {
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle at 30% 30%, #38bdf8, transparent 60%);
  top: 12%;
  left: 14%;
}

.orb--secondary {
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle at 60% 60%, #6366f1, transparent 65%);
  bottom: -10%;
  right: 8%;
  animation-delay: -6s;
}

.orb--tertiary {
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle at 40% 40%, #22d3ee, transparent 55%);
  top: 64%;
  left: 45%;
  animation-delay: -3s;
}

.card {
  position: relative;
  width: var(--max-width);
  border-radius: 22px;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 40px 70px -40px var(--shadow);
  backdrop-filter: blur(18px);
  text-align: left;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -0.45rem;
  border-radius: inherit;
  border: 2px solid rgba(34, 197, 94, 0.4);
  animation: pulse 2s infinite;
}

h1 {
  margin: 1.8rem 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.2;
  font-family: var(--font-display);
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.status {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.countdown__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.countdown__timer {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  font-family: var(--font-display);
}

.progress {
  display: grid;
  gap: 0.65rem;
}

.progress__track {
  position: relative;
  width: 100%;
  height: 0.6rem;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, var(--accent-strong), #06b6d4);
  border-radius: inherit;
  transform-origin: left;
  animation: progress 8s ease-in-out infinite;
}

.progress__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 9.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-strong), #0ea5e9);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 18px 28px -18px rgba(14, 165, 233, 0.9);
}

.btn:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.4);
  outline-offset: 4px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px -22px rgba(14, 165, 233, 0.9);
}

.link {
  align-self: center;
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.link:hover,
.link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 640px) {
  body {
    padding: clamp(1rem, 6vw, 2.5rem);
  }

  .card {
    padding: clamp(1.5rem, 6vw, 2.25rem);
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .link {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .progress__bar {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .pulse::after {
    display: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-45%, -55%) scale(1.05);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  70% {
    transform: scale(1.4);
    opacity: 0;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes progress {
  0% {
    transform: scaleX(0.25);
  }

  40% {
    transform: scaleX(0.9);
  }

  60% {
    transform: scaleX(0.7);
  }

  100% {
    transform: scaleX(0.95);
  }
}
