@import '@fontsource-variable/geist';
@import '@fontsource-variable/geist-mono';

/* ── crawlie design tokens (Geist, launch palette) ───────────────────── */
:root {
  --bg: #080a0f;
  --bg-soft: #0b0e14;
  --panel: #101319;
  --panel-2: #161a22;
  --text: #f5f7fb;
  --muted: #9aa3b2;
  --muted-2: #6b7382;
  --border: #273040;
  --border-soft: #1b212c;

  --blue: #3b9eff;
  --blue-ink: #0a1726;
  --green: #3ddc91;
  --amber: #f5b544;
  --red: #ff6166;

  --font-sans: 'Geist Variable', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-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;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.4em;
}

code, pre, kbd {
  font-family: var(--font-mono);
  font-feature-settings: 'ss01';
}

:not(pre) > code {
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.12em 0.4em;
  font-size: 0.875em;
  color: #cdd5e1;
}

pre {
  background: var(--bg-soft) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}

hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 2.5rem 0;
}

::selection {
  background: rgba(59, 158, 255, 0.28);
}

/* ── layout helpers ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 145, 0.18);
}

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 540;
  font-size: 14.5px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { background: #2f8cf0; }
.btn-ghost {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: #3a4658; background: var(--panel-2); }

/* ── copyable command box ────────────────────────────────────────────── */
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px 11px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.cmd .prompt { color: var(--green); user-select: none; }
.cmd code { background: none; border: 0; padding: 0; color: var(--text); }
.cmd button {
  margin-left: auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
}
.cmd button:hover { color: var(--text); border-color: #3a4658; }

/* ── sections ────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
