.home-hero {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-page);
}

.home-hero-layout {
  width: 100%;
  max-width: calc(var(--page-width) + (var(--gutter) * 2));
  min-height: calc(100svh - var(--header-height));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  padding-inline: var(--gutter);
}

.home-hero-copy {
  min-width: 0;
  align-self: center;
  padding-top: 46px;
  padding-right: clamp(28px, 5vw, 76px);
  padding-bottom: 46px;
}

.home-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(48px, 5vw, 72px);
}

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

.hero-summary {
  max-width: 700px;
  margin-bottom: 16px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.75;
}

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

.hero-facts {
  margin-bottom: 12px;
}

.hero-platforms {
  justify-content: flex-start;
  margin-top: 0;
}

.hero-platforms .platform-link {
  min-width: 104px;
}

.home-hero-poster {
  position: relative;
  min-width: 0;
  min-height: 610px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 42px 32px 80px;
}

.home-hero-poster::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-top: 1px solid var(--color-white);
  border-right: 1px solid var(--color-white);
}

.home-hero-poster::after {
  content: "";
  position: absolute;
  top: 60px;
  right: 58px;
  bottom: 60px;
  width: 1px;
  background: var(--color-white);
  opacity: 0.32;
}

.poster-word {
  position: absolute;
  top: 86px;
  left: -12px;
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: clamp(74px, 9vw, 138px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.08em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.8;
}

.poster-label {
  position: absolute;
  top: 38px;
  left: 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.poster-fleet {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
}

.poster-device {
  position: relative;
  flex: 0 1 auto;
}

.poster-screen {
  height: 100%;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-page);
  padding: 8px;
}

.poster-screen img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.poster-switch {
  width: 24px;
  height: 13px;
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: flex-end;
  background: var(--color-success);
  padding: 2px;
}

.poster-switch::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
}

.poster-monitor {
  width: 126px;
  height: 116px;
}

.poster-monitor .poster-screen {
  height: 82px;
}

.poster-monitor > i {
  width: 24px;
  height: 24px;
  margin-inline: auto;
  border-right: 2px solid var(--color-white);
  border-left: 2px solid var(--color-white);
  display: block;
}

.poster-monitor > b {
  width: 62px;
  height: 7px;
  margin-inline: auto;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-pill);
  display: block;
}

.poster-laptop {
  width: 132px;
  height: 103px;
}

.poster-laptop .poster-screen {
  width: 116px;
  height: 92px;
  margin-inline: auto;
}

.poster-laptop > i {
  width: 132px;
  height: 8px;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-xs) var(--radius-xs) var(--radius-pill) var(--radius-pill);
  display: block;
}

.poster-terminal {
  width: 112px;
  height: 105px;
  overflow: hidden;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-xs);
  background: var(--color-terminal);
}

.poster-terminal-bar {
  height: 18px;
  border-bottom: 1px solid var(--color-border-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-panel);
  padding-inline: 7px;
}

.poster-terminal-bar span {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-border-dark);
}

.poster-terminal-bar span:first-child {
  background: var(--color-error);
}

.poster-terminal-bar span:nth-child(2) {
  background: var(--color-warn);
}

.poster-terminal-bar span:last-child {
  background: var(--color-success);
}

.poster-terminal-body {
  padding: 9px;
  color: var(--color-terminal-text);
  font-family: var(--font-mono);
  font-size: 6px;
  line-height: 1.8;
}

.poster-terminal-body img {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
}

.poster-terminal-body em {
  display: block;
  font-style: normal;
}

.poster-phone {
  width: 54px;
  height: 112px;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-md);
  background: var(--color-page);
  padding: 5px;
}

.poster-phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  transform: translateX(-50%);
}

.poster-phone .poster-screen {
  border-color: var(--color-border);
  flex-direction: column;
  gap: 7px;
  border-radius: var(--radius-sm);
  padding-top: 13px;
}

.poster-phone .poster-screen img {
  width: 25px;
  height: 25px;
}

.poster-phone-small {
  width: 51px;
  height: 105px;
}

.poster-baseline {
  position: absolute;
  right: 28px;
  bottom: 78px;
  left: 28px;
  height: 1px;
  background: var(--color-white);
}

.poster-footnote {
  position: absolute;
  right: 32px;
  bottom: 35px;
  left: 32px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-align: right;
}

.workflow-code,
.repo-label,
.platform-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.workflow-panel > p {
  max-width: 760px;
  color: var(--color-muted);
}

.platform-download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.platform-download-card {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  background: var(--color-page);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.platform-download-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 20px;
}

.platform-download-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  margin-bottom: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--color-panel);
  color: var(--color-accent);
}

.platform-download-icon svg {
  width: 24px;
  height: 24px;
}

.platform-download-card-wide .platform-download-icon {
  margin-bottom: 0;
}

.platform-download-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.platform-download-card p {
  flex-grow: 1;
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: 14px;
}

.section-link-row {
  margin-top: 28px;
  text-align: right;
}

.text-link {
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 800;
}

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

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: clamp(28px, 5vw, 68px);
}

.trust-copy p {
  color: var(--color-muted);
}

.repo-panel {
  position: sticky;
  top: 24px;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-page);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.repo-panel h3 {
  font-size: 24px;
}

.repo-panel > p {
  color: var(--color-muted);
  font-size: 14px;
}

.command-box {
  min-width: 0;
  margin-top: 20px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--color-terminal);
}

.command-box code {
  min-width: 0;
  overflow-x: auto;
  border-radius: 0;
  background: var(--color-terminal);
  color: var(--color-terminal-text);
  padding: 15px;
  font-size: 11px;
  white-space: nowrap;
  scrollbar-width: thin;
}

.copy-button {
  min-width: 68px;
  border: 0;
  border-left: 1px solid var(--color-border-dark);
  background: var(--color-panel);
  color: var(--color-text);
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
}

.copy-button:hover {
  background: var(--color-panel-strong);
}

.repo-notes {
  margin: 22px 0 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
  font-size: 13px;
}

.repo-notes strong {
  color: var(--color-text);
}

.home-faq {
  padding-top: clamp(58px, 8vw, 92px);
}

.home-faq .faq-answer a {
  color: var(--color-accent-dark);
  font-weight: 750;
}

@media (max-width: 1080px) {
  .home-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  }

  .home-hero-copy {
    padding-right: 30px;
  }

  .home-hero-poster {
    padding-right: 20px;
    padding-left: 20px;
  }

  .poster-fleet {
    gap: 5px;
    transform: scale(0.86);
    transform-origin: bottom center;
  }

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

@media (max-width: 900px) {
  .home-hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .home-hero-copy {
    padding: 48px var(--gutter) 38px;
  }

  .home-hero-poster {
    min-height: 390px;
  }

  .poster-word {
    top: 48px;
    font-size: 92px;
    writing-mode: horizontal-tb;
  }

  .poster-fleet {
    transform: none;
  }

  .trust-layout {
    grid-template-columns: 1fr;
  }

  .repo-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .home-hero-copy {
    padding-top: 32px;
    padding-bottom: 30px;
  }

  .home-hero-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  .hero-summary {
    font-size: 14px;
  }

  .hero-facts {
    gap: 6px;
  }

  .hero-facts .chip {
    font-size: 11px;
  }

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

  .hero-platforms .platform-link {
    min-width: 0;
  }

  .hero-platforms .platform-link:last-child {
    grid-column: 1 / -1;
  }

  .home-hero-poster {
    min-height: 310px;
    padding-right: 12px;
    padding-bottom: 66px;
    padding-left: 12px;
  }

  .home-hero-poster::before {
    top: 20px;
    right: 18px;
  }

  .home-hero-poster::after {
    right: 44px;
    bottom: 48px;
  }

  .poster-label {
    top: 20px;
    left: 18px;
  }

  .poster-word {
    top: 50px;
    left: -4px;
    font-size: 68px;
  }

  .poster-fleet {
    gap: 3px;
    transform: scale(0.7);
    transform-origin: bottom center;
  }

  .poster-baseline {
    bottom: 65px;
  }

  .poster-footnote {
    right: 18px;
    bottom: 24px;
    left: 18px;
    text-align: center;
  }

  .platform-download-grid {
    grid-template-columns: 1fr;
  }

  .platform-download-card-wide {
    grid-column: auto;
    display: flex;
  }

  .platform-download-card-wide .platform-download-icon {
    margin-bottom: 18px;
  }

  .section-link-row {
    text-align: left;
  }

  .command-box {
    grid-template-columns: 1fr;
  }

  .copy-button {
    min-height: 44px;
    border-top: 1px solid var(--color-border-dark);
    border-left: 0;
  }
}

@media (max-width: 380px) {
  .poster-fleet {
    transform: scale(0.61);
  }
}