:root {
  --black: #0a0b0d;
  --surface: #111318;
  --surface-raised: #161921;
  --white: #f1f2ee;
  --muted: #969ba7;
  --soft: #c5c9d1;
  --rule: #2a2e38;
  --signal: #8ea9e8;
  --signal-dim: #6279ad;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--black); }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--black); color: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
main { flex: 1; }
.container { width: min(100% - 64px, 1100px); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--rule); background: rgb(10 11 13 / .88); }
.nav { display: flex; min-height: 76px; align-items: center; justify-content: space-between; }
.wordmark, footer span:first-child { font: 500 22px/1 var(--mono); letter-spacing: -0.065em; }
.wordmark { color: var(--white); }
nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font: 400 12px/1 var(--mono); letter-spacing: .015em; }
nav a { transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
nav a:hover { color: var(--white); }
.nav-toggle { display: none; padding: 8px; border: 0; background: transparent; color: var(--soft); cursor: pointer; }
.nav-toggle svg { display: block; width: 22px; height: 22px; }
.nav-toggle:hover { color: var(--white); }
.nav-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.source-link { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--soft); }
.github-link img, .footer-github-link img { display: block; width: 19px; height: auto; }
.source-link:hover { color: var(--white); }
.hero { position: relative; isolation: isolate; padding: clamp(102px, 15vw, 174px) 0 clamp(108px, 12vw, 146px); overflow: hidden; }
.hero::before { position: absolute; z-index: -1; inset: 0 calc((100vw - min(100vw - 64px, 1100px)) / -2); background-image: linear-gradient(rgb(142 169 232 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(142 169 232 / .045) 1px, transparent 1px), radial-gradient(ellipse 45% 48% at 83% 36%, rgb(91 117 177 / .14), transparent 72%); background-size: 42px 42px, 42px 42px, auto; mask-image: linear-gradient(90deg, black, black 48%, transparent 90%); content: ""; pointer-events: none; }
.eyebrow { margin: 0 0 24px; color: var(--signal); font: 400 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0; font-size: clamp(53px, 8.4vw, 105px); font-weight: 600; line-height: .93; letter-spacing: -.052em; }
h1 span { color: var(--signal); }
.lede { max-width: 550px; margin: 34px 0 0; color: var(--soft); font-size: 19px; line-height: 1.5; }
.install-link { display: inline-flex; gap: 12px; margin-top: 31px; padding-bottom: 5px; border-bottom: 1px solid var(--signal-dim); color: var(--signal); font: 500 12px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; transition: border-color .18s ease, color .18s ease; }
.install-link span { color: inherit; }
.install-link:hover { border-color: var(--signal); color: var(--white); }
.terminal-demo { display: flex; align-items: center; min-height: 20px; margin-top: 19px; color: var(--muted); font: 400 13px/1.5 var(--mono); }
.terminal-prompt { margin-right: 9px; color: var(--signal); }
.terminal-command { color: var(--soft); }
.terminal-cursor { width: 7px; height: 15px; margin-left: 3px; background: var(--signal); animation: terminal-blink 1s steps(1, end) infinite; }
@keyframes terminal-blink { 50% { opacity: 0; } }
.features { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.features article { position: relative; isolation: isolate; min-height: 247px; padding: 31px 24px 32px 0; border-right: 1px solid var(--rule); }
.features article:not(:first-child) { padding-left: 24px; }
.features article:last-child { border-right: 0; }
.features article > * { position: relative; z-index: 1; }
.features article::before { position: absolute; z-index: 0; inset: -1px 0; background: linear-gradient(180deg, rgb(142 169 232 / .065), transparent 68%); content: ""; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.features article:first-child::before { left: calc((100vw - min(100vw - 64px, 1100px)) / -2); }
.features article:last-child::before { right: calc((100vw - min(100vw - 64px, 1100px)) / -2); }
.features article:hover::before { opacity: 1; }
.features p { margin: 0 0 70px; color: var(--signal); font: 400 10px/1 var(--mono); letter-spacing: .06em; }
h2 { max-width: 185px; margin: 0; font-size: 23px; font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; }
.features span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.install-page { min-height: calc(100vh - 177px); padding-top: clamp(104px, 13vw, 152px); padding-bottom: clamp(92px, 12vw, 140px); }
.install-intro { max-width: 650px; }
.install-intro p { max-width: 460px; margin: 31px 0 0; color: var(--soft); font-size: 19px; line-height: 1.5; }
.install-picker { width: min(100%, 860px); margin: 58px auto 0; }
.install-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--rule); }
.install-method { position: relative; min-height: 58px; padding: 18px 20px; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; font-family: var(--sans); text-align: center; transition: color .18s ease, background-color .18s ease; }
.install-method::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--signal); content: ""; opacity: 0; transform: scaleX(.45); transition: opacity .18s ease, transform .18s ease; }
.install-method span { display: block; color: inherit; font: 500 17px/1 var(--mono); letter-spacing: -.045em; }
.install-method:hover { color: var(--soft); background: var(--surface-raised); }
.install-method.is-selected { background: rgb(22 25 32); color: var(--white); }
.install-method.is-selected::after { opacity: 1; transform: scaleX(1); }
.install-method:focus-visible { z-index: 1; outline-offset: -3px; }
.install-command { border: 1px solid var(--rule); border-top: 0; background: var(--surface); }
.command-row { display: flex; align-items: center; gap: 20px; padding: 14px 16px 14px 24px; }
.install-command pre { min-width: 0; flex: 1; margin: 0; overflow-x: auto; padding: 10px 0; text-align: left; }
.install-command code { color: var(--soft); font: 400 16px/1.4 var(--mono); white-space: nowrap; }
.install-command code span { color: var(--signal); }
.copy-command { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.copy-command svg { width: 15px; height: 15px; }
.copied-icon { display: none; }
.copy-command:hover { background: rgb(142 169 232 / .08); color: var(--soft); }
.copy-command:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.copy-command.is-copied { background: rgb(142 169 232 / .08); color: var(--signal); }
.copy-command.is-copied .copy-icon { display: none; }
.copy-command.is-copied .copied-icon { display: block; }
.install-note { margin: 15px 0 0; color: var(--muted); font: 400 12px/1.55 var(--mono); }
.install-note code { color: var(--soft); }
.page { min-height: calc(100vh - 177px); padding-top: 106px; padding-bottom: 106px; }
.page h1 { font-size: clamp(44px, 6vw, 72px); }
.empty { margin-top: 32px; color: var(--muted); font-size: 18px; }
.doc-list { max-width: 680px; margin: 42px 0 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.doc-list li { border-bottom: 1px solid var(--rule); }
.doc-list a { display: flex; justify-content: space-between; padding: 18px 0; font-size: 18px; }
.doc-list a:hover, .doc-list a span { color: var(--muted); }
.prose { max-width: 720px; margin-top: 42px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.prose h2 { max-width: none; margin: 2.4em 0 .65em; color: var(--white); font-size: 27px; }
.prose code { padding: .1em .3em; background: var(--surface-raised); color: var(--white); font-family: var(--mono); font-size: .85em; }
.prose pre { overflow-x: auto; padding: 18px; border: 1px solid var(--rule); background: var(--surface); color: var(--white); font-size: 14px; }
footer { padding: 30px 0; border-top: 1px solid var(--rule); color: var(--muted); font: 400 12px/1.4 var(--mono); }
footer .container { display: flex; justify-content: space-between; gap: 20px; }
.footer-github-link { display: inline-flex; align-items: center; color: var(--soft); transition: color .18s ease; }
.footer-github-link:hover { color: var(--white); }
.license-link { color: var(--soft); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: color .18s ease, text-decoration-color .18s ease; }
.license-link:hover { color: var(--white); text-decoration-color: var(--signal-dim); }

@media (max-width: 720px) {
  .container { width: min(100% - 40px, 1100px); }
  .site-header { position: relative; z-index: 2; }
  .nav { position: relative; min-height: 63px; }
  .nav-toggle { display: block; }
  nav { position: absolute; z-index: 1; top: 100%; right: calc((100vw - 100%) / -2); left: calc((100vw - 100%) / -2); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--rule); background: var(--black); opacity: 0; pointer-events: none; transform: translateY(-8px); visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
  nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; transition-delay: 0s; }
  nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  nav a:last-child { border-bottom: 0; }
  .source-link { justify-content: flex-start; width: auto; height: auto; }
  .hero { padding-top: 88px; padding-bottom: 90px; }
  h1 { font-size: clamp(48px, 13vw, 72px); letter-spacing: -.048em; }
  .lede { font-size: 18px; }
  .terminal-demo { margin-top: 17px; font-size: 12px; }
  .install-page { padding-top: 88px; }
  .install-intro p { font-size: 18px; }
  .install-picker { margin-top: 48px; }
  .install-method { min-height: 56px; padding: 17px 16px; }
  .command-row { gap: 12px; padding: 12px 12px 12px 16px; }
  .install-command pre { padding: 9px 0; }
  .install-command code { font-size: 14px; }
  .install-note { font-size: 11px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features article { min-height: 210px; padding: 25px 20px !important; border-bottom: 1px solid var(--rule); }
  .features article:nth-child(2) { border-right: 0; }
  .features article:nth-child(n + 3) { border-bottom: 0; }
  .features article:nth-child(3)::before { left: calc((100vw - min(100vw - 40px, 1100px)) / -2); }
  .features article:nth-child(2)::before { right: calc((100vw - min(100vw - 40px, 1100px)) / -2); }
  .features p { margin-bottom: 44px; }
  footer .container { display: block; }
  footer span:not(:first-child), footer .footer-github-link { display: block; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-cursor { animation: none; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 720px) {
  nav { transition: none; }
}
