:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f5f5;
  --text: #000000;
  --muted: #5f5f5f;
  --line: #dedede;
  --orange: #f36a35;
  --orange-soft: #fff0e9;
  --green: #23845c;
  --header-bg: rgba(255, 255, 255, .9);
  --nav-muted: #555555;
  --subtle: #929292;
  --surface-hover: #bdbdbd;
  --footer-muted: #929292;
  --content-muted: #5f5f5f;
  --table-muted: #656565;
  --inverse-bg: #000000;
  --inverse-text: #ffffff;
  --shell: 1120px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-soft: #171717;
  --text: #ffffff;
  --muted: #a3a3a3;
  --line: #2d2d2d;
  --orange: #ff743d;
  --orange-soft: #29140d;
  --green: #55c88e;
  --header-bg: rgba(0, 0, 0, .9);
  --nav-muted: #b0b0b0;
  --subtle: #858585;
  --surface-hover: #505050;
  --footer-muted: #777777;
  --content-muted: #b0b0b0;
  --table-muted: #b3b3b3;
  --inverse-bg: #ffffff;
  --inverse-text: #000000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #0d0d0d;
    --surface-soft: #171717;
    --text: #ffffff;
    --muted: #a3a3a3;
    --line: #2d2d2d;
    --orange: #ff743d;
    --orange-soft: #29140d;
    --green: #55c88e;
    --header-bg: rgba(0, 0, 0, .9);
    --nav-muted: #b0b0b0;
    --subtle: #858585;
    --surface-hover: #505050;
    --footer-muted: #777777;
    --content-muted: #b0b0b0;
    --table-muted: #b3b3b3;
    --inverse-bg: #ffffff;
    --inverse-text: #000000;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (any-pointer: coarse) { html { touch-action: pan-x pan-y; } }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--orange); color: #000000; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 9px 14px; border-radius: 10px; background: var(--inverse-bg); color: var(--inverse-text); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(14px); }
.nav { display: flex; min-height: 70px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 750; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--nav-muted); font-size: 12px; font-weight: 650; }
.nav-links > a:not(.nav-download):hover, .nav-links > a.current { color: var(--text); }
.nav-download { padding: 9px 15px; border-radius: 999px; background: var(--inverse-bg); color: var(--inverse-text); }
.nav-download:hover { background: var(--orange); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.nav-toggle > span:not(.sr-only) { display: block; width: 17px; height: 1.5px; margin: 5px auto; background: var(--text); }
.theme-toggle { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.theme-toggle:hover { border-color: var(--surface-hover); background: var(--surface-soft); }
.theme-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-icon-sun { display: block; }
}

.hero { padding-top: 90px; padding-bottom: 120px; }
.hero-copy { max-width: 790px; margin: 0 auto 68px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(52px, 7vw, 82px); font-weight: 760; letter-spacing: -.065em; line-height: .99; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-copy > p { max-width: 650px; margin: 24px auto 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.hero-copy > small { display: block; margin-top: 15px; color: var(--subtle); font-size: 10px; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 22px; padding: 0 19px; border: 1px solid transparent; border-radius: 13px; font-size: 12px; font-weight: 720; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: #241008; }
.button-primary:hover { background: #e75b28; }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button-secondary:hover { border-color: var(--surface-hover); }
.product-figure { margin: 0; }
.screenshot-carousel { position: relative; overflow: hidden; aspect-ratio: 2930 / 1984; border-radius: 24px; }
.screenshot-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .8s ease; }
.screenshot-slide.is-active { z-index: 1; opacity: 1; }
.screenshot-image { width: 100%; height: 100%; object-fit: cover; }
.screenshot-image-dark { display: none; }

:root[data-theme="dark"] .screenshot-image-light { display: none; }
:root[data-theme="dark"] .screenshot-image-dark { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .screenshot-image-light { display: none; }
  :root:not([data-theme="light"]) .screenshot-image-dark { display: block; }
}

.site-footer { padding-top: 55px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-main { display: flex; align-items: center; justify-content: space-between; padding-bottom: 45px; }
.footer-main nav { display: flex; gap: 22px; color: var(--muted); font-size: 11px; font-weight: 650; }
.footer-main nav a:hover { color: var(--text); }
.footer-bottom { display: flex; min-height: 58px; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); color: var(--footer-muted); font-size: 9px; }

.button:focus-visible, .nav-toggle:focus-visible, .copy-button:focus-visible, .platform-tabs button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(243,106,53,.28); outline-offset: 3px; }
.js [data-reveal] { opacity: 0; transform: translateY(15px); transition: opacity .5s ease, transform .5s ease; }
.js [data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Documentation */
.docs-page { background: var(--bg); }
.docs-hero { padding: 90px 0 70px; text-align: center; }
.docs-hero .kicker { margin: 0 0 10px; color: var(--orange); font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.docs-hero h1 { max-width: 760px; margin: 0 auto; font-size: clamp(38px, 5vw, 56px); font-weight: 730; letter-spacing: -.05em; line-height: 1.08; }
.docs-hero > .shell > p:last-child { max-width: 630px; margin: 18px auto 0; color: var(--muted); font-size: 16px; }
.docs-layout { display: grid; grid-template-columns: 190px minmax(0, 720px) 145px; justify-content: space-between; gap: 44px; padding-top: 40px; padding-bottom: 120px; }
.docs-sidebar, .docs-on-page { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.docs-sidebar nav, .docs-on-page { display: flex; flex-direction: column; }
.docs-sidebar b, .docs-on-page b { margin: 20px 0 6px; color: var(--text); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.docs-sidebar b:first-child, .docs-on-page b:first-child { margin-top: 0; }
.docs-sidebar a, .docs-on-page a { padding: 4px 0; color: var(--muted); font-size: 10px; }
.docs-sidebar a:hover, .docs-on-page a:hover { color: var(--orange); }
.docs-on-page { padding-left: 16px; border-left: 1px solid var(--line); }
.docs-content { min-width: 0; }
.docs-content > section { margin-bottom: 18px; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.doc-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.doc-heading > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; background: var(--orange-soft); color: var(--orange); font-size: 9px; font-weight: 800; }
.doc-heading .kicker { margin: 0; color: var(--orange); font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.docs-content h2 { margin: 0; font-size: 31px; letter-spacing: -.04em; line-height: 1.12; }
.docs-content h3 { margin: 31px 0 9px; font-size: 18px; letter-spacing: -.02em; }
.docs-content p, .docs-content li { color: var(--content-muted); font-size: 13px; line-height: 1.75; }
.docs-content strong { color: var(--text); }
.docs-content a:not(.button):not(.text-link) { color: #c94a1d; text-decoration: underline; text-underline-offset: 3px; }
.docs-content code { padding: 2px 5px; border-radius: 5px; background: var(--surface-soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; }
.docs-content pre { overflow-x: auto; margin: 19px 0; padding: 18px; border-radius: 14px; background: #191a1d; color: #f1f1ee; }
.docs-content pre code { padding: 0; background: transparent; color: inherit; font-size: 11px; line-height: 1.7; }
.docs-content ul, .docs-content ol { padding-left: 22px; }
.docs-content li { margin: 5px 0; padding-left: 3px; }
.doc-callout { margin: 22px 0; padding: 15px 17px; border-left: 4px solid var(--orange); border-radius: 10px; background: var(--surface-soft); }
.doc-callout.info { border-left-color: #4678e6; }
.doc-callout.tip { border-left-color: var(--green); }
.doc-callout.warning { border-left-color: #d89023; }
.doc-callout b { font-size: 11px; }
.doc-callout p { margin: 4px 0 0; font-size: 11px; }
.platform-tabs { display: flex; gap: 5px; margin-top: 27px; padding: 5px; border-radius: 13px; background: var(--surface-soft); }
.platform-tabs button { flex: 1; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.platform-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.tab-panel { min-height: 275px; padding: 4px; }
.doc-download { margin-top: 12px; }
.command-list { display: flex; flex-direction: column; gap: 8px; margin: 17px 0; }
.command-list > div { position: relative; padding: 12px 82px 12px 14px; border-radius: 11px; background: var(--surface-soft); }
.command-list span, .command-list code { display: block; }
.command-list span { margin-bottom: 4px; color: var(--muted); font-size: 8px; }
.command-list code { overflow-x: auto; padding: 0; background: none; white-space: nowrap; }
.copy-button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 8px; cursor: pointer; }
.command-list .copy-button { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); }
.doc-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 !important; list-style: none; }
.doc-steps li { display: flex; gap: 11px; margin: 0; padding: 15px; border-radius: 13px; background: var(--surface-soft); }
.doc-steps li > span { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 8px; background: var(--surface); color: var(--orange); font-size: 8px; font-weight: 800; }
.doc-steps h3 { margin: 0 0 3px; font-size: 11px; }
.doc-steps p { margin: 0; font-size: 10px; line-height: 1.55; }
.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reference-grid article { padding: 15px; border-radius: 13px; background: var(--surface-soft); }
.reference-grid h3 { margin: 0 0 5px; font-size: 12px; }
.reference-grid p { margin: 0; font-size: 10px; line-height: 1.6; }
.table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--table-muted); text-align: left; vertical-align: top; }
th { background: var(--surface-soft); color: var(--text); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 700; }
.trouble-list { margin: 22px 0 29px; border-top: 1px solid var(--line); }
.trouble-list details, .faq-list details { border-bottom: 1px solid var(--line); }
.trouble-list summary, .faq-list summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.trouble-list summary span, .faq-list summary span { color: var(--orange); font-size: 17px; }
.trouble-list details > div { padding: 0 25px 15px 0; }
.trouble-list details p, .trouble-list details li { font-size: 11px; }
.code-block { position: relative; }
.code-block .copy-button { position: absolute; top: 10px; right: 10px; border-color: #414249; background: #28292e; color: white; }
.text-link { color: var(--orange); font-size: 11px; font-weight: 700; }
.compact-footer { padding-top: 0; }

@media (max-width: 1050px) {
  .docs-layout { grid-template-columns: 175px minmax(0, 1fr); }
  .docs-on-page { display: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 10px 3px; }
  .nav-download { margin-top: 7px; padding-inline: 15px !important; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 25px; }
  .docs-layout { display: block; }
  .docs-sidebar { display: none; }
  .docs-content { max-width: 720px; margin-inline: auto; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav { min-height: 62px; }
  .brand img { width: 33px; height: 33px; }
  .hero { padding-top: 62px; padding-bottom: 85px; }
  .hero-copy { margin-bottom: 48px; }
  .hero h1 { font-size: 50px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .screenshot-carousel { border-radius: 16px; }
  .footer-main nav { flex-wrap: wrap; gap: 14px 20px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
  .docs-hero { padding: 60px 0 45px; }
  .docs-hero h1 { font-size: 44px; }
  .docs-layout { padding-top: 15px; padding-bottom: 75px; }
  .docs-content > section { padding: 27px 20px; border-radius: 18px; }
  .docs-content h2 { font-size: 27px; }
  .doc-steps, .reference-grid { grid-template-columns: 1fr; }
  .platform-tabs button { padding-inline: 5px; }
  .command-list > div { padding-right: 13px; }
  .command-list .copy-button { position: static; margin-top: 9px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
