/* NOTABARD-NET — palette and layout */
:root {
  color-scheme: dark;
  --bg: #090a0e;
  --panel: #0b0e14;
  --panel-hover: #10131b;
  --text: #e8edf6;
  --muted: #929db0;
  --line: #202633;
  --red: #ff3548;
  --red-soft: rgba(255, 53, 72, .15);
  --purple: #9680ff;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 75% 15%, rgba(111, 48, 84, .12), transparent 35%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1210px, calc(100% - 56px)); margin-inline: auto; }
.topbar { height: 74px; width: min(1320px, calc(100% - 56px)); margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .08em; font-weight: 800; white-space: nowrap; }
.brand-mark { width: 24px; height: 24px; display: grid; place-items: center; color: var(--red); border: 1px solid var(--red); transform: rotate(45deg); font-size: 13px; line-height: 1; }
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-as { margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line); color: var(--muted); font-weight: 500; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 30px; height: 100%; }
.nav a { height: 100%; display: inline-flex; align-items: center; color: #9ca7b9; font-size: 11px; position: relative; transition: color .2s ease; }
.nav a:hover, .nav a.active { color: var(--red); }
.nav a.active::after { content: ""; height: 2px; position: absolute; left: 0; right: 0; bottom: 0; background: var(--red); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 1px; margin: 6px; background: var(--text); }
.hero { min-height: 400px; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 42px; padding-top: 46px; padding-bottom: 28px; }
.eyebrow, .section-label { display: flex; align-items: center; gap: 10px; color: var(--red); font: 11px var(--mono); }
.eyebrow span { width: 25px; height: 2px; background: var(--red); }
h1 { font-size: clamp(42px, 5.2vw, 65px); line-height: 1.1; letter-spacing: -.06em; margin: 14px 0 5px; font-weight: 600; }
h1 span { color: var(--red); }
.subtitle { color: #a8b3c5; font-size: 20px; margin: 0 0 18px; }
.red-rule { height: 2px; width: 28px; background: var(--red); }
.intro { max-width: 450px; color: #a3aec0; font-size: 13px; line-height: 1.85; margin: 16px 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); border-color: var(--red); }
.button.primary { border-color: var(--red); color: var(--red); background: rgba(255,53,72,.025); }
.button.primary:hover { background: var(--red-soft); }
.button.secondary { color: #a5b0c1; }
.hero-visual { height: 350px; position: relative; display: grid; place-items: center; overflow: hidden; }
.visual-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(123,139,164,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(123,139,164,.045) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(ellipse, #000 15%, transparent 75%); }
.network-art { position: relative; width: 100%; height: 100%; z-index: 1; }
.orbit ellipse { fill: none; stroke: rgba(150,128,255,.19); stroke-width: 1; }
.links { fill: none; stroke: rgba(255,53,72,.38); stroke-width: 1; }
.nodes circle { fill: var(--red); filter: drop-shadow(0 0 6px rgba(255,53,72,.55)); }
.nodes .center-node { fill: var(--red); stroke: rgba(255,53,72,.25); stroke-width: 18; }
.nodes .purple-node { fill: var(--purple); filter: drop-shadow(0 0 6px rgba(150,128,255,.5)); }
.visual-label { position: absolute; z-index: 2; color: #657186; font: 8px var(--mono); letter-spacing: .12em; }
.label-top { top: 8px; left: 8px; }.label-bottom { bottom: 7px; right: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; }
.info-card { min-height: 160px; padding: 22px 24px 18px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(13,16,23,.9), rgba(9,10,14,.8)); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.info-card:hover { border-color: rgba(255,53,72,.45); background: var(--panel-hover); transform: translateY(-3px); }
.card-icon { font-size: 27px; display: block; line-height: 1.2; margin-bottom: 12px; }.red-icon { color: var(--red); }.purple-icon { color: var(--purple); }
.info-card h2 { font-size: 21px; font-weight: 500; margin: 0 0 4px; }.info-card p { font-size: 11px; line-height: 1.8; color: #98a4b7; max-width: 230px; margin: 0; }.card-arrow { display: block; color: var(--red); margin-top: 5px; }
.lower-grid { display: grid; grid-template-columns: 1.8fr .9fr; gap: 18px; margin-top: 24px; margin-bottom: 24px; }
.panel { border: 1px solid var(--line); background: rgba(11,14,20,.7); min-width: 0; }
.map-panel { padding: 20px 24px 12px; }.panel-title { display: flex; align-items: center; gap: 12px; }.panel-title h2 { font-size: 14px; font-weight: 500; margin: 0; }.muted { color: #8290a4; font-size: 11px; margin: 5px 0 0; }
.topology { height: 145px; position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; align-items: center; margin-top: 6px; }
.topology-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }.topology-lines path { fill: none; stroke: #313948; stroke-width: 1.2; }
.endpoint { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; padding-left: 24px; color: #a8b3c5; font-size: 9px; }.endpoint span { position: absolute; left: 5px; top: 4px; width: 9px; height: 9px; background: #586274; border-radius: 50%; }.endpoint small { color: #657287; font-size: 8px; }.endpoint.right { grid-column: 3; padding-left: 22px; }.endpoint.right span { left: 4px; }
.topology-center { z-index: 2; grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--red); font: 10px var(--mono); }.core-pulse { width: 22px; height: 22px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 12px rgba(255,53,72,.08), 0 0 24px rgba(255,53,72,.3); }
.facts-panel { padding: 10px 22px; }.fact-row { min-height: 51px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid rgba(145,159,181,.1); }.fact-row:last-child { border-bottom: 0; }.fact-symbol { color: var(--red); font-size: 19px; width: 22px; text-align: center; }.fact-row div { display: flex; flex-direction: column; flex: 1; gap: 1px; }.fact-row small { color: #8e9bb0; font-size: 9px; }.fact-row strong { font-size: 11px; font-weight: 500; }.fact-row .placeholder { color: #68758a; }.copy { background: none; border: 0; color: #7e8ba0; cursor: pointer; padding: 6px; }.copy:hover { color: var(--red); }
.simple-section { border-top: 1px solid rgba(145,159,181,.1); padding: 65px 0; }.simple-section.alternate { background: #0b0d13; }.simple-inner { max-width: 1210px; }.section-label { font-size: 9px; margin-bottom: 14px; }.simple-inner h2 { font-size: 28px; font-weight: 500; margin: 0 0 12px; }.simple-inner p { max-width: 650px; font-size: 12px; line-height: 1.9; color: #97a3b6; margin: 0; }.contact-link { display: inline-flex; gap: 18px; margin-top: 18px; color: var(--red); font: 12px var(--mono); }
.footer { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #69768b; font: 9px var(--mono); }.footer-brand { color: var(--text); font: 10px var(--sans); }.footer-brand .brand-mark { width: 20px; height: 20px; }.back-top { color: #7e8ba0; }.back-top:hover { color: var(--red); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 20; transform: translate(-50%, 14px); opacity: 0; padding: 10px 14px; background: var(--red); color: #fff; font-size: 11px; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }.reveal { opacity: 1; transform: none; } }
@media (max-width: 850px) { .hero { grid-template-columns: 1fr .8fr; gap: 16px; }.hero-visual { height: 300px; }.lower-grid { grid-template-columns: 1fr; }.facts-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }.fact-row:nth-child(3) { border-bottom: 0; } }
@media (max-width: 650px) {
  .wrap, .topbar { width: calc(100% - 32px); }.topbar { height: 66px; }.brand { gap: 9px; font-size: 10px; }.brand-as { display: none; }.menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 65px; left: -16px; right: -16px; height: auto; padding: 16px; background: #0d1017; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }.nav.is-open { display: flex; }.nav a { height: auto; padding: 12px 4px; }.nav a.active::after { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 45px; gap: 10px; }.hero-copy { position: relative; z-index: 2; }.hero-visual { height: 270px; margin-top: 5px; }.intro { font-size: 12px; }.cards { grid-template-columns: 1fr; gap: 9px; }.info-card { min-height: 125px; padding: 17px 19px; }.card-icon { margin-bottom: 5px; }.info-card h2 { font-size: 18px; }.lower-grid { margin-top: 16px; }.map-panel { padding: 17px 13px 10px; }.topology { height: 135px; }.endpoint { padding-left: 15px; font-size: 8px; }.endpoint.right { padding-left: 14px; }.facts-panel { padding: 8px 12px; column-gap: 10px; }.fact-row { gap: 8px; }.fact-symbol { width: 18px; font-size: 16px; }.fact-row strong { font-size: 9px; }.simple-section { padding: 48px 0; }.simple-inner h2 { font-size: 25px; }.footer { flex-wrap: wrap; padding: 18px 0; }.footer > span { order: 3; width: 100%; }.back-top { margin-left: auto; }
}
.topology {
  position: relative;
  min-height: 210px;
}

.topology-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.topology-lines path {
  fill: none;
  stroke: var(--line, #39434d);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.endpoint,
.topology-center {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Interactive DN42 map */

.dn42-map {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 430px;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: #0b0e12;
}

/* Darken the base map without affecting markers and popups. */
.dn42-map .leaflet-tile-pane {
  filter: invert(100%) hue-rotate(180deg)
          brightness(0.72) contrast(0.92) saturate(0.55);
}

.dn42-map .leaflet-control-zoom a {
  background: #131820;
  color: #e7ebf0;
  border-color: #303741;
}

.dn42-map .leaflet-control-zoom a:hover {
  background: #242c36;
  color: #ffffff;
}

.dn42-map .leaflet-control-attribution {
  background: rgba(10, 13, 18, 0.88);
  color: #b7bec8;
}

.dn42-map .leaflet-control-attribution a {
  color: #e5e9ef;
}

/* Custom router markers */

.router-marker-container {
  background: transparent;
  border: 0;
}

.router-marker {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 68, 85, 0.8);
  border-radius: 50%;
  background: rgba(15, 19, 26, 0.96);
  box-shadow:
    0 0 0 5px rgba(255, 68, 85, 0.10),
    0 0 18px rgba(255, 68, 85, 0.25);
}

.router-marker svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #f2f4f7;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.router-marker__led {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4655;
  box-shadow: 0 0 7px rgba(255, 70, 85, 0.8);
}

/* Popup styling */

.dn42-map .leaflet-popup-content-wrapper,
.dn42-map .leaflet-popup-tip {
  background: #141920;
  color: #edf0f5;
  border: 1px solid #303741;
  box-shadow: none;
}

.dn42-map .leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.dn42-map .leaflet-popup-content {
  margin: 14px 16px;
  min-width: 190px;
}

.dn42-map .leaflet-popup-close-button {
  color: #aeb6c2 !important;
}

.dn42-map .leaflet-popup-close-button:hover {
  color: #ffffff !important;
}

.node-popup__title {
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.node-popup__location {
  margin-bottom: 9px;
  color: #aeb6c2;
  font-size: 12px;
}

.node-popup__ip {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid #303741;
  border-radius: 4px;
  background: #0c1015;
  color: #ff6673;
  font-family: monospace;
  font-size: 12px;
}

.node-popup__asn {
  margin-top: 9px;
  color: #9da6b3;
  font-size: 11px;
}

/* Legend below the map */

.map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 14px;
  color: #aeb6c2;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-router {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1px solid #ff4655;
  border-radius: 50%;
  background: #ff4655;
  box-shadow: 0 0 8px rgba(255, 70, 85, 0.4);
}

.legend-line {
  width: 24px;
  height: 0;
  border-top: 2px dashed #ff4655;
}

.legend-note {
  margin-left: auto;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .dn42-map {
    height: 360px;
    min-height: 300px;
  }

  .map-legend {
    gap: 10px 16px;
  }

  .legend-note {
    width: 100%;
    margin-left: 0;
  }
}


/* MapLibre controls */

.dn42-map .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid #303741;
  border-radius: 7px;
  background: #131820;
  box-shadow: none;
}

.dn42-map .maplibregl-ctrl-group button {
  width: 32px;
  height: 32px;
  background-color: #131820;
}

.dn42-map .maplibregl-ctrl-group button:hover {
  background-color: #242c36;
}

.dn42-map .maplibregl-ctrl-group button span {
  filter: invert(1);
}

.dn42-map .maplibregl-ctrl-attrib {
  color: #b7bec8;
  background: rgba(10, 13, 18, 0.88);
}

.dn42-map .maplibregl-ctrl-attrib a {
  color: #e5e9ef;
}

/* Router popup */

.dn42-map .maplibregl-popup-content {
  padding: 14px 16px;
  border: 1px solid #303741;
  border-radius: 8px;
  background: #141920;
  color: #edf0f5;
  box-shadow: none;
}

.dn42-map .maplibregl-popup-close-button {
  padding: 4px 8px;
  color: #aeb6c2;
  font-size: 18px;
}

.dn42-map .maplibregl-popup-close-button:hover {
  color: #ffffff;
  background: transparent;
}

.dn42-map .maplibregl-popup-tip {
  border-top-color: #141920;
  border-bottom-color: #141920;
}

.node-popup__title {
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.node-popup__location {
  margin-bottom: 9px;
  color: #aeb6c2;
  font-size: 12px;
}

.node-popup__ip {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid #303741;
  border-radius: 4px;
  background: #0c1015;
  color: #ff6673;
  font-family: monospace;
  font-size: 12px;
}

.node-popup__asn {
  margin-top: 9px;
  color: #9da6b3;
  font-size: 11px;
}

/* MapLibre attribution: dark theme */
.dn42-map .maplibregl-ctrl-attrib {
  background: rgba(10, 13, 18, 0.94) !important;
  color: #b7bec8 !important;
  border: 1px solid #303741;
  border-radius: 4px 0 0 0;
}

.dn42-map .maplibregl-ctrl-attrib-inner {
  color: #b7bec8 !important;
}

.dn42-map .maplibregl-ctrl-attrib a,
.dn42-map .maplibregl-ctrl-attrib a:visited {
  color: #e5e9ef !important;
  text-decoration: none;
}

.dn42-map .maplibregl-ctrl-attrib a:hover {
  color: #ff6673 !important;
  text-decoration: underline;
}

.dn42-map .maplibregl-ctrl-attrib-button {
  filter: invert(1);
}