/**
 * Distributed download network animation + provider credit
 */
.cdn-dist {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #f5f8ff 0%, #fff 55%);
  border-top: 1px solid rgba(0, 82, 217, 0.06);
}
.cdn-dist-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px 48px;
  align-items: center;
}
.cdn-dist-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0052d9;
}
.cdn-dist-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #1d2129;
  letter-spacing: -0.02em;
}
.cdn-dist-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.75;
  color: #86909c;
  max-width: 460px;
}
.cdn-dist-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 82, 217, 0.14);
  box-shadow: 0 8px 22px rgba(0, 82, 217, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: #1d2129;
  text-decoration: none;
}
.cdn-dist-credit i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00b42a;
  box-shadow: 0 0 0 4px rgba(0, 180, 42, 0.18);
  animation: cdn-pulse 1.8s ease-out infinite;
}
.cdn-node-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.cdn-node-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e6eb;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.cdn-node-chip:hover,
.cdn-node-chip.is-active {
  border-color: rgba(0, 82, 217, 0.35);
  box-shadow: 0 10px 24px rgba(0, 82, 217, 0.1);
  transform: translateY(-1px);
}
.cdn-node-chip strong {
  display: block;
  font-size: 13px;
  color: #1d2129;
}
.cdn-node-chip span {
  font-size: 12px;
  color: #86909c;
}
.cdn-node-chip em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #0052d9;
  white-space: nowrap;
}

.cdn-stage {
  position: relative;
  min-height: 360px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(22, 119, 255, 0.1), transparent 70%),
    linear-gradient(160deg, #eef4ff, #f8faff);
  border: 1px solid rgba(0, 82, 217, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.cdn-stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 82, 217, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 82, 217, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.7;
}
.cdn-hub {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0052d9, #00a3ff);
  box-shadow: 0 12px 28px rgba(0, 82, 217, 0.35);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 3;
}
.cdn-hub::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  border: 1px solid rgba(0, 82, 217, 0.25);
  animation: cdn-ring 2.4s ease-out infinite;
}
.cdn-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.cdn-lines line {
  stroke: rgba(0, 82, 217, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: cdn-dash 1.2s linear infinite;
}
.cdn-pkt {
  fill: #1677ff;
  filter: drop-shadow(0 0 4px rgba(22, 119, 255, 0.6));
}
.cdn-node {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  text-align: center;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.cdn-node-dot {
  width: 14px;
  height: 14px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #1677ff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.18);
  transition: transform 0.2s ease;
}
.cdn-node.is-active .cdn-node-dot,
.cdn-node:hover .cdn-node-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(22, 119, 255, 0.22);
}
.cdn-node-label {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 82, 217, 0.12);
  font-size: 11px;
  font-weight: 600;
  color: #1d2129;
  white-space: nowrap;
}
.cdn-stage-tip {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 4;
  font-size: 12px;
  color: #4e5969;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 82, 217, 0.1);
}

@keyframes cdn-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 180, 42, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(0, 180, 42, 0); }
}
@keyframes cdn-ring {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}
@keyframes cdn-dash {
  to { stroke-dashoffset: -24; }
}

@media (max-width: 900px) {
  .cdn-dist-inner { grid-template-columns: 1fr; }
  .cdn-stage { min-height: 300px; order: -1; }
  .cdn-node-list { grid-template-columns: 1fr; }
}
