/* Premium graphics overlay layer - additive only, non-interactive, low-opacity. */
:root {
  --ix-grid-opacity: 0.12;
  --ix-noise-opacity: 0.05;
  --ix-glow-opacity: 0.18;
}

/* Requested utility classes */
.bg-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: var(--ix-grid-opacity);
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 82%);
}

.bg-glow {
  position: absolute;
  width: min(58vw, 620px);
  height: min(58vw, 620px);
  border-radius: 999px;
  filter: blur(62px);
  opacity: var(--ix-glow-opacity);
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0.1) 42%, transparent 72%);
}

.floating-element {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.68), rgba(56, 189, 248, 0.4) 44%, rgba(56, 189, 248, 0) 72%);
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.25);
  opacity: 0.28;

/* GPU-promote all animated overlay elements. */
.floating-element,
.animate-float,
.animate-glow,
.soft-pulse {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.animate-scan {
  will-change: transform;
}

/* Contain the global overlay root so it can't affect layout. */
.ix-graphics-root {
  contain: layout paint;
}
}

.soft-pulse {
  animation: glow-pulse 12s ease-in-out infinite;
}

.animate-glow {
  animation: glow-pulse 8.5s ease-in-out infinite;
}

.animate-float {
  animation: float 18s ease-in-out infinite;
}

.animate-scan {
  animation: scan-sweep 9s linear infinite;
}

.neon-border {
  position: relative;
}

.neon-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(56, 189, 248, 0.24);
  pointer-events: none;
  opacity: 0.35;
}

.hover-glow {
  transition: box-shadow 0.28s ease, filter 0.28s ease, border-color 0.24s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 0 24px rgba(56, 189, 248, 0.2);
  filter: saturate(1.04);
}

@keyframes float {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(0, -12px, 0); }
  50% { transform: translate3d(8px, -20px, 0); }
  75% { transform: translate3d(-8px, -10px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes glow-pulse {
  0% { opacity: 0.12; }
  50% { opacity: 0.2; }
  100% { opacity: 0.12; }
}

@keyframes scan-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Global graphics stage */
.ix-graphics-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ix-noise-layer {
  position: absolute;
  inset: 0;
  opacity: var(--ix-noise-opacity);
  background-image: radial-gradient(rgba(255, 255, 255, 0.34) 0.55px, transparent 0.55px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.ix-glow-primary {
  top: -22%;
  right: -9%;
}

.ix-glow-secondary {
  bottom: -28%;
  left: -12%;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.46), rgba(168, 85, 247, 0.12) 45%, transparent 72%);
}

.ix-floating-wrap {
  position: absolute;
  inset: 0;
}

.ix-svg-store {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ix-hero-illustration {
  position: absolute;
  right: clamp(0.8rem, 2.6vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(30vw, 390px);
  aspect-ratio: 1 / 1;
  opacity: 0.19;
  pointer-events: none;
  z-index: 0;
}

.ix-hero-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ix-radar-spin {
  transform-origin: 50% 50%;
}

.ix-story-visual {
  position: absolute;
  right: clamp(0.4rem, 2.3vw, 1.8rem);
  top: clamp(0.5rem, 2vw, 1.4rem);
  width: min(24vw, 300px);
  max-width: 36%;
  aspect-ratio: 1.35 / 1;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.ix-story-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ix-story-visual.ix-story-left {
  right: auto;
  left: clamp(0.4rem, 2.3vw, 1.8rem);
}

.ix-story-visual.ix-radar .ix-radar-spin {
  transform-origin: 50% 50%;
  animation: scan-sweep 12s linear infinite;
}

.ix-story-visual.ix-data-flow {
  width: min(26vw, 330px);
}

.ix-story-visual.ix-globe {
  width: min(23vw, 280px);
}

/* Home hero enhancement only */
.ix-home-premium .ix-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ix-home-premium .ix-hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.42;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), transparent 82%);
}

.ix-home-premium .ix-hero-overlay::after {
  content: "";
  position: absolute;
  width: min(62vw, 760px);
  height: min(62vw, 760px);
  right: -14%;
  top: -28%;
  border-radius: 999px;
  filter: blur(64px);
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.4), rgba(14, 165, 233, 0.09) 48%, transparent 74%);
  opacity: 0.45;
  animation: glow-pulse 11s ease-in-out infinite;
}

.ix-home-premium .ix-hero-overlay .ix-data-ribbons {
  position: absolute;
  left: -3%;
  bottom: 8%;
  width: min(38vw, 430px);
  opacity: 0.16;
}

.ix-home-premium .ix-hero-overlay .ix-data-ribbons svg {
  width: 100%;
  height: auto;
}

/* Section divider add-ons */
.ix-section-divider {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(94vw, 1100px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.38), rgba(168, 85, 247, 0.28), transparent);
  opacity: 0.5;
  pointer-events: none;
}

/* Tiny section sigils - no layout shift */
.ix-heading-sigil {
  position: absolute;
  right: 0.8rem;
  top: 0.4rem;
  width: 24px;
  height: 24px;
  opacity: 0.18;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.28));
}

.ix-story-visual,
.ix-hero-illustration,
.ix-home-premium .ix-hero-overlay .ix-data-ribbons,
.ix-heading-sigil,
.ix-section-divider {
  will-change: transform, opacity;
}

/* Keep app content above overlays */
#root,
body > main {
  position: relative;
  z-index: 1;
}

/* Mobile and low-power safety */
@media (max-width: 1024px) {
  :root {
    --ix-grid-opacity: 0.08;
    --ix-glow-opacity: 0.12;
    --ix-noise-opacity: 0.035;
  }

  .ix-section-divider {
    opacity: 0.34;
  }

  .ix-story-visual {
    opacity: 0.11;
    width: min(28vw, 230px);
  }

  .ix-hero-illustration {
    width: min(34vw, 280px);
    opacity: 0.15;
  }
}

@media (max-width: 767px) {
  .ix-floating-wrap .floating-element:nth-child(n+5) {
    display: none;
  }

  .ix-heading-sigil {
    display: none;
  }

  .ix-home-premium .ix-hero-overlay::after {
    width: min(84vw, 420px);
    height: min(84vw, 420px);
    right: -22%;
    top: -20%;
    opacity: 0.34;
  }

  .ix-story-visual,
  .ix-hero-illustration,
  .ix-home-premium .ix-hero-overlay .ix-data-ribbons {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-element,
  .soft-pulse,
  .animate-glow,
  .animate-float,
  .animate-scan,
  .ix-story-visual.ix-radar .ix-radar-spin,
  .ix-home-premium .ix-hero-overlay::after {
    animation: none !important;
  }
}
