.home-hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-sky-top), var(--color-sky-bottom) 58%, var(--color-canvas));
  color: var(--color-ink);
}

.home-hero__copy {
  position: relative;
  z-index: 10;
  max-width: calc(940px + var(--gutter) * 2);
  padding-top: 34px;
  padding-bottom: 350px;
  text-align: center;
}

.hero-note {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding: 6px 13px;
  border: 1px solid var(--color-brand-soft);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-brand-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-note__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  animation: hero-note-pulse 2.8s ease-in-out infinite;
}

@keyframes hero-note-pulse {
  50% {
    opacity: 0.48;
    transform: scale(0.82);
  }
}

.home-hero h1 {
  max-width: 900px;
  margin-right: auto;
  margin-bottom: var(--space-4);
  margin-left: auto;
  color: var(--color-brand-deep);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.home-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.home-hero__lede {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: var(--space-4);
  margin-left: auto;
  color: var(--color-ink-muted);
  font-size: 16px;
  line-height: 1.7;
}

.home-hero__facts {
  justify-content: center;
}

.home-hero__facts .chip {
  background: var(--color-surface);
}

.hero-platforms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.hero-platform {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hero-platform:hover {
  border-color: var(--color-brand);
  color: var(--color-brand-deep);
}

.hero-platform__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--color-brand-wash);
  color: var(--color-brand-deep);
}

.hero-platform__icon svg {
  width: 14px;
  height: 14px;
}

.home-hero .route-flags {
  position: relative;
  z-index: 12;
}

.home-hero__landscape {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 420px;
  pointer-events: none;
}

.home-hero__landscape svg {
  width: 100%;
  height: 100%;
}

.fact-ribbon {
  position: relative;
  z-index: 8;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
}

.fact-ribbon__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.fact-ribbon__inner span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.fact-ribbon__inner strong {
  margin-right: var(--space-2);
  color: var(--color-brand-deep);
  font-weight: 700;
}

.home-feature-blocks {
  align-items: stretch;
}

.subscription-device {
  display: flex;
  flex-direction: column;
}

.subscription-device__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 13px;
}

.subscription-device__status {
  padding: 4px 9px;
  border: 1px solid var(--color-surface);
  border-radius: var(--radius-pill);
  font-size: 11px;
}

.subscription-tabs {
  display: flex;
  max-width: 100%;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.subscription-tabs button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid var(--color-brand-soft);
  border-radius: var(--radius-pill);
  background: var(--color-brand-deep);
  color: var(--color-surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.subscription-tabs button[aria-selected="true"] {
  border-color: var(--color-surface);
  background: var(--color-surface);
  color: var(--color-brand-deep);
}

.subscription-panels {
  display: grid;
  flex: 1;
}

.subscription-panel {
  grid-row: 1;
  grid-column: 1;
  min-height: 170px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-brand-deep);
  color: var(--color-surface);
}

.subscription-panel[hidden] {
  display: none;
}

.subscription-panel__field {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border: 1px solid var(--color-brand-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.subscription-panel__line {
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--color-brand-soft);
}

.subscription-panel__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
}

.subscription-panel__flow span {
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
}

.subscription-panel p {
  margin-top: var(--space-4);
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.65;
}

.routing-device {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.routing-device__root {
  padding: 10px 18px;
  border: 1px solid var(--color-surface);
  border-radius: var(--radius-pill);
  background: var(--color-success-deep);
  font-family: var(--font-mono);
  font-size: 13px;
}

.routing-device__stem {
  width: 2px;
  height: 34px;
  background: var(--color-surface);
}

.routing-device__branches,
.routing-device__rules {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.routing-device__branches span,
.routing-device__rules span {
  padding: 8px 5px;
  border: 1px solid var(--color-surface);
  border-radius: var(--radius-sm);
  text-align: center;
}

.routing-device__branches span {
  background: var(--color-success-deep);
  font-size: 12px;
  font-weight: 700;
}

.routing-device__rules {
  margin-top: var(--space-3);
}

.routing-device__rules span {
  background: var(--color-surface);
  color: var(--color-success-deep);
  font-size: 10px;
}

.feature-platform-strip__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.feature-platform-strip__heading h3 {
  margin-bottom: var(--space-2);
}

.feature-platform-strip__heading p {
  margin-bottom: 0;
  color: var(--color-ink);
}

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

.platform-download-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.platform-download-card__icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-brand-wash);
  color: var(--color-brand-deep);
}

.platform-download-card__icon svg {
  width: 25px;
  height: 25px;
}

.platform-download-card h3 {
  font-size: 23px;
}

.platform-download-card p {
  color: var(--color-ink-muted);
}

.platform-download-card .button {
  width: 100%;
  margin-top: auto;
}

.all-downloads-link {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.quickstart-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.5fr);
  gap: var(--space-8);
  align-items: start;
}

.quickstart-intro {
  position: sticky;
  top: calc(var(--header-height) + var(--space-5));
}

.quickstart-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quickstart-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  border-top: 1px solid var(--color-line);
}

.quickstart-steps li:last-child {
  border-bottom: 1px solid var(--color-line);
}

.quickstart-step__number {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-brand);
  color: var(--color-surface);
  font-family: var(--font-mono);
  font-weight: 700;
}

.quickstart-steps h3 {
  margin-bottom: var(--space-2);
}

.quickstart-steps p {
  margin-bottom: 0;
  color: var(--color-ink-muted);
}

.quick-answers {
  margin-top: var(--space-9);
}

.quick-answers .card h3 {
  font-size: 20px;
}

.quick-answers .card p {
  color: var(--color-ink-muted);
}

.ecosystem-section {
  background: var(--color-brand-wash);
}

.ecosystem-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.ecosystem-map__origin,
.ecosystem-map__branch {
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-lg);
}

.ecosystem-map__origin {
  grid-column: 1 / -1;
  background: var(--color-brand);
  color: var(--color-surface);
}

.ecosystem-map__origin h3,
.ecosystem-map__origin p {
  color: var(--color-surface);
}

.ecosystem-map__branch--green {
  background: var(--color-success);
  color: var(--color-surface);
}

.ecosystem-map__branch--green h3,
.ecosystem-map__branch--green p {
  color: var(--color-surface);
}

.ecosystem-map__branch--purple {
  background: var(--color-brand-soft);
  color: var(--color-ink);
}

.ecosystem-map__label {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ecosystem-map h3 {
  margin-bottom: var(--space-3);
}

.ecosystem-map p {
  margin-bottom: 0;
}

.trust-copy {
  max-width: 880px;
  margin-top: var(--space-8);
  margin-right: auto;
  margin-left: auto;
}

.trust-copy h3 {
  margin-top: var(--space-6);
}

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

.client-trust-grid {
  margin-top: var(--space-7);
}

.client-trust-grid .card h3 {
  margin-top: var(--space-4);
}

.client-trust-grid .card p {
  margin-bottom: 0;
  color: var(--color-ink-muted);
}

.notes-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.notes-heading .section-heading {
  margin-bottom: 0;
}

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

  .home-hero__landscape {
    width: 150%;
    left: -25%;
  }
}

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

  .home-hero__copy {
    padding-top: 28px;
    padding-bottom: 300px;
  }

  .home-hero h1 {
    font-size: clamp(26px, 7vw, 30px);
  }

  .home-hero__lede {
    font-size: 15px;
  }

  .home-hero__landscape {
    width: 210%;
    left: -55%;
    height: 330px;
  }

  .fact-ribbon__inner {
    justify-content: flex-start;
  }

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

  .quickstart-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .quickstart-intro {
    position: static;
  }

  .ecosystem-map {
    grid-template-columns: 1fr;
  }

  .ecosystem-map__origin {
    grid-column: auto;
  }

  .notes-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .home-hero__copy {
    padding-top: 22px;
    padding-bottom: 280px;
  }

  .home-hero__actions .button {
    width: auto;
  }

  .home-hero__facts {
    gap: 7px;
  }

  .home-hero__facts .chip {
    min-height: 32px;
    padding: 5px 11px;
    font-size: 12px;
  }

  .hero-platforms {
    gap: 7px;
  }

  .hero-platform {
    padding-right: 11px;
    font-size: 12px;
  }

  .hero-platform__icon {
    width: 26px;
    height: 26px;
  }

  .home-hero .route-flags {
    margin-top: 11px;
  }

  .feature-block__visual,
  .feature-block__copy,
  .feature-platform-strip {
    padding: 22px;
  }

  .subscription-panel__flow {
    align-items: stretch;
    flex-direction: column;
  }

  .subscription-panel__flow b {
    transform: rotate(90deg);
  }

  .quickstart-steps li {
    grid-template-columns: 1fr;
  }

  .quickstart-step__number {
    width: 46px;
    height: 46px;
  }
}

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

  .home-hero__actions {
    gap: var(--space-2);
  }

  .home-hero__actions .button {
    width: 100%;
  }

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

  .hero-platform {
    justify-content: flex-start;
  }

  .home-hero__landscape {
    width: 260%;
    left: -80%;
  }

  .routing-device__branches,
  .routing-device__rules {
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-note__dot {
    animation: none;
  }
}