:root {
  color-scheme: light;
  --bg: #f8f9f9;
  --surface: #eff2f3;
  --surface-raised: #fbfcfc;
  --surface-strong: #e2e6e8;
  --text: #1f2021;
  --text-soft: #5b6266;
  --text-faint: #7a8388;
  --border: #d9dddf;
  --border-strong: #b9c1c5;
  --accent: #202325;
  --accent-hover: #3a3f42;
  --accent-ink: #f8f9f9;
  --shadow: 0 24px 64px rgba(44, 55, 62, 0.13);
  --radius: 6px;
  --control-radius: 999px;
  --header-height: 68px;
  --page: min(1320px, calc(100% - 48px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[lang="en"] {
  --font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 26%, transparent);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.nav-shell {
  width: var(--page);
  min-height: var(--header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 21px;
  font-style: normal;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  white-space: nowrap;
}

.nav-links a,
.footer-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-icon-link,
.nav-star-link {
  border: 1px solid transparent;
  color: var(--text-soft);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.nav-icon-link {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.nav-icon-link img,
.nav-star-link img,
.nav-mobile-actions img {
  flex: 0 0 auto;
}

.nav-icon-link:hover {
  border-color: var(--border);
  background: var(--surface-raised);
}

.nav-community-status {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #5acb48;
  box-sizing: content-box;
}

.nav-star-link {
  min-width: 108px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 13px;
  border-color: var(--border);
  border-radius: var(--control-radius);
  background: color-mix(in srgb, var(--surface-raised) 76%, transparent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.nav-star-link > img {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 17px;
}

.nav-star-link strong {
  min-width: 51px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: 600;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.nav-star-link [data-github-stars-compact],
.nav-star-icon {
  display: block;
  line-height: 1;
}

.nav-star-link [data-github-stars-compact] {
  transform: translateY(1px);
}

.nav-star-icon {
  color: var(--text-soft);
  font-size: 11px;
}

.nav-star-link:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

.nav-icon-link:active,
.nav-star-link:active {
  transform: translateY(1px) scale(0.97);
}

.nav-mobile-actions {
  display: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.icon-button:active,
.button:active {
  transform: translateY(1px) scale(0.98);
}

.menu-toggle {
  display: none;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: var(--control-radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-small {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 720;
  white-space: nowrap;
}

.github-stars-link {
  font-variant-numeric: tabular-nums;
}

.github-stars-link strong {
  min-width: 82px;
  font-weight: 760;
}

.text-link span {
  transition: transform 180ms var(--ease);
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.hero {
  min-height: calc(92dvh - var(--header-height));
  display: grid;
  align-items: start;
  padding: clamp(52px, 7vh, 72px) 0 clamp(44px, 5vh, 60px);
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vh, 48px);
}

.hero-copy {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trending-badge {
  position: relative;
  isolation: isolate;
  width: 250px;
  height: 55px;
  display: flex;
  margin: 0;
  overflow: hidden;
  border-radius: var(--control-radius);
  background: var(--surface-raised);
  filter: grayscale(1) saturate(0) contrast(1.14);
  opacity: 1;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, filter 180ms ease, opacity 180ms ease;
}

.trending-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
  border-radius: inherit;
  pointer-events: none;
}

.trending-badge:hover {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--text) 10%, transparent);
  filter: grayscale(1) saturate(0) contrast(1.22);
  transform: translateY(-2px);
}

.trending-badge img {
  width: 250px;
  height: 55px;
  max-width: none;
  flex: 0 0 auto;
  clip-path: inset(4px round var(--control-radius));
  transform: scale(0.96);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.08;
}

h1 {
  max-width: 1080px;
  margin: 0 auto 22px;
  font-family: var(--font-display);
  font-size: clamp(52px, 5.1vw, 72px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 span {
  color: var(--text);
  font-weight: inherit;
}

.hero-title-lines span {
  display: block;
}

.hero-lede {
  max-width: 650px;
  margin: 0 auto 24px;
  color: var(--text-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-trending-badge {
  flex: 0 0 auto;
}

.hero-download-button {
  min-height: 56px;
  gap: 13px;
  padding: 6px 20px 6px 16px;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--text) 8%, transparent);
}

.hero-download-icon {
  width: 31px;
  height: 30px;
  flex: 0 0 31px;
  display: inline-grid;
  place-items: center;
  border-right: 1px solid color-mix(in srgb, var(--accent-ink) 25%, transparent);
  color: var(--accent-ink);
}

.hero-download-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  margin-left: -5px;
}

.hero-download-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  transform: translateY(1px);
}

.hero-download-copy strong {
  font-weight: 760;
}

.hero-download-copy > span {
  color: color-mix(in srgb, var(--accent-ink) 72%, transparent);
  font-weight: 540;
}

.hero-visual {
  position: relative;
  width: min(1280px, 96vw);
  margin: 0;
  isolation: isolate;
}

.hero-visual::before {
  content: none;
}

.hero-image-wrap {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #0f1113;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 700ms var(--ease);
}

.hero-image-wrap:hover {
  transform: translateY(-4px);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 1447 / 674;
  object-fit: contain;
}

.hero-copy > *,
.hero-visual {
  opacity: 0;
  animation: hero-in 760ms var(--ease) forwards;
}

.hero-copy > :nth-child(1) { animation-delay: 80ms; }
.hero-copy > :nth-child(2) { animation-delay: 150ms; }
.hero-copy > :nth-child(3) { animation-delay: 220ms; }
.hero-copy > :nth-child(4) { animation-delay: 290ms; }
.hero-visual { animation-delay: 180ms; }

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.capability-band {
  overflow-x: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  scrollbar-width: none;
}

.capability-band::-webkit-scrollbar {
  display: none;
}

.capability-track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--page);
  margin-inline: auto;
}

.capability-track {
  min-width: max-content;
}

.capability-track span {
  position: relative;
  flex: 0 0 auto;
  padding: 16px clamp(18px, 2.2vw, 34px);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.capability-track span::after {
  content: none;
}

.section {
  padding: clamp(88px, 10vw, 150px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading h2,
.final-cta h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.7vw, 66px);
  font-weight: 600;
  line-height: 1.18;
}

.section-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.workspaces {
  padding: clamp(76px, 8vw, 96px) 0;
}

.workspaces .section-heading {
  margin-bottom: clamp(36px, 4vw, 52px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, 200px);
  gap: 14px;
}

.workspace-cell {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

figure.workspace-cell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.workspace-cell img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 650ms var(--ease), filter 300ms ease;
}

.workspace-cell:hover img {
  transform: scale(1.025);
}

.workspace-cell figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 19px;
  border-top: 1px solid var(--border);
  background: var(--surface-raised);
}

.workspace-cell figcaption strong,
.workspace-cell figcaption span {
  min-width: 0;
}

.workspace-cell figcaption strong {
  font-size: 15px;
}

.workspace-cell figcaption span {
  color: var(--text-soft);
  font-size: 13px;
  text-align: right;
}

.workspace-dashboard {
  grid-column: 1 / span 9;
  grid-row: 1 / span 3;
}

.workspace-dashboard img {
  object-position: left top;
}

.workspace-translation {
  grid-column: 10 / span 3;
  grid-row: 1;
}

.workspace-thumbnail {
  grid-column: 10 / span 3;
  grid-row: 2;
}

.workspace-thumbnail img {
  object-position: center;
}

.workspace-clipping {
  grid-column: 10 / span 3;
  grid-row: 3;
}

.workspace-translation figcaption,
.workspace-thumbnail figcaption,
.workspace-clipping figcaption {
  gap: 8px;
  padding: 13px 14px;
}

.workspace-translation figcaption strong,
.workspace-thumbnail figcaption strong,
.workspace-clipping figcaption strong {
  font-size: 14px;
}

.workspace-translation figcaption span,
.workspace-thumbnail figcaption span,
.workspace-clipping figcaption span {
  font-size: 12px;
}

.models {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.models .section-heading {
  max-width: 900px;
}

.model-matrix {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr 0.9fr 1.25fr;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.model-group {
  min-width: 0;
  padding: 26px clamp(20px, 2.4vw, 36px) 30px;
  border-left: 1px solid var(--border);
}

.model-group:first-child {
  padding-left: 0;
  border-left: 0;
}

.model-group h3 {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 720;
}

.model-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-model-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.model-list li {
  color: var(--text);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 650;
  line-height: 1.35;
}

.workflow {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 58%, var(--bg));
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: start;
  gap: clamp(40px, 7vw, 96px);
}

.workflow-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #0f1113;
  box-shadow: var(--shadow);
}

.workflow-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.workflow-points {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.workflow-points article {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.workflow-points article:last-child {
  margin: 0;
  border-bottom: 0;
}

.workflow-points h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 680;
}

.workflow-points p,
.principles p {
  margin: 0;
  color: var(--text-soft);
}

.output-gallery {
  display: block;
}

.output-gallery figure {
  min-width: 0;
  margin: 0;
}

.output-gallery img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  object-fit: cover;
}

.output-gallery figcaption {
  display: grid;
  gap: 4px;
  padding-top: 14px;
}

.output-gallery figcaption strong {
  font-size: 17px;
}

.output-gallery figcaption span {
  max-width: 520px;
  color: var(--text-soft);
  font-size: 14px;
}

.output-family {
  padding-inline: clamp(10px, 1.4vw, 18px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #1d1e20;
}

.output-family img {
  border: 0;
  border-radius: 0;
  aspect-ratio: 40 / 11;
  object-fit: contain;
}

.community {
  border-top: 1px solid var(--border);
  background: var(--surface-raised);
}

.community-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  align-items: end;
  gap: clamp(48px, 8vw, 112px);
  margin-bottom: clamp(52px, 7vw, 86px);
}

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

.community-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.community-star-button {
  min-height: 55px;
  gap: 10px;
  padding-inline: 20px 22px;
}

.community-star-button img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.community-contribute-button {
  min-height: 55px;
  padding-inline: 24px;
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.community-contribute-button:hover {
  border-color: var(--text-soft);
  background: var(--surface);
}

.community-heading h2 span {
  display: block;
}

.community-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.community-metrics div {
  min-width: 0;
  padding: 24px clamp(14px, 2vw, 28px) 22px;
  border-left: 1px solid var(--border);
}

.community-metrics div:first-child {
  padding-left: 0;
  border-left: 0;
}

.community-metrics dt {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 720;
}

.community-metrics dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 720;
  line-height: 1.15;
  white-space: nowrap;
}

.community-roster-scroll {
  width: 100%;
  padding: 30px 0;
  overflow-x: auto;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.community-roster {
  width: max-content;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  margin-inline: auto;
}

.community-avatar-link {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: block;
  border-radius: 50%;
}

.community-avatar {
  width: 68px;
  height: 68px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
  filter: saturate(0.82);
  transition: filter 180ms ease, transform 220ms var(--ease);
}

.community-avatar-link:hover .community-avatar {
  filter: saturate(1);
  transform: translateY(-2px);
}

.community-load-state {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
}

.section.open-source {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 52%, var(--bg));
}

.license-link {
  margin-top: 16px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 0;
}

.principles article {
  padding-top: 20px;
  border-top: 2px solid var(--accent);
}

.principles h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.principles p {
  font-size: 14px;
}

.faq {
  border-top: 1px solid var(--border);
  background: var(--surface-raised);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(56px, 9vw, 132px);
}

.faq .section-heading {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  margin-bottom: 0;
}

.faq-list {
  border-bottom: 1px solid var(--border-strong);
}

.faq-item {
  border-top: 1px solid var(--border-strong);
}

.faq-item summary {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  color: var(--text);
  cursor: pointer;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 24px;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item summary:hover::after {
  color: var(--text);
}

.faq-item summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 4px;
}

.faq-answer {
  max-width: 700px;
  padding: 0 48px 26px 0;
}

.faq-answer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.final-cta {
  padding: clamp(90px, 12vw, 170px) 0;
  background: var(--text);
  color: var(--bg);
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.final-cta h2 {
  max-width: 820px;
  margin: 0;
  color: var(--bg);
}

.final-cta h2 span {
  display: block;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  height: 40px;
}

.footer-brand .brand-mark {
  width: 25px;
  height: 25px;
}

.footer-brand .brand-name {
  font-size: 19px;
}

.footer-inner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 1080px) {
  :root {
    --page: min(100% - 36px, 960px);
  }

  .nav-shell {
    gap: 20px;
  }

  .nav-links {
    gap: 18px;
  }

  .workspace-grid {
    grid-template-rows: repeat(3, 210px);
  }

  .workspace-dashboard {
    grid-column: 1 / span 8;
    grid-row: 1 / span 3;
  }

  .workspace-translation,
  .workspace-thumbnail,
  .workspace-clipping {
    grid-column: 9 / span 4;
  }

  .workspace-cell figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .workspace-cell figcaption span {
    text-align: left;
  }

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

  .community-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 42px;
  }

}

@media (max-width: 900px) {
  :root {
    --header-height: 62px;
    --page: calc(100% - 32px);
  }

  .site-header {
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .brand {
    height: 38px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand-name {
    font-size: 20px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    justify-self: end;
    gap: 6px;
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--text);
    transition: transform 220ms var(--ease);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--text) 10%, transparent);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 220ms var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-actions {
    display: none;
  }

  .nav-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
  }

  .nav-mobile-actions a {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-raised);
    font-size: 13px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;
    padding: 50px 0 42px;
  }

  .hero-grid {
    gap: 38px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(40px, 11.5vw, 48px);
  }

  html[lang="en"] h1 {
    font-size: clamp(38px, 10.2vw, 44px);
  }

  h1 span {
    display: block;
  }

  .hero-lede {
    max-width: 420px;
    margin-bottom: 20px;
    font-size: 18px;
  }

  .hero-visual {
    width: min(100%, 720px);
    margin: 0;
  }

  .section {
    padding: 82px 0;
  }

  .workspaces {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .workspaces .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .section-heading p {
    font-size: 16px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 14px;
  }

  .workspace-dashboard,
  .workspace-translation,
  .workspace-thumbnail,
  .workspace-clipping {
    grid-column: 1;
    grid-row: auto;
  }

  .workspace-dashboard { min-height: 260px; }
  .workspace-translation,
  .workspace-thumbnail,
  .workspace-clipping { min-height: 220px; }

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

  .model-group,
  .model-group:first-child {
    padding: 24px;
  }

  .model-group:nth-child(odd) {
    border-left: 0;
  }

  .model-group:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .workflow-layout,
  .faq-layout,
  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .workflow-points {
    position: static;
  }

  .principles {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
  }

  .community-metrics {
    width: 100%;
  }

  .community-roster {
    margin-inline: 0;
  }

  .community-roster-scroll {
    padding: 24px 0;
  }

  .community-avatar-link,
  .community-avatar {
    width: 56px;
    height: 56px;
  }

  .community-avatar-link {
    flex-basis: 56px;
  }

  .faq-layout {
    gap: 36px;
  }

  .faq .section-heading {
    position: static;
  }

  .final-cta {
    padding: 82px 0;
  }

  .final-cta-inner {
    align-items: center;
    padding: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 18px;
  }

  .hero-download-button {
    max-width: 100%;
    padding-right: 16px;
  }

  .hero-download-copy {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2px 6px;
    text-align: left;
  }

  .community-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .model-matrix {
    grid-template-columns: 1fr;
  }

  .model-group,
  .model-group:first-child {
    padding: 22px 0;
    border-left: 0;
  }

  .model-group + .model-group {
    border-top: 1px solid var(--border);
  }

  .faq-item summary {
    min-height: 70px;
    gap: 16px;
    padding: 19px 0;
  }

  .faq-answer {
    padding: 0 36px 22px 0;
  }

  .community-metrics dd {
    font-size: clamp(20px, 6.3vw, 28px);
  }

  .community-metrics div {
    padding-inline: 10px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-links {
    justify-content: space-between;
  }
}

@media (max-width: 340px) {
  html[lang="en"] h1 {
    font-size: 35px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-copy > *,
  .hero-visual,
  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .capability-track > div {
    display: none;
  }
}
