html,
body {
  background-color: #0b0e14;
  margin: 0;
}

#root {
  min-height: 100vh;
}

/* Shown until React mounts into #root — covers cold JS wait on marketing/console */
#boot-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #0b0e14;
  color: #e2e8f0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.28s ease;
}

#boot-splash.boot-splash-hide {
  opacity: 0;
}

#boot-splash .boot-mark {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(91, 57, 252, 0.35);
  animation: boot-pulse 1.6s ease-in-out infinite;
}

#boot-splash .boot-wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
}

#boot-splash .boot-status {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.95);
}

@keyframes boot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #boot-splash .boot-mark {
    animation: none;
  }
  #boot-splash {
    transition: none;
  }
}

/* Suspense fallback for lazy routes — same look as boot splash, stays until the page chunk mounts */
.page-route-fallback {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  background: #0b0e14;
  color: #e2e8f0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  pointer-events: none;
}

.page-route-fallback__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #6d4dff, #5b39fc);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(91, 57, 252, 0.35);
  animation: boot-pulse 1.6s ease-in-out infinite;
}

.page-route-fallback__wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
}

.page-route-fallback__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-route-fallback__mark {
    animation: none;
  }
}
