/* ==========================================================================
   Networking Page — Content section styles (loaded only on /networking)
   ========================================================================== */

/* ── Anchor Offset ── */
.net-section[id],
.net-intel-banner[id],
.sticky-tab-section[id] {
  scroll-margin-top: var(--nav-height, 72px);
}

/* ── Moss green (dark) / baby blue (light) alternating backgrounds ── */
html:not([data-theme="light"]) .sticky-tab-section#problem,
html:not([data-theme="light"]) .sticky-tab-section#architecture,
html:not([data-theme="light"]) .sticky-tab-section#sdn {
  background: #1B2F2B;
}


/* ── Shared Section Base ── */
.net-section {
  padding: 80px 3rem 60px;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg-primary);
  transition: var(--theme-transition);
}

/* ── Prose Block ── */
.net-prose {
  max-width: 800px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.net-prose p + p {
  margin-top: 1.5em;
}

/* ── Section Header ── */
.net-section-header {
  margin-bottom: 48px;
}

.net-section-header .eyebrow {
  margin-bottom: 16px;
}

.net-section-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.net-section-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 700px;
}

/* ==========================================================================
   S3 — CAPABILITY CARDS (6-card grid)
   ========================================================================== */
.net-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.net-cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.net-cap-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.net-cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-orange);
}

.net-cap-icon i,
.net-cap-icon svg {
  width: 22px;
  height: 22px;
}

.net-cap-title {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.net-cap-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   S4 — ARCHITECTURE DIAGRAM
   ========================================================================== */

/* ── Spacing: breathe above graphic ── */
.sticky-tab-section#architecture .net-section-desc {
  margin-bottom: 3.5rem;
}

/* ── 3D Isometric Perspective ── */
.net-arch-wrapper {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.net-arch-stack {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Layer Base: Glassmorphism + Fallback ── */
.net-arch-layer {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  margin-bottom: 4px;
  border-radius: 8px;
  position: relative;
  background: rgba(0, 32, 40, 0.75);
  border: 1px solid rgba(120, 175, 46, 0.15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(16px) translateZ(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform, opacity;
}

@supports (backdrop-filter: blur(1px)) {
  .net-arch-layer {
    background: rgba(0, 32, 40, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.net-arch-layer.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.net-arch-label {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-orange);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.net-arch-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.net-arch-desc strong {
  color: var(--text-bright);
}

/* ── Hierarchical Color Coding (by data-tier) ── */

/* Upper tiers: translucent, blue-shifted */
.net-arch-layer[data-tier="app"] {
  background: rgba(2, 70, 140, 0.3);
  border-color: rgba(2, 94, 196, 0.2);
}
.net-arch-layer[data-tier="app"] .net-arch-label {
  color: var(--accent-green);
}

@supports (backdrop-filter: blur(1px)) {
  .net-arch-layer[data-tier="app"] {
    background: rgba(2, 70, 140, 0.22);
  }
}

/* Mid tiers: transitional */
.net-arch-layer[data-tier="session"] {
  background: rgba(20, 60, 80, 0.45);
  border-color: rgba(60, 134, 110, 0.2);
}
.net-arch-layer[data-tier="session"] .net-arch-label,
.net-arch-layer[data-tier="transport"] .net-arch-label {
  color: #4A9A6A;
}
.net-arch-layer[data-tier="transport"] {
  background: rgba(20, 60, 60, 0.5);
  border-color: rgba(60, 134, 110, 0.22);
}

@supports (backdrop-filter: blur(1px)) {
  .net-arch-layer[data-tier="session"] {
    background: rgba(20, 60, 80, 0.35);
  }
  .net-arch-layer[data-tier="transport"] {
    background: rgba(20, 60, 60, 0.4);
  }
}

/* Lower tiers: denser, green-shifted */
.net-arch-layer[data-tier="network"] {
  background: rgba(10, 50, 40, 0.55);
  border-color: rgba(120, 175, 46, 0.18);
}
.net-arch-layer[data-tier="link"] {
  background: rgba(10, 48, 36, 0.6);
  border-color: rgba(120, 175, 46, 0.2);
}

@supports (backdrop-filter: blur(1px)) {
  .net-arch-layer[data-tier="network"] {
    background: rgba(10, 50, 40, 0.42);
  }
  .net-arch-layer[data-tier="link"] {
    background: rgba(10, 48, 36, 0.48);
  }
}

/* Bypass: dense green, metallic */
.net-arch-bypass {
  background: rgba(30, 60, 20, 0.7);
  border-color: rgba(120, 175, 46, 0.4);
  box-shadow:
    0 1px 0 rgba(120, 175, 46, 0.08) inset,
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 0 12px rgba(120, 175, 46, 0.06);
}

@supports (backdrop-filter: blur(1px)) {
  .net-arch-bypass {
    background: rgba(30, 60, 20, 0.55);
  }
}

/* HW: most opaque, darkest foundation */
.net-arch-hw {
  background: rgba(10, 48, 64, 0.85);
  border-color: rgba(120, 175, 46, 0.45);
  box-shadow:
    0 1px 0 rgba(120, 175, 46, 0.1) inset,
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 0 16px rgba(120, 175, 46, 0.08);
}

@supports (backdrop-filter: blur(1px)) {
  .net-arch-hw {
    background: rgba(10, 48, 64, 0.7);
  }
}

/* ── Hover Interactions (pointer-capable only) ── */
@media (hover: hover) and (pointer: fine) {
  .net-arch-layer.visible:hover {
    transform: translateY(0) translateZ(6px) scale(1.01);
    border-color: rgba(120, 175, 46, 0.4);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(120, 175, 46, 0.12);
    z-index: 5;
  }

  .net-arch-layer.visible:hover .net-arch-label {
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(120, 175, 46, 0.5);
  }

  .net-arch-layer.visible:hover .net-arch-desc {
    color: var(--text-primary);
  }

  .net-arch-layer.visible:hover .net-arch-desc strong {
    color: #FFFFFF;
  }

  /* Bypass/HW: intensified glow */
  .net-arch-bypass.visible:hover {
    border-color: rgba(120, 175, 46, 0.6);
    box-shadow:
      0 1px 0 rgba(120, 175, 46, 0.12) inset,
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 0 24px rgba(120, 175, 46, 0.2);
  }

  .net-arch-hw.visible:hover {
    border-color: rgba(120, 175, 46, 0.7);
    box-shadow:
      0 1px 0 rgba(120, 175, 46, 0.15) inset,
      0 8px 32px rgba(0, 0, 0, 0.35),
      0 0 30px rgba(120, 175, 46, 0.25);
  }
}

/* ── Data Flow Pulse Animation ── */
.net-arch-stack::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(120, 175, 46, 0.15);
  border-radius: 1px;
  z-index: 10;
}

.net-arch-stack::after {
  content: '';
  position: absolute;
  left: -1px;
  width: 4px;
  height: 60px;
  border-radius: 2px;
  background: linear-gradient(to top,
    transparent,
    rgba(120, 175, 46, 0.3) 20%,
    rgba(120, 175, 46, 0.9) 50%,
    rgba(120, 175, 46, 0.3) 80%,
    transparent);
  box-shadow: 0 0 8px rgba(120, 175, 46, 0.6), 0 0 20px rgba(120, 175, 46, 0.3);
  z-index: 11;
  opacity: 0;
}

.net-arch-wrapper.pulse-active .net-arch-stack::after {
  animation: archDataPulse 3s ease-in-out infinite;
}

@keyframes archDataPulse {
  0%   { bottom: 0; opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { bottom: calc(100% - 60px); opacity: 0; }
}

/* ── SVG Monitoring Bracket ── */
.net-arch-monitor-bracket {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  height: 70%;
  width: 40px;
  align-items: center;
  color: var(--accent-orange);
}

@media (min-width: 1200px) {
  .net-arch-wrapper {
    padding-right: 72px;          /* space for bracket + label inside wrapper */
  }

  .net-arch-monitor-bracket {
    display: flex;
    right: 8px;
  }
}

.monitor-bracket-svg {
  width: 40px;
  height: 100%;
}

.monitor-bracket-path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  opacity: 0.6;
  filter: drop-shadow(0 0 2px currentColor);
  transition: stroke-dashoffset 1.2s ease-out;
}

.net-arch-wrapper.pulse-active .monitor-bracket-path {
  stroke-dashoffset: 0;
  animation: monitorBracketPulse 4s ease-in-out 1.2s infinite;
}

@keyframes monitorBracketPulse {
  0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 2px currentColor); }
  50%      { opacity: 0.9; filter: drop-shadow(0 0 6px currentColor); }
}

.monitor-bracket-dot {
  opacity: 0;
  transition: opacity 0.6s ease 1s;
}

.net-arch-wrapper.pulse-active .monitor-bracket-dot {
  opacity: 1;
  animation: monitorDotPulse 2s ease-in-out 1.4s infinite;
}

@keyframes monitorDotPulse {
  0%, 100% { r: 3; opacity: 0.7; filter: drop-shadow(0 0 2px currentColor); }
  50%      { r: 5; opacity: 1; filter: drop-shadow(0 0 8px currentColor); }
}

.monitor-bracket-label {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-orange);
  opacity: 0.7;
  white-space: nowrap;
}

/* ── Light Theme Overrides ── */
[data-theme="light"] .net-arch-layer {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(2, 94, 196, 0.15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

@supports (backdrop-filter: blur(1px)) {
  [data-theme="light"] .net-arch-layer {
    background: rgba(255, 255, 255, 0.45);
  }
}

@supports not (backdrop-filter: blur(1px)) {
  [data-theme="light"] .net-arch-layer {
    background: rgba(255, 255, 255, 0.8);
  }
}

/* Light: tier hierarchy */
[data-theme="light"] .net-arch-layer[data-tier="app"] {
  background: rgba(220, 235, 250, 0.6);
  border-color: rgba(2, 94, 196, 0.15);
}
[data-theme="light"] .net-arch-layer[data-tier="app"] .net-arch-label {
  color: #025EC4;
}

[data-theme="light"] .net-arch-layer[data-tier="session"] {
  background: rgba(210, 230, 245, 0.65);
  border-color: rgba(2, 94, 196, 0.18);
}
[data-theme="light"] .net-arch-layer[data-tier="session"] .net-arch-label,
[data-theme="light"] .net-arch-layer[data-tier="transport"] .net-arch-label {
  color: #1A6F8A;
}
[data-theme="light"] .net-arch-layer[data-tier="transport"] {
  background: rgba(200, 225, 240, 0.7);
  border-color: rgba(2, 94, 196, 0.2);
}

[data-theme="light"] .net-arch-layer[data-tier="network"] {
  background: rgba(195, 220, 238, 0.72);
  border-color: rgba(2, 94, 196, 0.22);
}
[data-theme="light"] .net-arch-layer[data-tier="link"] {
  background: rgba(190, 215, 236, 0.75);
  border-color: rgba(2, 94, 196, 0.25);
}

[data-theme="light"] .net-arch-bypass {
  background: rgba(180, 210, 235, 0.8);
  border-color: rgba(2, 94, 196, 0.35);
  box-shadow:
    0 1px 0 rgba(2, 94, 196, 0.06) inset,
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 0 12px rgba(2, 94, 196, 0.04);
}

[data-theme="light"] .net-arch-hw {
  background: rgba(170, 205, 232, 0.85);
  border-color: rgba(2, 94, 196, 0.4);
  box-shadow:
    0 1px 0 rgba(2, 94, 196, 0.08) inset,
    0 6px 20px rgba(0, 0, 0, 0.08),
    0 0 16px rgba(2, 94, 196, 0.06);
}

/* Light: hover */
@media (hover: hover) and (pointer: fine) {
  [data-theme="light"] .net-arch-layer.visible:hover {
    border-color: rgba(2, 94, 196, 0.4);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 8px 32px rgba(0, 0, 0, 0.1),
      0 0 20px rgba(2, 94, 196, 0.1);
  }

  [data-theme="light"] .net-arch-layer.visible:hover .net-arch-label {
    color: #025EC4;
    text-shadow: 0 0 8px rgba(2, 94, 196, 0.3);
  }

  [data-theme="light"] .net-arch-layer.visible:hover .net-arch-desc,
  [data-theme="light"] .net-arch-layer.visible:hover .net-arch-desc strong {
    color: #1a1a1a;
  }

  [data-theme="light"] .net-arch-bypass.visible:hover {
    border-color: rgba(2, 94, 196, 0.5);
    box-shadow:
      0 1px 0 rgba(2, 94, 196, 0.1) inset,
      0 8px 32px rgba(0, 0, 0, 0.1),
      0 0 24px rgba(2, 94, 196, 0.15);
  }

  [data-theme="light"] .net-arch-hw.visible:hover {
    border-color: rgba(2, 94, 196, 0.6);
    box-shadow:
      0 1px 0 rgba(2, 94, 196, 0.12) inset,
      0 8px 32px rgba(0, 0, 0, 0.12),
      0 0 30px rgba(2, 94, 196, 0.2);
  }
}

/* Light: pulse — blue gradient */
[data-theme="light"] .net-arch-stack::before {
  background: rgba(2, 94, 196, 0.15);
}

[data-theme="light"] .net-arch-stack::after {
  background: linear-gradient(to top,
    transparent,
    rgba(2, 94, 196, 0.3) 20%,
    rgba(2, 94, 196, 0.9) 50%,
    rgba(2, 94, 196, 0.3) 80%,
    transparent);
  box-shadow: 0 0 8px rgba(2, 94, 196, 0.6), 0 0 20px rgba(2, 94, 196, 0.3);
}

/* ==========================================================================
   S5 — BENCHMARKS
   ========================================================================== */

/* ── Bench Tokens (Dark) ── */
:root {
  --bench-glass-bg: rgba(0, 32, 40, 0.6);
  --bench-glass-bg-blur: rgba(0, 32, 40, 0.4);
  --bench-border: rgba(120, 175, 46, 0.15);
  --bench-border-accent: rgba(120, 175, 46, 0.8);
  --bench-grid: rgba(120, 175, 46, 0.08);
  --bench-hover-edge: rgba(120, 175, 46, 0.6);
  --bench-hover-bg: rgba(120, 175, 46, 0.06);
  --bench-glow: rgba(120, 175, 46, 0.3);
  --bench-glow-strong: rgba(120, 175, 46, 0.6);
  --bench-thead-bg: rgba(120, 175, 46, 0.08);
  --bench-row-even: rgba(255, 255, 255, 0.02);
  --bench-tooltip-bg: rgba(0, 24, 30, 0.85);
  --bench-tooltip-border: rgba(120, 175, 46, 0.5);
  --bench-stat-color: #78AF2E;
  --bench-bracket-color: rgba(120, 175, 46, 0.6);
}

[data-theme="light"] {
  --bench-glass-bg: rgba(255, 255, 255, 0.6);
  --bench-glass-bg-blur: rgba(255, 255, 255, 0.4);
  --bench-border: rgba(2, 94, 196, 0.15);
  --bench-border-accent: rgba(2, 94, 196, 0.8);
  --bench-grid: rgba(2, 94, 196, 0.08);
  --bench-hover-edge: rgba(2, 94, 196, 0.5);
  --bench-hover-bg: rgba(2, 94, 196, 0.05);
  --bench-glow: rgba(2, 94, 196, 0.3);
  --bench-glow-strong: rgba(2, 94, 196, 0.5);
  --bench-thead-bg: rgba(2, 94, 196, 0.06);
  --bench-row-even: rgba(0, 0, 0, 0.02);
  --bench-tooltip-bg: rgba(240, 245, 242, 0.92);
  --bench-tooltip-border: rgba(2, 94, 196, 0.5);
  --bench-stat-color: #025EC4;
  --bench-bracket-color: rgba(2, 94, 196, 0.5);
}

.net-bench {
  background: var(--bg-secondary);
  padding: 80px 3rem 60px;
  transition: var(--theme-transition);
  scroll-margin-top: var(--nav-height, 72px);
}

.net-bench-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.net-bench-sub {
  margin-bottom: 3rem;
}

.net-bench-sub h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.net-bench-sub > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

/* Test environment summary — glassmorphism */
.net-bench-env {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  background: var(--bench-glass-bg);
  border: 1px solid var(--bench-border);
  border-radius: 12px;
  margin-bottom: 2rem;
  font-size: 13px;
  color: var(--text-secondary);
}

@supports (backdrop-filter: blur(1px)) {
  .net-bench-env {
    background: var(--bench-glass-bg-blur);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.net-bench-env dt {
  font-weight: 700;
  color: var(--text-bright);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.net-bench-env dd {
  margin: 0 0 12px;
}

/* Chart wrapper — glassmorphism */
.net-chart-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 16px;
  background: var(--bench-glass-bg);
  border: 1px solid var(--bench-border);
  border-radius: 12px;
}

@supports (backdrop-filter: blur(1px)) {
  .net-chart-wrap {
    background: var(--bench-glass-bg-blur);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

.net-chart-wrap canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Accessible fallback table (hidden by default) */
.net-chart-fallback {
  display: none;
}

.net-chart-fallback.active {
  display: block;
}

/* Callout stat — radial glow */
.net-bench-callout {
  padding: 20px;
  border-left: 4px solid var(--bench-border-accent);
  background: radial-gradient(ellipse at 20% 50%, var(--bench-glow) 0%, transparent 60%), var(--bench-glass-bg);
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}

@supports (backdrop-filter: blur(1px)) {
  .net-bench-callout {
    background: radial-gradient(ellipse at 20% 50%, var(--bench-glow) 0%, transparent 60%), var(--bench-glass-bg-blur);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.net-bench-callout-stat {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  font-family: 'Geist Mono', monospace;
  font-variant-numeric: tabular-nums;
  color: #78AF2E;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(120, 175, 46, 0.4);
  animation: statGlowPulse 4s ease-in-out 1 forwards;
}

[data-theme="light"] .net-bench-callout-stat {
  color: #025EC4;
  text-shadow: 0 0 20px rgba(2, 94, 196, 0.4);
  animation-name: statGlowPulseLight;
}

@keyframes statGlowPulse {
  0%   { text-shadow: 0 0 20px rgba(120, 175, 46, 0.4); }
  50%  { text-shadow: 0 0 30px rgba(120, 175, 46, 0.65), 0 0 60px rgba(120, 175, 46, 0.2); }
  100% { text-shadow: 0 0 20px rgba(120, 175, 46, 0.4); }
}

@keyframes statGlowPulseLight {
  0%   { text-shadow: 0 0 20px rgba(2, 94, 196, 0.4); }
  50%  { text-shadow: 0 0 30px rgba(2, 94, 196, 0.65), 0 0 60px rgba(2, 94, 196, 0.2); }
  100% { text-shadow: 0 0 20px rgba(2, 94, 196, 0.4); }
}

.net-bench-callout-context {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Data tables — translucent data grids */
.net-bench-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--bench-border);
  background: var(--bench-glass-bg);
}

@supports (backdrop-filter: blur(1px)) {
  .net-bench-table-wrap {
    background: var(--bench-glass-bg-blur);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.net-bench-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.net-bench-table thead {
  background: var(--bench-thead-bg);
}

.net-bench-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--bench-border);
}

.net-bench-table td {
  font-size: 14px;
  color: var(--text-primary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--bench-grid);
  transition: background-color 0.2s ease;
}

.net-bench-table tbody tr:nth-child(even) {
  background: var(--bench-row-even);
}

@media (hover: hover) and (pointer: fine) {
  .net-bench-table tbody tr:hover td {
    background: var(--bench-hover-bg);
    box-shadow: inset 3px 0 0 var(--bench-hover-edge);
  }
}

.net-bench-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 8px;
}

/* Numeric cells — monospace right-aligned */
.net-bench-mono {
  font-family: 'Geist Mono', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-align: right;
}

/* Insight callout — HUD corner brackets */
.net-bench-insight {
  background: var(--bench-glass-bg);
  border: 1px solid var(--bench-border);
  border-left: none;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 1.5rem 0;
  position: relative;
}

@supports (backdrop-filter: blur(1px)) {
  .net-bench-insight {
    background: var(--bench-glass-bg-blur);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.net-bench-insight::before,
.net-bench-insight::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--bench-bracket-color);
  border-style: solid;
}

.net-bench-insight::before {
  top: -1px;
  left: 0;
  border-width: 2px 0 0 2px;
}

.net-bench-insight::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

/* HUD Tooltip */
.bench-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.15s ease;
  background: var(--bench-tooltip-bg);
  border: 1px solid var(--bench-tooltip-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--text-bright);
  box-shadow: 0 0 16px var(--bench-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 220px;
}

@supports (backdrop-filter: blur(1px)) {
  .bench-tooltip {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.bench-tooltip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.bench-tooltip-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--bench-stat-color);
}

/* Disclaimer */
.net-bench-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2rem;
  line-height: 1.5;
}

/* Download CTA */
.net-bench-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  margin-top: 1.5rem;
}

.net-bench-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(120, 175, 46, 0.3);
}

[data-theme="light"] .net-bench-download:hover {
  box-shadow: 0 8px 24px rgba(2, 94, 196, 0.3);
}

/* ==========================================================================
   S6 — FEATURE CARDS (Feature73 layout: hero + sub-grid)
   ========================================================================== */

/* ── Grid Container ── */
.net-feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

/* ── Hero Card — asymmetric split (1.2fr image / 1fr text) ── */
.net-feature-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .net-feature-hero:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  }
}

/* ── Sub-Cards Grid ── */
.net-feature-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Sub-Card ── */
.net-feature-card {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .net-feature-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  }
}

/* ── Image Container ── */
.net-feature-img {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.net-feature-img picture,
.net-cap-card-img picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.net-feature-img img {
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero image */
.net-feature-hero .net-feature-img img {
  height: 290px;
  width: auto;
  max-width: 100%;
}

/* Sub-card images */
.net-feature-card .net-feature-img img {
  height: 232px;
  width: auto;
  max-width: 100%;
}

/* ── Image Hover Zoom ── */
@media (hover: hover) and (pointer: fine) {
  .net-feature-hero:hover .net-feature-img img,
  .net-feature-card:hover .net-feature-img img {
    transform: scale(1.05);
  }
}

/* ── Body / Text Area ── */
.net-feature-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.net-feature-body h3 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Hero heading — larger for typographic authority */
.net-feature-hero .net-feature-body h3 {
  font-size: clamp(20px, 2.5vw, 28px);
}

.net-feature-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   S7 — SECURITY CARD IMAGES
   ========================================================================== */

/* When a card has an image, remove top padding and let image fill to edges */
.net-cap-card:has(.net-cap-card-img) {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

.net-cap-card-img {
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.net-cap-card-img img {
  height: 319px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image zoom on hover */
@media (hover: hover) and (pointer: fine) {
  .net-cap-card:hover .net-cap-card-img img {
    transform: scale(1.05);
  }
}

/* Content below image gets horizontal padding to match original card feel */
.net-cap-card:has(.net-cap-card-img) .net-cap-icon,
.net-cap-card:has(.net-cap-card-img) .net-cap-title,
.net-cap-card:has(.net-cap-card-img) .net-cap-desc {
  padding-left: 24px;
  padding-right: 24px;
}

.net-cap-card:has(.net-cap-card-img) .net-cap-desc {
  padding-bottom: 24px;
}

/* ==========================================================================
   S6–S9 — CARD GRIDS (reuse .net-cap-card base)
   ========================================================================== */

/* Security: 3 cols */
.net-security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Use cases: 4 cols */
.net-use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Use Case Icons — Glassmorphic Containers ── */
.net-use-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: rgba(120, 175, 46, 0.06);
  border: 1px solid rgba(120, 175, 46, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-orange);
  transition: border-color 0.3s ease, box-shadow 0.4s ease, background 0.3s ease;
}

@supports (backdrop-filter: blur(1px)) {
  .net-use-icon {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.net-use-icon i,
.net-use-icon svg {
  width: 28px;
  height: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .net-cap-card:hover .net-use-icon {
    border-color: rgba(120, 175, 46, 0.4);
    background: rgba(120, 175, 46, 0.1);
    box-shadow:
      0 0 20px rgba(120, 175, 46, 0.15),
      0 0 40px rgba(120, 175, 46, 0.08);
  }
}

[data-theme="light"] .net-use-icon {
  background: rgba(2, 94, 196, 0.05);
  border-color: rgba(2, 94, 196, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  [data-theme="light"] .net-cap-card:hover .net-use-icon {
    border-color: rgba(2, 94, 196, 0.4);
    background: rgba(2, 94, 196, 0.08);
    box-shadow:
      0 0 20px rgba(2, 94, 196, 0.12),
      0 0 40px rgba(2, 94, 196, 0.06);
  }
}


.net-use-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  margin-top: 12px;
  transition: text-decoration 0.2s ease;
}

.net-use-link:hover {
  text-decoration: underline;
}

/* Integration: 3 cols */
.net-integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.net-path-number {
  font-family: 'Geist Mono', monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-orange);
  margin-bottom: 12px;
  line-height: 1;
}

/* ==========================================================================
   S10 — INTEL PARTNERSHIP BANNER
   ========================================================================== */
.net-intel-banner {
  background: var(--bg-secondary);
  padding: 60px 3rem;
  border-top: 3px solid var(--accent-orange);
  transition: var(--theme-transition);
}

.net-intel-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.net-intel-badge {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-orange);
  background: rgba(120, 175, 46, 0.12);
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

[data-theme="light"] .net-intel-badge {
  background: rgba(2, 94, 196, 0.1);
}

.net-intel-headline {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 12px;
  line-height: 1.2;
}

.net-intel-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 700px;
}

.net-intel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.net-intel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.net-intel-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   S11 — SUSTAINABILITY TEASER
   ========================================================================== */
.net-teaser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.net-teaser .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 16px;
}

.net-teaser-headline {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.net-teaser-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
}

.net-teaser-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.net-teaser-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   NETWORKING — STICKY TAB OVERRIDES
   ========================================================================== */

/* Inner container for sticky-tab-content — mirrors .sticky-tab-header-inner / .dc-field-container */
.net-content-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

/* Description paragraphs — capped width, left-aligned within container */
.sticky-tab-content .net-section-desc {
  max-width: 700px;
  margin-bottom: 2rem;   /* overridden to 3.5rem for #architecture via scoped rule */
}

/* Benchmarks section — keep bench-inner styling intact */
.sticky-tab-section#benchmarks {
  background: var(--bg-secondary);
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .net-arch-wrapper {
    perspective: none;
  }

  .net-arch-stack {
    transform: none;
    transform-style: flat;
  }

  .net-arch-layer {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .net-arch-layer.visible:hover {
    transform: none;
  }

  .net-arch-stack::after {
    display: none;
  }

  .monitor-bracket-path {
    stroke-dashoffset: 0;
    opacity: 0.6;
    animation: none !important;
  }

  .monitor-bracket-dot {
    opacity: 0.6;
    animation: none !important;
  }

  .net-cap-card {
    transition: none;
  }

  .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .net-bench-callout-stat {
    animation: none;
  }

  .net-bench-table tbody tr {
    transition: none;
  }

  .net-bench-table td {
    transition: none;
  }

  .net-feature-card,
  .net-feature-hero {
    transition: none;
  }

  .net-feature-img img,
  .net-cap-card-img img {
    transition: none;
  }

}

/* ==========================================================================
   HIGH CONTRAST MODE
   ========================================================================== */
@media (prefers-contrast: more) {
  .net-bench-table-wrap,
  .net-bench-env,
  .net-chart-wrap,
  .net-bench-callout,
  .net-bench-insight {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-width: 2px;
  }

  .net-bench-table-wrap {
    background: var(--bg-card);
  }

  .net-bench-table th {
    border-bottom-width: 2px;
  }

  .net-bench-table td {
    border-bottom-width: 1px;
    border-bottom-color: var(--border);
  }

  .net-bench-insight::before,
  .net-bench-insight::after {
    border-width: 3px;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .net-section {
    padding: 60px 2rem 48px;
  }

  .net-capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .net-use-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Feature73: hero stacks vertically on tablet */
  .net-feature-hero {
    grid-template-columns: 1fr;
  }

  .net-feature-hero .net-feature-img img {
    height: 170px;
  }

}

@media (max-width: 767px) {
  .net-section {
    padding: 48px 1.25rem 36px;
  }

  .net-capabilities-grid,
  .net-security-grid,
  .net-use-grid,
  .net-integration-grid {
    grid-template-columns: 1fr;
  }

  /* Feature73: sub-grid stacks single column on mobile */
  .net-feature-sub-grid {
    grid-template-columns: 1fr;
  }

  .net-feature-body {
    padding: 20px;
  }

  .net-feature-card .net-feature-img img {
    height: 130px;
  }

  /* S7 image cards: tighter padding on mobile */
  .net-cap-card:has(.net-cap-card-img) .net-cap-icon,
  .net-cap-card:has(.net-cap-card-img) .net-cap-title,
  .net-cap-card:has(.net-cap-card-img) .net-cap-desc {
    padding-left: 20px;
    padding-right: 20px;
  }

  .net-cap-card:has(.net-cap-card-img) .net-cap-desc {
    padding-bottom: 20px;
  }

  /* Flatten 3D on mobile */
  .net-arch-wrapper {
    perspective: none;
  }

  .net-arch-stack {
    transform: none;
    transform-style: flat;
  }

  .net-arch-layer {
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding: 10px 14px;
  }

  @supports (backdrop-filter: blur(1px)) {
    .net-arch-layer {
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }
  }

  /* No hover Z-lift on mobile */
  .net-arch-layer.visible:hover {
    transform: none;
  }

  /* Hide data flow pulse on mobile */
  .net-arch-stack::after {
    display: none;
  }

  .net-bench-env {
    grid-template-columns: 1fr 1fr;
  }

  /* Bench: remove backdrop-filter on mobile for perf */
  .net-bench-table-wrap,
  .net-bench-callout,
  .net-bench-insight,
  .net-bench-env,
  .net-chart-wrap {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bench-glass-bg);
  }

  .net-bench-table td {
    padding: 14px 12px;
  }

  .net-bench-table tbody tr:hover td {
    box-shadow: none;
  }

  .net-bench-insight::before,
  .net-bench-insight::after {
    width: 12px;
    height: 12px;
  }

  .net-chart-wrap {
    padding: 10px;
    border-radius: 10px;
  }

  .net-teaser {
    padding: 32px 20px;
  }

  .net-intel-banner {
    padding: 40px 1.25rem;
  }

  .net-intel-links {
    flex-direction: column;
    gap: 1rem;
  }
}
