:root {
  --home-hero-min-height: 690px;
  --home-copy-width: 650px;
  --home-visual-width: 720px;
  --home-grid-line: var(--color-border);
  --home-dark-panel: var(--color-text);
  --home-dark-copy: var(--color-canvas);
  --home-section-rule: var(--color-border);
  --home-soft-fill: var(--color-panel);
  --home-strong-fill: var(--color-panel-strong);
}

.home-hero {
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-canvas);
}

.home-hero-grid {
  display: grid;
  min-height: var(--home-hero-min-height);
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
}

.home-hero-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--color-canvas);
}

.home-hero-copy-inner {
  width: 100%;
  max-width: var(--home-copy-width);
  padding: 48px 54px 48px var(--gutter);
}

.home-hero h1 {
  margin: 18px 0 24px;
}

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

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.home-hero .hero-description {
  margin-top: 0;
  margin-bottom: 18px;
}

.hero-required-groups {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.hero-platform-line,
.hero-flag-line {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.hero-group-label {
  min-width: 34px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.hero-platform-item,
.hero-flag-item {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  padding: 4px 7px;
  background: var(--color-canvas);
  color: var(--color-text-muted);
  font-size: 0.67rem;
  font-weight: 650;
  line-height: 1.2;
}

.hero-platform-item svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--color-text);
}

.hero-flag-item svg {
  width: 22px;
  height: 15px;
  flex: 0 0 22px;
}

.home-hero-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--color-border);
  padding: 46px 42px;
  background-color: var(--home-soft-fill);
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
}

.home-hero-visual::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  border-left: 1px solid var(--color-divider);
  background: var(--home-strong-fill);
  content: "";
}

.home-hero-visual::after {
  position: absolute;
  right: -58px;
  bottom: -72px;
  width: 280px;
  height: 280px;
  border: 38px solid var(--color-canvas);
  border-radius: 50%;
  content: "";
  opacity: 0.72;
}

.home-matrix {
  position: relative;
  z-index: 2;
  max-width: var(--home-visual-width);
}

.home-matrix .matrix-grid {
  grid-template-columns: 132px repeat(5, minmax(58px, 1fr));
}

.home-fact-band {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
}

.home-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-fact-grid > div {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.home-fact-grid > div:first-child {
  border-left: 1px solid var(--color-border);
}

.home-fact-value {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.home-fact-label {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

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

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

.home-section-heading > p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

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

.home-feature-browser {
  align-items: start;
}

.home-feature-panels {
  min-width: 0;
}

.home-feature-panels .feature-detail[hidden] {
  display: none;
}

.home-feature-panels .feature-detail {
  min-height: 390px;
}

.home-feature-panels .feature-detail h3 {
  margin-bottom: 18px;
}

.home-feature-panels .feature-detail > p:not(.eyebrow):not(.spec-line) {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.home-rationale {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr);
  gap: 52px;
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
  padding-top: 38px;
}

.home-rationale h3 {
  margin-bottom: 0;
}

.home-rationale-copy {
  color: var(--color-text-muted);
}

.home-rationale-copy p:last-child {
  margin-bottom: 0;
}

.home-route-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.home-route-notes > div {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: var(--color-canvas);
}

.home-route-notes h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.home-route-notes p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.home-section-link {
  display: inline-flex;
  margin-top: 26px;
}

.home-client-note {
  margin-top: 22px;
}

.home-plan-audience {
  min-height: 118px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.home-pack-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--color-canvas);
}

.home-pack-panel h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.home-pack-panel p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.home-plan-explainer {
  margin-top: 22px;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
}

.home-plan-explainer h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.home-plan-explainer p {
  max-width: 900px;
  color: var(--color-text-muted);
}

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

.home-article-grid .article-card h3 {
  font-size: 1.08rem;
}

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

  .home-hero-copy {
    justify-content: center;
  }

  .home-hero-copy-inner {
    max-width: 820px;
    padding-right: var(--gutter);
  }

  .home-hero-visual {
    min-height: 570px;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

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

@media (max-width: 900px) {
  .home-section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

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

  .home-fact-grid > div:nth-child(2) {
    border-right: 1px solid var(--color-border);
  }

  .home-fact-grid > div:nth-child(3),
  .home-fact-grid > div:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }

  .home-fact-grid > div:nth-child(3) {
    border-left: 1px solid var(--color-border);
  }

  .home-rationale,
  .home-route-notes {
    grid-template-columns: 1fr;
  }

  .home-rationale {
    gap: 22px;
  }

  .home-pack-panel {
    grid-template-columns: 1fr;
  }

  .home-plan-audience {
    min-height: 0;
  }
}

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

  .home-hero-copy-inner {
    padding-top: 38px;
    padding-bottom: 32px;
  }

  .home-hero h1 {
    margin-top: 16px;
    margin-bottom: 20px;
  }

  .home-hero .hero-description {
    font-size: 0.91rem;
    line-height: 1.7;
  }

  .home-hero-actions {
    margin-bottom: 16px;
  }

  .home-hero .trust-list {
    gap: 6px 12px;
  }

  .home-hero .trust-list li {
    font-size: 0.74rem;
  }

  .hero-required-groups {
    margin-top: 16px;
    padding-top: 13px;
  }

  .hero-group-label {
    width: 100%;
  }

  .hero-platform-line,
  .hero-flag-line {
    gap: 5px;
  }

  .hero-platform-item,
  .hero-flag-item {
    min-height: 26px;
    padding: 3px 6px;
    font-size: 0.62rem;
  }

  .home-hero-visual {
    min-height: auto;
    padding: 22px 16px;
    background-size: 32px 32px;
  }

  .home-hero-visual::before {
    width: 26%;
  }

  .home-hero-visual::after {
    display: none;
  }

  .home-fact-grid > div {
    min-height: 74px;
    flex-direction: column;
    gap: 2px;
  }

  .home-fact-value {
    font-size: 0.88rem;
  }

  .home-fact-label {
    font-size: 0.7rem;
  }

  .home-feature-panels .feature-detail {
    min-height: 0;
  }

  .home-rationale {
    margin-top: 34px;
    padding-top: 28px;
  }

  .home-route-notes > div,
  .home-pack-panel {
    padding: 20px;
  }

  .home-article-grid {
    grid-template-columns: 1fr;
  }
}