:root {
  --ink: #0b1f3a;
  --ink-soft: #18385e;
  --paper: #f4f7f8;
  --paper-bright: #ffffff;
  --line: #c9d5dd;
  --line-strong: #91a8b8;
  --signal: #1479ff;
  --signal-soft: #dcecff;
  --mint: #18a985;
  --amber: #d49424;
  --muted: #657786;
  --display: "Bahnschrift SemiCondensed", "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  --body: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  --utility: "Cascadia Mono", "Consolas", monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(11, 31, 58, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-strong);
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  padding: 6px;
  border: 1px solid var(--ink);
  fill: var(--ink);
}

.brand-mark__line {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
}

.brand span {
  display: grid;
}

.brand strong {
  font: 700 19px/1 var(--display);
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.header-utility {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 12px/1 var(--utility);
  text-transform: uppercase;
}

.header-utility time {
  min-width: 42px;
  color: var(--ink);
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(24, 169, 133, 0.12);
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.72fr);
  gap: clamp(56px, 8vw, 130px);
  align-items: center;
  padding: 90px clamp(12px, 4vw, 62px);
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--signal);
  font: 700 12px/1 var(--utility);
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font: 750 clamp(56px, 6vw, 92px)/0.94 var(--display);
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--ink);
}

.hero-lead {
  max-width: 580px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.app-card a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(20, 121, 255, 0.35);
  outline-offset: 4px;
}

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

.button--primary:hover {
  background: var(--signal);
  border-color: var(--signal);
}

.button--quiet {
  border-color: transparent;
}

.button--quiet:hover {
  background: var(--paper-bright);
  border-color: var(--line);
}

.route-board {
  align-self: stretch;
  min-height: 460px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line-strong);
  box-shadow: 12px 12px 0 var(--signal-soft);
}

.route-board__header,
.route-board__note {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 11px/1.4 var(--utility);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-bus {
  position: relative;
  display: grid;
  align-content: center;
  gap: 38px;
  margin: 28px 0;
  padding-left: 34px;
}

.route-bus::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 17%;
  bottom: 17%;
  width: 2px;
  background: var(--line-strong);
}

.route-node {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  min-height: 62px;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--line);
}

.route-node::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--line-strong);
}

.route-node__pin {
  position: absolute;
  left: -31px;
  top: calc(50% - 5px);
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper-bright);
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.route-node--active .route-node__pin {
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--signal), 0 0 0 7px rgba(20, 121, 255, 0.12);
}

.route-node small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.route-node strong {
  font: 700 19px/1.2 var(--display);
}

.route-code {
  color: var(--muted);
  font: 10px/1 var(--utility);
}

.route-node--active .route-code {
  color: var(--signal);
}

.route-node--planned {
  opacity: 0.62;
}

.applications {
  padding: 96px clamp(12px, 4vw, 62px) 88px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font: 750 clamp(38px, 4vw, 58px)/1 var(--display);
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.app-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: rgba(255, 255, 255, 0.56);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.app-card--active {
  background: var(--paper-bright);
}

.app-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 10px/1 var(--utility);
  letter-spacing: 0.08em;
}

.app-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.app-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 54px 0 30px;
  color: var(--signal);
  background: var(--signal-soft);
}

.app-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
}

.app-icon--plus {
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line-strong);
  font: 300 30px/1 var(--display);
}

.app-card h3 {
  margin: 0;
  font: 750 30px/1.1 var(--display);
}

.app-card p {
  max-width: 320px;
  margin: 14px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.app-card a,
.app-card__pending {
  width: fit-content;
  margin-top: auto;
  padding-bottom: 5px;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.app-card a {
  display: inline-flex;
  gap: 24px;
}

.app-card a:hover {
  color: var(--signal);
}

.app-card__pending {
  color: var(--muted);
  border-bottom-style: dashed;
  font-weight: 500;
}

.app-card--planned,
.app-card--empty {
  background: rgba(232, 238, 241, 0.44);
}

.site-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line-strong);
  font: 11px/1 var(--utility);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

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

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

  .app-card--empty {
    grid-column: 1 / -1;
    min-height: 300px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 28px, 1400px);
  }

  .site-header {
    min-height: 70px;
  }

  .header-utility > span:not(.signal-dot) {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 58px;
    padding: 62px 0 68px;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 58px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .route-board {
    min-height: 410px;
    padding: 20px;
    box-shadow: 7px 7px 0 var(--signal-soft);
  }

  .applications {
    padding: 74px 0 64px;
  }

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

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

  .app-card,
  .app-card--empty {
    grid-column: auto;
    min-height: 350px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
