:root {
  --orange: #da772e;
  --yellow: #f0d545;
  --teal: #56abb8;
  --white: #ffffff;
  --ink: #132126;
  --ink-soft: #31454a;
  --paper: #f7f2e8;
  --line: rgba(19, 33, 38, 0.17);
  --line-strong: rgba(19, 33, 38, 0.32);
  --shadow: 9px 9px 0 rgba(19, 33, 38, 0.1);
  --shadow-small: 5px 5px 0 rgba(19, 33, 38, 0.11);
  --radius: 2px;
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-display: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--ink);
  background: var(--yellow);
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(19, 33, 38, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-copy {
  display: grid;
  gap: 5px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 13px;
  bottom: 7px;
  left: 13px;
  height: 3px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.nav-toggle span:last-child {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 3px;
  background: var(--orange);
  content: "";
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1.04;
}

.display-title .accent {
  display: inline-block;
  padding: 0.05em 0.12em 0.1em;
  background: var(--yellow);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transform: rotate(-1deg);
}

.display-title .teal {
  color: var(--teal);
}

.lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 21px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-small);
}

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-primary span {
  color: var(--yellow);
  font-size: 20px;
}

.button-secondary {
  background: var(--white);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 104px) 0 clamp(72px, 9vw, 112px);
}

.home-hero::before {
  position: absolute;
  top: 54px;
  left: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
  content: "";
  transform: rotate(17deg);
}

.home-hero::after {
  position: absolute;
  right: -42px;
  bottom: 48px;
  width: 180px;
  height: 18px;
  background: var(--orange);
  content: "";
  transform: rotate(-8deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  align-items: center;
  gap: clamp(54px, 7vw, 96px);
}

.hero-copy {
  position: relative;
}

.hero-copy .display-title {
  max-width: 790px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.signal-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.signal-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  content: "";
  animation: signal-pulse 2.4s ease-out infinite;
}

.route-board {
  position: relative;
  min-height: 500px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 14px 14px 0 var(--teal);
}

.route-board::before {
  position: absolute;
  top: -22px;
  right: 28px;
  width: 96px;
  height: 44px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  content: "LIVE ROUTE";
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(3deg);
}

.board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.board-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.board-heading strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.board-badge {
  padding: 4px 8px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.route-map {
  position: relative;
  min-height: 300px;
  padding: 18px 4px;
}

.route-axis {
  position: absolute;
  top: 50%;
  right: 28px;
  left: 28px;
  height: 2px;
  background: var(--line-strong);
}

.route-axis::before,
.route-axis::after {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  content: "";
  transform: translateY(-50%);
}

.route-axis::before {
  left: 0;
}

.route-axis::after {
  right: 0;
}

.route-points {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 300px;
  align-items: center;
  gap: 12px;
}

.route-point {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.route-point:nth-child(even) {
  transform: translateY(-60px);
}

.route-node {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(19, 33, 38, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.route-point:nth-child(2) .route-node,
.route-point:nth-child(4) .route-node {
  background: var(--yellow);
}

.route-point:nth-child(3) .route-node {
  color: var(--white);
  background: var(--orange);
}

.route-point small {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.route-point b {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.packet-line {
  position: absolute;
  top: calc(50% - 1px);
  right: 40px;
  left: 40px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.packet-dot {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border: 1px solid var(--ink);
  animation: packet-travel 5.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.route-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.route-metrics div {
  padding: 16px 10px 4px;
  border-right: 1px solid var(--line);
}

.route-metrics div:last-child {
  border-right: 0;
}

.route-metrics small {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.route-metrics strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: clamp(15px, 2vw, 20px);
}

.ticker {
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-move 28s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.ticker-track span::after {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  content: "";
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-ink {
  color: var(--white);
  background: var(--ink);
}

.section-ink .lead,
.section-ink p {
  color: rgba(255, 255, 255, 0.74);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.3vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.section-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.section-heading .index-label {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.metric-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.metric-card {
  position: relative;
  min-height: 360px;
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--white);
  transition: transform 180ms ease, background 180ms ease;
}

.metric-card:nth-child(2) {
  background: var(--yellow);
}

.metric-card:nth-child(3) {
  background: var(--teal);
}

.metric-card:hover {
  transform: translateY(-7px);
}

.metric-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.metric-id span:last-child {
  font-size: 21px;
}

.metric-card h3 {
  margin: 54px 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.metric-card p {
  margin: 0;
  color: rgba(19, 33, 38, 0.78);
}

.metric-scale {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 45px;
}

.metric-scale i {
  display: block;
  flex: 1;
  background: var(--ink);
  opacity: 0.25;
}

.metric-scale i:nth-child(2) {
  height: 40%;
}

.metric-scale i:nth-child(3) {
  height: 67%;
}

.metric-scale i:nth-child(4) {
  height: 33%;
}

.metric-scale i:nth-child(5) {
  height: 82%;
}

.metric-scale i:nth-child(6) {
  height: 57%;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.knowledge-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.knowledge-card::before {
  position: absolute;
  right: -30px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "";
}

.knowledge-card:nth-child(1) {
  grid-column: span 5;
  background: var(--orange);
}

.knowledge-card:nth-child(2) {
  grid-column: span 3;
  background: var(--yellow);
}

.knowledge-card:nth-child(3) {
  grid-column: span 4;
  background: var(--teal);
}

.knowledge-card:nth-child(4) {
  grid-column: span 4;
}

.knowledge-card:nth-child(5) {
  grid-column: span 8;
}

.knowledge-card:hover {
  z-index: 1;
  transform: translate(-5px, -5px);
  box-shadow: var(--shadow);
}

.knowledge-card .card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.knowledge-card h3 {
  max-width: 480px;
  margin: 50px 0 8px;
  font-size: clamp(23px, 2.5vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.knowledge-card p {
  max-width: 540px;
  margin: 0;
  color: rgba(19, 33, 38, 0.76);
  font-size: 14px;
}

.card-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--ink);
  font-size: 19px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.scenario-card {
  min-height: 220px;
  padding: 24px;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.scenario-card:last-child {
  border-right: 0;
}

.scenario-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.scenario-card span {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.scenario-card h3 {
  margin: 68px 0 8px;
  font-size: 21px;
}

.scenario-card p {
  margin: 0;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 96px) 0 clamp(54px, 8vw, 92px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 260px;
  height: 260px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
  opacity: 0.7;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 60px;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.page-hero h1 span {
  display: block;
  color: var(--orange);
}

.page-hero .lead {
  margin-top: 24px;
}

.page-stamp {
  position: relative;
  justify-self: end;
  width: 184px;
  padding: 18px;
  background: var(--teal);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  line-height: 1.35;
  transform: rotate(2deg);
}

.page-stamp::before {
  display: block;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  content: "RESEARCH NOTE";
}

.page-stamp strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 34px;
}

.page-stamp small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 56px;
}

.content-grid-wide {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 60px;
}

.prose h2,
.prose h3 {
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.prose h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 3.4vw, 48px);
}

.prose h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.prose p {
  margin: 0 0 18px;
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 9px;
}

.side-note {
  align-self: start;
  padding: 25px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-small);
}

.side-note.teal {
  background: var(--teal);
}

.side-note.orange {
  color: var(--white);
  background: var(--orange);
}

.side-note .label,
.callout .label {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.side-note h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.side-note p {
  margin: 0;
  font-size: 14px;
}

.callout {
  position: relative;
  margin: 38px 0;
  padding: 28px 30px 28px 76px;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-small);
}

.callout::before {
  position: absolute;
  top: 25px;
  left: 24px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  content: "!";
  font-family: var(--font-mono);
  font-weight: 700;
}

.callout p {
  margin: 0;
}

.route-compare {
  display: grid;
  gap: 24px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.route-compare-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 18px;
}

.route-compare-label {
  font-size: 13px;
  font-weight: 800;
}

.route-compare-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  min-height: 74px;
}

.route-compare-track::before {
  position: absolute;
  top: 50%;
  right: 10px;
  left: 10px;
  border-top: 2px solid var(--line-strong);
  content: "";
}

.route-compare-track i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
}

.route-compare-row.optimized .route-compare-track::before {
  height: 8px;
  border: 1px solid var(--ink);
  background: var(--teal);
}

.route-compare-row.optimized i {
  background: var(--yellow);
}

.route-compare-time {
  min-width: 63px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

.diagram-caption {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.protocol-card {
  min-height: 230px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.protocol-card:nth-child(2) {
  background: var(--yellow);
}

.protocol-card:nth-child(3) {
  background: var(--teal);
}

.protocol-card:nth-child(4) {
  background: var(--orange);
}

.protocol-card .protocol-code {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.protocol-card h3 {
  margin: 50px 0 10px;
  font-size: 24px;
}

.protocol-card p {
  margin: 0;
  font-size: 14px;
}

.compare-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line-strong);
}

.compare-column {
  min-height: 280px;
  padding: 28px;
}

.compare-column + .compare-column {
  border-left: 1px solid var(--line-strong);
}

.compare-column:first-child {
  background: var(--paper);
}

.compare-column:last-child {
  background: var(--teal);
}

.compare-column h3 {
  margin: 36px 0 12px;
  font-size: 25px;
}

.route-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: route;
}

.route-step {
  position: relative;
  min-height: 260px;
  padding: 82px 22px 24px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  counter-increment: route;
}

.route-step:last-child {
  border-right: 1px solid var(--line-strong);
}

.route-step::before {
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--orange);
  content: "0" counter(route);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.route-step::after {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 15px;
  height: 15px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.route-step:nth-child(2)::after {
  background: var(--yellow);
}

.route-step:nth-child(3)::after {
  background: var(--orange);
}

.route-step:nth-child(4)::after {
  background: var(--teal);
}

.route-step h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.route-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.scenario-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.scenario-strip article {
  min-height: 245px;
  padding: 22px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.scenario-strip article:nth-child(2) {
  background: var(--yellow);
}

.scenario-strip article:nth-child(4) {
  background: var(--teal);
}

.scenario-strip .scenario-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.scenario-strip h3 {
  margin: 68px 0 10px;
  font-size: 19px;
}

.scenario-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.layer-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.layer-card {
  padding: 27px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-small);
}

.layer-card:nth-child(1) {
  background: var(--yellow);
}

.layer-card:nth-child(2) {
  background: var(--teal);
}

.layer-card:nth-child(3) {
  background: var(--orange);
}

.layer-card .layer-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.layer-card h3 {
  margin: 68px 0 10px;
  font-size: 22px;
}

.layer-card p {
  margin: 0;
  font-size: 14px;
}

.troubleshoot-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.troubleshoot-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 18px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  counter-increment: steps;
}

.troubleshoot-list li::before {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  content: counter(steps, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
}

.troubleshoot-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.troubleshoot-list span {
  color: var(--ink-soft);
  font-size: 13px;
}

.architecture-map {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.architecture-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: stretch;
  min-height: 72px;
}

.architecture-label {
  display: grid;
  align-items: center;
  padding: 12px 16px;
  color: var(--yellow);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.architecture-nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.architecture-node {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.architecture-row:nth-child(2) .architecture-node:nth-child(even),
.architecture-row:nth-child(4) .architecture-node:nth-child(odd) {
  background: var(--yellow);
}

.architecture-row:nth-child(3) .architecture-node {
  background: var(--teal);
}

.architecture-row:nth-child(5) .architecture-node {
  color: var(--white);
  background: var(--orange);
}

.architecture-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  min-width: 150px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}

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

.comparison-table th {
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
}

.comparison-table tbody tr:nth-child(2) th {
  color: var(--ink);
  background: var(--yellow);
}

.comparison-table td:first-child {
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line-strong);
}

.service-card:nth-child(1) {
  background: var(--orange);
}

.service-card:nth-child(2) {
  background: var(--yellow);
}

.service-card:nth-child(3) {
  background: var(--teal);
}

.service-card:nth-child(4) {
  background: var(--paper);
}

.service-card .service-code {
  font-family: var(--font-mono);
  font-size: 29px;
  font-weight: 700;
}

.service-card h3 {
  margin: 75px 0 10px;
  font-size: 20px;
}

.service-card p {
  margin: 0;
  font-size: 13px;
}

.security-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.security-card {
  position: relative;
  min-height: 250px;
  padding: 25px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.security-card::after {
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 128px;
  height: 128px;
  background: var(--teal);
  border: 1px solid var(--ink);
  content: "";
  transform: rotate(18deg);
}

.security-card:nth-child(2)::after {
  background: var(--yellow);
}

.security-card:nth-child(3)::after {
  background: var(--orange);
}

.security-card span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.security-card h3 {
  margin: 70px 0 8px;
  font-size: 21px;
}

.security-card p {
  position: relative;
  z-index: 1;
  max-width: 86%;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.selection-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
}

.selection-matrix {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}

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

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

.selection-matrix th {
  background: var(--yellow);
}

.selection-matrix th:first-child {
  width: 18%;
}

.selection-matrix td:first-child {
  font-weight: 800;
  background: var(--paper);
}

.checklist {
  display: grid;
  gap: 0;
  counter-reset: checks;
}

.check-item {
  display: grid;
  grid-template-columns: 60px minmax(150px, 0.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: checks;
}

.check-item::before {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  content: counter(checks, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
}

.check-item h3 {
  margin: 0;
  font-size: 18px;
}

.check-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 30px;
  background: var(--yellow);
  border: 1px solid var(--ink);
}

.pricing-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
}

.pricing-note p {
  margin: 0;
  font-size: 14px;
}

.pricing-note a {
  flex: 0 0 auto;
  padding: 11px 16px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  position: relative;
  padding: 23px 55px 23px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 19px;
  right: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--yellow);
  border: 1px solid var(--ink);
  content: "＋";
  font-family: var(--font-mono);
  font-size: 18px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 800px;
  padding: 0 0 24px;
}

.faq-answer p {
  margin: 0;
  color: var(--ink-soft);
}

.sources-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources-list a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sources-list a:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-small);
}

.source-number {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.source-title {
  font-weight: 700;
}

.source-arrow {
  font-size: 20px;
}

.next-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
  padding: 38px;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
}

.next-page span {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.next-page h2 {
  margin: 10px 0 0;
  font-size: clamp(25px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.next-page b {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  font-size: 25px;
  transition: transform 180ms ease;
}

.next-page:hover b {
  transform: translateX(7px);
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 60px;
  padding: 58px 0 42px;
}

.footer-brand {
  color: var(--white);
  text-decoration: none;
}

.footer-brand strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.footer-brand small {
  display: block;
  margin-top: 5px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.footer-top p {
  max-width: 620px;
  margin: 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 22px;
}

.footer-links a {
  color: var(--white);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.footer-bottom span:last-child {
  color: var(--teal);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  transform: translateY(18px);
  transition: transform 520ms ease;
}

.js [data-reveal].is-visible {
  transform: translateY(0);
}

@keyframes packet-travel {
  0%,
  9% {
    transform: translateX(0);
  }
  48%,
  57% {
    transform: translateX(min(260px, 24vw));
  }
  96%,
  100% {
    transform: translateX(0);
  }
}

@keyframes signal-pulse {
  0% {
    opacity: 1;
    transform: scale(0.65);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

@keyframes ticker-move {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1040px) {
  .site-nav a {
    padding-inline: 9px;
    font-size: 13px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 850px;
  }

  .route-board {
    width: min(620px, 100%);
  }

  .scenario-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenario-card:nth-child(2),
  .service-card:nth-child(2) {
    border-right: 0;
  }

  .scenario-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .scenario-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .knowledge-card:nth-child(1),
  .knowledge-card:nth-child(2),
  .knowledge-card:nth-child(3),
  .knowledge-card:nth-child(4),
  .knowledge-card:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 18px 26px rgba(19, 33, 38, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: space-between;
    min-height: 50px;
    padding-inline: 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    right: 4px;
    left: 4px;
  }

  .section-heading,
  .content-grid,
  .content-grid-wide,
  .page-hero-inner,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .page-stamp {
    justify-self: start;
    margin-left: 10px;
  }

  .metric-stack {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 300px;
  }

  .route-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .route-step:nth-child(2) {
    border-right: 1px solid var(--line-strong);
  }

  .route-step:nth-child(3) {
    border-top: 0;
  }

  .route-step:nth-child(4) {
    border-top: 0;
    border-right: 1px solid var(--line-strong);
  }

  .layer-split,
  .security-stack {
    grid-template-columns: 1fr;
  }

  .layer-card,
  .security-card {
    min-height: 220px;
  }

  .architecture-row {
    grid-template-columns: 90px 1fr;
  }

  .architecture-nodes {
    grid-template-columns: repeat(2, 1fr);
  }

  .check-item {
    grid-template-columns: 50px 0.45fr 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .section-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .home-hero::before,
  .home-hero::after,
  .page-hero::after {
    display: none;
  }

  .display-title {
    font-size: clamp(38px, 12.5vw, 60px);
    letter-spacing: -0.065em;
  }

  .lead {
    font-size: 15px;
  }

  .route-board {
    min-height: auto;
    padding: 22px 16px;
    box-shadow: 8px 8px 0 var(--teal);
  }

  .route-board::before {
    right: 18px;
    width: 82px;
  }

  .route-map {
    min-height: 420px;
  }

  .route-axis {
    top: 28px;
    bottom: 28px;
    left: 50%;
    width: 2px;
    height: auto;
  }

  .route-axis::before,
  .route-axis::after {
    left: 50%;
    transform: translate(-50%, 0);
  }

  .route-axis::before {
    top: 0;
  }

  .route-axis::after {
    top: auto;
    bottom: 0;
  }

  .route-points {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 420px;
  }

  .route-point,
  .route-point:nth-child(even) {
    display: grid;
    grid-template-columns: 56px 1fr;
    justify-items: start;
    align-items: center;
    gap: 15px;
    text-align: left;
    transform: none;
  }

  .route-point small,
  .route-point b {
    display: inline;
  }

  .packet-line {
    display: none;
  }

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

  .route-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ticker-track {
    animation: none;
  }

  .ticker-track span:nth-child(n + 4) {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-card:nth-child(n) {
    grid-column: auto;
    min-height: 220px;
  }

  .scenario-grid,
  .scenario-strip,
  .protocol-grid,
  .compare-columns,
  .service-grid,
  .route-timeline {
    grid-template-columns: 1fr;
  }

  .scenario-card,
  .service-card {
    min-height: 190px;
    border-right: 0;
  }

  .scenario-strip article {
    min-height: 200px;
  }

  .route-compare {
    padding: 18px;
  }

  .route-compare-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .route-compare-time {
    text-align: left;
  }

  .compare-column + .compare-column {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .route-step {
    min-height: 200px;
    border-right: 1px solid var(--line-strong);
    border-top: 0;
  }

  .route-step:first-child {
    border-top: 1px solid var(--line-strong);
  }

  .architecture-map {
    padding: 12px;
  }

  .architecture-row {
    grid-template-columns: 1fr;
  }

  .architecture-label {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .architecture-nodes {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .check-item {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }

  .check-item p {
    grid-column: 2;
  }

  .sources-list a {
    grid-template-columns: 26px 1fr auto;
    padding: 16px;
  }

  .next-page {
    padding: 26px;
  }

  .footer-top {
    gap: 28px;
    padding-top: 44px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
