:root {
  color-scheme: dark;
  --background: #15202b;
  --panel: #22303c;
  --selected: #334e5b;
  --divider: #445c6d;
  --primary: #1da1f2;
  --accent: #76c5f5;
  --text: #f9f8f8;
  --muted: #a7b7c3;
  --green: #76ce80;
  --sidebar-width: 224px;
  --page-padding: 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--text); background: var(--panel); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: wait; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 10px 16px; background: var(--accent); color: var(--background); border-radius: 6px; }
.skip:focus { top: 12px; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 24px 12px; background: var(--panel); border-right: 1px solid var(--divider); overflow-y: auto; }
.brand-row { display: flex; align-items: center; gap: 7px; padding: 0 6px 24px; border-bottom: 1px solid var(--divider); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.brand img { width: 30px; height: 30px; }
.beta-tag { font-size: 9px; font-weight: 750; line-height: 1.6; letter-spacing: .45px; padding: 1px 5px; border-radius: 3px; color: #132a19; background: var(--green); }
.primary-nav { display: grid; gap: 6px; margin-top: 16px; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 10px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.nav-item .icon { color: #b5cbd9; }
.nav-item:hover { background: #2c404e; }
.nav-item[aria-current="location"] { background: var(--selected); }
.sidebar-footer { margin-top: auto; padding: 48px 12px 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.sidebar-footer p { margin: 0; }
.sidebar-footer a:hover { color: var(--text); }
.sidebar-links { display: flex; gap: 12px; margin-top: 5px; color: var(--accent); }

.page { margin-left: var(--sidebar-width); min-height: 100vh; background: var(--background); }
.content { max-width: 1380px; margin-inline: auto; padding: 36px var(--page-padding) 24px; }
.hero { padding: 0 8px 36px; scroll-margin-top: 36px; }
.beta-status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border: 1px solid #355640; border-radius: 16px; color: var(--green); background: #203a2f; font-size: 12px; font-weight: 600; margin: 0 0 18px; }
h1 { margin: 0; font-size: clamp(34px, 4.35vw, 64px); line-height: 1.12; letter-spacing: -2px; font-weight: 720; }
h1 span { white-space: nowrap; }
.hero-subtitle { margin: 6px 0 12px; color: #c0deed; font-size: clamp(24px, 2.7vw, 40px); line-height: 1.22; letter-spacing: -.8px; font-weight: 400; }
.hero-description { margin: 0; color: var(--muted); font-size: clamp(15px, 1.45vw, 20px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1.4; transition: background 140ms ease, border-color 140ms ease; }
.button-primary { color: #102432; background: var(--primary); }
.button-primary:hover { background: #55acee; }
.hero-actions .button { min-height: 48px; padding: 12px 24px; font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 14px; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon { width: 18px; height: 18px; }

.showcase { border: 1px solid var(--divider); border-radius: 8px; background: var(--panel); overflow: hidden; scroll-margin-top: 28px; }
.tabs { display: flex; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--divider); }
.tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; }
.tabs .icon { width: 19px; height: 19px; }
.tabs button:hover { background: #2b3e4b; color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--selected); }
figure { margin: 0; }
.screenshot-link { display: block; }
.screenshot-link:focus-visible { outline-offset: -4px; }
figure img { width: 100%; height: auto; aspect-ratio: 3024 / 1898; object-fit: contain; background: var(--background); }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 11px 16px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 12px; }
.capture-hint { color: var(--accent); }
.no-script { margin: 0; padding: 12px 16px; font-size: 13px; }
.no-script a { color: var(--accent); text-decoration: underline; }

.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 32px 0; margin: 0 0 24px; border-bottom: 1px solid var(--divider); }
.workflow-step { padding: 0 24px; }
.workflow-step:first-child { padding-left: 16px; }
.workflow-step + .workflow-step { border-left: 1px solid var(--divider); }
.workflow-step > .icon { width: 26px; height: 26px; color: #c0deed; margin-bottom: 8px; }
h2, h3, p { overflow-wrap: break-word; }
.workflow-step h3 { font-size: 18px; font-weight: 650; letter-spacing: -.25px; margin: 0 0 6px; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 340px; }

.download { padding: 24px; background: var(--panel); border: 1px solid var(--divider); border-radius: 8px; scroll-margin-top: 28px; }
.download-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.download-heading > .icon { width: 34px; height: 34px; color: var(--accent); }
.download-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.5px; font-weight: 650; line-height: 1.3; }
.download-heading p { color: var(--muted); font-size: 14px; margin: 3px 0 0; }
.release-label { margin-left: auto; color: var(--muted); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.install-command { display: flex; align-items: stretch; gap: 2px; padding: 3px; border: 1px solid var(--divider); border-radius: 6px; background: var(--background); }
.install-command pre { min-width: 0; flex: 1; margin: 0; padding: 11px 12px; align-self: center; overflow-wrap: anywhere; white-space: pre-wrap; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-button { align-self: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; color: var(--muted); background: transparent; transition: color 140ms ease; }
.copy-button:hover { color: var(--text); }
.copy-button .icon { width: 18px; height: 18px; }
.copy-status { margin: 8px 0 0; color: var(--accent); font-size: 13px; }
.download-table { display: grid; margin-top: 14px; border: 1px solid var(--divider); border-radius: 6px; overflow: hidden; }
.download-row { display: grid; grid-template-columns: 1.1fr 1.7fr auto; align-items: center; min-height: 64px; }
.download-row + .download-row { border-top: 1px solid var(--divider); }
.platform { display: flex; gap: 14px; align-items: center; padding: 14px 18px; font-size: 14px; font-weight: 650; }
.platform .icon { color: #c0deed; }
.architecture { margin: 0; border-inline: 1px solid var(--divider); padding: 16px 20px; align-self: stretch; display: flex; align-items: center; color: var(--muted); font-size: 13px; }
.download-row > .button { margin: 7px; width: 44px; height: 44px; padding: 0; border: 0; color: var(--muted); background: transparent; transition: color 140ms ease; }
.download-row > .button:hover { color: var(--text); }
.download-row > .button .icon { width: 18px; height: 18px; }
.download-notes { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.download-notes > div + div { border-left: 1px solid var(--divider); padding-left: 20px; }
.download-notes p { margin: 0; }
.download-notes a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.download-links { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--divider); }
.download-links a { font-size: 12px; }

.questions { margin-top: 24px; border-block: 1px solid var(--divider); scroll-margin-top: 28px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.questions > summary { min-height: 54px; padding: 14px 4px; font-size: 14px; color: var(--muted); }
.questions > summary:hover { color: var(--text); }
summary .icon { width: 18px; height: 18px; transition: transform 140ms ease; }
details[open] > summary .icon { transform: rotate(180deg); }
.faq-list { padding: 0 4px 16px; }
.faq-list details { border-top: 1px solid var(--divider); }
.faq-list summary { padding: 16px 0; font-size: 14px; font-weight: 500; }
.faq-list summary::after { content: "+"; font-size: 19px; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { font-size: 14px; color: var(--muted); margin: 0 24px 20px 0; max-width: 860px; line-height: 1.7; }
.faq-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 20px 4px 0; font-size: 12px; color: var(--muted); }
.page-footer p { margin: 0; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.page-footer a:hover { color: var(--accent); }

@media (max-width: 1150px) {
  :root { --sidebar-width: 202px; --page-padding: 24px; }
  .sidebar { padding-inline: 10px; }
  .brand-row { gap: 5px; padding-inline: 2px; }
  .brand { font-size: 14px; gap: 7px; }
  .brand img { width: 27px; height: 27px; }
  .hero { padding-inline: 0; }
  h1 { font-size: clamp(32px, 4.25vw, 49px); letter-spacing: -1.4px; }
  .hero-subtitle { font-size: 30px; }
  .workflow-step { padding-inline: 18px; }
  .workflow-step:first-child { padding-left: 8px; }
  .download { padding: 20px; }
  .release-label { display: none; }
  .download-row { grid-template-columns: 1fr 1.2fr auto; }
  .platform { gap: 10px; padding-inline: 12px; }
  .architecture { padding-inline: 14px; }
}
@media (max-width: 800px) {
  :root { --page-padding: 22px; }
  html { scroll-padding-top: 112px; }
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: auto; padding: 12px var(--page-padding) 8px; border-right: 0; border-bottom: 1px solid var(--divider); overflow: visible; }
  .brand-row { padding: 0 0 10px; border-bottom: 0; gap: 8px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand img { width: 28px; height: 28px; }
  .beta-tag { font-size: 9px; }
  .primary-nav { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .nav-item { justify-content: center; min-height: 42px; padding: 8px 10px; gap: 9px; font-size: 13px; }
  .nav-item .icon { width: 18px; height: 18px; }
  .nav-external, .sidebar-footer { display: none; }
  .page { margin-left: 0; }
  .content { padding-top: 28px; }
  .hero, .showcase, .download, .questions { scroll-margin-top: 16px; }
  .hero { padding-bottom: 28px; }
  h1 { font-size: clamp(30px, 5.5vw, 44px); }
  .hero-subtitle { font-size: clamp(23px, 4.25vw, 32px); }
  .hero-description { font-size: 16px; }
}
@media (max-width: 520px) {
  :root { --page-padding: 16px; }
  .primary-nav { gap: 4px; }
  .nav-item { font-size: 12px; gap: 7px; padding-inline: 6px; }
  .hero { padding-bottom: 26px; }
  .beta-status { margin-bottom: 16px; }
  h1 { font-size: clamp(27px, 7.55vw, 37px); line-height: 1.2; letter-spacing: -1px; }
  .hero-subtitle { font-size: 25px; line-height: 1.3; letter-spacing: -.5px; margin-top: 8px; }
  .hero-description { font-size: 15px; line-height: 1.6; }
  .hero-actions { gap: 20px; margin-top: 22px; }
  .hero-actions .button { font-size: 14px; padding-inline: 15px; }
  .hero-actions .text-link { font-size: 13px; gap: 5px; }
  .tabs { gap: 2px; padding: 4px; }
  .tabs button { padding: 10px 6px; gap: 6px; flex: 1; font-size: 11px; }
  .tabs .icon { width: 16px; height: 16px; }
  figcaption { padding: 10px 12px; font-size: 11px; }
  .workflow-steps { grid-template-columns: 1fr; gap: 20px; padding-block: 26px; margin-bottom: 22px; }
  .workflow-step, .workflow-step:first-child { padding: 0 4px 0 42px; position: relative; }
  .workflow-step + .workflow-step { border-left: 0; }
  .workflow-step > .icon { position: absolute; left: 3px; top: 2px; width: 24px; height: 24px; }
  .workflow-step h3 { font-size: 17px; }
  .workflow-step p { font-size: 13px; }
  .download { padding: 16px 12px; }
  .download-heading { align-items: flex-start; gap: 10px; margin-bottom: 16px; }
  .download-heading > .icon { width: 25px; height: 25px; margin-top: 2px; }
  .download-heading h2 { font-size: 20px; }
  .download-heading p { font-size: 12px; }
  .install-command { gap: 0; }
  .install-command pre { font-size: 12px; padding: 10px; }
  .download-row { grid-template-columns: 1fr auto; padding: 8px; gap: 0 8px; }
  .platform { padding: 2px 0; font-size: 13px; gap: 8px; }
  .platform .icon { width: 19px; height: 19px; }
  .architecture { grid-column: 1; border: 0; padding: 2px 0 2px 27px; font-size: 11px; }
  .download-row > .button { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .download-notes { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .download-notes > div + div { border-left: 0; padding-left: 0; padding-top: 10px; border-top: 1px solid var(--divider); }
  .download-links { gap: 9px 16px; }
  .page-footer { padding-top: 18px; }
}
@media (max-width: 360px) {
  .tabs button { min-width: 0; gap: 4px; padding-inline: 4px; font-size: 10px; }
  .tabs .icon { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, summary .icon { transition: none; }
}
