/* Con landing — borderless glass, cleaner typography */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0b0b0d;
  color: #f7f1ea;
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* scene architecture — hero has the sky, everything below is its own dark surface */
.world { position: relative; isolation: isolate; }
.sky {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  padding: 22px 28px 0;
  overflow: hidden;
}
.sky::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, transparent 0%, rgba(10,6,4,0.08) 70%, rgba(10,6,4,0.25) 100%),
    linear-gradient(180deg, rgba(10,12,30,0.10) 0%, rgba(10,12,30,0) 30%, rgba(10,6,4,0) 70%, #0b0b0d 100%);
  pointer-events: none;
  z-index: 0;
}
.sky > * { position: relative; z-index: 1; }

/* ============ nav — fully borderless ============ */
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 4px 8px 2px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-icon { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }
.brand-name {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 16.5px;
  color: #f7f1ea;
}
.brand-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: rgba(247,241,234,0.5);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  margin-left: 2px;
  white-space: nowrap;
}
.nav-links {
  display: flex; gap: 28px; font-size: 13px;
  color: rgba(247,241,234,0.7);
  justify-content: center;
  font-weight: 450;
  letter-spacing: -0.005em;
}
.nav-links a, .nav-links .nav-link-btn { color: inherit; text-decoration: none; transition: color .15s; background: transparent; border: none; padding: 0; font: inherit; cursor: pointer; letter-spacing: inherit; }
.nav-links a:hover, .nav-links .nav-link-btn:hover { color: #f7f1ea; }

.gh-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: #f7f1ea;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background .15s;
  font-family: 'Geist', sans-serif;
}
.gh-pill:hover { background: rgba(255,255,255,0.13); }
.gh-pill svg { flex-shrink: 0; }
.gh-label { color: rgba(247,241,234,0.9); }
.gh-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.15); }
.gh-star { color: rgba(247,241,234,0.75); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; }
.gh-star svg { opacity: 0.82; }

/* ============ hero ============ */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 40px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.hero-top {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 420px);
  gap: 40px;
  align-items: start;
  flex: 0 0 auto;
  padding-top: 10px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Geist', sans-serif;
  font-size: 12.5px;
  color: rgba(247,241,234,0.78);
  letter-spacing: 0.01em;
  text-transform: none;
  align-self: flex-start;
  font-weight: 500;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #86d197;
  box-shadow: 0 0 12px rgba(134,209,151,0.7);
}
.headline {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #f7f1ea;
  font-weight: 500;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(10,15,30,0.35);
}
.headline > span { display: block; }
.headline em {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.subhead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(247,241,234,0.82);
  max-width: 480px;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}

/* ============ install card — borderless glass ============ */
.install-card {
  background: rgba(15,12,10,0.38);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: none;
  border-radius: 20px;
  padding: 20px;
  color: #f7f1ea;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 14px;
}
.install-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 2px 2px;
}
.install-head-right {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: rgba(247,241,234,0.5);
  letter-spacing: 0.02em;
}
.install-card-head .label {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,241,234,0.55);
  font-weight: 500;
}
.install-card-head .detected {
  color: rgba(247,241,234,0.48);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex; align-items: center; gap: 5px;
}
.install-card-head .detected::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #86d197;
}

.os-tabs { display: flex; gap: 2px; padding: 0; }
.os-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: rgba(247,241,234,0.55);
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: -0.005em;
}
.os-tab:hover { color: rgba(247,241,234,0.9); background: rgba(255,255,255,0.04); }
.os-tab.active {
  background: rgba(255,255,255,0.09);
  color: #f7f1ea;
}
.os-chip {
  font-family: 'Geist', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 2px;
}
.os-chip.beta    { background: rgba(255,171,107,0.18); color: #ffc798; }
.os-chip.planned { background: rgba(176,155,255,0.18); color: #d2c6ff; }
.os-chip.early   { background: rgba(255,171,107,0.18); color: #ffc798; }
.os-icon {
  width: 14px; height: 14px;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(0) invert(1);
}
.os-tab.active .os-icon { opacity: 0.95; }

.install-cmd-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  border-radius: 11px;
  background: rgba(0,0,0,0.32);
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: rgba(247,241,234,0.92);
  line-height: 1.5;
}
.install-cmd-row .dollar { color: rgba(247,241,234,0.35); flex-shrink: 0; }
.install-cmd-row code {
  flex: 1;
  font-family: inherit;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.install-cmd-row .copy-btn {
  background: rgba(255,255,255,0.07);
  border: none;
  color: rgba(247,241,234,0.85);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  flex-shrink: 0;
  letter-spacing: -0.005em;
  transition: background .15s;
}
.install-cmd-row .copy-btn:hover { background: rgba(255,255,255,0.13); }

.install-cta-row { display: flex; gap: 8px; padding: 0; }
.cta-primary {
  flex: 1;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f7f1ea;
  color: #0b0b0d;
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  text-align: center;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .15s, background .15s;
  border: none;
}
.cta-primary:hover { background: #fff; transform: translateY(-1px); }
.cta-secondary {
  flex: 1;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: #f7f1ea;
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  text-align: center;
  border: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background .15s;
}
.cta-secondary:hover { background: rgba(255,255,255,0.14); }

/* install-pending — for Windows beta / Linux planned */
.install-pending {
  display: flex; flex-direction: column; gap: 14px;
  padding: 4px 2px 0;
}
.install-pending-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(247,241,234,0.78);
  letter-spacing: -0.005em;
}
.install-pending-copy strong { color: #f7f1ea; font-weight: 600; }

/* ============ docs overlay ============ */
.docs-overlay {
  position: fixed; inset: 0;
  background: rgba(8,6,10,0.72);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  animation: docs-fade .18s ease-out;
}
@keyframes docs-fade { from { opacity: 0; } to { opacity: 1; } }
.docs-panel {
  width: 100%; max-width: 860px; max-height: 100%;
  background: #15110f;
  border-radius: 16px;
  box-shadow: 0 60px 140px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: docs-rise .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes docs-rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.docs-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.docs-title { display: flex; flex-direction: column; gap: 2px; }
.docs-kicker {
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #f7f1ea;
  letter-spacing: -0.005em;
}
.docs-repo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: rgba(247,241,234,0.45);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.docs-repo:hover { color: rgba(247,241,234,0.75); }
.docs-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent; border: none;
  color: rgba(247,241,234,0.55);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.docs-close:hover { background: rgba(255,255,255,0.08); color: #f7f1ea; }

.docs-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 48px 60px;
}
.docs-loading, .docs-error {
  padding: 32px 0;
  color: rgba(247,241,234,0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  text-align: center;
}
.docs-error a { color: #ffc798; margin-left: 6px; }

.docs-md {
  color: rgba(247,241,234,0.88);
  font-family: 'Geist', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  letter-spacing: -0.003em;
  max-width: 680px;
  margin: 0 auto;
}
.docs-md h1, .docs-md h2, .docs-md h3, .docs-md h4, .docs-md h5, .docs-md h6 {
  color: #f7f1ea;
  letter-spacing: -0.02em;
  margin: 2em 0 0.6em;
  line-height: 1.2;
}
.docs-md h1 { font-size: 30px; font-weight: 500; margin-top: 0.4em; }
.docs-md h2 { font-size: 22px; font-weight: 500; }
.docs-md h3 { font-size: 17px; font-weight: 600; }
.docs-md h4 { font-size: 15px; font-weight: 600; }
.docs-md p  { margin: 0 0 1.1em; }
.docs-md a  { color: #ffc798; text-decoration: none; border-bottom: 1px solid rgba(255,199,152,0.25); }
.docs-md a:hover { border-bottom-color: #ffc798; }
.docs-md code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  color: #ffc798;
}
.docs-md pre {
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 1.2em;
}
.docs-md pre code {
  background: transparent;
  padding: 0;
  color: #e8e2dc;
  font-size: 12.5px;
}
.docs-md ul, .docs-md ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.docs-md li { margin: 0.3em 0; }
.docs-md img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.6em 0; }
.docs-md blockquote {
  border-left: 2px solid rgba(255,199,152,0.4);
  padding: 4px 0 4px 14px;
  margin: 0 0 1.1em;
  color: rgba(247,241,234,0.72);
}
.docs-md table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 13.5px;
}
.docs-md th, .docs-md td {
  padding: 8px 12px;
  text-align: left;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}
.docs-md th { color: #f7f1ea; font-weight: 600; }
.docs-md hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 2em 0; }

/* hide repo badge images + alignment wrappers that READMEs love */
.docs-md p > img[src*="img.shields.io"],
.docs-md p > a > img[src*="img.shields.io"],
.docs-md p > img[src*="shields.io"] {
  display: inline;
  border-radius: 0;
  margin: 2px 3px;
  vertical-align: middle;
}

/* spacer — raccoon lives in background */
.hero-spacer { flex: 1; min-height: 120px; }

/* providers strip — borderless, one horizontal line */
.providers-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 22px 16px 8px;
  max-width: 1200px;
  margin: 0 auto;
}
.providers-label {
  font-family: 'Geist', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,241,234,0.55);
  font-weight: 500;
  white-space: nowrap;
}
.providers-row {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(247,241,234,0.82);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.provider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247,241,234,0.72);
  transition: color .15s;
  cursor: default;
}
.provider:hover { color: #f7f1ea; }
.provider-logo {
  width: 20px;
  height: 20px;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 5px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  background: transparent;
  transition: filter .2s, opacity .2s, background .2s, box-shadow .2s;
}
.provider:hover .provider-logo {
  filter: none;
  opacity: 1;
  background: rgba(247,241,234,0.95);
}
.provider[data-provider="kimi-color"]:hover .provider-logo {
  background: #101827;
  box-shadow: inset 0 0 0 1px rgba(23, 131, 255, 0.38);
}

/* ============ below-the-fold: solid dark surface ============ */
.ground {
  position: relative;
  background: #0b0b0d;
  /* soft seam into the sky above */
  box-shadow: 0 -40px 80px -20px rgba(0,0,0,0.5);
}
.demo {
  padding: 120px 24px 120px;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.section-eyebrow {
  font-family: 'Geist', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(247,241,234,0.5);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.section-title {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: #f7f1ea;
  font-weight: 500;
  text-wrap: balance;
}
.section-title span,
.section-title em {
  display: block;
}
.section-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(247,241,234,0.9);
}
.section-sub {
  margin: 0 auto 56px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(247,241,234,0.62);
  letter-spacing: 0;
  max-width: 560px;
}

@keyframes demo-copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes demo-window-in {
  from { opacity: 0; transform: translateY(34px) scale(0.985); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes demo-window-scroll {
  0% { transform: translateY(34px) scale(0.985); opacity: 0.72; filter: blur(5px); }
  38% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
  100% { transform: translateY(-18px) scale(0.992); opacity: 0.9; filter: blur(0); }
}

@keyframes con-control-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes con-agent-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes con-pane-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes con-message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 901px) {
  .section-eyebrow,
  .section-title,
  .section-sub {
    animation: demo-copy-in 700ms var(--ease-out-quint) both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  .section-title { animation-delay: 60ms; }
  .section-sub { animation-delay: 120ms; }

  .con-window {
    animation: demo-window-in 760ms var(--ease-out-expo) both;
    will-change: transform, opacity;
  }

  @supports (animation-timeline: view()) {
    .con-window {
      animation-name: demo-window-scroll;
      animation-duration: 1ms;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% exit 85%;
    }
  }
}

/* ============ con terminal window — borderless glass ============ */
.con-window {
  max-width: 1160px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: visible;
  background: rgba(14,12,12,0.58);
  backdrop-filter: blur(36px) saturate(1.3);
  -webkit-backdrop-filter: blur(36px) saturate(1.3);
  border: none;
  box-shadow:
    0 60px 140px rgba(0,0,0,0.5),
    0 12px 30px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);
  color: #e8e2dc;
  font-family: 'JetBrains Mono', monospace;
  text-align: left;
  transform-origin: center top;
}

.con-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  gap: 14px;
  background: transparent;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
}
.con-titlebar.no-tabs { height: 36px; }
.titlebar-spacer { height: 1px; }
.traffic { display: flex; gap: 7px; }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl-close { background: #ed6a5e; }
.tl-min { background: #f4be4f; }
.tl-max { background: #61c555; }

.con-tabs { display: flex; gap: 3px; align-items: center; overflow: hidden; }
.con-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: rgba(247,241,234,0.55);
  white-space: nowrap;
  cursor: pointer;
}
.con-tab.active { color: #f7f1ea; background: rgba(255,255,255,0.07); }
.tab-dot { width: 5px; height: 5px; border-radius: 50%; background: #86d197; }
.tab-x { opacity: 0.4; font-weight: 300; font-size: 13px; }
.tab-new { background: none; border: none; color: rgba(247,241,234,0.45); cursor: pointer; font-size: 14px; padding: 0 6px; }

.con-win-actions { display: flex; gap: 2px; }
.con-win-actions button {
  background: transparent;
  border: none;
  color: rgba(247,241,234,0.55);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  transition: background .18s var(--ease-out-quart), color .18s var(--ease-out-quart), transform .18s var(--ease-out-quart);
}
.con-win-actions button:hover { background: rgba(255,255,255,0.07); color: #f7f1ea; transform: translateY(-1px); }
.con-win-actions button:active { transform: translateY(0) scale(0.96); }
.con-win-actions button.active {
  background: rgba(255,255,255,0.09);
  color: #f7f1ea;
}

/* body layout */
.con-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  height: 540px;
  overflow: hidden;
  transition: grid-template-columns 340ms var(--ease-out-quint);
}
.con-body.no-agent { grid-template-columns: 1fr; }

.con-main {
  display: flex; flex-direction: column;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.pane-grid { display: grid; flex: 1; overflow: hidden; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.pane-grid.split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  transition: grid-template-columns 320ms var(--ease-out-quint);
}
.pane {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 22px;
  transition: box-shadow .2s;
  min-width: 0;
  cursor: text;
  outline: none;
}
.pane:focus-visible { box-shadow: inset 0 0 0 1px rgba(176,155,255,0.22); }
.pane-grid.split .pane { padding: 14px 16px; }
.pane + .pane { box-shadow: inset 1px 0 0 rgba(255,255,255,0.05); }
.pane-grid.split .pane + .pane { animation: con-pane-in 280ms var(--ease-out-quint) both; }
.pane.focused::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(176,155,255,0.18);
  border-radius: 2px;
}
.pane-content { flex: 1; overflow: auto; padding: 16px 22px; }

.ts {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: #e8e2dc;
}
.pane-grid.split .ts { font-size: 11.5px; }
.tl-line { display: flex; white-space: pre; }
.tl-line > span:last-child { min-width: 0; overflow: hidden; text-overflow: clip; }
.tl-line.dim { color: rgba(232,226,220,0.45); }
.tl-prompt { color: #b09bff; }
.tl-cursor { display: inline-block; width: 7px; height: 14px; background: #e8e2dc; vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.neofetch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; margin: 4px 0; min-width: 0; }
.pane-grid.split .neofetch { gap: 14px; }
.ascii { font-size: 9.5px; line-height: 1.1; color: #b09bff; margin: 0; }
.pane-grid.split .ascii { font-size: 8.6px; }
.fetch { font-size: 11.5px; line-height: 1.55; color: #e8e2dc; }
.pane-grid.split .fetch { font-size: 10.8px; }
.fetch .k { color: #ffab6b; font-weight: 600; }
.swatch-row { display: flex; gap: 2px; margin-top: 8px; }
.swatch-row span { width: 22px; height: 11px; display: inline-block; border-radius: 2px; opacity: 0.75; }

/* agent — borderless, flush glass */
.agent {
  width: 340px;
  min-width: 0;
  min-height: 0;
  border-left: none;
  background: rgba(247,241,234,0.025);
  backdrop-filter: blur(22px);
  display: flex; flex-direction: column;
  font-family: 'Geist', sans-serif;
  overflow: hidden;
  animation: con-agent-in 300ms var(--ease-out-quint) both;
  transform-origin: right center;
}
.con-body:not(.no-agent) .con-main { box-shadow: inset -1px 0 0 rgba(255,255,255,0.04); }
.agent-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: none; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04); }
.agent-head-left, .agent-head-right { display: flex; gap: 4px; align-items: center; }
.icon-btn { width: 26px; height: 26px; border-radius: 7px; background: none; border: none; color: rgba(247,241,234,0.55); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: rgba(255,255,255,0.06); color: #f7f1ea; }
.dd {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: rgba(247,241,234,0.88);
  font-size: 11.5px;
  cursor: pointer;
  font-family: 'Geist', sans-serif;
}

.agent-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; line-height: 1.5; }
.ag-msg,
.tool-card {
  animation: con-message-in 260ms var(--ease-out-quart) both;
}
.ag-msg.user .ag-body { padding: 9px 13px; border-radius: 13px; background: rgba(255,255,255,0.08); color: #f7f1ea; align-self: flex-end; max-width: 86%; }
.ag-msg.user { display: flex; justify-content: flex-end; }
.ag-msg.assistant .ag-body { color: rgba(247,241,234,0.86); min-width: 0; }
.ag-msg code { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,0.07); color: #ffab6b; }

.tool-card { border: none; border-radius: 11px; background: rgba(0,0,0,0.28); overflow: hidden; font-size: 12px; min-width: 0; max-width: 100%; }
.tool-head { display: flex; align-items: center; gap: 8px; padding: 10px 13px; color: rgba(247,241,234,0.82); }
.tool-name { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: #f7f1ea; }
.tool-arg { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(247,241,234,0.5); margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-ok { color: #86d197; font-size: 13px; }
.diff { margin: 0; padding: 10px 12px; background: rgba(0,0,0,0.22); border: none; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 1.5; overflow: hidden; white-space: pre-wrap; }
.d-line.remove { color: #ff8a77; }
.d-line.add { color: #8fd99f; }
.tool-actions { display: flex; gap: 7px; padding: 10px 13px; background: transparent; }
.tool-actions button { flex: 1; padding: 7px; border-radius: 8px; font-size: 11.5px; font-weight: 500; cursor: pointer; border: none; background: rgba(255,255,255,0.05); color: #e8e2dc; font-family: 'Geist', sans-serif; transition: background .15s; }
.tool-actions .allow { background: #f5efe8; color: #1a0f0c; }
.tool-actions .deny:hover { background: rgba(255,255,255,0.1); }

.agent.with-own-input .agent-messages { padding-bottom: 10px; }
.agent-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: none;
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(14,12,12,0) 0%, rgba(14,12,12,0.22) 36%, rgba(14,12,12,0.34) 100%);
  animation: con-control-in 240ms var(--ease-out-quart) both;
}
.agent-input input { flex: 1; min-width: 0; padding: 12px 13px; border-radius: 12px; background: rgba(255,255,255,0.07); border: none; color: #f7f1ea; font-size: 13px; font-family: 'Geist', sans-serif; outline: none; }
.agent-input input::placeholder { color: rgba(247,241,234,0.4); }
.agent.with-own-input .agent-input {
  margin: 0 10px 12px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}
.agent.with-own-input .agent-input input {
  padding: 10px 8px;
  border-radius: 11px;
  background: transparent;
}
.send { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.08); border: none; color: #f7f1ea; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.agent-input .send { flex: 0 0 auto; }

/* bottom bar — mode button, optional broadcast badge, input, send */
.con-bottombar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  min-height: 50px;
  background: rgba(0,0,0,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  font-family: 'Geist', sans-serif;
  font-size: 12.5px;
  color: rgba(247,241,234,0.7);
  position: relative;
  border-radius: 0 0 16px 16px;
  animation: con-control-in 260ms var(--ease-out-quart) both;
}
.keycap { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; background: rgba(255,255,255,0.08); border: none; font-family: 'Geist', sans-serif; font-size: 10.5px; color: rgba(247,241,234,0.85); }

/* mode button */
.bb-mode-wrap { position: relative; display: inline-flex; }
.bb-mode-btn {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: rgba(247,241,234,0.85);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s var(--ease-out-quart), color .18s var(--ease-out-quart), transform .18s var(--ease-out-quart);
  flex-shrink: 0;
}
.bb-mode-btn:hover { background: rgba(255,255,255,0.1); color: #f7f1ea; transform: translateY(-1px); }
.bb-mode-btn:active { transform: scale(0.96); }
.bb-mode-btn.mode-smart { color: #b6e4c3; }
.bb-mode-btn.mode-agent { color: #d2c6ff; }
.bb-mode-btn.mode-shell { color: #b6e4c3; }
.bb-mode-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 5px 10px;
  background: rgba(20,18,22,0.96);
  color: #f7f1ea;
  font-size: 11.5px;
  letter-spacing: -0.005em;
  border-radius: 7px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 80;
}
.bb-mode-wrap:hover .bb-mode-tooltip,
.bb-mode-wrap:focus-within .bb-mode-tooltip { opacity: 1; }

/* broadcast badge (shell mode + multi-pane) */
.bb-broadcast-wrap { position: relative; }
.bb-broadcast {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 9px;
  height: 32px;
  border-radius: 9px;
  border: none;
  background: rgba(91,134,214,0.14);
  color: #9ec4f0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .18s var(--ease-out-quart), color .18s var(--ease-out-quart), transform .18s var(--ease-out-quart);
  font-family: inherit;
}
.bb-broadcast:hover, .bb-broadcast.open { background: rgba(91,134,214,0.22); color: #b9d6f5; transform: translateY(-1px); }
.bb-broadcast svg { flex-shrink: 0; }

/* input */
.bb-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.bb-input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 10px;
  height: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: -0.003em;
  color: #e8e2dc;
}
.bb-input::placeholder { color: rgba(247,241,234,0.38); font-family: 'Geist', sans-serif; font-size: 12.5px; letter-spacing: -0.005em; }
.bb-input.mode-smart, .bb-input.mode-shell { color: #8fd9b6; }
.bb-input.mode-agent { color: #f0ecff; }

/* send button */
.bb-send {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #9eb4ff;
  color: #1a1a26;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s var(--ease-out-quart), transform .18s var(--ease-out-quart);
  flex-shrink: 0;
}
.bb-send:hover { background: #b6c6ff; transform: translateY(-1px); }
.bb-send:active { transform: scale(0.94); }
.bb-send svg { stroke-width: 2; }

/* ----- pane scope popover ----- */
.pane-scope {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50px;
  width: 360px;
  background: rgba(22,20,26,0.96);
  backdrop-filter: blur(24px);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  z-index: 30;
  display: flex; flex-direction: column; gap: 14px;
  font-family: 'Geist', sans-serif;
  animation: ps-in .14s ease-out;
}
@keyframes ps-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ps-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ps-title { font-size: 14px; font-weight: 500; color: #f7f1ea; letter-spacing: -0.01em; }
.ps-sub { font-size: 11.5px; color: rgba(247,241,234,0.55); margin-top: 2px; letter-spacing: -0.003em; }
.ps-kbd { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ps-kbd .ps-range { font-size: 11px; color: rgba(247,241,234,0.5); margin-left: 2px; }
.ps-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  padding: 3px;
  border-radius: 9px;
}
.ps-tab {
  border: none; background: transparent; cursor: pointer;
  padding: 7px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 500; letter-spacing: -0.005em;
  color: rgba(247,241,234,0.55);
  font-family: inherit;
  transition: background .15s, color .15s;
}
.ps-tab:hover { color: #f7f1ea; }
.ps-tab.active { background: rgba(91,134,214,0.18); color: #b9d6f5; }
.ps-minimap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 2px;
}
.ps-pane {
  border: none;
  position: relative;
  height: 110px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  padding: 8px 10px;
  display: flex; flex-direction: column;
  text-align: left;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(247,241,234,0.55);
  transition: background .15s, box-shadow .15s;
}
.ps-pane:hover { background: rgba(255,255,255,0.055); }
.ps-pane.on { background: rgba(91,134,214,0.12); box-shadow: inset 0 0 0 1px rgba(91,134,214,0.25); }
.ps-dot { width: 6px; height: 6px; border-radius: 50%; background: #86d197; box-shadow: 0 0 8px rgba(134,209,151,0.5); }
.ps-tilde { position: absolute; left: 22px; top: 7px; color: #b09bff; font-size: 12px; }
.ps-num {
  position: absolute; right: 8px; top: 6px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  color: rgba(247,241,234,0.7);
  font-weight: 500;
}

/* footer — structured, quiet */
footer.site-foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px 38px;
  font-family: 'Geist', sans-serif;
  color: rgba(247,241,234,0.7);
  letter-spacing: 0;
}
.foot-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) 2fr;
  gap: 72px;
  padding-bottom: 54px;
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.foot-brand-row { display: flex; align-items: center; gap: 9px; }
.foot-icon { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
.foot-name { font-weight: 600; font-size: 15.5px; letter-spacing: -0.02em; color: #f7f1ea; }
.foot-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: rgba(247,241,234,0.5);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  white-space: nowrap;
}
.foot-tag {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(247,241,234,0.65);
}
.foot-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.foot-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  color: rgba(247,241,234,0.6);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col-label {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,241,234,0.45);
  font-weight: 500;
  margin-bottom: 2px;
}
.foot-col a, .foot-col .foot-link-btn {
  color: rgba(247,241,234,0.78);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: -0.005em;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s;
  width: fit-content;
}
.foot-col a:hover, .foot-col .foot-link-btn:hover { color: #f7f1ea; }
.foot-col .foot-link-strong { font-weight: 600; color: rgba(247,241,234,0.86); }

.foot-legal {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 22px;
  row-gap: 12px;
  padding-top: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  font-size: 11.5px;
  color: rgba(247,241,234,0.45);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.01em;
}
.foot-legal a {
  text-decoration: none;
}
.foot-maker {
  display: inline-grid;
  grid-template-columns: 28px auto;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: inherit;
}
.foot-maker-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.74;
}
.foot-maker-copy { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.foot-maker-name {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(247,241,234,0.72);
}
.foot-maker-slogan {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  color: rgba(247,241,234,0.43);
}
.foot-maker:hover .foot-maker-icon { opacity: 0.95; }
.foot-maker:hover .foot-maker-name { color: rgba(247,241,234,0.88); }

@media (max-width: 800px) {
  .foot-inner { grid-template-columns: 1fr; gap: 40px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .foot-legal { grid-template-columns: 1fr; gap: 8px; }
  .foot-maker-copy { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (max-width: 620px) {
  footer.site-foot { padding-inline: 20px; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* tweaks panel */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 280px;
  background: rgba(14,10,8,0.94);
  backdrop-filter: blur(18px);
  border: none;
  border-radius: 14px;
  padding: 14px;
  color: #e8e2dc;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; gap: 12px;
}
.tweaks-head { display: flex; justify-content: space-between; align-items: center; font-family: 'Geist', monospace; font-size: 11px; letter-spacing: 0.1em; color: rgba(247,241,234,0.55); padding-bottom: 8px; text-transform: uppercase; font-weight: 500; }
.tweak-group { display: flex; flex-direction: column; gap: 6px; }
.tweak-label { font-size: 11.5px; color: rgba(247,241,234,0.65); }
.tweak-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-pill { padding: 5px 10px; border-radius: 7px; background: rgba(255,255,255,0.05); border: none; color: rgba(247,241,234,0.7); font-size: 11.5px; cursor: pointer; font-family: 'Geist', sans-serif; }
.tweak-pill.on { background: #f5efe8; color: #1a0f0c; }
.tweak-toggle { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.tweak-switch { width: 32px; height: 18px; border-radius: 999px; background: rgba(255,255,255,0.1); border: none; position: relative; cursor: pointer; }
.tweak-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #e8e2dc; transition: transform .15s; }
.tweak-switch.on { background: #86d197; }
.tweak-switch.on::after { transform: translateX(14px); }

/* responsive */
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
  .install-card { max-width: 440px; }
  .nav-links { display: none; }
}

@media (max-width: 760px) {
  .sky {
    min-height: auto;
    padding: 16px 16px 0;
    background-position: 58% center;
  }
  .sky::after {
    background:
      radial-gradient(ellipse 95% 55% at 50% 22%, transparent 0%, rgba(10,6,4,0.12) 62%, rgba(10,6,4,0.36) 100%),
      linear-gradient(180deg, rgba(10,12,30,0.16) 0%, rgba(10,12,30,0) 38%, rgba(10,6,4,0.1) 72%, #0b0b0d 100%);
  }
  .nav {
    grid-template-columns: 1fr auto;
    padding: 2px 0 0;
    gap: 12px;
  }
  .brand { min-width: 0; }
  .brand-name { font-size: 16px; }
  .brand-version { max-width: 132px; overflow: hidden; text-overflow: ellipsis; }
  .gh-pill {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 12px;
  }
  .hero {
    padding: 34px 0 26px;
    min-height: auto;
    gap: 24px;
  }
  .hero-top {
    gap: 28px;
    padding-top: 0;
  }
  .hero-top > * {
    min-width: 0;
  }
  .hero-copy { gap: 16px; }
  .eyebrow { font-size: 12px; }
  .headline {
    font-size: 50px;
    line-height: 1.01;
    max-width: 620px;
  }
  .subhead {
    font-size: 16px;
    max-width: 340px;
  }
  .install-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 15px;
    border-radius: 18px;
    gap: 12px;
    background: rgba(9,12,20,0.54);
    box-shadow:
      0 22px 60px rgba(0,0,0,0.26),
      inset 0 1px 0 rgba(255,255,255,0.07);
  }
  .install-card-head {
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }
  .install-head-right {
    text-align: right;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(247,241,234,0.43);
  }
  .os-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border-radius: 13px;
    background: rgba(2,5,12,0.28);
  }
  .os-tab {
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 6px 8px;
    border-radius: 10px;
    color: rgba(247,241,234,0.58);
    font-size: 12.5px;
    font-weight: 450;
  }
  .os-tab.active {
    background: rgba(247,241,234,0.095);
    color: rgba(247,241,234,0.9);
  }
  .os-tab span:not(.os-chip) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .install-cmd-row {
    min-width: 0;
    min-height: 43px;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(2,4,10,0.42);
    font-size: 11.8px;
    color: rgba(247,241,234,0.78);
  }
  .install-cmd-row .copy-btn {
    min-height: 30px;
    padding-inline: 10px;
    border-radius: 9px;
    background: rgba(247,241,234,0.065);
    color: rgba(247,241,234,0.72);
    font-size: 11px;
  }
  .cta-primary,
  .cta-secondary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.2px;
  }
  .cta-secondary {
    background: rgba(5,6,10,0.18);
    color: rgba(247,241,234,0.74);
    font-weight: 450;
  }
  .hero-spacer { min-height: 190px; }
  .providers-strip {
    justify-content: flex-start;
    gap: 13px;
    padding: 18px 0 4px;
  }
  .providers-row {
    width: 100%;
    gap: 8px;
  }
  .provider {
    min-height: 36px;
    padding: 6px 10px 6px 8px;
    border-radius: 12px;
    background: rgba(5,6,10,0.24);
    color: rgba(247,241,234,0.68);
    font-weight: 450;
  }
  .provider-logo {
    width: 19px;
    height: 19px;
  }

  .demo {
    padding: 82px 16px 84px;
  }
  .section-eyebrow {
    margin-bottom: 14px;
  }
  .section-title {
    font-size: 40px;
    line-height: 1.05;
    margin-bottom: 16px;
  }
  .section-sub {
    margin-bottom: 36px;
    font-size: 16px;
  }
  .con-window {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }
  .con-titlebar {
    height: 42px;
    padding: 0 10px;
    gap: 10px;
  }
  .con-win-actions { gap: 3px; }
  .con-win-actions button,
  .icon-btn {
    min-width: 34px;
    min-height: 34px;
  }
  .con-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 38%);
    height: 440px;
    max-height: none;
  }
  .con-body.no-agent {
    grid-template-columns: 1fr;
  }
  .con-main {
    min-height: 0;
  }
  .con-body.no-agent .con-main {
    min-height: 0;
  }
  .pane-grid.split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .pane,
  .pane-grid.split .pane {
    padding: 14px 14px;
  }
  .pane + .pane {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  }
  .ts,
  .pane-grid.split .ts {
    font-size: 11.5px;
    line-height: 1.55;
  }
  .neofetch {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ascii {
    font-size: 8px;
    max-height: 150px;
    overflow: hidden;
  }
  .fetch,
  .pane-grid.split .fetch {
    font-size: 10.8px;
  }
  .swatch-row span {
    width: 20px;
  }
  .agent {
    width: auto;
    min-height: 0;
    max-height: none;
    box-shadow: inset 1px 0 0 rgba(255,255,255,0.04);
  }
  .con-body:not(.no-agent) .con-main {
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
  }
  .agent-head {
    min-height: 42px;
    gap: 8px;
  }
  .agent-head-right {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
  }
  .dd {
    min-height: 30px;
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .agent-messages {
    padding: 12px 10px;
    font-size: 12px;
    gap: 12px;
  }
  .con-bottombar {
    min-height: 54px;
    gap: 7px;
    padding: 9px 10px;
  }
  .bb-mode-btn,
  .bb-send {
    width: 36px;
    height: 36px;
  }
  .bb-input {
    height: 36px;
    padding-inline: 6px;
    font-size: 12px;
  }
  .bb-input::placeholder {
    font-size: 12px;
  }
  .bb-broadcast {
    height: 36px;
    padding: 7px 9px;
  }
  .pane-scope {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 72px;
    width: auto;
    max-width: none;
    z-index: 120;
  }

  footer.site-foot {
    padding: 58px 16px 32px;
  }
  .foot-inner {
    gap: 38px;
    padding-bottom: 40px;
  }
  .foot-brand {
    max-width: none;
  }
  .foot-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .foot-col {
    min-width: 0;
  }
  .foot-col a,
  .foot-col .foot-link-btn {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
  }
  .foot-legal {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 9px;
  }
  .foot-maker-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
}

@media (max-width: 520px) {
  .sky {
    padding-inline: 14px;
    background-position: 61% center;
  }
  .brand-version {
    display: none;
  }
  .gh-pill {
    gap: 7px;
  }
  .gh-label,
  .gh-sep {
    display: none;
  }
  .headline {
    font-size: 42px;
    max-width: 360px;
  }
  .subhead {
    max-width: 300px;
  }
  .install-card {
    padding: 13px;
    border-radius: 17px;
    gap: 10px;
  }
  .install-card-head {
    align-items: flex-start;
    padding-inline: 2px;
  }
  .install-head-right {
    max-width: 150px;
    font-size: 10px;
  }
  .os-tab {
    gap: 5px;
    font-size: 12px;
    min-height: 36px;
    padding: 6px 5px;
  }
  .os-chip {
    display: none;
  }
  .install-cmd-row {
    gap: 8px;
    min-height: 41px;
  }
  .install-cmd-row code {
    font-size: 11.2px;
  }
  .install-cta-row {
    flex-direction: column;
    gap: 7px;
  }
  .cta-primary,
  .cta-secondary {
    min-height: 40px;
  }
  .hero-spacer {
    min-height: 150px;
  }
  .providers-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .provider {
    justify-content: flex-start;
    min-width: 0;
    min-height: 34px;
    padding: 6px 9px 6px 8px;
    font-size: 12px;
  }
  .demo {
    padding-inline: 14px;
  }
  .section-title {
    font-size: 34px;
  }
  .section-sub {
    max-width: 300px;
  }
  .con-titlebar {
    gap: 8px;
  }
  .traffic {
    gap: 6px;
  }
  .tl {
    width: 10px;
    height: 10px;
  }
  .con-win-actions button {
    min-width: 32px;
    min-height: 32px;
    padding: 6px;
  }
  .con-body {
    grid-template-columns: minmax(0, 1fr) minmax(126px, 40%);
    height: 430px;
  }
  .con-body.no-agent {
    grid-template-columns: 1fr;
  }
  .pane,
  .pane-grid.split .pane {
    padding: 12px;
  }
  .ts,
  .pane-grid.split .ts {
    font-size: 10.5px;
    line-height: 1.55;
  }
  .fetch,
  .pane-grid.split .fetch {
    font-size: 9.8px;
  }
  .swatch-row span {
    width: 16px;
    height: 9px;
  }
  .ascii {
    display: none;
  }
  .neofetch {
    margin-top: 8px;
  }
  .agent {
    min-height: 0;
  }
  .agent-head-left {
    display: none;
  }
  .agent-head-right {
    justify-content: flex-end;
  }
  .dd:first-child {
    display: none;
  }
  .dd {
    max-width: 100%;
    font-size: 11px;
  }
  .agent-messages {
    padding: 10px 8px;
    font-size: 10.8px;
  }
  .ag-msg.user .ag-body {
    max-width: 100%;
    padding: 8px 10px;
  }
  .tool-head {
    gap: 6px;
    padding: 9px 8px;
  }
  .tool-name {
    font-size: 10.5px;
  }
  .tool-arg {
    font-size: 10px;
  }
  .tool-actions {
    gap: 5px;
    padding: 8px 9px;
  }
  .tool-actions button {
    padding: 7px 4px;
    font-size: 10.8px;
  }
  .diff {
    font-size: 9.6px;
    padding: 8px 9px;
    overflow: hidden;
  }
  .d-line {
    display: block;
  }
  .ag-msg code {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
  }
  .bb-broadcast span {
    display: none;
  }
  .bb-broadcast {
    width: 36px;
    justify-content: center;
    padding-inline: 0;
  }
  .bb-input {
    min-width: 70px;
  }
  .pane-scope {
    left: 12px;
    right: 12px;
    bottom: 68px;
    padding: 14px;
  }
  .ps-head {
    align-items: center;
  }
  .ps-kbd {
    display: none;
  }
  .ps-pane {
    height: 82px;
  }
  .docs-overlay {
    padding: 12px;
  }
  .docs-panel {
    border-radius: 14px;
  }
  .docs-head {
    padding: 14px 14px;
  }
  .docs-body {
    padding: 20px 18px 42px;
  }
  .docs-md {
    font-size: 14px;
  }
  .foot-brand-row,
  .foot-badges,
  .foot-cols,
  .foot-col,
  .foot-legal {
    align-items: flex-start;
    justify-items: start;
    text-align: left;
  }
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 28px;
  }
  .foot-col {
    width: 100%;
    gap: 7px;
  }
  .foot-col:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
  .foot-col:nth-child(3) .foot-col-label {
    grid-column: 1 / -1;
  }
  .foot-badges {
    gap: 7px;
  }
  .foot-badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }
  .foot-legal {
    padding-top: 22px;
  }
  .foot-maker {
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
  }
  .foot-maker-icon {
    width: 26px;
    height: 26px;
  }
  .foot-col a,
  .foot-col .foot-link-btn {
    width: 100%;
    min-height: 28px;
  }
}

@media (max-width: 380px) {
  .headline {
    font-size: 38px;
  }
  .install-card {
    padding: 12px;
    border-radius: 16px;
    gap: 9px;
  }
  .install-card-head {
    justify-content: flex-start;
  }
  .install-head-right {
    display: none;
  }
  .os-tab {
    min-height: 34px;
    gap: 4px;
    padding-inline: 4px;
  }
  .os-icon {
    width: 13px;
    height: 13px;
  }
  .install-cmd-row {
    min-height: 39px;
    padding: 8px 9px;
  }
  .install-cmd-row .copy-btn svg {
    display: none;
  }
  .install-cmd-row .copy-btn {
    padding-inline: 8px;
  }
  .providers-row {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 31px;
  }
  .con-titlebar {
    padding-inline: 8px;
  }
  .con-body {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 40%);
    height: 420px;
  }
  .dd {
    max-width: 100%;
  }
  .agent-head {
    justify-content: flex-end;
    padding-inline: 8px;
  }
  .agent-head-right {
    justify-content: flex-end;
  }
  .agent-messages {
    padding-inline: 7px;
    font-size: 10.2px;
  }
  .ag-msg.assistant .ag-body {
    overflow: hidden;
  }
  .bb-input::placeholder {
    color: transparent;
  }
  .foot-cols {
    gap: 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
