@font-face {
  font-family: "Fragment Mono";
  src: url("/fonts/FragmentMono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Sono";
  src: url("/fonts/Sono-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
  color: #292927;
  background: #fafaf9;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --line: #e7e7e4;
  --muted: #767671;
  --accent: #b84b35;
  --mono: "Fragment Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; min-width: 280px; }
.page {
  width: 100%;
  /* Keep the content at 1440px, plus 24px of padding on each side. */
  max-width: 1488px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; white-space: nowrap; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--accent);
}
.brand svg { flex: 0 0 18px; }
.quick-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
  margin-top: 42px;
}
.intro, .install-panel { min-width: 0; }
.intro { margin: 0; }
h1 {
  margin: 0;
  font-family: "Sono", var(--mono);
  font-variation-settings: "MONO" 1;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.tagline {
  margin: 10px 0 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-variation-settings: "opsz" 14;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--muted);
  text-wrap: balance;
}
.description, .positioning {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  text-wrap: pretty;
}
.positioning { margin-top: 0; }
.tagline + .positioning { margin-top: 20px; }
a { color: var(--muted); text-decoration: none; font-size: 13px; }
a:hover { color: var(--accent); }
.install {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f6f6f3;
}
.install-picker { position: relative; flex: 0 0 auto; color: #292927; }
.install-picker::after {
  content: "";
  position: absolute;
  right: 20px;
  top: calc(50% - 5px);
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
.install-label {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px 48px 12px 22px;
  border: 1px solid #e5e5df;
  border-radius: 11px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
}
.install-label:hover { background: #fafaf9; border-color: #c9c9c1; }
.install-label option { background: #fff; color: #292927; }
.command { display: flex; flex: 1; min-width: 0; align-items: center; gap: 14px; padding: 8px 10px 8px 0; }
code { min-width: 0; font-family: Monaco, "SF Mono", Menlo, Consolas, "Fragment Mono", monospace; font-size: clamp(14px, 1.65vw, 18px); line-height: 1.8; overflow-wrap: anywhere; }
.syntax-command { color: var(--accent); }
.syntax-string { display: inline-block; max-width: 100%; }
.copy {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.copy:hover { color: var(--accent); background: #ebebe7; }
.copy.done { color: var(--accent); }
.copy-state {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.copy.done .copy-state { opacity: 1; }
.command > code { padding-right: 52px; }
.command .copy-state {
  right: calc(100% + 8px);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.platforms { margin: 0 0 0 auto; max-width: 100%; text-align: right; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--muted); }
.language { display: flex; justify-content: flex-end; }
.language a { font-family: var(--mono); font-size: 11px; }

.terminal-demo { margin-top: 64px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.demo-controls { display: flex; align-items: center; gap: 12px; min-width: 0; }
.demo-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #f1f1ee; }
.demo-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.demo-tab svg { flex-shrink: 0; }
.demo-tab:hover { color: #292927; }
.demo-tab[aria-selected="true"] { border-color: #e7e7e4; background: #fff; color: #292927; box-shadow: 0 1px 2px #29292708; }
.demo-tab[aria-selected="true"] svg { color: var(--accent); }
.demo-panels { display: grid; grid-template-rows: auto auto auto; }
/* Share window, caption, and note rows so every terminal has the same height. */
.demo-panel { display: grid; grid-area: 1 / 1 / 4 / 2; grid-template-rows: subgrid; min-width: 0; }
.demo-panel[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.demo-panel .demo-body { min-height: 430px; }
.ask-shell { align-items: baseline; font-size: 14px; }
.ask-shell > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ask-shell .shell-cursor { margin-left: 4px; vertical-align: text-bottom; }
.ask-rewrite { margin: 10px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.ask-route { margin: 14px 0 24px; color: var(--muted); }
.ask-route span, .ask-speaker { color: var(--accent); }
.ask-answer p { margin: 0 0 10px; }
.ask-answer strong { color: #e8e8e1; font-weight: 400; }
.ask-answer .ask-speaker { margin-bottom: 16px; }
.ask-answer .ask-summary { margin-top: 20px; color: var(--muted); }
.api-terminal-label { margin: 0 0 12px; color: var(--muted); font-size: 10px; }
.api-shell { align-items: baseline; font-size: 14px; }
.api-shell > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.api-shell .shell-cursor { margin-left: 4px; vertical-align: text-bottom; }
.api-server-output { margin: 8px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.api-client { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.api-command, .api-response { margin: 0 0 18px; font: inherit; font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.api-response { margin-bottom: 0; color: var(--accent); }
.install-heading, .demo-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 34px; margin-bottom: 16px; }
.step-title { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.6; color: #292927; }
.demo-replay { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0 8px 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.demo-replay[hidden] { display: none; }
.demo-replay:hover { color: var(--accent); }
.demo-window {
  display: flex;
  flex-direction: column;
  --line: #353632;
  --muted: #a5a69e;
  --accent: #dc8c6b;
  color-scheme: dark;
  color: #e8e8e1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #191a18;
}
.demo-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; background: #2b2c28; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #85867d; }
.titlebar-spacer { width: 38px; }
.demo-body { flex: 1; padding: 26px; font-family: Monaco, "SF Mono", Menlo, Consolas, "Fragment Mono", monospace; font-size: 12px; line-height: 1.9; }
.demo-shell { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 15px; }
.shell-dollar { color: var(--accent); }
.demo-cursor { display: inline-block; width: 8px; height: 17px; background: var(--accent); }
.shell-cursor { display: none; margin-left: -6px; }
.demo-banner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin: 26px 0; padding: 24px; border: 1px solid #504036; border-radius: 7px; }
.demo-identity { min-width: 0; text-align: center; }
.demo-welcome { margin: 0 0 18px; }
.demo-art { margin: 0 0 18px; color: var(--accent); font-family: Monaco, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(6px, 1.1vw, 10px); line-height: 1.2; letter-spacing: 0; white-space: pre; }
.demo-tagline, .demo-workspace { margin: 0; color: var(--muted); font-size: 11px; }
.demo-tips { padding-left: 24px; border-left: 1px solid var(--line); }
.demo-tips h3 { margin: 0 0 12px; font-size: 12px; font-weight: 400; color: var(--accent); }
.demo-tips p { margin: 0 0 8px; }
.demo-shortcuts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; color: var(--muted); }
.demo-input { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; border-block: 1px solid var(--line); font-size: 14px; }
.demo-placeholder { min-width: 0; color: var(--muted); }
.demo-placeholder .demo-cursor { margin-left: 8px; vertical-align: -2px; }
.demo-footer { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.demo-caption { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.setup-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.copy.setup-copy { display: inline-flex; flex: none; align-items: center; gap: 6px; width: auto; height: auto; margin: 0; padding: 2px 6px; background: #f1f1ee; color: #292927; font: inherit; vertical-align: baseline; white-space: nowrap; }
.setup-copy code { font-size: 1em; color: inherit; }
.copy.setup-copy:hover, .copy.setup-copy.done { background: #ebebe7; color: var(--accent); }
.demo-stage { transition: opacity 220ms ease; }
.demo-panel.is-playing .demo-stage:not(.is-visible) { opacity: 0; }
.demo-panel.is-typing .shell-cursor { display: inline-block; }

@media (max-width: 1200px) {
  .quick-start-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 1000px) {
  .demo-panel .demo-body { min-height: 570px; }
  .demo-banner { grid-template-columns: 1fr; }
  .demo-tips { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .page { padding: 24px 24px 56px; }
  .heading { gap: 12px; margin-bottom: 22px; }
  .header-actions { gap: 14px; }
  .brand { font-size: 12px; }
  .quick-start-grid { margin-top: 36px; gap: 28px; }
  .description, .positioning { font-size: 13px; }
  .description { margin-top: 16px; }
  .heading a { font-size: 12px; }
  .install-panel .install { display: block; }
  .install-picker { display: inline-block; }
  .install-picker::after { right: 16px; }
  .install-label { min-height: 40px; padding: 8px 40px 8px 16px; font-size: 14px; }
  .install-panel .command { padding: 14px 8px 8px; gap: 10px; }
  .platforms { font-size: 10px; }
  .copy { flex-basis: 32px; width: 32px; }
  .terminal-demo { margin-top: 44px; }
  .demo-controls { gap: 8px; }
  .demo-tab { gap: 6px; padding: 9px 10px; font-size: 12px; }
  .demo-heading .demo-replay { margin-left: auto; }
  .demo-panel .demo-body { min-height: 530px; }
  .ask-shell { font-size: 12px; }
  .api-shell { font-size: 12px; }
  .demo-titlebar { padding: 12px; font-size: 9px; gap: 8px; }
  .window-dots { gap: 4px; }
  .window-dots i { width: 6px; height: 6px; }
  .titlebar-spacer { display: none; }
  .demo-body { padding: 16px 12px; font-size: 11px; }
  .demo-banner { padding: 16px 8px; margin: 20px 0; gap: 18px; }
  .demo-tagline { font-size: 9px; }
  .demo-footer { font-size: 9px; }
}

@media (prefers-reduced-motion: no-preference) {
  .quick-start { animation: arrive 450ms ease-out both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  .demo-panel.is-playing .demo-cursor { animation: cursor-blink 800ms step-end 4; }
  .demo-panel .demo-input .demo-cursor { animation: cursor-blink 800ms step-end infinite; }
  @keyframes cursor-blink { 50% { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .demo-stage { transition: none; } }
