.home-hero {
  min-height: calc(100svh - var(--header-height));
}

.hero-kicker .badge-dot {
  flex-shrink: 0;
}

.hero-actions {
  margin-bottom: 22px;
}

.hero-actions svg {
  width: 17px;
  height: 17px;
}

.route-flags {
  margin-top: 9px;
}

.route-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 580px;
  isolation: isolate;
}

.route-grid-glow {
  position: absolute;
  inset: 4% -8%;
  z-index: -2;
  background:
    repeating-linear-gradient(90deg, var(--color-accent) 0 1px, transparent 1px 20px),
    linear-gradient(180deg, transparent, var(--color-accent-wash), transparent);
  opacity: 0.12;
  mask: radial-gradient(ellipse at center, var(--color-ink) 18%, transparent 72%);
  -webkit-mask: radial-gradient(ellipse at center, var(--color-ink) 18%, transparent 72%);
}

.route-map-shell {
  position: relative;
  width: min(100%, 560px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xlarge);
  background: var(--color-canvas);
  box-shadow: var(--shadow-focus);
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
  overflow: hidden;
}

.route-map-shell::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-accent-wash), transparent 34%, transparent 70%, var(--color-panel));
  content: "";
  opacity: 0.58;
  pointer-events: none;
}

.route-map-head,
.route-map-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0 22px;
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.route-map-head {
  border-bottom: 1px solid var(--color-line);
}

.route-map-foot {
  border-top: 1px solid var(--color-line);
}

.route-map-foot span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.route-map-foot i {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  box-shadow: 0 0 0 5px var(--color-accent-wash);
}

.route-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  color: var(--color-accent);
}

.route-stop-soft {
  stop-color: var(--color-accent-soft);
}

.route-stop-main {
  stop-color: var(--color-accent);
}

.route-contour {
  fill: none;
  stroke: var(--color-line);
  stroke-width: 1.2;
  stroke-dasharray: 3 11;
}

.route-contour-one {
  opacity: 0.7;
}

.route-contour-two {
  opacity: 0.5;
}

.route-contour-three {
  opacity: 0.35;
}

.route-halo {
  fill: var(--color-accent-soft);
  opacity: 0.22;
}

.route-links path {
  fill: none;
  stroke: url("#route-line-gradient");
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.75;
}

.route-links path:nth-child(even) {
  stroke-width: 1.5;
  stroke-dasharray: 5 8;
  opacity: 0.48;
}

.route-glint {
  fill: var(--color-canvas);
  stroke: var(--color-accent);
  stroke-width: 3;
  filter: drop-shadow(0 0 5px var(--color-accent-soft));
}

.route-node-ring {
  fill: var(--color-canvas);
  stroke: var(--color-accent-soft);
  stroke-width: 2;
}

.route-node-core {
  fill: var(--color-accent);
}

.route-node text {
  fill: var(--color-ink);
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 750;
}

.route-paused .route-glint {
  animation-play-state: paused;
}

.route-guidance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px;
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--color-line);
}

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

.route-guidance p {
  margin-bottom: 0;
  color: var(--color-ink-muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.status-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px;
  margin-top: 64px;
  margin-bottom: 24px;
}

.status-heading .eyebrow {
  margin-bottom: 5px;
}

.status-heading h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.status-heading p {
  margin-bottom: 0;
  color: var(--color-ink-muted);
  font-size: 14px;
}

.server-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  max-width: 100%;
}

.server-status:empty {
  display: none;
}

.srv-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  background: var(--color-canvas);
  box-shadow: var(--shadow-soft);
}

.srv-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-wash);
  flex: 0 0 auto;
}

.srv-flag {
  width: 25px;
  height: 17px;
  border-radius: var(--radius-small);
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--color-line);
  flex: 0 0 auto;
}

.srv-name {
  min-width: 0;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-type {
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-pill);
  background: var(--color-accent-wash);
  color: var(--color-accent-deep);
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-ms,
.srv-bw {
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.srv-bw {
  color: var(--color-accent);
}

.section-link-row {
  margin: 34px 0 0;
}

.client-note {
  margin-top: 34px;
}

.plan-audience {
  margin-top: 0;
  margin-bottom: 28px;
  color: var(--color-ink-muted);
  font-size: 14px;
  line-height: 1.75;
}

.traffic-pack-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-large);
  background: var(--color-canvas);
  box-shadow: var(--shadow-soft);
}

.traffic-pack-note h3 {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 23px;
}

.traffic-pack-note p {
  max-width: 810px;
  margin-bottom: 0;
  color: var(--color-ink-muted);
}

.decision-list {
  border-top: 1px solid var(--color-line);
}

.decision-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 28px;
  padding: 38px 0;
  border-bottom: 1px solid var(--color-line);
}

.decision-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-medium);
  background: linear-gradient(145deg, var(--color-accent-deep), var(--color-accent-soft));
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.decision-row h3 {
  font-size: 22px;
}

.decision-row p {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--color-ink-muted);
  line-height: 1.82;
}

@media (max-width: 1100px) {
  .home-hero {
    min-height: auto;
  }

  .route-visual {
    min-height: 520px;
  }

  .route-map-shell {
    width: min(100%, 640px);
    transform: none;
  }
}

@media (max-width: 860px) {
  .route-guidance,
  .status-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .server-status {
    grid-template-columns: 1fr;
  }

  .traffic-pack-note {
    grid-template-columns: 1fr;
  }

  .traffic-pack-note .btn {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .route-visual {
    min-height: 390px;
  }

  .route-map-shell {
    border-radius: var(--radius-large);
  }

  .route-map-head,
  .route-map-foot {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 8px;
  }

  .route-node text {
    font-size: 17px;
  }

  .route-guidance {
    gap: 30px;
    margin-top: 34px;
  }

  .status-heading {
    margin-top: 50px;
  }

  .srv-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .srv-type {
    display: none;
  }

  .srv-bw {
    grid-column: 3 / -1;
    justify-self: end;
  }

  .traffic-pack-note {
    padding: 24px;
  }

  .traffic-pack-note .btn {
    width: 100%;
  }

  .decision-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 30px 0;
  }

  .decision-index {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-map-shell {
    transform: none;
  }
}