.nodes-hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--color-border);
  isolation: isolate;
}

.nodes-hero-glow {
  position: absolute;
  z-index: -1;
  top: -260px;
  left: 50%;
  width: min(1180px, 100%);
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    var(--color-cyan-wash),
    var(--color-brand-wash),
    transparent
  );
  pointer-events: none;
}

.nodes-hero-inner {
  min-height: 650px;
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.nodes-hero-copy h1 {
  max-width: 720px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.nodes-hero-copy .lead {
  max-width: 680px;
  margin-bottom: 0;
}

.nodes-hero-copy .lead strong {
  color: var(--color-text);
}

.nodes-fact-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.nodes-fact-row .fact-pill {
  min-height: 46px;
  padding-inline: 13px;
  border-radius: var(--radius-sm);
  background: var(--color-panel-glass);
}

.nodes-fact-row strong {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.nodes-fact-row strong + span {
  padding-left: 8px;
  border-left: 1px solid var(--color-border);
  color: var(--color-muted);
}

.route-console {
  overflow: hidden;
  box-shadow: var(--shadow-device), var(--shadow-device-edge);
  transform: rotate(-0.35deg);
}

.route-console-head {
  min-height: 50px;
  padding: 0 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.route-console-head > span:nth-child(2) {
  text-align: center;
}

.route-console-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0;
}

.route-console-state .status-dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px var(--color-cyan-wash);
  background: var(--color-cyan);
}

.route-console-body {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 145px 1fr 160px;
  align-items: center;
  background-color: var(--color-panel-soft);
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

.route-origin {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: 102px;
  padding: 16px 10px;
  display: grid;
  justify-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  box-shadow: var(--shadow-panel);
}

.route-origin-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-pill);
  color: var(--color-brand);
  background: var(--color-brand-wash);
}

.route-origin-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.route-origin strong {
  font-family: var(--font-display);
  font-size: 12px;
}

.route-origin > span:last-child {
  color: var(--color-muted);
  font-size: 9px;
}

.route-console-lines {
  position: absolute;
  z-index: 1;
  inset: 25px 20px;
  width: calc(100% - 40px);
  height: calc(100% - 50px);
  color: var(--color-cyan);
  pointer-events: none;
}

.route-console-lines path {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
}

.route-console-lines path:first-child,
.route-console-lines path:nth-child(3) {
  stroke: var(--color-cyan);
}

.route-console-lines circle {
  fill: var(--color-panel);
  stroke: currentColor;
  stroke-width: 2;
}

.route-destinations {
  position: relative;
  z-index: 2;
  padding-right: 16px;
  display: grid;
  gap: 16px;
}

.route-destinations span {
  min-height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-panel);
  box-shadow: 0 3px 7px var(--color-shadow-soft);
  font-size: 11px;
  font-weight: 720;
}

.route-destinations i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-wash);
}

.route-console-foot {
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  background: var(--color-panel);
}

.route-console-foot span {
  padding: 3px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  color: var(--color-muted);
  background: var(--color-panel-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.section-heading {
  max-width: 820px;
}

.nodes-heading {
  margin-bottom: 36px;
}

.nodes-heading h2,
.region-wall-heading h2 {
  margin-top: 14px;
}

.nodes-heading p {
  color: var(--color-muted);
  font-size: 17px;
}

.nodes-table-shell {
  box-shadow: var(--shadow-panel);
}

.nodes-table-shell .server-table {
  min-width: 760px;
}

.nodes-table-shell caption {
  font-family: var(--font-display);
  font-size: 16px;
}

.nodes-table-shell tbody tr:not(.server-group-row):hover td {
  background: var(--color-action-wash);
}

.route-kind {
  max-width: 100%;
  min-height: 25px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  background: var(--color-panel-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 720;
  white-space: nowrap;
}

.route-kind-primary {
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
  background: var(--color-brand-wash);
}

.route-kind-direct {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  background: var(--color-cyan-wash);
}

.route-types-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-soft);
}

.route-type-stack {
  display: grid;
  gap: 22px;
}

.route-type-row {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.65fr);
  align-items: center;
  gap: clamp(28px, 7vw, 94px);
}

.route-type-row.is-reversed {
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, 0.7fr);
}

.route-type-row.is-reversed .route-type-key {
  grid-column: 2;
  grid-row: 1;
}

.route-type-row.is-reversed .route-type-detail {
  grid-column: 1;
  grid-row: 1;
}

.route-type-key {
  padding-block: 24px;
}

.route-type-code {
  display: block;
  margin-bottom: 8px;
  color: var(--color-brand);
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
}

.route-type-key h3 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 44px);
}

.route-type-detail {
  padding: clamp(24px, 4vw, 38px);
}

.route-type-detail p {
  color: var(--color-muted);
}

.route-type-detail p:last-of-type {
  margin-bottom: 0;
}

.route-detail-tags {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--color-border);
}

.use-case-browser {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  overflow: clip;
  box-shadow: var(--shadow-device);
}

.use-case-sidebar {
  padding: 23px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid var(--color-border);
  background: var(--color-panel-soft);
}

.use-case-sidebar-title {
  padding: 0 10px 12px;
  color: var(--color-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.use-case-sidebar a {
  min-height: 43px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-xs);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.use-case-sidebar a:hover,
.use-case-sidebar a:focus-visible {
  color: var(--color-action);
  background: var(--color-action-wash);
}

.use-case-content {
  padding: 8px clamp(24px, 5vw, 54px);
}

.use-case-entry {
  padding-top: 34px;
  padding-bottom: 34px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.use-case-entry:last-child {
  border-bottom: 0;
}

.use-case-index {
  padding-top: 6px;
  color: var(--color-brand-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.use-case-entry h3 {
  margin-bottom: 12px;
}

.use-case-entry p {
  color: var(--color-muted);
}

.use-case-entry p:last-child {
  margin-bottom: 0;
}

.region-wall-heading {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: 38px;
}

.region-wall-heading p {
  margin-bottom: 4px;
  color: var(--color-muted);
}

.region-wall-heading strong {
  color: var(--color-text);
}

.region-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-panel);
}

.region-wall span {
  min-height: 86px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 680;
  transition:
    color 160ms var(--ease-standard),
    background-color 160ms var(--ease-standard);
}

.region-wall span:hover {
  color: var(--color-text);
  background: var(--color-brand-wash);
}

.region-wall b {
  margin-bottom: 3px;
  color: var(--color-brand-dark);
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.route-guide h3 {
  margin-top: 42px;
}

.route-guide h3:first-child {
  margin-top: 0;
}

.route-guide p {
  color: var(--color-muted);
}

.nodes-final-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

  .route-console {
    width: min(100%, 760px);
    transform: none;
  }

  .region-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .route-type-row,
  .route-type-row.is-reversed {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .route-type-row.is-reversed .route-type-key,
  .route-type-row.is-reversed .route-type-detail {
    grid-column: auto;
    grid-row: auto;
  }

  .route-type-row.is-reversed .route-type-key {
    order: 0;
  }

  .route-type-row.is-reversed .route-type-detail {
    order: 1;
  }

  .route-type-code {
    font-size: 48px;
  }

  .use-case-browser {
    grid-template-columns: 1fr;
  }

  .use-case-sidebar {
    padding: 10px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    overscroll-behavior-inline: contain;
  }

  .use-case-sidebar-title {
    display: none;
  }

  .use-case-sidebar a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .region-wall-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .region-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nodes-hero-inner {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 58px;
    gap: 38px;
  }

  .nodes-hero-glow {
    top: -180px;
    height: 560px;
  }

  .nodes-fact-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nodes-fact-row .fact-pill {
    width: 100%;
  }

  .route-console-head {
    grid-template-columns: auto 1fr;
    padding-inline: 12px;
  }

  .route-console-head > span:nth-child(2) {
    text-align: right;
  }

  .route-console-state {
    display: none;
  }

  .route-console-body {
    min-height: 420px;
    padding: 26px 14px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 26px;
  }

  .route-origin {
    width: 124px;
  }

  .route-console-lines {
    display: none;
  }

  .route-destinations {
    width: 100%;
    padding-right: 0;
    gap: 8px;
  }

  .route-console-foot {
    flex-wrap: wrap;
  }

  .nodes-heading p {
    font-size: 16px;
  }

  .route-type-detail {
    padding: 21px;
  }

  .use-case-content {
    padding: 0 18px;
  }

  .use-case-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .use-case-index {
    padding-top: 0;
  }

  .region-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region-wall span {
    min-height: 76px;
  }

  .nodes-final-actions {
    align-items: stretch;
  }

  .nodes-final-actions .button {
    flex: 1 1 100%;
  }
}