:root {
  --nodes-hero-space: 88px;
  --nodes-map-height: 430px;
  --nodes-rail-width: 116px;
  --nodes-table-min: 760px;
  --nodes-icon-size: 46px;
  --nodes-line-width: 2px;
  --nodes-soft-opacity: 0.58;
  --nodes-grid-opacity: 0.34;
}

.nodes-hero {
  position: relative;
  padding-top: var(--nodes-hero-space);
  padding-bottom: var(--nodes-hero-space);
  overflow-x: clip;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 58%, transparent);
  background:
    radial-gradient(circle at 78% 34%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--color-panel) 24%, transparent), transparent);
}

.nodes-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-border) 25%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-border) 25%, transparent) 1px, transparent 1px);
  background-size: 76px 76px;
  content: '';
  mask-image: radial-gradient(ellipse 74% 72% at 70% 42%, var(--color-shadow), transparent);
  opacity: var(--nodes-grid-opacity);
  pointer-events: none;
}

.nodes-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 62px;
  align-items: center;
}

.nodes-hero-copy,
.latitude-board {
  min-width: 0;
}

.nodes-hero-copy h1 {
  margin-top: 20px;
  margin-bottom: 22px;
  font-size: clamp(52px, 5vw, 68px);
}

.nodes-hero-lede {
  max-width: 37em;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.9;
}

.nodes-hero-actions {
  margin-top: 30px;
  margin-bottom: 24px;
}

.nodes-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  margin: 0;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  list-style: none;
}

.nodes-trust li {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.latitude-board {
  position: relative;
  padding: 22px;
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-accent) 8%, transparent), transparent 52%),
    var(--color-panel);
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 color-mix(in srgb, var(--color-text) 8%, transparent);
}

.latitude-board::after {
  position: absolute;
  right: -94px;
  bottom: -118px;
  width: 280px;
  height: 280px;
  border: 1px dashed color-mix(in srgb, var(--color-accent-pink) 36%, transparent);
  border-radius: var(--radius-pill);
  content: '';
  pointer-events: none;
}

.latitude-board-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.latitude-board-note {
  color: var(--color-text-muted);
  font-size: 12px;
}

.nodes-map {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--nodes-map-height);
}

.nodes-map-grid {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1;
  opacity: var(--nodes-grid-opacity);
}

.nodes-map-echo {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 10;
  opacity: 0.08;
  filter: drop-shadow(0 0 13px color-mix(in srgb, var(--color-accent) 68%, transparent));
}

.nodes-map-route {
  fill: none;
  stroke-linecap: round;
  stroke-width: var(--nodes-line-width);
}

.nodes-map-node circle:first-child {
  fill: color-mix(in srgb, var(--color-accent) 18%, var(--color-panel));
  stroke: var(--color-accent-pink);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--color-accent) 82%, transparent));
}

.nodes-map-node circle:last-child {
  fill: var(--color-text);
}

.nodes-map-labels {
  fill: var(--color-text);
  font-family: var(--font-body);
  font-size: 12px;
  opacity: 0.86;
}

.nodes-coordinate rect {
  fill: var(--color-bg);
  stroke: var(--color-border);
}

.nodes-coordinate text {
  fill: var(--color-accent-pink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.latitude-facts {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: -12px;
}

.route-index {
  display: flex;
  max-width: 100%;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.route-index a {
  display: inline-flex;
  min-width: max-content;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 17px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 650;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.route-index a:hover {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 14%, var(--color-panel));
  color: var(--color-text);
}

.server-table {
  min-width: var(--nodes-table-min);
}

.server-region-row {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.server-place > span[aria-hidden='true'] {
  font-size: 18px;
  line-height: 1;
}

.route-type {
  display: inline-flex;
  max-width: 100%;
  min-height: 27px;
  align-items: center;
  padding: 3px 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-panel-raised) 78%, transparent);
  color: var(--color-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-type-premium {
  border-color: color-mix(in srgb, var(--color-accent) 58%, var(--color-border));
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: var(--color-accent-pink);
}

.route-type-direct {
  border-color: color-mix(in srgb, var(--color-success) 42%, var(--color-border));
  color: var(--color-success);
}

.media-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-success);
  font-weight: 650;
}

.media-state::before {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  box-shadow: 0 0 10px color-mix(in srgb, var(--color-success) 54%, transparent);
  content: '';
}

.route-methods {
  position: relative;
  display: grid;
  gap: 20px;
}

.route-methods::before {
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: calc(var(--nodes-rail-width) / 2);
  border-left: 1px dashed var(--color-border);
  content: '';
}

.route-method {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: var(--nodes-rail-width) minmax(0, 1fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--color-accent) 6%, transparent), transparent 44%),
    var(--color-panel);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-text) 7%, transparent);
}

.route-method-rail {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border-right: 1px dashed var(--color-border);
}

.route-method-code {
  color: var(--color-accent-pink);
  font-size: 11px;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.route-method-dot {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid var(--color-accent-pink);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--color-accent) 68%, transparent);
  transform: translateX(-50%);
}

.route-method-body {
  min-width: 0;
  padding: clamp(26px, 4vw, 42px);
}

.route-method-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.route-method-heading h3 {
  margin: 0;
}

.route-method-body p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.9;
}

.route-method-fact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.route-method-fact span {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-bg) 48%, transparent);
  color: var(--color-text-muted);
  font-size: 13px;
}

.usage-board {
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-text) 7%, transparent);
}

.usage-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(170px, 0.62fr) minmax(0, 1.8fr) minmax(150px, 0.6fr);
  gap: 28px;
  align-items: start;
  padding: 30px;
  border-bottom: 1px solid var(--color-border);
}

.usage-row:last-child {
  border-bottom: 0;
}

.usage-label {
  min-width: 0;
}

.usage-label h3 {
  margin: 12px 0 0;
  font-size: 21px;
}

.usage-mark {
  display: inline-flex;
  width: var(--nodes-icon-size);
  height: var(--nodes-icon-size);
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--color-accent) 48%, var(--color-border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-accent) 13%, transparent);
  color: var(--color-accent-pink);
}

.usage-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.usage-copy {
  min-width: 0;
  color: var(--color-text-muted);
}

.usage-copy p {
  margin-bottom: 13px;
}

.usage-choice {
  display: inline-flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px dashed color-mix(in srgb, var(--color-accent) 62%, var(--color-border));
  border-radius: var(--radius-pill);
  color: var(--color-accent-pink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.route-practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 44px;
  align-items: start;
}

.route-practice-copy {
  min-width: 0;
}

.route-practice-copy p {
  max-width: 48em;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.92;
}

.decision-panel {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--color-accent) 11%, transparent), transparent 52%),
    var(--color-panel-raised);
  box-shadow: var(--shadow-panel);
}

.decision-panel h3 {
  margin-bottom: 22px;
}

.decision-list {
  margin: 0 0 26px;
}

.decision-list div {
  padding: 15px 0;
  border-top: 1px solid var(--color-border);
}

.decision-list div:last-child {
  border-bottom: 1px solid var(--color-border);
}

.decision-list dt {
  margin-bottom: 4px;
  color: var(--color-text);
  font-weight: 700;
}

.decision-list dd {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.coverage-panel {
  position: relative;
  padding: clamp(30px, 6vw, 60px);
  overflow: clip;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 54%),
    var(--color-panel-raised);
  box-shadow: var(--shadow-panel);
}

.coverage-panel::after {
  position: absolute;
  right: -72px;
  bottom: -104px;
  width: 260px;
  height: 260px;
  border: 1px dashed color-mix(in srgb, var(--color-accent-pink) 44%, transparent);
  border-radius: var(--radius-pill);
  content: '';
  pointer-events: none;
}

.coverage-copy,
.coverage-facts,
.coverage-actions {
  position: relative;
  z-index: 1;
}

.coverage-copy {
  max-width: 760px;
}

.coverage-copy p {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.9;
}

.coverage-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.coverage-facts .fact-pill {
  background: color-mix(in srgb, var(--color-bg) 54%, transparent);
}

.coverage-actions {
  margin-top: 30px;
}

@media (max-width: 1040px) {
  .nodes-hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .nodes-hero-copy {
    max-width: 760px;
  }

  .route-practice-grid {
    grid-template-columns: 1fr;
  }

  .decision-panel {
    position: static;
  }

  .usage-row {
    grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  }

  .usage-choice {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 768px) {
  :root {
    --nodes-hero-space: 62px;
    --nodes-rail-width: 74px;
  }

  .nodes-hero-copy h1 {
    font-size: clamp(34px, 9.5vw, 40px);
  }

  .nodes-hero-lede {
    font-size: 16px;
  }

  .latitude-board-note,
  .nodes-map-labels,
  .nodes-coordinate {
    display: none;
  }

  .route-method-fact {
    grid-template-columns: 1fr;
  }

  .usage-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }

  .usage-choice {
    grid-column: auto;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .nodes-hero-grid {
    gap: 34px;
  }

  .nodes-trust {
    display: grid;
    gap: 10px;
  }

  .latitude-board {
    padding: 15px;
  }

  .latitude-facts {
    margin-top: -4px;
  }

  .route-methods::before {
    display: none;
  }

  .route-method {
    grid-template-columns: 1fr;
  }

  .route-method-rail {
    min-height: 48px;
    justify-content: flex-start;
    padding-inline: 20px;
    border-right: 0;
    border-bottom: 1px dashed var(--color-border);
  }

  .route-method-code {
    writing-mode: horizontal-tb;
  }

  .route-method-dot {
    top: 50%;
    right: 20px;
    left: auto;
    transform: translateY(-50%);
  }

  .route-method-body {
    padding: 24px;
  }

  .route-method-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .coverage-panel {
    padding: 26px;
  }
}