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

.hero-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-success);
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 540px) minmax(440px, 1fr);
  gap: 42px;
}

.home-hero .hero-copy h1 {
  max-width: 540px;
}

.home-hero .hero-lead strong {
  color: var(--color-text);
}

.hero-route-rig {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 610px;
  align-items: center;
  justify-content: center;
}

.route-sheet {
  position: absolute;
  width: min(560px, calc(100% - 42px));
  aspect-ratio: 1.12;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.route-sheet-back {
  transform: rotate(6deg) translate(18px, 10px);
  background: var(--color-panel);
}

.route-sheet-middle {
  transform: rotate(3deg) translate(9px, 5px);
  background: var(--color-panel-raised);
}

.home-route-map {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 42px));
  aspect-ratio: 1.12;
  overflow: hidden;
  transform: rotate(1.5deg);
  background:
    radial-gradient(circle at 50% 52%, var(--color-accent-glow), transparent 36%),
    var(--color-panel);
  box-shadow: var(--shadow-deep);
}

.route-map-head,
.route-map-foot {
  position: absolute;
  right: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.route-map-head {
  top: 15px;
}

.route-map-foot {
  bottom: 14px;
  justify-content: flex-start;
  gap: 20px;
}

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

.route-map-foot i {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-success);
}

.home-route-map svg {
  display: block;
}

.route-grid-lines {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1;
  opacity: 0.48;
}

.home-route-lines {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
}

.home-route-lines .route-arc-secondary {
  stroke: var(--color-text-muted);
  stroke-width: 1.2;
  opacity: 0.58;
}

.route-halo circle {
  fill: var(--color-accent);
  opacity: 0.54;
}

.route-points circle {
  fill: var(--color-success);
  stroke: var(--color-panel);
  stroke-width: 4;
}

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

.route-pulses circle {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: route-pulse 2.8s ease-in-out infinite;
}

.route-pulses circle:nth-child(2) {
  animation-delay: 0.45s;
}

.route-pulses circle:nth-child(3) {
  animation-delay: 0.9s;
}

.home-route-labels rect {
  fill: var(--color-panel-raised);
  stroke: var(--color-border);
}

.home-route-labels text {
  fill: var(--color-text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 750;
}

.route-rig-note {
  position: absolute;
  z-index: 4;
  min-width: 142px;
  padding: 12px 15px;
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  color: var(--color-ink);
  box-shadow: var(--shadow-card);
}

.route-rig-note span,
.route-rig-note strong {
  display: block;
}

.route-rig-note span {
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.route-rig-note strong {
  margin-top: 3px;
  color: var(--color-ink);
  font-size: 13px;
}

.route-rig-note-top {
  top: 34px;
  right: -5px;
  transform: rotate(2deg);
}

.route-rig-note-bottom {
  bottom: 0;
  left: -8px;
  transform: rotate(-2deg);
}

@keyframes route-pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.72);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.16);
  }
}

.fact-band {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
}

.fact-band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact-band-grid > div {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
}

.fact-band-grid > div + div {
  border-left: 1px solid var(--color-border);
}

.fact-band span {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.fact-band strong {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 16px;
}

.node-preview {
  background: var(--color-bg);
}

.route-guidance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.route-guidance > div {
  padding: 25px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

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

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

.section-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 24px;
  color: var(--color-accent);
  font-weight: 800;
}

.feature-section,
.pricing-preview,
.blog-preview {
  background: var(--color-panel);
}

.feature-section .feature-ledger {
  box-shadow: var(--shadow-deep);
}

.client-section,
.difference-section {
  background: var(--color-bg);
}

.client-section .platform-card {
  transition:
    transform var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease;
}

.client-section .platform-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-text-muted);
  background: var(--color-panel-raised);
}

.plan-fit {
  color: var(--color-text-muted);
  font-size: 13px;
}

.traffic-pack-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel-raised);
}

.traffic-pack-note h3 {
  margin-bottom: 9px;
}

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

.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.difference-grid article {
  position: relative;
  padding: 29px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
}

.difference-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.difference-grid h3 {
  font-size: 21px;
}

.difference-grid p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.operating-notes {
  margin-top: 24px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel-raised);
}

.operating-notes h3 {
  font-size: 24px;
}

.operating-notes p {
  color: var(--color-text-muted);
}

.operating-notes p:last-child {
  margin-bottom: 0;
}

.blog-head-row {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.blog-head-row .section-link {
  margin-top: 0;
}

.home-cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 12%, var(--color-accent-glow), transparent 32%),
    var(--color-panel-raised);
  box-shadow: var(--shadow-soft);
}

.home-cta-band h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.home-cta-band p {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.server-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.srv-row {
  display: grid;
  min-width: 0;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  color: var(--color-text-muted);
}

.srv-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  animation: server-dot-pulse 2.4s ease-in-out infinite;
}

.srv-flag {
  display: grid;
  width: 30px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-panel-raised);
}

.srv-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-weight: 750;
}

.srv-type {
  max-width: 100%;
  padding: 3px 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 11px;
  white-space: nowrap;
}

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

@keyframes server-dot-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1120px) {
  .home-hero .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1fr);
    gap: 24px;
  }

  .hero-route-rig {
    min-height: 560px;
  }

  .route-rig-note-top {
    right: 0;
  }

  .route-rig-note-bottom {
    left: 0;
  }

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

@media (max-width: 860px) {
  .home-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-route-rig {
    min-height: 580px;
  }

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

  .fact-band-grid > div + div {
    border-left: 0;
  }

  .fact-band-grid > div:nth-child(even) {
    border-left: 1px solid var(--color-border);
  }

  .fact-band-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

  .traffic-pack-note,
  .blog-head-row,
  .home-cta-band {
    grid-template-columns: 1fr;
  }

  .blog-head-row {
    align-items: start;
  }
}

@media (max-width: 768px) {
  .route-sheet,
  .home-route-map,
  .route-rig-note {
    transform: none;
  }

  .route-rig-note-top {
    top: 16px;
  }

  .route-rig-note-bottom {
    bottom: 16px;
  }

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

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

@media (max-width: 640px) {
  .home-hero .hero-grid {
    padding-top: 36px;
  }

  .home-hero .hero-copy h1 {
    margin-top: 17px;
  }

  .home-hero .hero-actions {
    margin-bottom: 17px;
  }

  .home-hero .hero-lead {
    font-size: 14px;
  }

  .hero-route-rig {
    min-height: 440px;
  }

  .route-sheet,
  .home-route-map {
    width: 100%;
  }

  .route-map-head {
    right: 12px;
    left: 12px;
    font-size: 8px;
  }

  .route-map-foot {
    display: none;
  }

  .route-rig-note {
    min-width: 118px;
    padding: 9px 11px;
  }

  .route-rig-note-top {
    top: 0;
    right: 0;
  }

  .route-rig-note-bottom {
    bottom: 0;
    left: 0;
  }

  .fact-band-grid > div {
    min-height: 68px;
    padding: 13px 15px;
  }

  .fact-band-grid > div {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  .fact-band strong {
    font-size: 14px;
  }

  .route-guidance > div {
    padding: 21px;
  }

  .traffic-pack-note,
  .operating-notes,
  .difference-grid article {
    padding: 23px;
  }

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

  .srv-type {
    display: none;
  }

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

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

  .route-rig-note span {
    display: none;
  }

  .route-rig-note {
    min-width: auto;
  }

  .fact-band-grid {
    grid-template-columns: 1fr;
  }

  .fact-band-grid > div:nth-child(even) {
    border-left: 0;
  }

  .fact-band-grid > div + div {
    border-top: 1px solid var(--color-border);
  }

  .srv-row {
    gap: 7px;
    padding-inline: 11px;
  }

  .srv-flag {
    width: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-pulses circle,
  .srv-dot {
    animation: none;
  }
}