*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #0a0e17;
  --bg-mid: #111827;
  --accent: #38bdf8;
  --accent-warm: #f472b6;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --glass: rgba(15, 23, 42, 0.55);
  --border: rgba(148, 163, 184, 0.12);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #1e3a5f 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(244, 114, 182, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: var(--accent);
  top: -8%;
  left: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: var(--accent-warm);
  bottom: 10%;
  right: -8%;
  animation-delay: -6s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: #818cf8;
  top: 45%;
  left: 55%;
  animation-delay: -12s;
  opacity: 0.35;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.4;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -16px) scale(1.05); }
  66% { transform: translate(-16px, 20px) scale(0.95); }
}

/* Layout */
.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 2.5rem;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

/* Brand */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.logo {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent) 0%, #7dd3fc 100%);
  border-radius: 1rem;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 3.25rem);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero card */
.hero {
  width: 100%;
  padding: 2rem 1.75rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text);
}

.lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

/* Progress */
.progress {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: stretch;
}

.progress-track {
  height: 4px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 999px;
  animation: pulse-width 3s ease-in-out infinite;
}

.progress-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@keyframes pulse-width {
  0%, 100% { width: 38%; opacity: 0.9; }
  50% { width: 52%; opacity: 1; }
}

/* Footer */
.footer {
  margin-top: 2.5rem;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .orb,
  .progress-fill {
    animation: none;
  }

  .progress-fill {
    width: 42%;
  }
}
