/* NOVA Intelligence Splash — canonical boot / loading surface (#000000). */

.nova-intelligence-splash {
  --nova-splash-orange: #ff7a00;
  --nova-splash-orange-bright: #ff9a2e;
  --nova-splash-orange-dim: rgba(255, 122, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.nova-intelligence-splash--fullscreen {
  min-height: 100dvh;
  width: 100%;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
}

.nova-intelligence-splash--embedded {
  min-height: min(100%, 28rem);
  width: 100%;
  padding: 2rem 1.25rem;
}

.nova-intelligence-splash--embedded .nova-intelligence-splash__stage {
  transform: scale(0.72);
  transform-origin: center center;
}

.nova-intelligence-splash--embedded .nova-intelligence-splash__footer {
  transform: scale(0.9);
  margin-top: -1.5rem;
}

.nova-intelligence-splash__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 42%, #000 20%, transparent 72%);
}

.nova-intelligence-splash__crosshair {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(72vw, 20rem);
  height: min(72vw, 20rem);
  transform: translate(-50%, -50%);
  opacity: 0.18;
}

.nova-intelligence-splash__crosshair::before,
.nova-intelligence-splash__crosshair::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.55), transparent);
}

.nova-intelligence-splash__crosshair::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.nova-intelligence-splash__crosshair::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255, 122, 0, 0.55), transparent);
}

.nova-intelligence-splash__stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(92vw, 22rem);
  aspect-ratio: 1;
  margin-top: -4vh;
}

.nova-intelligence-splash__orbit-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
  animation: nova-splash-orbit-spin 14s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nova-intelligence-splash__orbit-wrap {
    animation-duration: 24s;
  }
}

.nova-intelligence-splash__orbit-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nova-intelligence-splash__orbit-ring {
  fill: none;
  stroke: url(#nova-splash-orbit-gradient);
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: url(#nova-splash-glow);
  opacity: 0.95;
}

.nova-intelligence-splash__orbit-ring--outer {
  stroke-width: 1.4;
  opacity: 0.45;
}

.nova-intelligence-splash__orbit-ring--inner {
  stroke-width: 1.8;
  opacity: 0.65;
}

.nova-intelligence-splash__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffb347 0%, #ff7a00 55%, transparent 100%);
  box-shadow: 0 0 8px rgba(255, 138, 0, 0.85);
  offset-path: ellipse(46% 18% at 50% 50%);
  offset-rotate: 0deg;
  animation: nova-splash-particle-orbit 5.5s linear infinite;
  will-change: offset-distance, opacity;
}

.nova-intelligence-splash__particle:nth-child(1) { animation-delay: 0s; }
.nova-intelligence-splash__particle:nth-child(2) { animation-delay: -0.9s; }
.nova-intelligence-splash__particle:nth-child(3) { animation-delay: -1.8s; }
.nova-intelligence-splash__particle:nth-child(4) { animation-delay: -2.7s; }
.nova-intelligence-splash__particle:nth-child(5) { animation-delay: -3.6s; }
.nova-intelligence-splash__particle:nth-child(6) { animation-delay: -4.5s; }

.nova-intelligence-splash__logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.nova-intelligence-splash__logo-glow {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 46%;
  width: 9rem;
  height: 9rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.28) 0%, rgba(255, 122, 0, 0.08) 42%, transparent 72%);
  animation: nova-splash-logo-breathe 3.6s ease-in-out infinite;
  will-change: transform, opacity;
}

.nova-intelligence-splash__wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: clamp(2rem, 9vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  line-height: 1;
  color: #ffffff;
  text-transform: uppercase;
}

.nova-intelligence-splash__letter-o {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 0.95em;
  height: 0.95em;
  margin: 0 -0.02em;
  letter-spacing: 0;
  text-indent: 0;
}

.nova-intelligence-splash__letter-o-ring {
  width: 0.72em;
  height: 0.72em;
  border-radius: 999px;
  border: 2px solid var(--nova-splash-orange-bright);
  box-shadow:
    0 0 12px rgba(255, 138, 0, 0.75),
    inset 0 0 10px rgba(255, 122, 0, 0.35);
}

.nova-intelligence-splash__ai {
  font-size: clamp(1.05rem, 4.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--nova-splash-orange-bright);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 122, 0, 0.45);
}

.nova-intelligence-splash__footer {
  position: relative;
  z-index: 2;
  width: min(18rem, 72vw);
  margin-top: clamp(2.5rem, 10vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.nova-intelligence-splash__progress-track {
  position: relative;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.nova-intelligence-splash__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.15), #ff9a2e 55%, #ff7a00 100%);
  box-shadow: 0 0 14px rgba(255, 122, 0, 0.65);
  animation: nova-splash-progress-loop 2.8s ease-in-out infinite;
  will-change: transform, width;
}

.nova-intelligence-splash__progress-spark {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, #ffb347 35%, #ff7a00 100%);
  box-shadow: 0 0 12px rgba(255, 138, 0, 0.95);
  animation: nova-splash-spark-loop 2.8s ease-in-out infinite;
  will-change: left;
}

.nova-intelligence-splash__status {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  animation: nova-splash-status-breathe 2.8s ease-in-out infinite;
}

@keyframes nova-splash-status-breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.72;
  }
}

@keyframes nova-splash-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nova-splash-particle-orbit {
  0% {
    offset-distance: 0%;
    opacity: 0.35;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0.35;
  }
}

@keyframes nova-splash-logo-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.55;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.95;
  }
}

@keyframes nova-splash-progress-loop {
  0% {
    width: 8%;
    opacity: 0.55;
  }
  50% {
    width: 72%;
    opacity: 1;
  }
  100% {
    width: 8%;
    opacity: 0.55;
  }
}

@keyframes nova-splash-spark-loop {
  0% {
    left: 8%;
  }
  50% {
    left: 72%;
  }
  100% {
    left: 8%;
  }
}

/* Inline boot splash — instant first paint before React hydrates. */

#nova-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000000;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#nova-boot-splash.nova-boot-splash--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

