:root {
  color-scheme: light dark;
  --bg: #f6f8f5; --surface: #ffffff; --alt: #edf2ee; --border: #dbe4dd;
  --text: #15261f; --muted: #556a5f; --brand: #1f6345; --brand-strong: #17382f; --brand-soft: #dcefe3; --on-brand: #ffffff;
  --code-bg: #10201a; --code-text: #e3efe7; --code-muted: #8fb3a0; --code-border: transparent;
  --shadow: 0 24px 60px #17382f24, 0 2px 6px #17382f14;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1411; --surface: #131e1a; --alt: #101a16; --border: #24352d;
    --text: #e3ece6; --muted: #9fb3a8; --brand: #4cb07f; --brand-strong: #0b1310; --brand-soft: #1b3729; --on-brand: #06110c;
    --code-bg: #050a08; --code-border: #2b4237; --shadow: 0 24px 60px #0008, 0 2px 6px #0006;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
code { font-family: var(--mono); font-size: .86em; background: var(--alt); border: 1px solid var(--border); padding: .05rem .35rem; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { margin: 0 0 .8rem; color: var(--brand); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fine { color: var(--muted); font-size: .88rem; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.15rem; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: filter .15s, background .15s; }
.button:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.button.ghost:hover { background: var(--surface); filter: none; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: 1.4rem; }
.topbar nav a:not(.button) { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 550; }
.topbar nav a:not(.button):hover { color: var(--text); }
.topbar nav .button { padding: .45rem .9rem; font-size: .92rem; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 420px at 85% 0%, var(--brand-soft), transparent 70%), var(--bg); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.7vw, 2.95rem); margin-bottom: 1.1rem; }
.lead { font-size: 1.14rem; color: var(--muted); margin: 0 0 1.6rem; max-width: 36rem; }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1rem; }
.install { display: flex; align-items: center; gap: .6rem; max-width: 37rem; padding: .85rem 1.1rem; border-radius: 12px; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--code-border); box-shadow: 0 8px 24px #0002; }
.install code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: inherit; font-size: .88rem; overflow-x: auto; white-space: nowrap; }
.prompt { color: var(--code-muted); user-select: none; font-family: var(--mono); font-size: .88rem; }
/* One click selects the whole command: copying needs no JavaScript. */
.cmd { user-select: all; -webkit-user-select: all; cursor: text; }
.window { margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.window-bar { display: flex; gap: 7px; padding: 11px 14px; background: var(--alt); border-bottom: 1px solid var(--border); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.window-bar i:nth-child(1) { background: #ec6a5e; } .window-bar i:nth-child(2) { background: #f4bf4f; } .window-bar i:nth-child(3) { background: #61c554; }
.hero-shot { transform: perspective(1800px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }

/* Strip */
.strip { border-block: 1px solid var(--border); background: var(--surface); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-inner div { padding: 22px 16px; text-align: center; display: grid; }
.strip-inner div + div { border-left: 1px solid var(--border); }
.strip strong { font-size: 1.35rem; letter-spacing: -.02em; }
.strip span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--alt); border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin: 0 auto 2.6rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: .8rem; }
.section-head p:not(.eyebrow) { color: var(--muted); margin: 0; }
.section-head.left { text-align: left; margin: 0; }

.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.pipeline li { position: relative; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.pipeline .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: .9rem; }
.pipeline h3, .features h3, .steps h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.pipeline p, .features p, .steps p { margin: 0; color: var(--muted); font-size: .97rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.features article { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.features article::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--brand); margin-bottom: 1rem; }
.wide-shot { max-width: 980px; margin: 0 auto; }
.wide-shot figcaption { padding: 12px 16px; color: var(--muted); font-size: .9rem; text-align: center; border-top: 1px solid var(--border); background: var(--alt); }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 18px 20px 18px 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); }
.checks li::after { content: ""; position: absolute; left: 27px; top: 26px; width: 6px; height: 10px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checks strong { color: var(--text); }

.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform { display: flex; flex-direction: column; gap: .5rem; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.platform h3 { font-size: 1.12rem; }
.platform p { margin: 0 0 .4rem; color: var(--muted); font-size: .97rem; flex: 1; }
.platform pre { margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--code-border); overflow-x: auto; }
.platform pre code { background: none; border: 0; padding: 0; color: inherit; font-size: .84rem; line-height: 1.9; }
.comment { color: var(--code-muted); user-select: none; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: .6rem; }
.steps li::before { content: counter(step); font-weight: 800; color: var(--brand); font-size: .9rem; }
.steps p { flex: 1; }
.steps code { align-self: flex-start; font-size: .8rem; }
.note { max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: .93rem; }

.closing { padding: 80px 0; }
.closing-inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: .6rem; }
.closing h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.closing p { color: var(--muted); margin: 0 0 1rem; }
.closing .install { width: 100%; }

.footer { border-top: 1px solid var(--border); padding: 36px 0 44px; background: var(--surface); }
.footer-inner { display: grid; gap: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.footer nav a:hover { color: var(--text); }
.footer .fine { margin: 0; }

@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-inner, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-shot { transform: none; }
  .pipeline, .features { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar nav a:not(.button) { display: none; }
  .section { padding: 64px 0; }
  .pipeline, .features, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps code { max-width: 100%; overflow-x: auto; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-inner div:nth-child(3) { border-left: 0; }
  .strip-inner div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .install code, .prompt { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
