/* home-v4.css — Demand-partner network visualization (radar + chips + live ticker) */

/* ═══ WRAP ═══ */
.ntw-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 600px;
  margin: 0 auto;
}
.ntw-stage {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--acc-rgb), 0.08) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(10, 18, 32, 0.4) 30%, transparent 70%);
}

/* Ambient glow behind */
.ntw-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--acc-rgb), 0.14), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  animation: ntwGlow 6s ease-in-out infinite;
}
@keyframes ntwGlow {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ═══ RINGS ═══ */
.ntw-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--s);
  height: var(--s);
  margin-top: calc(var(--s) / -2);
  margin-left: calc(var(--s) / -2);
  border: 1px dashed rgba(var(--acc-rgb), 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.ntw-ring:nth-child(odd) {
  border-style: solid;
  border-color: rgba(var(--acc-rgb), 0.12);
}

/* ═══ CROSSHAIR LINES ═══ */
.ntw-cross {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb), 0.12), transparent);
  pointer-events: none;
}
.ntw-cross-h { top: 50%; left: 5%; right: 5%; height: 1px; transform: translateY(-0.5px); }
.ntw-cross-v { left: 50%; top: 5%; bottom: 5%; width: 1px; transform: translateX(-0.5px); background: linear-gradient(180deg, transparent, rgba(var(--acc-rgb), 0.12), transparent); }
.ntw-cross.ntw-diag-1 { top: 50%; left: 5%; right: 5%; height: 1px; transform: translateY(-0.5px) rotate(45deg); opacity: 0.6; }
.ntw-cross.ntw-diag-2 { top: 50%; left: 5%; right: 5%; height: 1px; transform: translateY(-0.5px) rotate(-45deg); opacity: 0.6; }

/* ═══ RADAR SWEEP ═══ */
.ntw-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 2;
}
.ntw-sweep::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--acc-rgb), 0.7), transparent);
  transform-origin: 0 50%;
  animation: ntwSweep 5s linear infinite;
  filter: blur(1px);
}
.ntw-sweep::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 0;
  width: 50%;
  height: 80%;
  background: conic-gradient(from 0deg at 0 50%,
    rgba(var(--acc-rgb), 0.25),
    rgba(var(--acc-rgb), 0.08) 8deg,
    transparent 20deg,
    transparent 360deg);
  transform-origin: 0 50%;
  animation: ntwSweep 5s linear infinite;
  opacity: 0.65;
  mix-blend-mode: screen;
  border-radius: 0 100% 100% 0;
}
@keyframes ntwSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ═══ CHIPS (demand partners) ═══ */
.ntw-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 30, 48, 0.95), rgba(10, 18, 32, 0.98));
  border: 1px solid rgba(var(--acc-rgb), 0.22);
  box-shadow:
    0 10px 24px -10px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 0 14px -4px rgba(var(--acc-rgb), 0.4);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
  color: var(--fg);
  z-index: 3;
  animation: ntwChipFloat 6s ease-in-out infinite;
}
.ntw-chip .ntw-name {
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ntw-chip .ntw-bid {
  font-family: var(--f-mono);
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(var(--acc-rgb), 0.12);
  border-radius: 999px;
}
.ntw-chip.is-hot {
  border-color: rgba(var(--acc-rgb), 0.55);
  box-shadow:
    0 12px 30px -10px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 22px -2px rgba(var(--acc-rgb), 0.55);
}
.ntw-chip.is-hot .ntw-bid {
  background: linear-gradient(90deg, rgba(var(--acc-rgb), 0.22), rgba(192, 132, 252, 0.22));
  color: #fff;
}
.ntw-t1 { font-size: 12.5px; padding: 7px 12px; z-index: 5; }
.ntw-t2 { font-size: 11px; opacity: 0.95; }
.ntw-t3 { font-size: 10.5px; opacity: 0.82; padding: 5px 9px; }

@keyframes ntwChipFloat {
  0%, 100% { margin-top: 0; }
  50%      { margin-top: -4px; }
}

/* ═══ BEAMS from center to each chip ═══ */
.ntw-beam {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--r);
  height: 2px;
  transform-origin: 0 50%;
  transform: rotate(var(--a));
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.ntw-beam::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(var(--acc-rgb), 0) 0%,
    rgba(var(--acc-rgb), 0.5) 30%,
    rgba(var(--acc-rgb), 0.85) 100%);
  animation: ntwBeamPulse 3s ease-in-out infinite;
  filter: blur(0.5px);
}
.ntw-beam::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -20%;
  width: 40%;
  height: 6px;
  background: radial-gradient(ellipse at center, rgba(var(--acc-rgb), 0.9), transparent 70%);
  filter: blur(2px);
  animation: ntwBeamTravel 3s ease-in-out infinite;
}
@keyframes ntwBeamPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.9; }
}
@keyframes ntwBeamTravel {
  0%   { left: -20%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ═══ CORE (WeForAds engine) ═══ */
.ntw-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 140px; height: 140px;
  margin-top: -70px;
  margin-left: -70px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(var(--acc-rgb), 0.35) 0%, rgba(10, 18, 32, 0.9) 50%, rgba(10, 18, 32, 0.98) 100%);
  border: 1px solid rgba(var(--acc-rgb), 0.45);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 40px rgba(var(--acc-rgb), 0.4),
    0 0 80px rgba(var(--acc-rgb), 0.2),
    0 20px 50px -15px rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  animation: ntwCorePulse 4s ease-in-out infinite;
}
.ntw-core::before {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px solid rgba(var(--acc-rgb), 0.3);
  animation: ntwCoreRing 4s ease-out infinite;
}
.ntw-core::after {
  content: '';
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  border: 1px solid rgba(var(--acc-rgb), 0.18);
  animation: ntwCoreRing 4s ease-out infinite 1s;
}
@keyframes ntwCorePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
@keyframes ntwCoreRing {
  0%   { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.ntw-core img {
  width: 38px; height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(var(--acc-rgb), 0.7));
  margin-bottom: 6px;
}
.ntw-core-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.ntw-core-label span {
  font-size: 9.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

/* ═══ LIVE TICKER ═══ */
.ntw-ticker {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 30, 48, 0.95), rgba(10, 18, 32, 0.98));
  border: 1px solid rgba(var(--acc-rgb), 0.3);
  box-shadow:
    0 10px 30px -10px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 0 20px -4px rgba(var(--acc-rgb), 0.4);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  z-index: 11;
  white-space: nowrap;
}
.ntw-tick-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  padding: 3px 8px;
  background: rgba(220, 38, 38, 0.28);
  border: 1px solid rgba(220, 38, 38, 0.55);
  border-radius: 999px;
  letter-spacing: 0.12em;
}
.ntw-tick-label::before {
  content: '';
  width: 6px; height: 6px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.9);
  animation: ntwTickDot 1s ease-in-out infinite;
}
@keyframes ntwTickDot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.ntw-tick-val {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  background: linear-gradient(180deg, #fff, var(--acc));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.15s ease;
  letter-spacing: -0.02em;
  min-width: 50px;
}
.ntw-tick-meta {
  font-size: 10.5px;
  color: var(--fg-3);
  font-family: var(--f-mono);
  letter-spacing: 0.01em;
}

/* ═══ HIDE legacy globe classes (just in case stale) ═══ */
.ntw-section .globe-wrap,
.ntw-section .globe-brand,
.ntw-section .globe,
.ntw-section .globe-ring,
.ntw-section .globe-core,
.ntw-section .globe-node,
.ntw-section .globe-glow { display: none !important; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .ntw-wrap { max-width: 500px; }
  .ntw-core { width: 120px; height: 120px; margin-top: -60px; margin-left: -60px; }
  .ntw-chip { font-size: 10.5px; padding: 5px 9px; }
  .ntw-t1 { font-size: 11.5px; padding: 6px 10px; }
}
@media (max-width: 760px) {
  .ntw-wrap { max-width: 420px; }
  .ntw-core { width: 100px; height: 100px; margin-top: -50px; margin-left: -50px; }
  .ntw-core img { width: 30px; height: 30px; }
  .ntw-core-label { font-size: 10px; }
  .ntw-core-label span { font-size: 8.5px; }
  .ntw-chip { font-size: 9.5px; padding: 4px 7px; gap: 5px; }
  .ntw-t1 { font-size: 10px; padding: 5px 8px; }
  .ntw-chip .ntw-bid { font-size: 9px; padding: 2px 4px; }
  .ntw-ticker { font-size: 10px; padding: 6px 10px; gap: 6px; }
  .ntw-tick-val { font-size: 12px; }
}
