/* One continuous sky: section surfaces must not cut the atmosphere on scroll. */
body { position: relative; isolation: isolate; }
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
}
body::before {
  inset: -36px 0;
  z-index: -2;
  background:
    url('/assets/stars.svg') center / 800px 600px repeat,
    radial-gradient(ellipse at 16% 22%, rgb(95 76 150 / 30%), transparent 62%),
    radial-gradient(ellipse at 90% 60%, rgb(51 83 133 / 28%), transparent 64%),
    radial-gradient(ellipse at 65% 95%, rgb(139 65 107 / 18%), transparent 58%),
    #0a0c15;
  animation: sky-drift 100s ease-in-out infinite alternate;
}
body::after {
  inset: 0;
  z-index: -1;
  background: url('/assets/grain.svg') repeat;
  opacity: .7;
}
html[data-theme='dark'] body :is(.hero, .product-section, .orbs-section,
  .usecases-section, .trust-section, .faq-section, .contact-section, .site-footer),
html:not([data-theme='dark']) body :is(.hero, .product-section, .orbs-section,
  .usecases-section, .trust-section, .faq-section, .contact-section, .site-footer) {
  background: transparent;
}
/* The global layers replace the old, hero-only stars, aura and grain. */
.hero::before,
.hero__sky,
.hero__aura { display: none; }
html:not([data-theme='dark']) body::before {
  background:
    radial-gradient(ellipse at 6% 20%, rgb(205 217 251 / 46%), transparent 60%),
    radial-gradient(ellipse at 94% 42%, rgb(245 211 225 / 39%), transparent 62%),
    radial-gradient(ellipse at 55% 95%, rgb(218 210 245 / 33%), transparent 63%),
    #fcfbfa;
  animation: none;
}
html:not([data-theme='dark']) body::after { opacity: .22; }
@keyframes sky-drift {
  from { transform: translateY(-18px); }
  to { transform: translateY(18px); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; transform: none; }
}
