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

:root {
  --bg: #fcfcfc;
  --ink: #141414;
  --muted: #6d6d6d;
  --line: #e6e6e6;
  --panel: #f3f3f4;
  --code: #121212;
  --code-text: #f4f3ef;
  --rail: 1180px;
  --gutter: 32px;
  color: var(--ink);
  background: var(--bg);
  font-family: Geist, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
a { color: inherit; }

.page { min-height: 100vh; overflow-x: clip; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.brand {
  text-decoration: none;
  font-size: 16px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { text-decoration: none; font-size: 15px; opacity: 0.8; }
.links a:hover { opacity: 1; }
.open {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
}
.open:hover { background: #2a2a2a; }

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
  padding: clamp(28px, 4vw, 56px) var(--gutter) 0;
}
h1 {
  width: min(12em, calc(100vw - (var(--gutter) * 2)));
  max-width: 100%;
  margin: 0;
  font-size: clamp(40px, 5.8vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}
.lede {
  max-width: 38em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}
.join { width: min(100%, 680px); max-width: 100%; display: grid; gap: 8px; text-align: left; min-width: 0; }
.join > * { min-width: 0; max-width: 100%; }
.label { margin: 10px 0 0; padding-left: 4px; color: var(--muted); font-size: 14px; }
.command {
  background: var(--code);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 8px;
  width: 100%;
  min-width: 0;
}
.command-quiet {
  background: transparent;
  border: 0;
  padding: 0;
}
.command-line { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; padding: 8px 8px 8px 12px; }
.command-quiet .command-line { padding: 0 0 0 4px; }
.command code, .guide pre, .tools code {
  font-family: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}
.command code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  color: var(--code-text);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}
.command-quiet code { color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #333;
  background: transparent;
  color: #e9e7e2;
  cursor: pointer;
  font-size: 14px;
}
.copy:hover { border-color: #666; background: #1c1c1c; }
.command-quiet .copy { color: var(--ink); border-color: var(--line); min-height: 28px; }
.command-quiet .copy:hover { border-color: var(--ink); background: transparent; }

.section {
  width: min(calc(100% - var(--gutter) * 2), var(--rail));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) 0 0;
  text-align: center;
}
h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
}
.section-lede { max-width: 36em; margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.guide {
  position: relative;
  margin: 28px auto 0;
  text-align: left;
  background: var(--code);
  border: 1px solid #222;
  border-radius: 12px;
  width: min(100%, 760px);
  min-width: 0;
}
.guide .copy { position: absolute; top: 10px; right: 10px; }
.guide pre {
  margin: 0;
  padding: 48px 18px 20px;
  max-height: 360px;
  overflow: auto;
  color: var(--code-text);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  text-align: left;
}
.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
  border-radius: 12px;
  background: var(--panel);
}
.steps span { color: var(--muted); font-size: 14px; }
.steps h3 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.agents {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
}
.agents li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 16px;
}

.tools {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: left;
}
.tools div { padding: 14px 0; border-top: 1px solid var(--line); }
.tools div:last-child { border-bottom: 1px solid var(--line); }
.tools dt { margin: 0; }
.tools code { font-size: 15px; }
.tools dd { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.purpose { margin: 22px 0 0; font-size: 17px; }

.faq { max-width: 760px; margin: 36px auto 0; border-top: 1px solid var(--line); text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 2px;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary:after { transform: rotate(45deg); }
.faq p { max-width: 62ch; margin: 0; padding: 0 2px 22px; color: var(--muted); font-size: 16px; line-height: 1.55; }

footer { padding: 64px var(--gutter) 36px; color: var(--muted); font-size: 14px; text-align: center; }
footer p { margin: 0; }
:is(#install, #how, #agents, #tools, #faq, #secure) { scroll-margin-top: 80px; }
:is(a, button, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 16px;
  }
  .links { order: 3; width: 100%; margin-left: 0; gap: 16px; }
  .links a { font-size: 14px; }
  .open { margin-left: auto; padding: 6px 12px; }
  .lede { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 22px; }
  .command-line { gap: 8px; padding-left: 8px; }
  .copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .copy { padding: 4px 10px; }
  .copy:after { content: "Copy"; }
  .copy.is-copied:after { content: "Copied"; }
}
