.home-hero {
  min-height: calc(900px - var(--nav-height));
}

.home-hero .preview-hero-shell {
  grid-template-columns: minmax(600px, 1.12fr) minmax(390px, 0.88fr);
}

.home-hero .hero-copy-preview .button-row {
  margin-bottom: 24px;
}

.hero-note {
  max-width: 650px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--color-border);
  font-size: 0.92rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 42px;
}

.section-heading h2,
.section-heading .lead {
  margin-bottom: 0;
}

.platform-section,
.trust-section {
  background:
    linear-gradient(90deg, var(--color-text-faint) 1px, var(--color-transparent) 1px),
    var(--color-bg-panel-2);
  background-size: 38px 100%;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.platform-rack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  box-shadow: 14px 16px 0 var(--color-black-soft);
}

.platform-unit {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  border-right: 1px solid var(--color-border);
  border-bottom: 6px solid var(--color-border);
  background:
    repeating-linear-gradient(
      0deg,
      var(--color-transparent) 0,
      var(--color-transparent) 27px,
      var(--color-text-faint) 28px
    ),
    var(--color-bg-panel);
}

.platform-unit::after {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid var(--color-text-muted);
  border-radius: 50%;
  background: var(--color-bg);
}

.platform-unit:hover {
  border-bottom-color: var(--color-accent);
  background:
    repeating-linear-gradient(
      0deg,
      var(--color-transparent) 0,
      var(--color-transparent) 27px,
      var(--color-text-faint) 28px
    ),
    linear-gradient(145deg, var(--color-bg-panel), var(--color-bg-panel-2));
}

.platform-unit p {
  overflow-wrap: anywhere;
}

.platform-unit .btn {
  width: fit-content;
  margin-top: auto;
}

.platform-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--color-accent-dark);
  color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: inset 7px 7px 13px var(--color-shadow);
}

.platform-symbol svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.platform-unit:nth-child(1) .platform-symbol svg,
.platform-unit:nth-child(2) .platform-symbol svg {
  fill: currentColor;
  stroke: none;
}

.platform-guidance {
  margin-top: 34px;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.text-link:hover {
  color: var(--color-text);
}

.feature-section {
  position: relative;
}

.feature-console {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  border: 1px solid var(--color-border);
  border-bottom-width: 7px;
  background: var(--color-bg-panel);
  box-shadow: 16px 18px 0 var(--color-black-soft);
}

.feature-channels {
  min-width: 0;
  padding: 18px 0;
  border-right: 1px solid var(--color-border);
  background:
    repeating-linear-gradient(
      0deg,
      var(--color-transparent) 0,
      var(--color-transparent) 35px,
      var(--color-text-faint) 36px
    ),
    var(--color-bg-panel-2);
}

.feature-channel {
  position: relative;
  width: 100%;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 22px 14px 31px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-transparent);
  text-align: left;
  cursor: pointer;
}

.feature-channel:first-child {
  border-top: 1px solid var(--color-border);
}

.feature-channel::before {
  position: absolute;
  top: 19px;
  bottom: 19px;
  left: 0;
  width: 5px;
  content: "";
  background: var(--color-transparent);
}

.feature-channel span {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.feature-channel strong {
  font-size: 1.02rem;
}

.feature-channel:hover {
  color: var(--color-text);
  background: var(--color-text-faint);
}

.feature-channel[aria-selected="true"] {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.feature-channel[aria-selected="true"]::before {
  background: var(--color-error);
  box-shadow: 0 0 15px var(--color-error-soft);
}

.feature-channel[aria-selected="true"] span {
  color: var(--color-accent);
}

.feature-channel:focus-visible {
  z-index: 2;
  outline: 2px solid var(--color-accent);
  outline-offset: -4px;
}

.feature-display {
  position: relative;
  min-width: 0;
  min-height: 570px;
  padding: clamp(28px, 5vw, 58px);
  padding-bottom: 98px;
  background:
    linear-gradient(90deg, var(--color-text-faint) 1px, var(--color-transparent) 1px),
    var(--color-bg-panel);
  background-size: 28px 100%;
  box-shadow: inset 12px 13px 25px var(--color-shadow);
}

.feature-readout {
  max-width: 850px;
}

.feature-readout[hidden] {
  display: none;
}

.feature-readout h3 {
  font-size: clamp(26px, 3.3vw, 39px);
}

.feature-readout p {
  font-size: 1.02rem;
}

.feature-checks {
  display: grid;
  gap: 8px;
  margin: 25px 0 0;
  padding: 18px 20px 18px 42px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-panel-2);
  color: var(--color-text-muted);
}

.feature-checks li::marker {
  color: var(--color-error);
}

.signal-scale {
  position: absolute;
  right: clamp(28px, 5vw, 58px);
  bottom: 25px;
  left: clamp(28px, 5vw, 58px);
  height: 46px;
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background:
    repeating-linear-gradient(
      90deg,
      var(--color-border) 0,
      var(--color-border) 1px,
      var(--color-transparent) 1px,
      var(--color-transparent) 16px
    );
  background-size: 100% 8px;
  background-repeat: no-repeat;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.feature-callout {
  margin-top: 34px;
}

.trust-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.trust-entry {
  min-width: 0;
  padding: clamp(25px, 4vw, 40px);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, var(--color-text-faint) 1px, var(--color-transparent) 1px),
    var(--color-bg-panel);
  background-size: 32px 100%;
}

.trust-entry:nth-child(2),
.trust-entry:nth-child(3) {
  background:
    repeating-linear-gradient(
      0deg,
      var(--color-transparent) 0,
      var(--color-transparent) 31px,
      var(--color-text-faint) 32px
    ),
    var(--color-bg-panel-2);
}

.trust-entry p:last-child {
  margin-bottom: 0;
}

.repository-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 42px;
  margin-top: 36px;
}

.command-line {
  min-width: 0;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-accent-dark);
  background: var(--color-bg);
  box-shadow: inset 8px 9px 18px var(--color-shadow-deep);
}

.command-line code {
  min-width: 0;
  display: flex;
  align-items: center;
  flex: 1;
  overflow-x: auto;
  padding: 15px 17px;
  border: 0;
  color: var(--color-accent);
  background: var(--color-transparent);
  white-space: nowrap;
  overscroll-behavior-inline: contain;
}

.command-line .btn {
  flex-shrink: 0;
  border-top: 0;
  border-right: 0;
  border-bottom-width: 0;
  border-radius: var(--radius-none);
}

.home-faq {
  margin-top: 70px;
  padding-top: 42px;
  border-top: 1px solid var(--color-border);
}

.section-subhead {
  max-width: 760px;
  margin-bottom: 28px;
}

.home-faq > .text-link {
  margin-top: 24px;
}

.blog-section {
  position: relative;
}

.home-post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-post-grid .post-card {
  display: flex;
  flex-direction: column;
}

.home-post-grid .post-card > p:last-child {
  margin-bottom: 0;
}

.blog-footer-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

@media (max-width: 1180px) {
  .platform-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-unit:last-child {
    grid-column: 1 / -1;
  }

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

  .home-post-grid .post-card:last-child {
    grid-column: 1 / -1;
  }
}

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

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

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .feature-console {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-channels {
    display: flex;
    overflow-x: auto;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    overscroll-behavior-inline: contain;
  }

  .feature-channel {
    min-width: 175px;
    min-height: 76px;
    border-right: 1px solid var(--color-border);
    border-bottom: 0;
  }

  .feature-channel:first-child {
    border-top: 0;
  }

  .feature-channel::before {
    top: auto;
    right: 18px;
    bottom: 0;
    left: 18px;
    width: auto;
    height: 4px;
  }

  .feature-display {
    min-height: 650px;
  }

  .trust-ledger,
  .repository-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .command-line {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .platform-rack,
  .home-post-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-unit:last-child,
  .home-post-grid .post-card:last-child {
    grid-column: auto;
  }

  .feature-display {
    min-height: 760px;
  }
}

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

  .home-hero .preview-hero-shell {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .home-hero .hero-copy-preview {
    order: 1;
  }

  .home-hero .receiver-stage {
    order: 2;
  }

  .hero-note {
    font-size: 0.88rem;
  }

  .platform-rack {
    box-shadow: 8px 10px 0 var(--color-black-soft);
  }

  .platform-unit {
    padding: 24px 18px;
  }

  .feature-console {
    box-shadow: 8px 10px 0 var(--color-black-soft);
  }

  .feature-channel {
    min-width: 154px;
    padding-right: 17px;
    padding-left: 22px;
  }

  .feature-display {
    min-height: 880px;
    padding: 26px 18px 94px;
  }

  .feature-readout p {
    font-size: 0.97rem;
  }

  .feature-checks {
    padding-right: 15px;
    padding-left: 34px;
  }

  .signal-scale {
    right: 18px;
    left: 18px;
    font-size: 0.56rem;
  }

  .trust-entry {
    padding: 25px 18px;
  }

  .repository-panel {
    gap: 22px;
  }

  .command-line {
    flex-direction: column;
  }

  .command-line code {
    width: 100%;
    min-height: 58px;
  }

  .command-line .btn {
    width: 100%;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .blog-footer-link .btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .feature-display {
    min-height: 980px;
  }

  .signal-scale span:nth-child(2) {
    display: none;
  }
}