:root {
  color-scheme: dark;
  --bg: oklch(15.2% 0.014 72);
  --bg-2: oklch(12% 0.012 72);
  --surface: oklch(18% 0.016 72);
  --raised: oklch(22% 0.018 72);
  --sunken: oklch(11% 0.012 72);
  --fg: oklch(93% 0.012 80);
  --muted: oklch(62% 0.02 75);
  --quiet: oklch(44% 0.016 75);
  --line: oklch(23% 0.016 72);
  --line-strong: oklch(28% 0.018 72);
  --gold: oklch(74% 0.11 78);
  --gold-fg: oklch(18% 0.03 78);
  --success: oklch(70% 0.12 145);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 0.55rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); }
html { scroll-behavior: smooth; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
code, kbd { font-family: var(--mono); font-size: 0.92em; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 1.5rem;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { width: 1.65rem; height: 1.65rem; }
.brand span {
  font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.03em; font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 1.15rem; font-size: 0.9rem; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.nav .btn { color: var(--gold-fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.65rem; padding: 0 1.05rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--gold-fg); }
.btn-primary:hover { background: color-mix(in oklab, var(--gold) 86%, white); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--raised); }

.hero {
  position: relative;
  padding: 4.5rem 1.5rem 2rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% 10% auto;
  height: 28rem;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--gold) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 68rem; margin: 0 auto; text-align: center; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 auto 1.15rem;
  max-width: 16ch;
}
.hero-sub {
  max-width: 38rem; margin: 0 auto 1.75rem;
  font-size: 1.12rem; line-height: 1.55; color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }

.stage {
  max-width: 72rem; margin: 2.5rem auto 0; padding: 0 1.25rem 4rem;
}
.frame {
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 40px 80px -40px oklch(0% 0 0 / 0.7), 0 0 0 1px oklch(100% 0 0 / 0.03) inset;
  overflow: hidden;
}
.chrome {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
}
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--quiet); }
.dot:nth-child(1) { background: #e06c75; }
.dot:nth-child(2) { background: var(--gold); }
.dot:nth-child(3) { background: var(--success); }
.chrome-title { margin-left: 0.4rem; font-size: 0.75rem; color: var(--quiet); }

.app {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr) 14.5rem;
  min-height: 28rem;
  font-size: 0.78rem;
}
.pane { min-width: 0; background: var(--bg); }
.pane + .pane { border-left: 1px solid var(--line); }
.pane-h {
  padding: 0.65rem 0.85rem; color: var(--quiet);
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.session {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.85rem; color: var(--muted);
}
.session.active { background: var(--raised); color: var(--fg); }
.dot-sm { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--quiet); flex: none; }
.session.active .dot-sm { background: var(--success); }
.host-tag { margin-left: auto; font-size: 0.65rem; color: var(--quiet); }

.chat { display: flex; flex-direction: column; min-height: 28rem; }
.msg { padding: 0.85rem 1rem; line-height: 1.5; color: var(--fg); }
.msg + .msg { border-top: 1px solid var(--line); }
.msg .who { display: block; font-size: 0.68rem; color: var(--quiet); margin-bottom: 0.25rem; }
.msg.user { color: var(--muted); }
.composer {
  margin-top: auto; margin: auto 0.75rem 0.75rem;
  border: 1px solid var(--line-strong); border-radius: 0.7rem;
  padding: 0.7rem 0.85rem; color: var(--quiet); background: var(--sunken);
}

.files { padding: 0.5rem 0; color: var(--muted); }
.file { padding: 0.28rem 0.9rem; }
.file.dir { color: var(--fg); }

.band { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem 5rem; }
.band h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500; letter-spacing: -0.03em; margin: 0 0 2rem; max-width: 16ch;
}
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.card {
  padding: 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); min-height: 10.5rem;
}
.card h3 { margin: 0 0 0.45rem; font-size: 1rem; font-weight: 500; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 0.92rem; }

.install {
  max-width: 42rem; margin: 0 auto 5rem; padding: 0 1.5rem; text-align: center;
}
.install h2 {
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500; letter-spacing: -0.03em; margin: 0 0 0.5rem;
}
.install p { color: var(--muted); margin: 0 0 1.1rem; }
.os-switch {
  display: inline-flex; gap: 0.15rem; margin: 0 0 0.9rem;
  padding: 0.18rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}
.os-switch button {
  appearance: none; border: 0; background: transparent;
  color: var(--muted); font: inherit; font-size: 0.8rem;
  padding: 0.38rem 0.9rem; border-radius: 999px; cursor: pointer;
}
.os-switch button:hover { color: var(--fg); }
html[data-os="linux"] .os-switch [data-os="linux"],
html[data-os="darwin"] .os-switch [data-os="darwin"],
html[data-os="windows"] .os-switch [data-os="windows"] {
  background: var(--raised); color: var(--fg);
}
.cmd {
  display: none; align-items: stretch; gap: 0;
  border: 1px solid var(--line-strong); border-radius: 0.75rem;
  background: var(--sunken); overflow: hidden; text-align: left;
}
html:not([data-os]) .cmd[data-for~="unix"],
html[data-os="linux"] .cmd[data-for~="linux"],
html[data-os="linux"] .cmd[data-for~="unix"],
html[data-os="darwin"] .cmd[data-for~="darwin"],
html[data-os="darwin"] .cmd[data-for~="unix"],
html[data-os="windows"] .cmd[data-for~="windows"] {
  display: flex;
}
.cmd[hidden] { display: none !important; }
.cmd code {
  flex: 1; padding: 0.95rem 1.05rem; font-size: 0.82rem;
  overflow-x: auto; white-space: nowrap;
}
.cmd button {
  border: 0; border-left: 1px solid var(--line);
  background: var(--raised); color: var(--fg); padding: 0 1rem;
  font: inherit; font-size: 0.8rem; cursor: pointer;
}
.cmd button:hover { color: var(--gold); }
.alt { margin-top: 0.75rem; font-size: 0.8rem; color: var(--quiet); }
.alt a { text-decoration: underline; text-underline-offset: 3px; }

.dl { max-width: 44rem; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.dl h1 {
  font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500; letter-spacing: -0.035em; margin: 0 0 0.6rem;
}
.dl .lead { color: var(--muted); font-size: 1.08rem; line-height: 1.5; margin: 0 0 2rem; }
.platforms { display: grid; gap: 0.75rem; }
.plat {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.plat strong { display: block; font-weight: 500; }
.plat span { color: var(--muted); font-size: 0.85rem; }
.plat.preferred { border-color: color-mix(in oklab, var(--gold) 45%, var(--line)); }
.dl-note { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 1.5rem 2rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; color: var(--quiet); font-size: 0.8rem;
}
.site-footer a:hover { color: var(--fg); }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; min-height: 0; }
  .pane-files, .pane-sessions { display: none; }
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
}
