:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #15151a;
  --muted: #5e5e66;
  --border: #e6e6ea;
  --accent: #2f6fed;
  --accent-soft: #e3edff;
  --accent-text: #ffffff;
  --font-heading: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", monospace;
  --r: 10px;
  --r-pill: 9999px;
  --container: 1024px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.6 var(--font-body);
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--font-mono);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.125rem 0.4rem;
  border-radius: 4px;
  font-size: 0.92em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* Topbar */
.topbar {
  padding-block: 1.25rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}
.topbar nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}
.topbar nav a { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 500;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--text); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--lg { padding: 0.95rem 1.75rem; font-size: 1.0625rem; }
.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  opacity: 0.7;
}

/* Hero */
.hero { padding-block: 6rem 5rem; }
.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero h1 br { display: block; }
.hero .lede {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 1.5rem 0 2.5rem;
}
.install {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.install-hint {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
}
.soul-hint {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 36rem;
}
.soul-hint a {
  font-family: var(--font-mono);
  color: var(--text);
  border-bottom: 1px dashed var(--muted);
}
.soul-hint a:hover { color: var(--accent); border-color: var(--accent); }

/* How */
.how { padding-block: 5rem; border-top: 1px solid var(--border); }
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 42rem;
}
.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  background: var(--surface);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.steps li p { margin: 0.5rem 0 0; color: var(--muted); }
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* Integrations + stack + categories — shared section padding */
.integrations,
.stack,
.categories {
  padding-block: 5rem;
  border-top: 1px solid var(--border);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Closing */
.closing {
  padding-block: 6rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.closing h2 { margin-bottom: 0.5rem; }
.closing .btn { margin-top: 1.5rem; }

/* Footer */
.footer { padding-block: 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Dialog */
dialog {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  max-width: 32rem;
  width: 92vw;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
dialog h3 { margin-bottom: 0.75rem; }
dialog p { color: var(--muted); }
dialog pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.dialog__actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

@media (max-width: 600px) {
  .install { flex-direction: column; align-items: stretch; }
  .install .btn { justify-content: center; }
}
