:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1f2226;
  --muted: #676b73;
  --rule: #e2e0da;
  --accent: #2a78d6;
  --accent-soft: #e3edfa;
  --logo-accent: #E8702A;
  --term-bg: #16181c;
  --term-ink: #e6e4df;
  --term-dim: #8b9099;
  --term-green: #7ee2a8;
  --term-blue: #8fb8f5;
  --term-amber: #f2c46d;
  --term-red: #f28b82;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111316;
    --surface: #181b1f;
    --ink: #eceae5;
    --muted: #979ba3;
    --rule: #2a2e34;
    --accent: #6ea3f0;
    --accent-soft: #1b2638;
    --term-bg: #0b0c0e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.65 var(--sans); color: var(--ink); background: var(--bg); }
h1, h2, h3, p, dl, dd, ul, ol, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--ink); color: var(--bg); }
.skip:focus { left: 1rem; z-index: 10; }
code, pre { font-family: var(--mono); }
code { font-size: 0.88em; background: color-mix(in srgb, var(--rule) 55%, transparent); padding: 0.1em 0.35em; border-radius: 4px; }

.site-header { max-width: 72rem; margin: 0 auto; padding: 1.25rem clamp(1rem, 4vw, 2rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .mark { width: 2.4rem; height: auto; }
.wordmark { font-family: "Space Grotesk", var(--sans); font-weight: 400; letter-spacing: -0.03em; }
.wordmark b { font-weight: 600; }
.brand .wordmark { font-size: 1.3rem; }
nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.hero { max-width: 52rem; margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem) 2rem; text-align: center; display: grid; gap: 1.25rem; justify-items: center; }
.hero .logo { width: clamp(9rem, 24vw, 13rem); height: auto; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1.05; }
.hero .tagline { font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.4; color: var(--ink); font-weight: 500; max-width: 38rem; text-wrap: balance; }
.hero .sub { color: var(--muted); max-width: 36rem; text-wrap: balance; }

.hero > *, .install > * { max-width: 100%; min-width: 0; }
.install { width: 100%; max-width: 44rem; display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.os-tabs { display: inline-flex; justify-self: center; background: color-mix(in srgb, var(--rule) 45%, transparent); border-radius: 999px; padding: 0.25rem; gap: 0.25rem; }
.os-tabs button { font: 500 0.875rem var(--sans); border: 0; background: transparent; color: var(--muted); padding: 0.4rem 1rem; border-radius: 999px; cursor: pointer; }
.os-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cmd { display: flex; align-items: stretch; background: var(--term-bg); color: var(--term-ink); border-radius: 10px; overflow: hidden; text-align: left; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.cmd pre { flex: 1; min-width: 0; padding: 1rem 1.25rem; overflow-x: auto; font-size: 0.95rem; line-height: 1.7; }
.cmd pre::before { content: ""; }
.cmd .p { color: var(--term-dim); user-select: none; }
.copy { font: 600 0.8rem var(--sans); border: 0; border-left: 1px solid #2c3036; background: transparent; color: var(--term-ink); padding: 0 1.1rem; cursor: pointer; min-width: 5.5rem; }
.copy:hover { background: #22252b; }
.copy.done { color: var(--term-green); }
.install .hint { color: var(--muted); font-size: 0.9rem; }

.shot { max-width: 68rem; margin: 2.5rem auto 0; padding: 0 clamp(1rem, 4vw, 2rem); }
.shot img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--rule); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.shot figcaption { text-align: center; color: var(--muted); font-size: 0.875rem; margin-top: 0.75rem; }

.what { max-width: 64rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) 1rem; display: grid; gap: clamp(3rem, 7vw, 5rem); }
.what > h2 { text-align: center; font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; }
.feature > * { min-width: 0; }
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature:nth-of-type(even) .copytext { order: 2; }
.feature h3 { font-size: clamp(1.3rem, 2.8vw, 1.65rem); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 0.6rem; }
.feature p { color: var(--muted); }
.feature p + p { margin-top: 0.75rem; }
.term { background: var(--term-bg); color: var(--term-ink); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(0,0,0,.45); min-width: 0; }
.term .bar { display: flex; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid #23262b; }
.term .bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #3a3e45; display: block; }
.term pre { padding: 1rem 1.15rem 1.15rem; font-size: 0.8rem; line-height: 1.75; overflow-x: auto; white-space: pre; }
.term .p { color: var(--term-dim); }
.term .g { color: var(--term-green); }
.term .b { color: var(--term-blue); }
.term .a { color: var(--term-amber); }
.term .r { color: var(--term-red); }
.term .d { color: var(--term-dim); }
.term .w { color: #ffffff; font-weight: 700; }

.grid3 { max-width: 64rem; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem 1.35rem; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.card p { color: var(--muted); font-size: 0.925rem; }

.platforms { max-width: 52rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) 2rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.platforms h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.platforms p { color: var(--muted); max-width: 36rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.25rem; border: 1px solid var(--ink); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; background: transparent; }
.button:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { filter: brightness(1.08); background: var(--accent); color: #fff; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

.site-footer { margin-top: clamp(3rem, 8vw, 5rem); border-top: 1px solid var(--rule); background: var(--surface); }
.feedback { max-width: 64rem; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.feedback h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.feedback p { color: var(--muted); }
.footer-links { max-width: 64rem; margin: 0 auto; padding: 1.25rem clamp(1rem, 4vw, 2rem) 2.5rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 0.75rem 1.5rem; flex-wrap: wrap; color: var(--muted); font-size: 0.875rem; }
.footer-links ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.doc { max-width: 46rem; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem) 1rem; display: grid; gap: 2.75rem; }
.section { display: grid; gap: 1rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.doc h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); }
.lede { font-size: 1.125rem; color: var(--muted); }
.doc pre { background: var(--term-bg); color: var(--term-ink); border-radius: 10px; padding: 0.9rem 1.1rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.7; }
.doc pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.note { color: var(--muted); border-left: 3px solid var(--accent); padding-left: 1rem; font-size: 0.925rem; }
.muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }

@media (max-width: 58rem) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .copytext { order: 0; }
}
@media (max-width: 36rem) {
  nav { gap: 1rem; }
  .cmd { flex-direction: column; }
  .copy { border-left: 0; border-top: 1px solid #2c3036; padding: 0.6rem; }
  .feedback { flex-direction: column; align-items: flex-start; }
  .actions { justify-content: flex-start; }
}