/* ============================================================
   SOLVEVARE SERVICE ATLAS — network.css
   Scoped to .na-* prefix. Uses existing design system tokens.
   ============================================================ */

/* ── HERO ── */
.na-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(7rem, 14vh, 10rem) clamp(1.5rem, 5vw, 4rem) clamp(5rem, 10vh, 7rem);
  background: var(--color-bg-dark);
  overflow: hidden;
}
.na-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 75% 30%, rgba(94,14,215,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(94,14,215,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.na-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to right, transparent 0%, black 30%, black 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.na-hero-copy { position: relative; z-index: 1; }

.na-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-purple);
  margin-bottom: 1.5rem;
}
.na-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-accent-purple);
  border-radius: 2px;
}

.na-h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin: 0 0 1.75rem;
}
.na-h1 span { display: block; }

.na-lede {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.na-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.na-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.na-meta-item strong {
  color: var(--color-text-primary);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.na-meta-sep { color: rgba(255,255,255,0.12); font-size: 0.7rem; }

/* ── NETWORK ORB ── */
.na-orb-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.na-orb {
  position: relative;
  width: 380px;
  height: 380px;
  transition: transform 0.6s var(--ease-premium);
  /* preserve-3d removed — causes subpixel blur on child elements */
  will-change: transform;
}
.na-orb-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(94,14,215,0.2);
  border: 1px solid rgba(94,14,215,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-align: center;
  line-height: 1.4;
  z-index: 10;
  box-shadow: 0 0 30px rgba(94,14,215,0.25), inset 0 0 20px rgba(94,14,215,0.1);
}
.na-orb-core::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(94,14,215,0.2);
  animation: orb-pulse 3s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 0.2; }
}
.na-orb-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(94,14,215,0.15);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.na-orb-ring-1 { width: 160px; height: 160px; border-color: rgba(94,14,215,0.25); }
.na-orb-ring-2 { width: 260px; height: 260px; border-color: rgba(94,14,215,0.15); }
.na-orb-ring-3 { width: 360px; height: 360px; border-color: rgba(94,14,215,0.08); }

.na-orb-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-premium);
}
.na-orb-node:hover { transform: translateY(-4px) !important; }
.na-orb-node-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 0 6px rgba(255,255,255,0.15);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.na-orb-node:hover .na-orb-node-dot,
.na-orb-node.is-active .na-orb-node-dot {
  background: var(--color-accent-purple);
  border-color: var(--color-accent-purple);
  box-shadow: 0 0 12px rgba(94,14,215,0.6);
}
.na-orb-node-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  transition: color 0.25s;
}
.na-orb-node:hover .na-orb-node-label,
.na-orb-node.is-active .na-orb-node-label { color: var(--color-text-primary); }

.na-orb-line {
  position: absolute;
  top: 50%; left: 50%;
  height: 1px;
  background: linear-gradient(to right, rgba(94,14,215,0.5), transparent);
  transform-origin: left center;
  pointer-events: none;
  opacity: 0.35;
}

/* ── ORB SPINNER — anticlockwise continuous rotation ── */
.na-orb-spinner {
  position: absolute;
  inset: 0;
  /* Rotate anticlockwise: from 0deg to -360deg */
  animation: orb-spin 42s linear infinite;
  transform-origin: center center;
}
@keyframes orb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
/* Counter-rotate labels so text stays upright while the orb spins */
.na-orb-label-upright {
  animation: orb-spin-reverse 42s linear infinite;
  transform-origin: center center;
}
@keyframes orb-spin-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── STEPS BAR ── */
.na-steps-bar {
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: var(--color-bg-dark-secondary);
  overflow-x: auto;
}
.na-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  min-width: 0;
}
.na-step-arrow {
  color: rgba(255,255,255,0.15);
  font-size: 0.75rem;
  padding: 0 0.25rem;
  flex-shrink: 0;
  align-self: center;
}
.na-step-num {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.na-step.is-active .na-step-num { color: var(--color-accent-purple); }
.na-step-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.na-step.is-active .na-step-label { color: var(--color-text-primary); }
.na-step-val {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

/* ── EXPLORER SECTION ── */
.na-explorer {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: clamp(4rem, 8vh, 6rem) clamp(1.5rem, 5vw, 4rem);
}
.na-explorer-header { margin-bottom: 2rem; }
.na-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.na-section-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
}
.na-explorer-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  line-height: 1;
}

/* ── EXPLORER GRID ── */
.na-explorer-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ── STATE PANEL ── */
.na-state-panel {
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 90px;
  align-self: start;
}
.na-search-wrap {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-bg-dark-secondary);
  position: sticky;
  top: 0;
  z-index: 2;
}
.na-search-icon { color: var(--color-text-muted); flex-shrink: 0; }
.na-search {
  background: none;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  width: 100%;
  letter-spacing: 0.02em;
}
.na-search::placeholder { color: var(--color-text-muted); }
.na-search:focus { outline: none; }

.na-state-list {
  flex: 1;
  overflow-y: auto;
}
.na-state-list::-webkit-scrollbar { width: 3px; }
.na-state-list::-webkit-scrollbar-track { background: transparent; }
.na-state-list::-webkit-scrollbar-thumb { background: rgba(94,14,215,0.3); border-radius: 2px; }

.na-state-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--color-text-secondary);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
  gap: 0.5rem;
}
.na-state-btn:hover { background: rgba(255,255,255,0.03); color: var(--color-text-primary); }
.na-state-btn.is-active {
  background: rgba(94,14,215,0.1);
  color: var(--color-text-primary);
  border-left: 2px solid var(--color-accent-purple);
}
.na-state-btn:focus-visible {
  outline: 2px solid var(--color-accent-purple);
  outline-offset: -2px;
}
.na-state-btn-num {
  font-size: 0.58rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.na-state-btn-name { flex: 1; }
.na-state-btn-abbr {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  flex-shrink: 0;
}
.na-state-btn.is-active .na-state-btn-abbr {
  background: rgba(94,14,215,0.2);
  color: rgba(255,255,255,0.7);
}
.na-state-empty {
  padding: 2rem 1.25rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ── DETAIL PANEL ── */
.na-detail-panel {
  display: flex;
  flex-direction: column;
}
.na-detail-header {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: var(--color-bg-dark-secondary);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}
.na-detail-index {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.na-detail-state-name {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.na-detail-copy {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 480px;
}
.na-detail-abbr {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  align-self: center;
  user-select: none;
}
.na-detail-metrics {
  display: flex;
  gap: 2rem;
  padding: 0.9rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: var(--color-bg-dark);
}
.na-detail-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.na-detail-metric strong {
  color: var(--color-text-primary);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.na-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #52d98b;
  box-shadow: 0 0 8px #52d98b;
  flex-shrink: 0;
}

/* ── INDUSTRY SELECTOR ── */
.na-industry-wrap {
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.na-industry-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}
.na-industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.na-industry-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--color-text-secondary);
  font-family: var(--font-primary);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.na-industry-btn:hover {
  border-color: rgba(94,14,215,0.4);
  color: var(--color-text-primary);
}
.na-industry-btn.is-active {
  border-color: var(--color-accent-purple);
  background: rgba(94,14,215,0.12);
  color: var(--color-text-primary);
}
.na-industry-btn:focus-visible {
  outline: 2px solid var(--color-accent-purple);
  outline-offset: 2px;
}

/* ── SERVICE GRID ── */
.na-service-wrap {
  padding: 1.25rem 2.5rem 2rem;
  flex: 1;
}
.na-service-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.na-service-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.na-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.na-service-card {
  background: var(--color-bg-dark);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.25s;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.na-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--color-accent-purple);
  transition: height 0.3s var(--ease-premium);
}
.na-service-card:hover { background: var(--color-bg-dark-secondary); }
.na-service-card:hover::before { height: 100%; }
.na-service-card:focus-visible {
  outline: 2px solid var(--color-accent-purple);
  outline-offset: -2px;
}
.na-service-num {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}
.na-service-name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  line-height: 1.3;
}
.na-service-desc {
  font-size: 0.73rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
}
.na-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-purple);
  margin-top: 0.25rem;
  transition: gap 0.2s;
}
.na-service-card:hover .na-service-cta { gap: 0.65rem; }
.na-service-empty {
  grid-column: 1 / -1;
  padding: 2.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-bg-dark);
}

/* ── CTA SECTION ── */
.na-cta-section {
  background: var(--color-bg-dark-secondary);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.na-cta-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  line-height: 0.95;
  margin: 0.75rem 0 1.25rem;
}
.na-cta-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}
.na-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .na-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 8rem; }
  .na-orb-wrap { min-height: 300px; }
  .na-orb { width: 280px; height: 280px; }
  .na-orb-ring-3 { width: 270px; height: 270px; }
  .na-explorer-grid { grid-template-columns: 1fr; }
  .na-state-panel { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .na-state-list { max-height: 220px; display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .na-steps-bar { flex-direction: column; }
  .na-step-arrow { display: none; }
  .na-step { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .na-detail-header { grid-template-columns: 1fr; }
  .na-detail-abbr { display: none; }
  .na-service-grid { grid-template-columns: 1fr; }
  .na-detail-header, .na-industry-wrap, .na-service-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  .na-detail-metrics { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (max-width: 480px) {
  .na-hero { padding-top: 6rem; }
  .na-orb-wrap { display: none; }
  .na-state-list { grid-template-columns: 1fr; }
  .na-detail-metrics { flex-direction: column; gap: 0.75rem; }
  .na-industry-list { gap: 0.35rem; }
  .na-cta-actions { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .na-orb-core::after { animation: none; }
  .na-orb-spinner { animation: none; }
  .na-orb-label-upright { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
