:root {
  /* ── color palette ── */
  --mist:         #EEF1F4;
  --mist-edge:    #D7DCE3;
  --paper:        #FFFFFF;
  --paper-edge:   #E5E8ED;
  --ink:          #1A1F26;
  --ink-soft:     #3A4250;
  --ink-mute:     #5C6470;
  --ink-fade:     #8A92A0;
  --ink-ghost:    #B5BAC2;
  --marigold:     #FAC775;
  --marigold-on:  #BA7517;
  --marigold-deep:#633806;
  --marigold-bg:  #FAEEDA;
  --code-bg:      #14181F;
  --code-border:  #1F2228;
  --code-text:    #E6EDF3;
  --code-mute:    #6B7280;
  --code-soft:    #B5B5B0;
  /* ── homepage palette ── */
  --bg:         #fafaf9;
  --surface:    #ffffff;
  --surface2:   #f4f2ff;
  --border:     #e8e5f5;
  --border2:    #d5d0ee;
  --text:       #1c1a2e;
  --muted:      #9691b2;
  --dim:        #6b6880;
  --primary:    #6c5ce7;
  --primary-lt: #ede9ff;
  --primary-dk: #5444d4;
  --blue:       #3b82f6;
  --blue-lt:    #eff6ff;
  --green:      #10b981;
  --green-lt:   #ecfdf5;
  --yellow:     #f59e0b;
  --yellow-lt:  #fffbeb;
  --red:        #ef4444;
  --red-lt:     #fef2f2;
  /* ── radii & layout ── */
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --max: 1180px;
  --pad-x: 32px;
  /* ── typography ── */
  --t-display: 'Söhne', 'Söhne Buch', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --t-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --mono: var(--t-mono);
  --sans: var(--t-display);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--t-display);
  background: var(--mist);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--marigold); color: var(--ink); }

/* ── brand mark ──────────────────────────────── */
.brand-mark {
  width: 20px; height: 20px;
  background: var(--ink);
  border-radius: 5px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 3px; bottom: 3px;
  width: 6px; height: 6px;
  background: var(--marigold);
  border-radius: 1.5px;
}

/* ── buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.12s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(108,92,231,0.25), 0 4px 12px rgba(108,92,231,0.2);
}
.btn-primary:hover { background: var(--primary-dk); box-shadow: 0 2px 6px rgba(108,92,231,0.35), 0 6px 18px rgba(108,92,231,0.25); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-lg { padding: 11px 20px; font-size: 14px; }

/* ── animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── nav ─────────────────────────────────────── */
body > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: rgba(250,250,249,0.92);
  backdrop-filter: blur(12px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  transition: color 0.12s, background 0.12s;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }

.nav-links .gh {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo-sticky {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.nav-logo-sticky.visible {
  opacity: 1;
  pointer-events: auto;
}
.nav-logo-sticky-name {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-slogan {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  opacity: 1;
  transition: opacity 0.5s ease;
  white-space: nowrap;
  overflow: hidden;
}
.nav-slogan.hidden { opacity: 0; pointer-events: none; }
.nav-slogan-inner { display: inline-block; transition: opacity 0.4s ease; }
.nav-slogan-inner.fade-out { opacity: 0; }
.nav-slogan-inner.fade-in  { opacity: 1; }

/* ── hero ────────────────────────────────────── */
.hero-wrap {
  background: linear-gradient(160deg, #f0ecff 0%, #faf9ff 40%, #fafaf9 70%);
  border-bottom: 1px solid var(--border);
}

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 7rem 2.5rem 5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-eyebrow-logo { display: flex; align-items: center; }
.hero-eyebrow-name {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}
h1 .accent { color: var(--primary); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--dim);
  margin-bottom: 2.75rem;
  max-width: 440px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── demo tabs ───────────────────────────────── */
.demo-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2.5rem 5rem;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  gap: 0.15rem;
}

.tab {
  font-family: var(--mono);
  font-size: 0.775rem;
  color: var(--muted);
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  user-select: none;
  transition: color 0.12s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 5px 5px 0 0;
}
.tab:hover { color: var(--dim); background: var(--surface2); }
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-lt);
}

.tab-panels {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.panel { display: none; }
.panel.active { display: block; }

/* ── terminal ────────────────────────────────── */
.window-bar {
  background: #1e1c2e;
  border-bottom: 1px solid #2d2a42;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.win-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #6b6880;
  margin: 0 auto;
}

.term-body {
  padding: 1.5rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.85;
  white-space: pre;
  min-height: 240px;
  background: #14121f;
  color: #c9c4e6;
}

.p  { color: #a78bfa; }
.c  { color: #c9c4e6; }
.fl { color: #f472b6; }
.cm { color: #4b4766; }
.ok { color: #34d399; }
.hi { color: #60a5fa; }
.ou { color: #6b6880; }
.st { color: #fbbf24; }

/* ── claude convo ────────────────────────────── */
.convo-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 240px;
}

.msg { display: flex; gap: 0.75rem; }

.msg-avi {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.avi-u { background: var(--blue-lt); color: var(--blue); }
.avi-a { background: var(--primary-lt); color: var(--primary); }

.msg-content { flex: 1; }
.msg-name {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.msg-text {
  font-size: 0.845rem;
  color: var(--text);
  line-height: 1.6;
}
.msg-tool {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tool-label {
  font-size: 0.62rem;
  background: var(--primary);
  color: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.25rem;
}

/* ── slack ───────────────────────────────────── */
.slack-layout {
  display: flex;
  min-height: 240px;
}

.slack-sidebar {
  width: 190px;
  background: #1e1c2e;
  border-right: 1px solid #2d2a42;
  padding: 1rem 0.75rem;
  flex-shrink: 0;
}
.slack-ws {
  font-weight: 700;
  font-size: 0.82rem;
  color: #e2e0f5;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}
.slack-section {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b4766;
  margin-bottom: 0.35rem;
  padding: 0 0.25rem;
}
.slack-ch {
  font-size: 0.79rem;
  color: #6b6880;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.05rem;
  cursor: default;
}
.slack-ch.on { background: rgba(108,92,231,0.2); color: #c9c4e6; }

.slack-main {
  flex: 1;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slack-msg { display: flex; gap: 0.6rem; }
.slack-avi {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  flex-shrink: 0;
}
.slack-avi svg { width: 16px; height: 16px; }
.slack-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.slack-meta strong { color: var(--text); }
.slack-app-badge {
  font-size: 0.58rem;
  background: var(--primary-lt);
  color: var(--primary);
  padding: 0 0.3rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 0.25rem;
}
.slack-text {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
}
.slack-cmd { color: var(--primary); font-family: var(--mono); }
.slack-response {
  background: var(--green-lt);
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  margin-top: 0.2rem;
  line-height: 1.6;
  color: var(--text);
}
.slack-id { color: var(--primary); font-family: var(--mono); }
.slack-ok { color: var(--green); font-weight: 600; }

/* ── features grid ───────────────────────────── */
.features-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.features-header { margin-bottom: 3rem; }
.features-header h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.features-header p {
  font-size: 0.95rem;
  color: var(--dim);
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 1.75rem;
  transition: background 0.1s;
}
.feature-card:hover { background: var(--surface2); }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.icon-purple { background: var(--primary-lt); }
.icon-blue   { background: var(--blue-lt); }
.icon-green  { background: var(--green-lt); }
.icon-yellow { background: var(--yellow-lt); }

.feature-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.feature-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── quote ───────────────────────────────────── */
.quote-section {
  background: linear-gradient(135deg, #6c5ce7 0%, #8b5cf6 50%, #a78bfa 100%);
}
.quote-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}
.quote-text {
  font-family: var(--mono);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  border-left: 2px solid rgba(255,255,255,0.35);
  padding-left: 1.5rem;
  max-width: 700px;
}
.quote-text em {
  color: #fff;
  font-style: normal;
  font-weight: 800;
}

/* ── get started ─────────────────────────────── */
.start-section { border-top: 1px solid var(--border); }
.start-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

.start-left h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.start-left p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 1rem;
  padding-bottom: 2rem;
  position: relative;
}
.step:last-child { padding-bottom: 0; }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--border2);
}
.step:last-child::before { display: none; }

.step-body { padding-top: 3px; }

.step-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.step-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.step-desc code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--primary-lt);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.code-block {
  background: #14121f;
  border-radius: 7px;
  padding: 0.85rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.75;
  color: #9891c4;
  white-space: pre;
  overflow-x: auto;
}
.code-block .p  { color: #a78bfa; }
.code-block .hi { color: #60a5fa; }
.code-block .cm { color: #4b4766; }
.code-block .ok { color: #34d399; }
.code-block .fl { color: #f472b6; }

/* ── api reference ───────────────────────────── */
.api-section {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.api-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.api-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.api-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.api-header a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
}
.api-header a:hover { color: var(--primary-dk); }

.api-base {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.65rem 1rem;
}
.api-base span { color: var(--dim); font-weight: 600; }

.endpoint {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.endpoint-header {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}
.endpoint-header:hover { background: var(--surface2); }

.method {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  text-align: center;
}
.method-post  { background: var(--green-lt);  color: #059669; }
.method-get   { background: var(--blue-lt);   color: #2563eb; }
.method-patch { background: var(--yellow-lt); color: #d97706; }
.method-del   { background: var(--red-lt);    color: #dc2626; }

.endpoint-path {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
}
.endpoint-path .param { color: var(--primary); }

.endpoint-desc {
  font-size: 0.78rem;
  color: var(--muted);
}

.endpoint-body {
  display: none;
  border-top: 1px solid var(--border);
}
.endpoint.open .endpoint-body { display: block; }

.endpoint-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.detail-left {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
}
.detail-right {
  padding: 1.25rem 1.5rem;
  background: #14121f;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.param-table th {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: left;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--border);
}
.param-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.param-table tr:last-child td { border-bottom: none; }

.param-name {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--primary);
  white-space: nowrap;
  padding-right: 1rem;
}
.param-type {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 1rem;
}
.param-req {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--red);
  padding-right: 1rem;
}
.param-opt { color: var(--muted); }
.param-desc { color: var(--dim); font-size: 0.775rem; line-height: 1.5; }
.param-desc code {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--primary);
  background: var(--primary-lt);
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
}

.detail-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b4766;
  margin-bottom: 0.75rem;
}

.json-block {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.75;
  color: #6b6880;
  white-space: pre;
}
.json-key   { color: #60a5fa; }
.json-str   { color: #34d399; }
.json-num   { color: #fbbf24; }
.json-bool  { color: #a78bfa; }
.json-null  { color: #f87171; }

/* ── footer ──────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--surface);
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.12s;
}
.footer-links a:hover { color: var(--primary); }

@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .hero, .demo-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  h1 { font-size: 1.85rem; }
  .features-inner, .start-inner, .api-inner, .quote-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .start-inner { grid-template-columns: 1fr; gap: 2rem; }
  .endpoint-detail { grid-template-columns: 1fr; }
  .detail-left { border-right: none; border-bottom: 1px solid var(--border); }
  .slack-sidebar { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ── docs layout ─────────────────────────────── */
.docs-layout {
  display: flex;
  min-height: 100vh;
}

.docs-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  background: var(--bg);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.docs-sidebar-home {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 1.75rem;
  color: var(--text);
}

.docs-sidebar-section {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 1.25rem 0 0.4rem;
}
.docs-sidebar-section:first-of-type { margin-top: 0; }

.docs-nav-link {
  display: block;
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  color: var(--dim);
  font-size: 13.5px;
  margin-bottom: 1px;
  transition: color 120ms ease, background 120ms ease;
}
.docs-nav-link:hover { color: var(--text); background: var(--surface2); }
.docs-nav-link[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-lt);
  font-weight: 500;
}

.docs-main {
  flex: 1;
  min-width: 0;
  padding: 3rem 3.5rem;
  max-width: 820px;
  background: var(--paper);
}

/* ── docs prose ──────────────────────────────── */
.docs-main h1 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: var(--text);
}
.docs-main h2 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.docs-main h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 1.5rem 0 0.4rem;
  color: var(--dim);
}
.docs-main p {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.docs-main a { color: var(--primary); }
.docs-main a:hover { text-decoration: underline; }
.docs-main ul, .docs-main ol {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.75;
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}
.docs-main hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.docs-main pre {
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--t-mono);
  font-size: 12.5px;
  line-height: 1.8;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 0.75rem 0 1.25rem;
}
.docs-main code {
  font-family: var(--t-mono);
  font-size: 0.85em;
  background: var(--surface2);
  color: var(--dim);
  padding: 1px 5px;
  border-radius: 4px;
}
.docs-main pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.docs-main table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75rem 0 1.25rem;
  font-size: 13.5px;
}
.docs-main th, .docs-main td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.docs-main th {
  background: var(--surface2);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}
