:root {
  color-scheme: light;
  --paper: #f5f6f2;
  --ink: #182620;
  --muted: #485a50;
  --line: #cdd6cd;
  --accent: #0e5942;
  --accent-dark: #0b4131;
  --dark: #142f26;
  --soft: #e9efe9;
  --radius: 12px;
  font-family: "Aptos", "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1rem; line-height: 1.62; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #007d77; outline-offset: 4px; }
.shell { width: min(100% - 96px, 1272px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 3; padding: 10px 16px; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-row { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1rem; font-weight: 750; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
nav a { color: var(--ink); font-size: .9375rem; font-weight: 640; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-items: start; gap: clamp(32px, 4.5vw, 70px); padding-block: 60px 58px; }
.hero-copy { align-self: center; padding-bottom: 26px; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; margin-bottom: 15px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; }
h1 { font-size: clamp(3.05rem, 5vw, 5rem); font-weight: 760; letter-spacing: -.076em; }
.hero h1 { text-wrap: wrap; max-width: 8.8ch; }
.hero-title-ending { white-space: nowrap; }
h2 { font-size: clamp(2rem, 3.55vw, 3.05rem); font-weight: 740; letter-spacing: -.054em; }
h3 { font-size: 1.45rem; font-weight: 720; letter-spacing: -.025em; }
.lede { max-width: 39ch; color: var(--muted); margin-top: 24px; font-size: clamp(1.075rem, 1.5vw, 1.24rem); line-height: 1.56; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-size: .9375rem; line-height: 1.25; font-weight: 730; text-decoration: none; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-dark); }
.secondary { border-color: #a0b1a6; background: #fbfcf9; color: var(--ink); }
.secondary:hover { background: var(--soft); }
.hero-byline { margin-top: 17px; color: var(--muted); font-size: .9375rem; }
.hero-byline a { font-weight: 680; }

.media { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #142c23; color: #eff7ef; }
.media video { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; background: #101e18; }
.media-placeholder { padding: 20px; text-align: center; }
.play { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border-radius: 8px; border: 1px solid #aabdb2; padding: 8px 13px; background: #132b22; color: white; font: 700 .9rem/1.2 system-ui, sans-serif; cursor: pointer; }
.play:hover { background: #0d4d39; }
.system a:focus-visible { outline-color: #eff7ef; }
.play-icon { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.media-error { position: absolute; inset: auto 10px 10px; padding: 6px 10px; background: #132b22; }
.clip-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  align-items: start;
  gap: 12px;
  padding: 12px 0 0;
  font-size: .975rem;
  line-height: 1.5;
}
.caption-copy { display: grid; gap: 4px; }
.caption-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
.clip-caption strong { color: var(--ink); font-size: 1.125rem; line-height: 1.25; }
.clip-caption p { max-width: 55ch; color: var(--muted); }
.clip-caption time { flex: none; color: var(--muted); font-size: .875rem; }

.section { padding-block: 54px 62px; border-top: 1px solid var(--line); }
.section-heading { display: grid; gap: 10px; margin-bottom: 25px; }
.section-heading p, .setup-intro, .context > p { color: var(--muted); }
.setup-intro { max-width: 56ch; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.system { color: #f0f6f0; background: var(--dark); padding-block: 58px 60px; }
.system .section-heading p, .architecture figcaption { color: #c9ded0; }
.system .section-heading p { letter-spacing: -.016em; }
.architecture { border: 1px solid #49695a; border-radius: var(--radius); background: #18392d; }
.architecture picture { display: block; padding: 12px 24px 0; }
.architecture img { width: 100%; height: auto; }
.architecture figcaption { margin: 0 26px; padding: 13px 0 17px; border-top: 1px solid #49695a; }
.system-links { display: flex; flex-wrap: wrap; gap: 12px 25px; margin-top: 17px; }
.system a { color: #ccebd8; font-weight: 650; }

.setup { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 66px; border-top: 0; }
.setup-intro { margin: 16px 0 22px; }
.compatibility > div { display: grid; grid-template-columns: minmax(122px, .59fr) 1.41fr; gap: 14px; border-top: 1px solid var(--line); padding: 12px 0; }
.compatibility dt { font-weight: 720; line-height: 1.45; }
.compatibility dd { color: var(--muted); }
.context > p { margin-top: 14px; }
.related { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; padding: 0; margin: 25px 0 0; }
.related li { border-top: 1px solid var(--line); padding-block: 12px; }
.related a { font-weight: 730; }
.related span { display: block; color: var(--muted); }
footer { border-top: 1px solid var(--line); }
.footer-row { padding-block: 22px; font-size: .9375rem; color: var(--muted); }

.guide-head { padding-block: 55px 30px; }
.guide-head h1 { font-size: clamp(2.75rem, 6vw, 4.9rem); letter-spacing: -.067em; }
.guide-head .lede { max-width: none; margin-top: 16px; font-size: 1rem; letter-spacing: -.016em; }
.guide-layout { display: grid; grid-template-columns: minmax(160px, .46fr) minmax(0, 2fr); gap: clamp(30px, 5vw, 78px); align-items: start; padding-bottom: 60px; }
.guide-nav { display: grid; gap: 10px; position: sticky; top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.guide-content section { border-top: 1px solid var(--line); padding-block: 27px 31px; }
.guide-content h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3.35vw, 2.55rem); }
.guide-content h3 { margin-top: 23px; margin-bottom: 9px; }
.guide-content p + p { margin-top: 12px; }
.guide-content .lead-credit { font-size: 1.125rem; }
.lead-credit a { font-weight: 740; }
.guide-content li { margin-bottom: 6px; }
.guide-content ol, .guide-content ul { padding-inline-start: 24px; }
pre, code { font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace; font-size: .875em; }
pre { overflow: auto; padding: 15px 17px; color: #e6f2ea; background: var(--dark); border-radius: 8px; }
pre code { font-size: inherit; }
p code, li code, td code { background: var(--soft); border-radius: 3px; padding: 2px 4px; overflow-wrap: anywhere; }
.table-scroll { margin-top: 15px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .9375rem; }
.note { margin: 18px 0; padding: 12px 16px; background: var(--soft); border-left: 3px solid #739983; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 32px; padding-block: 50px; }
  .hero-copy { padding-bottom: 12px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-row { flex-wrap: wrap; padding-block: 13px; min-height: auto; gap: 10px; }
  nav { gap: 18px; }
  .hero, .setup, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 22px; padding-block: 35px 42px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: 9.5ch; font-size: clamp(3rem, 10vw, 4.2rem); }
  .lede { margin-top: 16px; }
  .actions { margin-top: 20px; }
  .hero-byline { margin-top: 12px; }
  .section, .system { padding-block: 38px 42px; }
  .section-heading { margin-bottom: 19px; }
  .demo-grid, .related { grid-template-columns: minmax(0, 1fr); }
  .demo-grid { gap: 24px; }
  .architecture picture { padding: 8px 11px 0; }
  .architecture img { max-width: 410px; margin-inline: auto; }
  .architecture figcaption { margin-inline: 14px; }
  .setup { gap: 26px; }
  .footer-row { align-items: start; flex-direction: column; gap: 3px; }
  .guide-head { padding-block: 34px 22px; }
  .guide-nav { position: static; display: flex; gap: 9px 16px; padding-block: 10px; }
  .guide-layout { gap: 8px; }
}
@media (max-width: 440px) {
  .compatibility > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
