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

:root {
  --bg: #0b0f1a;
  --surface: #141929;
  --border: #1e2742;
  --primary: #6c63ff;
  --primary-glow: rgba(108, 99, 255, 0.25);
  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.2);
  --text: #e2e8f0;
  --text-muted: #8892b0;
  --success: #00d4aa;
  --radius: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ── Particle background ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: float 8s infinite ease-in-out;
}

.particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 25%; animation-delay: 1.5s; }
.particles span:nth-child(3) { left: 40%; animation-delay: 3s; }
.particles span:nth-child(4) { left: 55%; animation-delay: 0.5s; }
.particles span:nth-child(5) { left: 70%; animation-delay: 2s; }
.particles span:nth-child(6) { left: 85%; animation-delay: 4s; }
.particles span:nth-child(7) { left: 15%; animation-delay: 5s; }
.particles span:nth-child(8) { left: 60%; animation-delay: 1s; }
.particles span:nth-child(9) { left: 90%; animation-delay: 3.5s; }

@keyframes float {
  0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  50% { transform: translateY(-20vh) scale(1); }
  100% { transform: translateY(-10vh) scale(0); }
}

/* ── Gradient mesh bg ── */
body::before {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
  z-index: 0;
}

/* ── Container ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 90%;
  text-align: center;
  padding: 48px 40px;
  background: linear-gradient(145deg, rgba(20, 25, 41, 0.8), rgba(11, 15, 26, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 80px rgba(108, 99, 255, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.4);
}

/* ── Gears ── */
.icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
}

.gear svg {
  width: 100%;
  height: 100%;
  color: var(--primary);
}

.gear-1 {
  position: absolute;
  width: 90px;
  height: 90px;
  top: 0;
  left: 0;
  animation: spin-cw 6s linear infinite;
}

.gear-2 {
  position: absolute;
  width: 70px;
  height: 70px;
  bottom: 0;
  right: 0;
  animation: spin-ccw 4s linear infinite;
  color: var(--accent);
}

@keyframes spin-cw { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

/* ── Typography ── */
.title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 32px;
}


/* ── Progress bar ── */
.status-bar {
  margin-bottom: 28px;
}

.status-track {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.status-fill {
  height: 100%;
  width: 42%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 14px var(--primary-glow);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px var(--primary-glow); }
  50% { box-shadow: 0 0 22px var(--primary-glow); }
}

.status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Checklist ── */
.checklist {
  text-align: left;
  margin-bottom: 32px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: background 0.2s;
}

.check-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.check-item.done {
  color: var(--success);
}

.check-item.done span {
  text-decoration: line-through;
  text-decoration-color: rgba(0, 212, 170, 0.3);
}

.check-item.active {
  color: var(--primary);
}

.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.circle-empty {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.spinner {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid rgba(108, 99, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin-cw 0.8s linear infinite;
}


/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .container {
    padding: 36px 24px;
  }

  .title {
    font-size: 1.75rem;
  }

  .info-row {
    flex-direction: column;
    gap: 16px;
  }

  .info-divider {
    width: 60%;
    height: 1px;
  }
}
