/* First-paint + React boot splash. Keep this file in /public so it loads
   before the JS bundle — the circle spinner must never flash on open. */

html, body {
  background: #050208;
}

.mist-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 42%, rgba(88, 28, 135, 0.38), transparent 58%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(6, 182, 212, 0.08), transparent 55%),
    #050208;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.mist-boot-glow {
  position: absolute;
  width: 78vmin;
  height: 78vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.42) 0%, rgba(139, 92, 246, 0.16) 38%, transparent 68%);
  filter: blur(6px);
  animation: mist-breathe 3.2s ease-in-out infinite;
  pointer-events: none;
}

.mist-boot-smoke {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.55;
}

.mist-boot-smoke-a {
  width: 48vmin;
  height: 28vmin;
  left: 8%;
  bottom: 18%;
  background: rgba(124, 58, 237, 0.45);
  animation: mist-drift-a 7s ease-in-out infinite;
}

.mist-boot-smoke-b {
  width: 42vmin;
  height: 26vmin;
  right: 6%;
  bottom: 22%;
  background: rgba(91, 33, 182, 0.5);
  animation: mist-drift-b 8.4s ease-in-out infinite;
}

.mist-boot-mark {
  position: relative;
  width: min(72vw, 300px);
  animation: mist-rise 0.9s ease-out both, mist-pulse 2.8s ease-in-out 0.9s infinite;
  filter: drop-shadow(0 0 32px rgba(139, 92, 246, 0.55));
}

.mist-boot-mark img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22%;
}

.mist-boot-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 22%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
  background-size: 240% 240%;
  animation: mist-shimmer 3.4s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.mist-boot-scan {
  width: min(64vw, 240px);
  height: 2px;
  margin-top: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #c4b5fd, #67e8f9, transparent);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.9);
  animation: mist-scan 1.7s ease-in-out infinite;
}

.mist-boot-kicker {
  margin: 1.15rem 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  color: #ddd6fe;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.8);
  animation: mist-flicker 2.6s ease-in-out infinite;
}

.mist-boot-sub {
  margin: 0.5rem 0 0;
  max-width: 18.5rem;
  padding: 0 1.25rem;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(103, 232, 249, 0.82);
}

@keyframes mist-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes mist-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.45)); }
  50% { transform: scale(1.035); filter: drop-shadow(0 0 48px rgba(167, 139, 250, 0.85)); }
}

@keyframes mist-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mist-shimmer {
  0% { background-position: 120% 0; opacity: 0.15; }
  40% { opacity: 0.85; }
  100% { background-position: -40% 0; opacity: 0.15; }
}

@keyframes mist-scan {
  0%, 100% { transform: scaleX(0.35); opacity: 0.35; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes mist-flicker {
  0%, 100% { opacity: 0.72; }
  46% { opacity: 1; }
  50% { opacity: 0.4; }
  54% { opacity: 1; }
}

@keyframes mist-drift-a {
  0%, 100% { transform: translate(-8%, 6%) scale(1); }
  50% { transform: translate(10%, -8%) scale(1.15); }
}

@keyframes mist-drift-b {
  0%, 100% { transform: translate(6%, 4%) scale(1.05); }
  50% { transform: translate(-12%, -10%) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .mist-boot-glow,
  .mist-boot-smoke,
  .mist-boot-mark,
  .mist-boot-shimmer,
  .mist-boot-scan,
  .mist-boot-kicker {
    animation: none;
  }
}
