/* Gradient titles and network-themed motion live here to keep visual effects organized. */

.gradient-title {
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  background: linear-gradient(90deg, #084298 0%, #0d6efd 48%, #58b7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.section:not(.final-cta) h2,
.section:not(.final-cta) h3,
.page-hero h1 {
  text-align: center;
}

.section:not(.final-cta) .eyebrow,
.page-hero .eyebrow {
  text-align: center;
}

.page-hero__content {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.page-hero p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.network-host {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.network-host > .container {
  position: relative;
  z-index: 1;
}

.network-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero .network-layer {
  z-index: 1;
}

.network-layer::before {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(13, 110, 253, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 110, 253, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  opacity: 0.42;
  animation: networkGridDrift 18s linear infinite;
}

.hero .network-layer::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  opacity: 0.28;
}

.hero-home .network-layer::before {
  display: none;
}

.hero-home > .network-layer {
  display: none;
}

.video-section > .network-layer {
  display: none;
}

.metrics-strip > .network-layer {
  display: none;
}

.network-line,
.network-node {
  position: absolute;
  display: block;
}

.network-line {
  width: clamp(150px, 24vw, 390px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.5), transparent);
  opacity: 0.38;
  transform-origin: center;
  animation: networkPulse 4.8s ease-in-out infinite;
}

.hero .network-line {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  opacity: 0.34;
}

.hero-home .network-line {
  background: rgba(13, 110, 253, 0.14);
  opacity: 0.18;
}

.network-line--a {
  top: 18%;
  left: -4%;
  transform: rotate(18deg);
}

.network-line--b {
  top: 58%;
  right: -8%;
  transform: rotate(-22deg);
  animation-delay: 1.2s;
}

.network-line--c {
  bottom: 16%;
  left: 18%;
  transform: rotate(4deg);
  animation-delay: 2.4s;
}

.network-node {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(13, 110, 253, 0.48);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.06);
  animation: networkNodeBlink 3.6s ease-in-out infinite;
}

.hero .network-node {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(13, 110, 253, 0.42);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.hero-home .network-node {
  border-color: rgba(13, 110, 253, 0.42);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.035);
}

.network-node--a {
  top: 22%;
  right: 12%;
}

.network-node--b {
  top: 62%;
  left: 8%;
  animation-delay: 0.9s;
}

.network-node--c {
  right: 24%;
  bottom: 18%;
  animation-delay: 1.8s;
}

.network-data-pulse {
  position: absolute;
  top: 50%;
  left: -8%;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.8), transparent);
  opacity: 0.5;
  animation: networkDataTravel 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero .network-data-pulse {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.86), transparent);
}

.hero-home .network-data-pulse {
  background: rgba(13, 110, 253, 0.22);
}

.network-data-pulse--b {
  top: 32%;
  animation-delay: 2s;
}

.network-data-pulse--c {
  top: 72%;
  animation-delay: 3.8s;
}

@keyframes networkGridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(42px, 42px, 0);
  }
}

@keyframes networkPulse {
  0%,
  100% {
    opacity: 0.18;
    filter: saturate(0.8);
  }

  45% {
    opacity: 0.56;
    filter: saturate(1.3);
  }
}

@keyframes networkNodeBlink {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes networkDataTravel {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }

  12%,
  72% {
    opacity: 0.55;
  }

  100% {
    transform: translate3d(118vw, 0, 0);
    opacity: 0;
  }
}

@media (max-width: 575.98px) {
  .network-line--c,
  .network-node--c,
  .network-data-pulse--c {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-layer::before,
  .network-line,
  .network-node,
  .network-data-pulse {
    animation: none !important;
  }
}
