.hero {
  display: grid;
  width: min(var(--max), calc(100% - 48px));
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1fr);
  align-items: center;
  gap: 64px;
  margin: 0 auto;
  padding: 42px 0 50px;
}

.hero-copy {
  min-width: 0;
}

.hero-logo {
  width: 150px;
  height: auto;
  margin: 0 0 16px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(54px, 5.4vw, 64px);
  line-height: 1;
}

.hero-copy > p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 28px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.proof-row span {
  border: 1px solid rgba(83, 108, 255, 0.22);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #3e4860;
  font-size: 13px;
  font-weight: 720;
}

.download-section {
  padding-top: 68px;
}

.feature-section,
.workflow-section,
.trust-section,
.latest-section {
  border-top: 1px solid var(--faint);
}

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

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  align-items: start;
  gap: 58px;
}

.workflow-list {
  display: grid;
}

.workflow-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  border-top: 1px solid var(--faint);
  padding: 26px 0;
}

.workflow-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.workflow-item > span {
  display: inline-flex;
  width: fit-content;
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 820;
}

.workflow-item h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.workflow-item p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.profiles-panel {
  padding: 28px;
  background: var(--bg-soft);
}

.profiles-panel > div:first-child h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
}

.profiles-panel > div:first-child p {
  margin: 10px 0 24px;
  color: var(--muted);
}

.trust-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.latest-section .article-grid {
  margin-top: 8px;
}

.final-cta {
  margin-bottom: 84px;
}

.page-hero-legal {
  border-bottom: 1px solid var(--faint);
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(230px, 0.52fr) minmax(0, 1fr);
  align-items: start;
  gap: 70px;
  padding: 72px 0 30px;
}

.legal-aside {
  position: sticky;
  top: 108px;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface-tint);
}

.legal-aside strong {
  display: block;
  font-size: 15px;
}

.legal-aside p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.legal-aside a {
  color: var(--accent-strong);
  font-weight: 760;
}

.legal-content {
  max-width: var(--reading-width);
}

.legal-page .compact-cta {
  margin-bottom: 84px;
}

.articles-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  border-bottom: 1px solid var(--faint);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.category-list span {
  border: 1px solid rgba(83, 108, 255, 0.2);
  border-radius: var(--radius);
  padding: 9px 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.articles-list-section {
  min-height: 620px;
}

.article-shell {
  max-width: 920px;
  padding: 82px 0 38px;
}

.article-header {
  border-bottom: 1px solid var(--faint);
  padding-bottom: 46px;
}

.article-category {
  display: inline-flex;
  margin: 42px 0 0;
  border-radius: 6px;
  padding: 7px 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 820;
}

.article-header h1 {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: clamp(48px, 6.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.article-excerpt {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-byline span:first-child {
  color: var(--text);
}

.article-body {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 64px 0 34px;
}

.related-section {
  border-top: 1px solid var(--faint);
}

.article-page .compact-cta {
  margin-bottom: 84px;
}

.error-state {
  display: flex;
  width: min(620px, calc(100% - 32px));
  min-height: calc(100vh - 180px);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}

.error-state img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.error-code {
  margin: 20px 0 0;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 880;
  letter-spacing: 0.16em;
}

.error-state h1 {
  margin: 12px 0 0;
  font-size: clamp(42px, 7vw, 62px);
  line-height: 1;
}

.error-state > p:not(.error-code) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.error-state .button-row {
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-demo {
    max-width: 760px;
  }

  .feature-grid,
  .trust-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-layout,
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-shell {
    gap: 36px;
  }

  .legal-aside {
    position: static;
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .hero {
    width: min(100% - 32px, 480px);
    max-width: min(100% - 32px, 480px);
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .hero-logo {
    width: min(150px, 44vw);
    margin-bottom: 18px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 9vw, 42px);
    line-height: 1.02;
  }

  .hero-copy > p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .proof-row {
    gap: 8px;
    margin-top: 24px;
  }

  .proof-row span {
    min-width: calc(50% - 4px);
    flex: 1 1 auto;
    text-align: center;
  }

  .proof-row span:last-child {
    min-width: 100%;
  }

  .download-section {
    padding-top: 52px;
  }

  .feature-grid,
  .trust-summary-grid {
    grid-template-columns: 1fr;
  }

  .workflow-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profiles-panel {
    padding: 22px 18px;
  }

  .final-cta,
  .legal-page .compact-cta,
  .article-page .compact-cta {
    margin-bottom: 56px;
  }

  .page-hero-legal,
  .articles-hero {
    grid-template-columns: 1fr;
  }

  .category-list {
    justify-content: flex-start;
  }

  .legal-shell {
    padding-top: 44px;
  }

  .legal-aside {
    padding: 18px;
  }

  .article-shell {
    padding-top: 52px;
  }

  .article-category {
    margin-top: 30px;
  }

  .article-header h1 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .article-excerpt {
    font-size: 18px;
  }

  .article-body {
    padding-top: 42px;
  }
}
