.stream-hero {
  position: relative;
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 76% 42%, var(--color-accent-soft), var(--color-transparent) 34%),
    linear-gradient(var(--color-bg), var(--color-bg));
}

.stream-hero::before {
  content: "";
  position: absolute;
  inset: 52% 0 0;
  opacity: 0.8;
  background-image:
    linear-gradient(var(--color-grid-line) 1px, var(--color-transparent) 1px),
    linear-gradient(90deg, var(--color-grid-line) 1px, var(--color-transparent) 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.stream-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  padding-top: 72px;
  padding-bottom: 72px;
}

.stream-hero-copy h1 {
  max-width: 670px;
  margin-top: 18px;
  margin-bottom: 0;
}

.stream-hero-copy h1 span {
  display: block;
}

.stream-lead {
  max-width: 650px;
  margin-top: 24px;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.85;
}

.stream-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.stream-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.stream-console {
  overflow: hidden;
  border: 1px solid var(--color-device-line);
  border-radius: var(--radius-md);
  background: var(--color-device);
  box-shadow: var(--shadow-device);
  transform: rotate(0.7deg);
}

.stream-console-head,
.stream-console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-device-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.stream-console-head {
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-device-line);
  background: var(--color-device-deep);
  font-size: 10px;
}

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

.stream-console-state i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.stream-frame {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--color-scene-shadow);
}

.stream-frame-sky {
  position: absolute;
  inset: 0 0 45%;
  background:
    radial-gradient(circle at 74% 26%, var(--color-scene-sun) 0 7%, var(--color-transparent) 7.5%),
    linear-gradient(180deg, var(--color-scene-sky), var(--color-scene-light));
}

.stream-frame-land {
  position: absolute;
  right: 0;
  bottom: 37%;
  left: 0;
  transform-origin: center bottom;
}

.stream-frame-land-back {
  height: 48%;
  background: var(--color-scene-dark);
  clip-path: polygon(0 100%, 0 73%, 14% 47%, 27% 65%, 44% 22%, 59% 61%, 74% 33%, 87% 58%, 100% 38%, 100% 100%);
  opacity: 0.74;
}

.stream-frame-land-front {
  height: 35%;
  background: var(--color-scene-shadow);
  clip-path: polygon(0 100%, 0 74%, 19% 45%, 34% 72%, 51% 28%, 67% 66%, 84% 40%, 100% 72%, 100% 100%);
}

.stream-frame-water {
  position: absolute;
  inset: 63% 0 0;
  background:
    linear-gradient(var(--color-device-glass) 1px, var(--color-transparent) 1px),
    var(--color-scene-water);
  background-size: 100% 26px;
}

.stream-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 1px;
  background: var(--color-scene-light);
  box-shadow: 0 0 18px var(--color-accent);
}

.stream-scan-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 46px;
  border: 1px solid var(--color-scene-light);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  transform: translate(-50%, -50%);
}

.stream-frame-label {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--color-device-line);
  border-radius: var(--radius-xs);
  background: var(--color-device-deep);
  font-family: var(--font-mono);
}

.stream-frame-label span {
  color: var(--color-device-muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.stream-frame-label strong {
  color: var(--color-device-text);
  font-size: 12px;
  font-weight: 500;
}

.stream-console-foot {
  min-height: 58px;
  padding: 0 18px;
  border-top: 1px solid var(--color-device-line);
  background: var(--color-device-deep);
  font-size: 9px;
}

.stream-toc-host {
  position: relative;
  z-index: 20;
  padding-top: 22px;
}

.stream-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  overflow-x: clip;
}

.stream-section-muted {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-secondary);
}

.stream-section-dark {
  background: var(--color-device);
  color: var(--color-device-text);
}

.stream-section-dark h2,
.stream-section-dark h3 {
  color: var(--color-device-text);
}

.stream-section-dark .section-heading p {
  color: var(--color-device-muted);
}

.stream-support-table {
  min-width: 940px;
}

.stream-split {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
}

.stream-split-reverse .stream-index {
  order: 2;
}

.stream-index {
  position: relative;
  min-height: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--color-accent-line);
  font-family: var(--font-mono);
}

.stream-index::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 9px;
  border-left: 1px dashed var(--color-accent-line);
}

.stream-index span,
.stream-index strong {
  display: block;
}

.stream-index span {
  color: var(--color-accent-dark);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.stream-index strong {
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 500;
}

.stream-content {
  max-width: 900px;
}

.stream-content > p {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.9;
}

.stream-content > p strong {
  color: var(--color-text);
}

.stream-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stream-steps article {
  position: relative;
  padding: 26px;
}

.stream-steps article + article {
  border-left: 1px solid var(--color-border);
}

.stream-steps span {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
}

.stream-steps h3 {
  margin-top: 10px;
  font-size: 21px;
}

.stream-steps p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.stream-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.stream-compare article {
  min-height: 280px;
}

.stream-compare h3 {
  margin-top: 12px;
}

.stream-compare ul {
  color: var(--color-text-muted);
}

.stream-compare .panel-dark ul {
  color: var(--color-device-muted);
}

.quality-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 52px;
  border-top: 1px solid var(--color-device-line);
}

.quality-timeline article {
  position: relative;
  padding: 40px 24px 12px 0;
}

.quality-timeline article + article {
  padding-left: 24px;
  border-left: 1px solid var(--color-device-line);
}

.quality-marker {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--color-device);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.quality-timeline article + article .quality-marker {
  left: 24px;
}

.quality-timeline .mono {
  color: var(--color-scene-light);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.quality-timeline h3 {
  margin-top: 10px;
  font-size: 21px;
}

.quality-timeline p {
  color: var(--color-device-muted);
  font-size: 14px;
}

.stream-section-dark .callout {
  border-color: var(--color-device-line);
  border-left-color: var(--color-warning);
  background: var(--color-device-deep);
  color: var(--color-device-text);
}

.stream-section-dark .callout p {
  color: var(--color-device-muted);
}

.error-ledger {
  border-top: 1px solid var(--color-border);
}

.error-ledger article {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding-top: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
}

.error-label {
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: start;
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 12px;
}

.error-ledger h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

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

.selection-flow {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: route-flow;
  border-top: 1px solid var(--color-border);
}

.selection-flow li {
  position: relative;
  min-height: 118px;
  margin: 0;
  padding: 28px 0 28px 72px;
  border-bottom: 1px solid var(--color-border);
  counter-increment: route-flow;
}

.selection-flow li::before {
  content: counter(route-flow);
  position: absolute;
  top: 30px;
  left: 0;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent-line);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 13px;
}

.selection-flow h3 {
  margin-bottom: 7px;
  font-size: 21px;
}

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

.stream-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--color-device-line);
  border-radius: var(--radius-md);
  background: var(--color-device);
  color: var(--color-device-text);
  box-shadow: var(--shadow-device);
}

.stream-next .mono {
  color: var(--color-scene-light);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.stream-next h2 {
  margin-top: 10px;
  margin-bottom: 12px;
  color: var(--color-device-text);
}

.stream-next p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--color-device-muted);
}

.stream-next-links {
  display: grid;
  gap: 10px;
}

@media (max-width: 980px) {
  .stream-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

  .stream-console {
    width: min(760px, 100%);
    transform: none;
  }

  .stream-split {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 32px;
  }

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

  .quality-timeline article:nth-child(3) {
    border-left: 0;
  }

  .stream-next {
    grid-template-columns: 1fr;
  }

  .stream-next-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  .stream-hero-inner {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .stream-lead {
    font-size: 16px;
  }

  .stream-frame {
    min-height: 290px;
  }

  .stream-console-foot {
    gap: 12px;
    overflow-x: auto;
  }

  .stream-split,
  .stream-split-reverse {
    grid-template-columns: 1fr;
  }

  .stream-split-reverse .stream-index {
    order: initial;
  }

  .stream-index {
    min-height: 44px;
  }

  .stream-index::after {
    right: 0;
    bottom: auto;
    left: 0;
    border-top: 1px dashed var(--color-accent-line);
    border-left: 0;
  }

  .stream-content > p {
    font-size: 16px;
  }

  .stream-steps,
  .stream-compare {
    grid-template-columns: 1fr;
  }

  .stream-steps article + article {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .error-ledger article {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .stream-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stream-hero-actions .button {
    min-width: 0;
  }

  .stream-frame {
    min-height: 240px;
  }

  .stream-frame-label {
    top: 12px;
    left: 12px;
  }

  .stream-console-foot {
    justify-content: flex-start;
  }

  .quality-timeline {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .quality-timeline article,
  .quality-timeline article + article {
    padding: 28px 0 28px 26px;
    border-top: 1px solid var(--color-device-line);
    border-left: 0;
  }

  .quality-timeline article + article .quality-marker,
  .quality-marker {
    top: 24px;
    left: -5px;
  }

  .selection-flow li {
    padding-left: 58px;
  }

  .selection-flow li::before {
    width: 36px;
    height: 36px;
  }

  .stream-next-links {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .stream-next-links .button {
    width: 100%;
  }
}