:root {
  --nodes-hero-min: 670px;
  --nodes-hero-copy-width: 560px;
  --nodes-stage-width: 610px;
  --nodes-stage-height: 390px;
  --nodes-map-stroke: 3px;
  --nodes-map-dot-stroke: 5px;
  --nodes-card-accent-size: 5px;
  --nodes-marker-size: 42px;
  --nodes-postmark-size: 112px;
  --nodes-postmark-rotate: -8deg;
  --nodes-board-rotate: 1.5deg;
  --nodes-shadow-rotate: -3deg;
  --nodes-grid-gap: 22px;
  --nodes-small-gap: 14px;
}

.nodes-hero {
  position: relative;
  min-height: var(--nodes-hero-min);
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 82% 42%, var(--color-shadow-accent), var(--color-transparent) 36%),
    var(--color-bg);
}

.nodes-hero-inner {
  display: grid;
  min-height: var(--nodes-hero-min);
  grid-template-columns: minmax(0, var(--nodes-hero-copy-width)) minmax(0, var(--nodes-stage-width));
  align-items: center;
  justify-content: space-between;
  gap: 54px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.nodes-hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.nodes-hero-copy h1 {
  max-width: 560px;
  margin-top: 20px;
}

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

.nodes-hero-copy .button-row {
  margin-top: 30px;
}

.nodes-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  border-top: 1px dashed var(--color-border);
  padding-top: 18px;
  color: var(--color-muted);
  font-size: 13px;
}

.nodes-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nodes-facts span::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: "";
}

.nodes-facts strong {
  color: var(--color-text);
}

.nodes-route-sheet {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: var(--nodes-stage-height);
  place-items: center;
}

.nodes-paper-shadow {
  position: absolute;
  top: 18px;
  right: 4px;
  width: 88%;
  height: 92%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-alt);
  box-shadow: var(--shadow-raised);
  transform: rotate(var(--nodes-shadow-rotate));
}

.nodes-route-board {
  position: relative;
  width: 100%;
  max-width: var(--nodes-stage-width);
  min-height: var(--nodes-stage-height);
  overflow: hidden;
  border: 9px solid var(--color-transparent);
  border-image: repeating-linear-gradient(
    45deg,
    var(--color-accent) 0 12px,
    var(--color-panel) 12px 24px
  ) 9;
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  box-shadow: var(--shadow-raised);
  transform: rotate(var(--nodes-board-rotate));
}

.nodes-route-board::before {
  position: absolute;
  inset: 58px 22px 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  content: "";
  pointer-events: none;
}

.nodes-board-head {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px dashed var(--color-border);
  padding: 12px 20px;
  color: var(--color-muted);
  font: 700 10px/1.4 var(--font-mono);
  letter-spacing: 0.1em;
}

.nodes-route-map {
  position: absolute;
  top: 46px;
  left: 0;
  width: 100%;
  height: calc(100% - 46px);
  color: var(--color-accent);
}

.nodes-route-map path {
  fill: none;
  stroke: currentColor;
  stroke-dasharray: 5 11;
  stroke-linecap: round;
  stroke-width: var(--nodes-map-stroke);
  opacity: 0.56;
}

.nodes-route-map circle {
  fill: var(--color-panel);
  stroke: currentColor;
  stroke-width: var(--nodes-map-dot-stroke);
}

.nodes-region-stamps {
  position: absolute;
  z-index: 2;
  top: 82px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px;
}

.nodes-region-stamps span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  padding: 6px 14px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-card);
}

.nodes-board-postmark {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 28px;
  display: grid;
  width: var(--nodes-postmark-size);
  height: var(--nodes-postmark-size);
  place-content: center;
  border: 3px double var(--color-accent);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  text-align: center;
  transform: rotate(var(--nodes-postmark-rotate));
}

.nodes-board-postmark::before,
.nodes-board-postmark::after {
  position: absolute;
  right: 14px;
  left: 14px;
  height: 1px;
  background: var(--color-accent);
  content: "";
}

.nodes-board-postmark::before {
  top: 34px;
}

.nodes-board-postmark::after {
  bottom: 34px;
}

.nodes-board-postmark strong {
  font-size: 18px;
  letter-spacing: 0.14em;
}

.nodes-board-postmark small {
  font: 8px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
}

.route-kind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nodes-grid-gap);
}

.route-kind {
  position: relative;
  min-width: 0;
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.route-kind::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nodes-card-accent-size);
  background: var(--color-accent);
  content: "";
}

.route-kind-code {
  margin-bottom: 18px;
  color: var(--color-accent);
  font: 800 12px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
}

.route-kind h3 {
  font-size: 27px;
}

.route-kind > p:not(.route-kind-code, .fact-note) {
  color: var(--color-muted);
}

.route-compare-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nodes-grid-gap);
  margin-top: 34px;
  border-top: 1px dashed var(--color-border);
  padding-top: 34px;
}

.route-compare-notes article {
  min-width: 0;
}

.route-compare-notes h3 {
  font-size: 20px;
}

.route-compare-notes p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nodes-grid-gap);
}

.use-case {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.use-case-head {
  display: flex;
  align-items: center;
  gap: var(--nodes-small-gap);
  margin-bottom: 16px;
}

.use-case-head h3 {
  margin-bottom: 0;
  font-size: 23px;
}

.use-case-mark {
  display: grid;
  width: var(--nodes-marker-size);
  height: var(--nodes-marker-size);
  flex: 0 0 var(--nodes-marker-size);
  place-items: center;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  font: 800 13px/1 var(--font-mono);
}

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

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

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

.region-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  padding: 34px;
  box-shadow: var(--shadow-card);
}

.region-card::after {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-pill);
  content: "";
  opacity: 0.32;
}

.region-code {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-accent);
  font: 800 12px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
}

.region-card h3 {
  font-size: 27px;
}

.region-card p {
  max-width: 520px;
  color: var(--color-muted);
}

.region-route-note {
  margin-bottom: 0;
  border-top: 1px dashed var(--color-border);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.nodes-reading {
  max-width: 920px;
}

.route-checklist {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  counter-reset: route-step;
  list-style: none;
}

.route-checklist > li {
  position: relative;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: 26px 28px 26px 86px;
  box-shadow: var(--shadow-card);
  counter-increment: route-step;
}

.route-checklist > li::before {
  position: absolute;
  top: 26px;
  left: 26px;
  display: grid;
  width: var(--nodes-marker-size);
  height: var(--nodes-marker-size);
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-white);
  content: counter(route-step);
  font: 800 13px/1 var(--font-mono);
}

.route-checklist h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.route-checklist p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.nodes-faq {
  max-width: 920px;
}

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

  .nodes-hero-copy {
    max-width: var(--nodes-hero-copy-width);
  }

  .nodes-route-sheet {
    max-width: var(--nodes-stage-width);
  }

  .route-kind-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .route-compare-notes,
  .use-case-grid,
  .region-wall {
    grid-template-columns: minmax(0, 1fr);
  }

  .nodes-hero-inner {
    min-height: auto;
    gap: 44px;
    padding-top: 70px;
    padding-bottom: 76px;
  }
}

@media (max-width: 768px) {
  .nodes-route-sheet {
    min-height: 320px;
  }

  .nodes-route-board {
    min-height: 320px;
    transform: none;
  }

  .nodes-paper-shadow {
    display: none;
  }

  .nodes-board-head {
    display: none;
  }

  .nodes-route-map {
    top: 0;
    height: 100%;
  }

  .nodes-region-stamps {
    top: 28px;
    left: 24px;
  }

  .nodes-board-postmark {
    right: 22px;
    bottom: 22px;
  }
}

@media (max-width: 640px) {
  .nodes-hero-inner {
    padding-top: 54px;
    padding-bottom: 62px;
  }

  .nodes-facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .nodes-route-sheet {
    min-height: 280px;
  }

  .nodes-route-board {
    min-height: 280px;
    border-width: 7px;
  }

  .nodes-region-stamps {
    grid-template-columns: max-content;
    gap: 8px;
  }

  .nodes-region-stamps span {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 11px;
  }

  .nodes-board-postmark {
    width: 86px;
    height: 86px;
  }

  .nodes-board-postmark::before {
    top: 26px;
  }

  .nodes-board-postmark::after {
    bottom: 26px;
  }

  .nodes-board-postmark strong {
    font-size: 13px;
  }

  .nodes-board-postmark small {
    font-size: 6px;
  }

  .route-kind,
  .use-case,
  .region-card {
    padding: 24px 22px;
  }

  .route-checklist > li {
    padding: 24px 22px 24px 76px;
  }

  .route-checklist > li::before {
    top: 24px;
    left: 20px;
  }
}

@media (max-width: 380px) {
  .nodes-route-sheet {
    min-height: 252px;
  }

  .nodes-route-board {
    min-height: 252px;
  }

  .nodes-region-stamps span:nth-child(n+3) {
    display: none;
  }

  .nodes-board-postmark {
    right: 14px;
    bottom: 14px;
  }

  .route-checklist > li {
    padding: 72px 20px 22px;
  }

  .route-checklist > li::before {
    top: 20px;
    left: 20px;
  }
}