/* Section 6 — Global Destination Network */

.network {
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(72px, 10vw, 110px);
  padding-bottom: clamp(72px, 10vw, 110px);
}

.network__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(37, 99, 235, 0.22), transparent 62%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(34, 211, 238, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(5, 10, 24, 0.2), transparent 30%, transparent 70%, rgba(5, 10, 24, 0.55));
}

.network__globe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 820px);
  height: min(92vw, 820px);
  transform: translate(-50%, -48%);
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.12);
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 38px, rgba(34, 211, 238, 0.035) 38px 39px),
    repeating-linear-gradient(
      0deg,
      transparent 0 28px,
      rgba(59, 130, 246, 0.05) 28px 29px
    ),
    radial-gradient(circle at 35% 30%, rgba(56, 130, 246, 0.18), transparent 45%),
    radial-gradient(circle at 65% 65%, rgba(14, 165, 233, 0.12), transparent 50%),
    rgba(8, 16, 40, 0.35);
  box-shadow:
    inset 0 0 80px rgba(34, 211, 238, 0.06),
    0 0 120px rgba(37, 99, 235, 0.15);
  animation: networkGlobe 120s linear infinite;
  mask-image: radial-gradient(circle, #000 48%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 72%);
}

.network__globe::before,
.network__globe::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.08);
}

.network__globe::after {
  inset: 24%;
  transform: rotateX(68deg);
  border-color: rgba(34, 211, 238, 0.1);
}

@keyframes networkGlobe {
  to { transform: translate(-50%, -48%) rotate(360deg); }
}

.network__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 10%, transparent 72%);
  opacity: 0.7;
}

.network__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #67E8F9;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.8);
  animation: networkNode 3.2s ease-in-out infinite;
}

.network__node:nth-child(odd) {
  animation-delay: 0.6s;
}

@keyframes networkNode {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
}

.network__arc {
  position: absolute;
  border: 1px solid transparent;
  border-top-color: rgba(34, 211, 238, 0.18);
  border-radius: 50%;
  animation: networkArc 8s ease-in-out infinite;
}

.network__arc--1 {
  left: 22%;
  top: 30%;
  width: 36%;
  height: 28%;
  transform: rotate(-18deg);
}

.network__arc--2 {
  left: 48%;
  top: 36%;
  width: 30%;
  height: 24%;
  transform: rotate(12deg);
  animation-delay: 1.5s;
  border-top-color: rgba(163, 230, 53, 0.2);
}

@keyframes networkArc {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

.network > .section__head,
.network > .network-stats {
  position: relative;
  z-index: 2;
}

.network .section__head {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.network-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  margin-top: 52px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.network-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px 16px;
  border-radius: 22px;
  background: rgba(10, 18, 40, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.network-stat strong {
  font-family: var(--font-display, Inter, sans-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(105deg, #fff 0%, #67E8F9 50%, #A3E635 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.network-stat span {
  font-family: var(--font-display, Inter, sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.network-stat--live strong {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

.network-stat--live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
  animation: networkNode 2s ease-in-out infinite;
}

@media (max-width: 900px) {
  .network-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .network-stats {
    grid-template-columns: 1fr;
  }

  .network-stat {
    padding: 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network__globe,
  .network__node,
  .network__arc,
  .network-stat--live::before {
    animation: none !important;
  }
}
