:root {
  color-scheme: light dark;
  --canvas: light-dark(#eceef3, #14131c);
  --dot: light-dark(rgba(51, 65, 85, 0.15), rgba(224, 222, 244, 0.08));
  --ink: light-dark(#151722, #e8e7f2);
  --soft: light-dark(#3d4152, #c4c2d4);
  --muted: light-dark(#6a6f80, #8d8aa3);
  --accent: light-dark(#6d4bc4, #c4a7e7);
  --raise: light-dark(#ffffff, #1e1c2a);
  --line: light-dark(#d9dce4, #2c2a38);
  --code-bg: #232136;
  --code-bar: #2a273f;
  --code-ink: #e0def4;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.88em; padding: 1px 5px; border-radius: 5px; background: light-dark(rgba(109, 75, 196, 0.09), rgba(196, 167, 231, 0.12)); }
kbd {
  font-size: 0.8em; font-weight: 700; padding: 1px 7px; border-radius: 6px;
  background: var(--raise); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line);
}

.early {
  margin: 0; padding: 8px 16px; text-align: center; font-size: 14px;
  background: light-dark(#fff3d6, #3a2f12); color: light-dark(#6b4e00, #f6c177);
}
.early a { font-weight: 600; }

header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  background: light-dark(rgba(236, 238, 243, 0.85), rgba(20, 19, 28, 0.85));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; }
.mark { width: 18px; height: 14px; border-radius: 4px; border: 2px solid var(--accent); position: relative; }
.mark::after {
  content: ""; position: absolute; left: 8px; top: 9px; width: 14px; height: 10px; border-radius: 3px;
  border: 2px dashed light-dark(#2b6cb0, #8fb5ec);
}
nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: 15px; }
nav a { text-decoration: none; color: var(--soft); }
nav a:hover { color: var(--ink); }
.star { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); color: var(--ink) !important; font-weight: 600; }
.count { padding-left: 6px; border-left: 1px solid var(--line); color: var(--muted); }
.theme { border: 0; background: none; color: var(--soft); cursor: pointer; padding: 6px; }

main { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.eyebrow { margin: 0 0 14px; font: 600 13px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  min-height: calc(100vh - 110px); padding: 40px clamp(16px, 4vw, 48px) 56px;
  margin: 0 calc(-1 * clamp(16px, 4vw, 48px));
  background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.5px); background-size: 24px 24px;
}
h1 { margin: 0 0 24px; font-size: clamp(42px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.045em; }
h1 em { font-family: ui-serif, Georgia, serif; font-weight: 500; color: var(--accent); }
.lede { margin: 0 0 30px; font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); max-width: 36em; }
.cta { display: flex; gap: 12px; margin: 0; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; background: var(--raise); border: 1px solid var(--line); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: light-dark(#fff, #1a1726); }

.win { margin: 0; border-radius: 14px; overflow: hidden; background: var(--code-bg); box-shadow: 0 0 0 1px light-dark(rgba(20, 22, 40, 0.08), rgba(255, 255, 255, 0.06)), 0 20px 50px light-dark(rgba(30, 24, 60, 0.18), rgba(0, 0, 0, 0.5)); }
.win figcaption { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--code-bar); color: #908caa; font: 12px var(--mono); }
.win figcaption i { width: 11px; height: 11px; border-radius: 50%; background: #44415a; }
.win figcaption span { margin-left: 10px; }
.win video { display: block; width: 100%; aspect-ratio: 1360 / 820; background: #dcdfe5; cursor: pointer; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.group { padding: 28px 30px; border-radius: 16px; background: var(--raise); border: 1px solid var(--line); }
.group h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 26px; letter-spacing: -0.02em; }
.group h2 kbd { font-size: 15px; }
.group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.group li { color: var(--soft); padding-left: 18px; position: relative; }
.group li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.group li b { color: var(--ink); }
h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }

pre { margin: 0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; background: var(--code-bg); color: var(--code-ink); font-size: 14px; user-select: all; }


@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  nav a:not(.star) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.carousel .screen { position: relative; aspect-ratio: 1360 / 820; background: #dcdfe5; }
.carousel .screen video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 520ms ease; }
.carousel .screen video.on { opacity: 1; }
.carousel .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(35, 33, 54, 0.12); }
.carousel .progress i { display: block; height: 100%; width: 0; background: #7c5cc4; }
.carousel .captions { display: grid; background: var(--code-bar); }
.carousel .captions p {
  grid-area: 1 / 1; margin: 0; padding: 12px 16px 14px; color: #e0def4; font-size: 15px;
  opacity: 0; transition: opacity 520ms ease;
}
.carousel .captions p.on { opacity: 1; }
.carousel .captions kbd { background: #393552; color: #e0def4; border-color: #44415a; box-shadow: none; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: light-dark(rgba(35, 33, 54, 0.22), rgba(224, 222, 244, 0.25));
  transition: width 320ms ease, background 320ms ease;
}
.dots button.on { width: 28px; background: var(--accent); }

.features, .install { padding: 64px 0 24px; }
.install h2 { margin: 0 0 24px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.03em; }
.card { padding: 22px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 12px; background: var(--canvas); }
.seg button {
  border: 0; border-radius: 9px; padding: 7px 14px; background: transparent; color: var(--soft);
  font: 600 14px ui-sans-serif, system-ui, sans-serif; cursor: pointer;
}
.seg button.on { background: var(--raise); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 40, 0.12); }
.pane { display: none; }
.pane.on { display: block; }
.card pre { position: relative; padding: 14px 52px 14px 16px; font-size: 14px; line-height: 1.6; }
.card pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.copy {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: rgba(224, 222, 244, 0.08); color: #908caa; cursor: pointer;
}
.copy:hover { background: rgba(224, 222, 244, 0.16); color: #e0def4; }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; margin: 14px 2px 0; align-items: baseline; }
.card dt { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.card dd { margin: 0; color: var(--soft); font-size: 15px; }
.hint { margin: 12px 2px 0; font-size: 14.5px; color: var(--muted); }
.run { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.run > span { display: block; margin: 0 2px 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
