@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/mona-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/mona-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/mona-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/mona-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Monaspace Neon";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Monaspace Neon";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/mono-latin-500.woff2") format("woff2");
}

:root {
  --bg: #09090b;
  --bg-elev: #111113;
  --bg-pane: #0c0c0e;
  --ink: #f5f5f4;
  --ink-dim: color-mix(in srgb, var(--ink) 78%, var(--bg));
  --ink-faint: color-mix(in srgb, var(--ink) 62%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, var(--bg));
  --fill: #f5f5f4;
  --on-fill: #09090b;
  --tg-bg: #0e1621;
  --tg-head: #17212b;
  --tg-in: #182533;
  --tg-out: #2b5278;
  --run: #3dd68c;
  --wait: #e8b84a;
  --idle: color-mix(in srgb, var(--ink) 38%, var(--bg));
  --sans: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Monaspace Neon", ui-monospace, monospace;
  --max: 72rem;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 1.0625rem;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
code, pre {
  font-family: var(--mono);
  font-size: 0.84em;
  font-weight: 450;
}
code {
  background: color-mix(in srgb, var(--ink) 8%, var(--bg));
  padding: 0.12em 0.35em;
  border-radius: 4px;
}
::selection { background: color-mix(in srgb, var(--ink) 22%, var(--bg)); color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 22%, var(--bg)); border-radius: 999px; }
::-webkit-scrollbar-track { background: var(--bg); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--fill);
  color: var(--on-fill);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
  padding: 0 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav nav a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav nav a:not(.btn):hover { color: var(--ink); }
.wordmark {
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 1.125rem;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.015em;
}
.btn-fill {
  background: var(--fill);
  color: var(--on-fill);
}
.btn-fill:hover { filter: brightness(0.94); }
.btn-line {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-line:hover { background: color-mix(in srgb, var(--ink) 6%, var(--bg)); }
.nav nav a.btn-nav {
  height: 2rem;
  padding: 0 0.75rem;
  background: var(--fill);
  color: var(--on-fill);
  font-size: 0.8125rem;
}
.nav nav a.btn-nav:hover { filter: brightness(0.94); color: var(--on-fill); }
.btn-lg { height: 2.75rem; padding: 0 1.25rem; font-size: 1rem; }

.hero, .block, .close, .foot {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}
.hero {
  padding: 4.5rem 0 2rem;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 14ch;
}
.lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink-dim);
}
.lede-s {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--ink-dim);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.product { margin: 3.25rem 0 0; }
.product-tight { margin: 0; }
figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.window {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: 0 10px 28px -6px color-mix(in srgb, #000 62%, transparent);
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-pane);
}
.titlebar-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.lights { display: flex; gap: 0.35rem; }
.lights i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: block;
}
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.panes {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 0;
}
.pane { min-width: 0; }
.pane + .pane { border-left: 1px solid var(--line); }

.dm { display: flex; flex-direction: column; background: var(--tg-bg); }
.dm-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: var(--tg-head);
  border-bottom: 1px solid color-mix(in srgb, #fff 6%, transparent);
}
.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #2a3f54;
  color: #d7e3ee;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.04em;
}
.dm-head strong, .sess-head strong { display: block; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.02em; }
.sub { display: block; font-size: 0.75rem; color: var(--ink-faint); font-weight: 400; }
.thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.85rem 0.55rem;
}
.day {
  margin: 0.1rem 0 0.35rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: color-mix(in srgb, #fff 55%, transparent);
  letter-spacing: 0.04em;
}
.bubble {
  margin: 0;
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0s);
}
.bubble.out {
  align-self: flex-end;
  background: var(--tg-out);
  color: #eef5fb;
  border-bottom-right-radius: 4px;
}
.bubble.in {
  align-self: flex-start;
  background: var(--tg-in);
  color: #dbe6f0;
  border-bottom-left-radius: 4px;
}
.composer {
  margin: 0.55rem 0.7rem 0.75rem;
  min-height: 2.5rem;
  border-radius: 999px;
  background: #17212b;
  color: color-mix(in srgb, #fff 72%, transparent);
  display: flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.sessions { background: var(--bg-pane); display: flex; flex-direction: column; }
.sess-head { padding: 0.85rem 1rem 0.55rem; }
.sess-list { list-style: none; margin: 0; padding: 0.25rem 0 0.75rem; }
.sess-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
}
.sess-list li + li { border-top: 1px solid var(--line); }
.sess-list p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-dim);
}
.sess-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.sess-row b { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.02em; }
.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex: none;
}
.dot.run { background: var(--run); }
.dot.wait { background: var(--wait); }
.dot.idle { background: var(--idle); }
.dot.run { animation: pulse 2.2s ease-out infinite; }
.pill {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
.pill.run { color: var(--run); border-color: color-mix(in srgb, var(--run) 35%, transparent); }
.pill.wait { color: var(--wait); border-color: color-mix(in srgb, var(--wait) 35%, transparent); }

.block { padding: 5.5rem 0 0; }
.block h2, .close h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.block h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.block p { color: var(--ink-dim); }
.copy p + p { margin-top: 0.9rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.window-ask { background: var(--tg-bg); }
.ask { display: flex; flex-direction: column; }
.ask .dm-head { border-bottom: 1px solid color-mix(in srgb, #fff 6%, transparent); }
.ask-body { padding: 0.9rem 0.85rem 1.05rem; }
.ask-msg { max-width: 100%; }
.kbd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.kbd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: #25303d;
  color: #6cb7f0;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}
.ask-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.quiet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.75rem;
}
.quiet-grid p { margin: 0; font-size: 0.95rem; }

.engine-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.engine-row li {
  padding: 1.1rem 1.15rem;
}
.engine-row li + li { border-left: 1px solid var(--line); }
.engine-row b { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.engine-row span { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: var(--ink-faint); font-family: var(--mono); }

.term {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}
.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.95rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.copy-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 1.85rem;
  padding: 0 0.7rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}
.copy-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.term pre {
  margin: 0;
  padding: 1.1rem 1.15rem 1.25rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink);
}
.term code { background: none; padding: 0; }
.after { margin-top: 0.9rem; font-size: 0.95rem; }

.close {
  padding: 6.5rem 0 5rem;
  text-align: center;
}
.close h2 { max-width: 16ch; margin-inline: auto; }
.close .btn { margin-top: 1.5rem; }

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 2.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-dim);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.foot a { text-decoration: none; color: var(--ink-dim); }
.foot a:hover { color: var(--ink); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (max-width: 860px) {
  .panes, .split, .quiet-grid, .engine-row { grid-template-columns: 1fr; }
  .pane + .pane, .engine-row li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hero { padding-top: 3rem; }
  .nav nav a:not(.btn) { display: none; }
  .foot { flex-direction: column; align-items: flex-start; }
  .panes { min-height: 0; }
  .thread { min-height: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble, .dot.run { animation: none; }
}
