:root {
  --bg: #0a0b0d;
  --surface: #0e1013; /* also the terminal recording's background */
  --surface-raised: #13161a;
  --border: #1d2127;
  --border-strong: #2a3038;
  --text: #e6e8eb;
  --muted: #9aa2ad;
  --accent: #7ee2a8; /* the terminal's green */
  --string: #a8d5b8;

  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --radius: 10px;
  --gutter: 24px;
  --max: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
pre {
  margin: 0;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Header */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  width: 26px;
  height: 26px;
}

.brand__mark rect {
  fill: var(--surface-raised);
  stroke: var(--border-strong);
}

.brand__mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 120ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  padding-top: 56px;
  padding-bottom: 44px;
}

.hero h1 {
  max-width: 14em;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 36em;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__lead code {
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.command {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 48px;
  padding-left: 16px;
  padding-right: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.command__prompt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  user-select: none;
}

.command__text {
  overflow-x: auto;
  font-size: 14px;
  white-space: nowrap;
  scrollbar-width: none;
}

.hero__links {
  display: flex;
  gap: 12px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding-inline: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}

.link-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

.hero__meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.copy {
  flex: none;
  min-width: 64px;
  height: 34px;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--muted);
  font: 500 13px/1 var(--font-sans);
  cursor: pointer;
  transition:
    color 120ms ease,
    border-color 120ms ease;
}

.copy:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.copy[data-state="copied"] {
  color: var(--accent);
}

/* Terminal demo */

.demo {
  padding-bottom: 32px;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 80px -24px rgb(0 0 0 / 0.7);
}

.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding-inline: 16px 8px;
  border-bottom: 1px solid var(--border);
}

.terminal__title {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.terminal__toggle {
  height: 30px;
  padding-inline: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 500 12px/1 var(--font-sans);
  cursor: pointer;
}

.terminal__toggle:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.terminal__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  background: var(--surface);
}

.terminal__caption {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.terminal__caption code {
  color: var(--text);
}

/* Sections */

.section {
  padding-top: 96px;
}

.section__title {
  margin-bottom: 32px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps,
.features {
  display: grid;
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  list-style: none;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.features {
  grid-template-columns: repeat(3, 1fr);
}

.step,
.feature {
  padding: 24px;
  background: var(--bg);
}

.step p,
.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.step code,
.feature code,
.start__notes code {
  color: var(--text);
}

.step__number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Code blocks */

.code-block {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps + .code-block {
  margin-top: 24px;
}

.code-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-inline: 16px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  tab-size: 2;
}

.t-k {
  color: var(--text);
}

.t-s {
  color: var(--string);
}

.t-n {
  color: var(--accent);
}

.t-p,
.t-c {
  color: var(--muted);
}

/* Get started */

.agent-prompt {
  margin-top: 32px;
}

.agent-prompt pre {
  max-height: 360px;
  overflow: auto;
  white-space: pre;
}

.start {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}

.start__notes {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 15px;
}

.text-link {
  justify-self: start;
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 120ms ease;
}

.text-link:hover {
  text-decoration-color: var(--accent);
}

/* Footer */

.site-footer {
  margin-top: 120px;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms ease;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer__links {
  display: flex;
  gap: 8px 20px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* Responsive */

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .start {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  .hero {
    padding-top: 40px;
  }

  .command {
    flex: 1 1 100%;
    gap: 8px;
    padding-left: 14px;
  }

  /* Leaves room for the whole install command at 375px wide. */
  .command__prompt {
    display: none;
  }

  .command__text {
    font-size: 13px;
  }

  .hero__links {
    flex: 1 1 100%;
  }

  .link-button {
    flex: 1;
    justify-content: center;
  }

  /* The recording's text is small at phone width; give it the full screen width. */
  .demo {
    padding-inline: 0;
  }

  .terminal {
    border-inline: 0;
    border-radius: 0;
  }

  .terminal__video {
    aspect-ratio: 3 / 2;
  }

  .section {
    padding-top: 72px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .step,
  .feature {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
