/* Network dark theme — palette based on the Network Tools reference.
   Load after landing.css. Layout and responsive rules remain in landing.css. */
:root {
  color-scheme: dark;
  --background: #101821;
  --surface: #16212d;
  --surface-raised: #1b2735;
  --surface-selected: #213e62;
  --action: #2864cc;
  --action-hover: #3474df;
  --blue: #91bcf6;
  --ink: #eef4fc;
  --muted: #acbdd1;
  --line: #34475c;
  --pale: var(--surface);
  background: var(--background);
}

body { background: var(--background); }
.site-header { background: var(--surface); }
.nav-contact { border-color: #657a93; background: var(--surface-raised); }
.nav-contact:hover { background: var(--surface-selected); color: var(--ink); }
.primary, .contact-action .button { background: var(--action); color: #fff; }
.primary:hover, .contact-action .button:hover { background: var(--action-hover); }
.button:active { transform: none; background: var(--surface-selected); }
a:focus-visible, button:focus-visible { outline-color: var(--blue); }
::selection { background: var(--surface-selected); color: var(--ink); }
.hero-note, .node small, .art-caption, .service-tags { color: var(--muted); }
.orbit { border-color: var(--line); }
.art-grid { background-image: radial-gradient(#657a93 1px, transparent 1px); }
.network-core {
  background: var(--surface-raised);
  border-color: #657a93;
  box-shadow: inset 0 0 0 7px var(--surface);
}
.core-symbol { color: var(--ink); }
.node { background: var(--surface-raised); border-color: #657a93; box-shadow: none; }
.node-icon { background: var(--surface-selected); }
.connections g[stroke] { stroke: #657a93; }
.connections g[fill] { fill: var(--blue); }
.services { background: var(--surface-raised); }
.service:hover, .service:focus-visible { background: var(--surface-selected); }
.contact-section { background: var(--surface-raised); border-block: 1px solid var(--line); }
.contact-section .eyebrow { color: var(--blue); }
.contact-section p:not(.eyebrow), .contact-email { color: var(--muted); }
.contact-email:hover { color: var(--ink); }
footer > span { color: var(--ink); }
.skip-link, .js.intro .skip-intro { background: var(--surface-raised); color: var(--ink); }
.js.intro .intro-curtain { background: var(--background); }
.js.intro .intro-curtain::before {
  background-image: linear-gradient(#91bcf608 1px, transparent 1px), linear-gradient(90deg, #91bcf608 1px, transparent 1px);
}

/* Keep the original vector mark legible on a dark surface. */
.netcode-logo [data-background] { fill: transparent; }
.netcode-logo [style*="fill:rgb(91, 91, 91)"] { fill: var(--ink) !important; }
.netcode-logo .word-net .fil5 { fill: var(--surface) !important; }
.js.intro .netcode-logo .word-net .fil5 { fill: var(--background) !important; }

@media (prefers-reduced-motion: reduce) {
  .button:hover { transform: none; }
}
