.deepdoc-hero {
  position: relative;
  padding-top: 72px;
  padding-bottom: 78px;
  overflow-x: clip;
}

.deepdoc-hero::after {
  position: absolute;
  z-index: -1;
  top: 10%;
  right: 4%;
  width: min(42vw, 540px);
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: rgba(var(--rgb-accent), .1);
  content: "";
  filter: blur(58px);
  pointer-events: none;
}

.deepdoc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr);
  gap: 68px;
  align-items: center;
}

.deepdoc-hero-copy {
  min-width: 0;
  max-width: 680px;
}

.deepdoc-hero-copy h1 {
  margin-top: 20px;
}

.deepdoc-lede {
  max-width: 650px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.8;
}

.deepdoc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.deepdoc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
  list-style: none;
}

.deepdoc-facts li {
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding-right: 22px;
}

.deepdoc-facts li + li {
  padding-left: 22px;
  border-left: 1px solid var(--color-border);
}

.deepdoc-facts strong {
  font-family: var(--font-mono);
  font-size: 16px;
}

.deepdoc-facts span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.deepdoc-map {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background:
    radial-gradient(rgba(var(--rgb-text), .07) .55px, transparent .8px),
    linear-gradient(145deg, var(--color-card-start), var(--color-panel));
  background-size: 13px 13px, 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-white), .9), var(--shadow-panel);
  transform: rotate(-1deg);
}

.deepdoc-map::before {
  position: absolute;
  top: 25%;
  right: 8%;
  left: 8%;
  height: 42%;
  border-radius: var(--radius-pill);
  background: rgba(var(--rgb-accent), .12);
  content: "";
  filter: blur(32px);
}

.deepdoc-map-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.deepdoc-map-head i {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(var(--rgb-success), .14);
}

.deepdoc-map svg {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 8px;
}

.map-band {
  fill: none;
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-opacity: .12;
  stroke-width: 74;
}

.map-route,
.map-branch {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-route-a {
  stroke: var(--color-text);
  stroke-width: 3;
}

.map-route-b {
  stroke: var(--color-accent-warm);
  stroke-dasharray: 8 10;
  stroke-width: 2;
}

.map-branch {
  stroke: var(--color-text-muted);
  stroke-dasharray: 4 8;
  stroke-width: 2;
}

.map-node {
  fill: var(--color-panel);
  stroke: var(--color-text);
  stroke-width: 4;
}

.map-node-local {
  fill: var(--color-text);
  stroke: var(--color-accent);
}

.map-node-end {
  fill: var(--color-accent);
}

.map-star {
  fill: var(--color-accent);
  stroke: var(--color-text);
  stroke-width: 1;
}

.deepdoc-map-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

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

.deepdoc-map-legend i {
  width: 18px;
  height: 3px;
  border-radius: var(--radius-pill);
}

.legend-direct {
  background: var(--color-text-muted);
}

.legend-relay {
  background: var(--color-accent-warm);
}

.legend-premium {
  background: var(--color-text);
}

.deepdoc-body {
  max-width: 1080px;
  padding-top: 28px;
  padding-bottom: 72px;
}

.deepdoc-intro {
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-panel);
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-white), .9), var(--shadow-card);
}

.deepdoc-intro p {
  font-size: 17px;
}

.deepdoc-intro p + p {
  margin-top: 14px;
}

.deepdoc-body .toc-tabs {
  margin-top: 34px;
}

.deepdoc-section {
  padding-top: 30px;
  padding-bottom: 26px;
}

.deepdoc-section + .deepdoc-section {
  border-top: 1px solid var(--color-border);
}

.deepdoc-section h2 {
  max-width: 800px;
  margin-top: 0;
  margin-bottom: 26px;
}

.deepdoc-section h3 {
  margin-top: 42px;
  margin-bottom: 14px;
  font-size: 24px;
}

.deepdoc-section p {
  font-size: 17px;
  line-height: 1.9;
}

.deepdoc-section p + p {
  margin-top: 18px;
}

.deepdoc-section .callout,
.deepdoc-section .table-scroll {
  margin-top: 28px;
  margin-bottom: 28px;
}

.deepdoc-section .callout {
  font-size: 16px;
  line-height: 1.75;
}

.deepdoc-section .compare-table {
  min-width: 820px;
}

.deepdoc-section .compare-table td {
  color: var(--color-text-muted);
  line-height: 1.55;
}

.deepdoc-section .compare-table td:first-child {
  font-family: var(--font-mono);
}

@media (max-width: 980px) {
  .deepdoc-hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .deepdoc-hero-copy {
    max-width: 760px;
  }

  .deepdoc-map {
    width: min(100%, 680px);
    margin-inline: auto;
    transform: none;
  }
}

@media (max-width: 768px) {
  .deepdoc-hero {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .deepdoc-lede,
  .deepdoc-intro p,
  .deepdoc-section p {
    font-size: 16px;
  }

  .deepdoc-map {
    padding: 18px;
  }

  .deepdoc-section h3 {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .deepdoc-hero {
    padding-top: 38px;
    padding-bottom: 44px;
  }

  .deepdoc-hero-grid {
    gap: 34px;
  }

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

  .deepdoc-hero-actions .btn {
    width: 100%;
  }

  .deepdoc-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .deepdoc-facts li {
    padding-right: 0;
  }

  .deepdoc-facts li + li {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .deepdoc-map {
    padding: 14px;
  }

  .deepdoc-map-legend {
    gap: 10px;
  }

  .deepdoc-intro {
    padding: 20px;
  }

  .deepdoc-body {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .deepdoc-section {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .deepdoc-section h2 {
    margin-bottom: 22px;
  }

  .deepdoc-section h3 {
    margin-top: 34px;
  }
}

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