:root {
  --ink: #17202a;
  --muted: #66768a;
  --line: #dbe6ef;
  --panel: #ffffff;
  --soft: #f4f8fb;
  --blue: #0785c8;
  --blue-dark: #063d5f;
  --teal: #17a999;
  --green: #2a9d55;
  --amber: #d99a14;
  --danger: #b94b4b;
  --shadow: 0 18px 60px rgba(20, 48, 75, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(108deg, rgba(7, 133, 200, 0.05) 0 1px, transparent 1px 96px),
    #fbfdff;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(219, 230, 239, 0.78);
  background: rgba(251, 253, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  color: #3d4e60;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a,
.nav-cta,
.primary-action,
.secondary-action,
.source-grid a {
  text-decoration: none;
}

.nav-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
}

.nav-cta,
.primary-action {
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 133, 200, 0.24);
}

.secondary-action {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #dff3ff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 18%, rgba(23, 169, 153, 0.22), transparent 25%),
    linear-gradient(135deg, #053753, #07243a 64%, #0a1928);
  color: #fff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8fe3ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 890px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5.8vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-copy p {
  max-width: 760px;
  color: #d5e8f4;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-panel {
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
}

.status-strip span,
.hero-metrics span {
  color: #bfe8ff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-strip strong {
  font-size: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0;
}

.hero-metrics article,
.mini-topology {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
}

.hero-metrics strong {
  display: block;
  margin: 5px 0;
  color: var(--blue);
  font-size: 31px;
  line-height: 1;
}

.hero-metrics p,
.fineprint {
  margin-bottom: 0;
  color: #53677d;
  font-size: 13px;
}

.mini-topology {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.mini-topology i {
  height: 2px;
  background: var(--blue);
}

.fineprint {
  margin-top: 14px;
  color: #cbe5f4;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.split > div > p,
.section-heading p {
  max-width: 920px;
  color: var(--muted);
  font-size: 17px;
}

.decision-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.decision-card,
.equipment-card,
.proof-grid article,
.source-grid article,
.flow-row article,
.map-notes,
.tab-panel,
.section-heading + .tabs,
.warning-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(32, 71, 101, 0.07);
}

.decision-card {
  padding: 26px;
}

.decision-card span,
.equipment-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-card.green span,
.decision-card.green strong {
  color: var(--teal);
}

.decision-card strong {
  display: block;
  margin: 12px 0 18px;
  color: var(--blue);
  font-size: 32px;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 9px;
}

.map-section {
  background: #f7fbfe;
}

.scale-section {
  background:
    radial-gradient(circle at 15% 12%, rgba(7, 133, 200, 0.10), transparent 24%),
    linear-gradient(180deg, #ffffff, #f4f9fc);
}

.price-note {
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(7, 133, 200, 0.22);
  border-radius: 20px;
  background: #eef8fe;
  color: #24455d;
  font-size: 15px;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.scale-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.scale-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--amber));
  content: "";
}

.scale-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.scale-topline span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scale-topline strong {
  font-size: 28px;
}

.scale-total {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e9f7fc;
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 900;
}

.scale-card p {
  color: var(--muted);
  font-size: 16px;
}

.scale-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.scale-images img {
  width: 100%;
  height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfd;
  object-fit: contain;
}

.scale-card dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.scale-card dt {
  color: var(--blue-dark);
  font-weight: 900;
}

.scale-card dd {
  margin: -8px 0 0;
  color: var(--muted);
}

.bom-wrap {
  margin-top: 28px;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(32, 71, 101, 0.07);
}

.bom-wrap h3 {
  margin-bottom: 18px;
}

.total-row td {
  background: #edf8fc;
  color: var(--blue-dark);
  font-weight: 900;
}

.section-heading {
  margin-bottom: 30px;
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
}

.map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(6, 61, 95, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 22%, rgba(23, 169, 153, 0.18), transparent 24%),
    linear-gradient(135deg, #062f49, #071d2f);
  box-shadow: var(--shadow);
}

.map-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 18px;
  color: #e8f6ff;
}

.map-toolbar span {
  color: #8fe3ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-toolbar strong {
  font-size: 14px;
  text-align: right;
}

.network-map {
  min-height: 500px;
  overflow: hidden;
  margin: 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    #d8e8ef;
  background-size: 46px 46px;
}

.network-map .leaflet-tile-pane {
  filter: saturate(0.92) contrast(1.05);
}

.network-map .leaflet-overlay-pane {
  mix-blend-mode: multiply;
}

.map-legend {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 450;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 56px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(7, 29, 47, 0.82);
  color: #ecf8ff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-site {
  background: var(--blue-dark);
  outline: 2px solid #fff;
}

.legend-radius {
  background: rgba(7, 133, 200, 0.45);
  outline: 2px solid rgba(143, 227, 255, 0.8);
}

.legend-sector {
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--amber));
}

.map-notes {
  padding: 24px;
  align-self: stretch;
}

.warning-box {
  margin-top: 22px;
  padding: 18px;
  border-color: rgba(217, 154, 20, 0.35);
  background: #fff8e8;
  color: #5a4210;
  font-weight: 700;
}

.flow-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 14px;
}

.flow-row article {
  min-height: 205px;
  padding: 20px;
}

.flow-row span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 999px;
  background: #e7f5fc;
  color: var(--blue);
  font-weight: 900;
}

.flow-row strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.flow-row p {
  color: var(--muted);
  font-size: 14px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.equipment-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  min-height: 230px;
  padding: 18px;
  align-items: center;
}

.equipment-card img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.equipment-card p {
  color: var(--muted);
}

.text-only {
  grid-template-columns: 140px minmax(0, 1fr);
}

.router-glyph {
  width: 132px;
  height: 86px;
  border: 2px solid #d8e5ee;
  border-radius: 18px;
  background:
    radial-gradient(circle at 24px 28px, var(--blue) 0 5px, transparent 6px),
    radial-gradient(circle at 52px 28px, var(--teal) 0 5px, transparent 6px),
    radial-gradient(circle at 80px 28px, var(--amber) 0 5px, transparent 6px),
    linear-gradient(#fff, #f3f8fb);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  margin-bottom: 18px;
}

.tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.tab.active {
  background: var(--blue-dark);
  color: #fff;
}

.tab-panel {
  display: none;
  overflow-x: auto;
}

.tab-panel.active {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 15px;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--blue-dark);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.proof-section {
  background: #f4f8fb;
}

.management-section {
  background: #f7fbfe;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.management-grid article {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(32, 71, 101, 0.07);
}

.management-grid h3 {
  color: var(--blue-dark);
}

.proof-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.proof-grid article,
.source-grid article {
  padding: 22px;
}

.proof-grid strong,
.source-grid h3 {
  display: block;
  color: var(--blue-dark);
  font-size: 20px;
}

.proof-grid p,
.source-grid p {
  color: var(--muted);
}

.source-grid a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 34px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #071d2f;
  color: #d7e8f2;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #8fe3ff;
  font-weight: 900;
  text-decoration: none;
}

.leaflet-popup-content strong {
  color: var(--blue-dark);
}

@media (max-width: 1180px) {
  .hero,
  .split,
  .map-grid {
    grid-template-columns: 1fr;
  }

  .flow-row,
  .equipment-grid,
  .scale-grid,
  .proof-grid,
  .source-grid,
  .management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .nav-cta {
    display: none;
  }

  .hero-metrics,
  .decision-cards,
  .flow-row,
  .equipment-grid,
  .scale-grid,
  .proof-grid,
  .source-grid,
  .management-grid {
    grid-template-columns: 1fr;
  }

  .mini-topology {
    grid-template-columns: 1fr;
  }

  .mini-topology i {
    height: 12px;
    width: 2px;
    margin-left: 8px;
  }

  .network-map {
    min-height: 390px;
  }

  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-toolbar strong {
    text-align: left;
  }

  .map-legend {
    position: static;
    margin: 0 14px 14px;
    border-radius: 16px;
  }

  .equipment-card,
  .text-only {
    grid-template-columns: 1fr;
  }

  .equipment-card img,
  .router-glyph {
    justify-self: start;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }
}
