.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: var(--inset);
  border-bottom: 1px solid var(--stroke);
}

.header-content { display: flex; align-items: center; gap: 18px; max-width: 1296px; min-height: 68px; }
.site-nav { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 11px; border-radius: 6px; color: var(--muted); font-size: .9375rem; font-weight: 560; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent-ink); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--soft-accent); }
.site-section { max-width: 1296px; margin-inline: auto; }
#overview, #workflow, #playground, #workspace, #faq { scroll-margin-top: 88px; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr);
  align-items: center;
  gap: clamp(24px, 5vw, 82px);
  padding-block: clamp(44px, 5.4vw, 84px);
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4.35vw, 4.375rem);
  line-height: 1.05;
  letter-spacing: -.052em;
  font-weight: 750;
  text-wrap: balance;
}

.hero-copy h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-copy p { max-width: 55ch; margin-top: 20px; color: var(--muted); font-size: clamp(1.0625rem, 1.38vw, 1.1875rem); line-height: 1.65; }
.hero-copy p strong { color: var(--text); font-weight: 650; }
.hero-copy .hero-note { margin-top: 13px; font-size: .875rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .button { min-height: 45px; padding-inline: 15px; border-radius: 7px; font-size: .9375rem; }

.relationship-workflow { padding-block: clamp(32px, 4.2vw, 58px); border-top: 1px solid var(--stroke); }
.workflow-head { margin-bottom: 18px; }
.workflow-head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); padding: 0; margin: 0; list-style: none; }
.workflow-card { display: flex; flex-direction: column; min-width: 0; gap: 8px; padding: clamp(16px, 2vw, 25px); border: 1px solid var(--stroke); border-radius: 10px; background: var(--sheet); }
.workflow-discovery { border-color: var(--accent-border); background: linear-gradient(145deg, var(--soft-accent), var(--sheet) 58%); }
.workflow-layer { color: var(--accent-ink); font-size: .875rem; font-weight: 650; }
.workflow-card h3 { font-size: 1.2rem; letter-spacing: -.019em; line-height: 1.25; }
.workflow-card h3 + p { color: var(--muted); margin-bottom: 8px; }
.workflow-card p code { color: var(--text); font-size: .875em; }
.workflow-card .section-link { align-self: flex-start; margin-top: auto; }

.section-link {
  color: var(--accent-ink);
  font-weight: 630;
  font-size: .9375rem;
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 4px;
}

.section-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.project-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: clamp(44px, 5.4vw, 84px) 19px; }
.project-header h2 { margin: 7px 0 8px; }
.project-header p { color: var(--muted); font-size: 1rem; }
.project-header strong { color: var(--text); font-weight: 630; }
.project-path { display: flex; gap: 8px; color: var(--muted); font: .8125rem var(--mono); }
.project-path code { color: var(--accent-ink); }
.project-meta { flex: none; display: flex; gap: 12px; padding: 10px 13px; border: 1px solid var(--stroke); border-radius: 8px; background: var(--sheet); color: var(--muted); font-size: .875rem; }
.project-meta span { white-space: nowrap; }
.project-meta strong { font-family: var(--mono); }
.bench-head .shortcut-trigger { flex: none; margin-block: 4px; }

.faq-questions details { border: 1px solid var(--stroke); border-radius: 7px; background: var(--inset); }
.faq-questions details + details { margin-top: 8px; }
.faq-questions details[open] { border-color: var(--stroke-strong); }
.faq-questions summary { cursor: pointer; padding: 14px 17px; font-weight: 630; }
.faq-questions summary::marker { color: var(--accent); }
.faq-questions summary:hover { color: var(--accent-ink); }
.faq-questions summary:focus-visible { outline-offset: 0; border-radius: 7px; }
.faq-questions details p { max-width: 70ch; padding: 0 17px 16px; color: var(--muted); }
.faq-questions code { color: var(--text); font-size: .875em; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--stroke); }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; padding: clamp(24px, 4vw, 46px) 0; }
.footer-links h2 { margin: 0 0 9px; font-size: .9375rem; font-weight: 650; }
.footer-links ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-base { color: var(--muted); font-size: .9375rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-base a:hover { color: var(--accent-ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 17px 0 24px; border-top: 1px solid var(--stroke); font-size: .875rem; }
.footer-base a { text-underline-offset: 4px; }
.page-footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--stroke); padding-block: 18px 24px; color: var(--muted); font-size: .875rem; }
.page-footer a { text-underline-offset: 4px; }

@media (max-width: 900px) {
  .product-hero { gap: 22px; }
  .project-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .project-meta { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .header-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding-top: 10px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin: 4px 0; min-height: 38px; }
  .site-nav a { font-size: .875rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  #overview, #workflow, #playground, #workspace, #faq { scroll-margin-top: 100px; }
  .product-hero { grid-template-columns: 1fr; padding-block: 40px 44px; gap: 30px; }
  .hero-copy h1 { max-width: 17ch; text-wrap: wrap; }
  .hero-copy p { margin-top: 14px; }
  .hero-actions { margin-top: 19px; }
  .workflow-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-footer { flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .header-actions .button { padding-inline: 8px; font-size: .8125rem; }
  .site-nav a { padding-inline: 9px; }
  .bench-head { flex-wrap: wrap; gap: 4px; padding-inline: 4px; }
  .bench-head .view-tabs button, .bench-head .shortcut-trigger { padding-inline: 6px; }
  .bench-head .shortcut-trigger { margin-left: auto; }
  .bench-head .shortcut-trigger .search-icon { display: none; }
}
