.nodes-page {
  background: var(--gradient-page);
}

.nodes-hero {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
  background: var(--gradient-page);
}

.nodes-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 78% at 92% 4%, var(--color-glow-accent), transparent 72%),
    radial-gradient(45% 62% at 12% 100%, var(--color-glow-cyan-soft), transparent 74%);
  pointer-events: none;
}

.nodes-hero-halo {
  position: absolute;
  top: -18%;
  right: -8%;
  width: 52%;
  height: 92%;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  opacity: .08;
  filter: blur(72px);
  pointer-events: none;
}

.nodes-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr);
  align-items: center;
  gap: 64px;
  min-height: 650px;
  padding-top: 66px;
  padding-bottom: 72px;
}

.nodes-hero-copy {
  position: relative;
  z-index: 2;
}

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

.nodes-hero-lead {
  max-width: 650px;
  margin-top: 22px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.8;
}

.nodes-fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 720px;
  margin-top: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel-glass);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.nodes-fact-strip li {
  display: grid;
  align-content: center;
  min-height: 78px;
  padding: 12px 16px;
  border-left: 1px solid var(--color-border);
}

.nodes-fact-strip li:first-child {
  border-left: 0;
}

.nodes-fact-strip span {
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.nodes-fact-strip strong {
  margin-top: 3px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 13px;
}

.nodes-route-console {
  position: relative;
  z-index: 1;
  min-height: 500px;
  border: 1.5px solid var(--color-cyan);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-panel);
}

.nodes-console-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding-inline: 17px;
  border-bottom: 1px solid var(--color-border);
}

.nodes-console-dots {
  display: inline-flex;
  gap: 6px;
}

.nodes-console-dots i {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
}

.nodes-console-dots i:nth-child(2) {
  background: var(--color-accent);
}

.nodes-console-dots i:nth-child(3) {
  background: var(--color-cyan);
}

.nodes-console-file {
  flex: 1;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.nodes-console-body {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.nodes-console-summary {
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--color-border-strong);
}

.nodes-console-summary span {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.nodes-console-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.3;
}

.nodes-console-summary p {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.nodes-region-stack {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}

.nodes-region-row {
  display: grid;
  grid-template-columns: 72px 74px 1fr;
  align-items: center;
  min-height: 48px;
  padding-inline: 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: var(--color-accent-soft);
}

.nodes-region-row.is-active {
  border-color: var(--color-cyan);
  background: var(--color-cyan-soft);
  box-shadow: inset 3px 0 0 var(--color-cyan);
}

.nodes-region-code {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.nodes-region-row strong {
  color: var(--color-text);
  font-size: 14px;
}

.nodes-region-row small {
  overflow-wrap: anywhere;
  color: var(--color-text-muted);
  font-size: 12px;
}

.nodes-console-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.nodes-route-lines {
  position: absolute;
  right: -42px;
  bottom: -72px;
  width: 520px;
  color: var(--color-accent);
  opacity: .17;
  pointer-events: none;
}

.nodes-section-index {
  display: block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.nodes-table-section {
  background: var(--color-bg);
}

.nodes-route-table-wrap {
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}

.nodes-route-table-wrap .route-table {
  min-width: 760px;
}

.nodes-route-table-wrap td:first-child {
  color: var(--color-text);
  font-weight: 750;
}

.nodes-table-note {
  max-width: 900px;
  margin-top: 22px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.nodes-types-section {
  overflow-x: clip;
  background: var(--gradient-deep);
}

.nodes-heading-on-dark h2 {
  color: var(--color-on-dark);
}

.nodes-heading-on-dark p {
  color: var(--color-on-dark-muted);
}

.nodes-heading-on-dark .nodes-section-index {
  color: var(--color-cyan);
}

.nodes-type-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  border: 1px solid var(--color-on-dark-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.nodes-type-feature {
  padding: 42px;
  background: var(--color-panel);
}

.nodes-type-secondary {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.nodes-type-card {
  padding: 34px;
  border-left: 1px solid var(--color-on-dark-line);
  background: var(--color-deep-alt);
}

.nodes-type-card + .nodes-type-card {
  border-top: 1px solid var(--color-on-dark-line);
}

.nodes-type-card-light {
  border-color: var(--color-border);
  background: var(--color-panel-alt);
}

.nodes-type-label {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding-inline: 10px;
  border-radius: var(--radius-xs);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.nodes-type-feature h3,
.nodes-type-card h3 {
  margin-top: 18px;
}

.nodes-type-feature p,
.nodes-type-card p {
  margin-top: 16px;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.nodes-type-card:not(.nodes-type-card-light) .nodes-type-label {
  background: var(--color-cyan-tint);
  color: var(--color-cyan);
}

.nodes-type-card:not(.nodes-type-card-light) h3 {
  color: var(--color-on-dark);
}

.nodes-type-card:not(.nodes-type-card-light) p {
  color: var(--color-on-dark-muted);
}

.nodes-use-section {
  background: var(--color-panel);
}

.nodes-use-browser {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
}

.nodes-use-menu {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-right: 1px solid var(--color-border);
  background: var(--color-deep);
}

.nodes-use-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--color-on-dark-line);
  color: var(--color-on-dark-muted);
  font-weight: 750;
}

.nodes-use-menu a:hover,
.nodes-use-menu a:focus-visible {
  background: var(--color-deep-alt);
  color: var(--color-cyan);
}

.nodes-use-content {
  padding: 12px 38px 38px;
  background: var(--color-panel);
}

.nodes-use-item {
  padding-top: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: var(--anchor-offset);
}

.nodes-use-item:last-child {
  border-bottom: 0;
}

.nodes-use-kicker {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.nodes-use-item h3 {
  margin-top: 8px;
  font-size: 25px;
}

.nodes-use-item p {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.85;
}

.nodes-regions-section {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
  background: var(--color-panel-alt);
}

.nodes-regions-halo {
  position: absolute;
  top: 12%;
  left: -12%;
  width: 42%;
  height: 64%;
  border-radius: var(--radius-pill);
  background: var(--color-glow-cyan);
  filter: blur(68px);
  pointer-events: none;
}

.nodes-region-wall {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr 1.2fr;
  gap: 14px;
}

.nodes-region-wall article {
  min-height: 260px;
  padding: 27px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.nodes-region-wall article:first-child,
.nodes-region-wall article:last-child {
  background: var(--gradient-deep);
}

.nodes-wall-code {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.nodes-region-wall h3 {
  margin-top: 24px;
  font-size: 25px;
}

.nodes-region-wall p {
  margin-top: 13px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.nodes-region-wall article:first-child .nodes-wall-code,
.nodes-region-wall article:last-child .nodes-wall-code {
  color: var(--color-cyan);
}

.nodes-region-wall article:first-child h3,
.nodes-region-wall article:last-child h3 {
  color: var(--color-on-dark);
}

.nodes-region-wall article:first-child p,
.nodes-region-wall article:last-child p {
  color: var(--color-on-dark-muted);
}

.nodes-method-section {
  background: var(--color-bg);
}

.nodes-method-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 70px;
  align-items: start;
}

.nodes-method-copy {
  position: sticky;
  top: 24px;
}

.nodes-method-copy p {
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 17px;
}

.nodes-method-copy .button {
  margin-top: 26px;
}

.nodes-method-list {
  display: grid;
  border-top: 1px solid var(--color-border);
}

.nodes-method-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding-top: 27px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--color-border);
}

.nodes-method-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 800;
}

.nodes-method-list h3 {
  font-size: 22px;
}

.nodes-method-list p {
  margin-top: 9px;
  color: var(--color-text-muted);
  line-height: 1.82;
}

.nodes-notes-section {
  background: var(--color-panel);
}

.nodes-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.nodes-note {
  min-height: 235px;
  padding: 28px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
}

.nodes-note:nth-child(2),
.nodes-note:nth-child(3) {
  background: var(--color-bg);
}

.nodes-note h3 {
  font-size: 22px;
}

.nodes-note p {
  margin-top: 13px;
  color: var(--color-text-muted);
  line-height: 1.82;
}

.nodes-promo {
  margin-top: 54px;
}

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

  .nodes-fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nodes-fact-strip li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .nodes-fact-strip li:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }

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

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

  .nodes-route-console {
    width: min(100%, 650px);
  }

  .nodes-type-layout {
    grid-template-columns: 1fr;
  }

  .nodes-type-card {
    border-left: 0;
    border-top: 1px solid var(--color-on-dark-line);
  }

  .nodes-method-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .nodes-method-copy {
    position: static;
  }
}

@media (max-width: 768px) {
  .nodes-hero-inner {
    gap: 42px;
    padding-top: 44px;
    padding-bottom: 58px;
  }

  .nodes-hero-halo,
  .nodes-route-lines {
    display: none;
  }

  .nodes-console-body {
    padding: 22px;
  }

  .nodes-type-feature,
  .nodes-type-card {
    padding: 26px;
  }

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

  .nodes-use-menu {
    flex-direction: row;
    max-width: 100%;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    -webkit-overflow-scrolling: touch;
  }

  .nodes-use-menu a {
    flex: 0 0 auto;
    min-width: max-content;
    border-right: 1px solid var(--color-on-dark-line);
    border-bottom: 0;
  }

  .nodes-use-content {
    padding: 4px 24px 28px;
  }

  .nodes-region-wall {
    grid-template-columns: 1fr;
  }

  .nodes-region-wall article {
    min-height: 0;
  }

  .nodes-notes-grid {
    grid-template-columns: 1fr;
  }

  .nodes-note:nth-child(2),
  .nodes-note:nth-child(3) {
    background: var(--color-panel);
  }
}

@media (max-width: 560px) {
  .nodes-fact-strip {
    grid-template-columns: 1fr;
  }

  .nodes-fact-strip li,
  .nodes-fact-strip li:nth-child(3),
  .nodes-fact-strip li:nth-child(4) {
    min-height: 66px;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .nodes-fact-strip li:first-child {
    border-top: 0;
  }

  .nodes-route-console {
    min-height: 0;
  }

  .nodes-console-summary strong {
    font-size: 20px;
  }

  .nodes-region-row {
    grid-template-columns: 58px 1fr;
  }

  .nodes-region-row small {
    grid-column: 1 / -1;
    padding-bottom: 8px;
  }

  .nodes-use-content {
    padding-inline: 18px;
  }

  .nodes-use-item h3 {
    font-size: 22px;
  }

  .nodes-method-list article {
    grid-template-columns: 1fr;
  }

  .nodes-note {
    min-height: 0;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nodes-hero-halo,
  .nodes-regions-halo {
    transform: none;
  }
}