/* Docs Playbook - marketing site
   Handcrafted. No framework. No build step.
   Brand palette echoes Glassdocs, layout is distinct. */

:root {
  --bg: #0b0d13;
  --bg-raised: #12151e;
  --surface: #181b24;
  --border: #23273a;
  --text: #e7e9f1;
  --text-muted: #8b90a0;
  --text-dim: #5c6274;
  --accent: #06f4b1;
  --accent-dim: #0ab882;
  --accent-ghost: rgba(6, 244, 177, 0.08);
  --max: 1120px;
  --radius: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }
::selection { background: var(--accent); color: #000; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ─── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 19, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600; font-size: 15px;
}
.nav-brand { font-size: 17px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: #000; background: var(--accent);
  padding: 8px 14px; border-radius: 6px;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--accent-dim); color: #000; }

/* ─── Hero ────────────────────────────────────────── */
.hero {
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 244, 177, 0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(6, 244, 177, 0.04), transparent 50%);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin-bottom: 22px;
  padding: 6px 12px;
  background: var(--accent-ghost);
  border: 1px solid rgba(6, 244, 177, 0.2);
  border-radius: 100px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 900px;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  transition: transform 0.1s ease, background 0.15s ease;
  cursor: pointer; border: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dim); color: #000; }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

/* ─── Section base ────────────────────────────────── */
section { padding: 100px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
.section-eyebrow {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 18px;
  max-width: 720px;
  line-height: 1.15;
}
.section-lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 56px;
}

/* ─── Problem / positioning ───────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.problem-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.problem-card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 10px;
  color: var(--text);
}
.problem-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.problem-card .stat {
  display: block; color: var(--accent);
  font-family: var(--font-mono); font-size: 13px; margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* ─── Pillars ─────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar { padding: 8px 0; }
.pillar-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--accent-ghost);
  border: 1px solid rgba(6, 244, 177, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  font-family: var(--font-mono); font-weight: 700;
}
.pillar h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.pillar p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ─── Code / how it works ─────────────────────────── */
.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.how-steps { list-style: none; display: flex; flex-direction: column; gap: 28px; }
.how-step { display: flex; gap: 18px; }
.how-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-ghost);
  border: 1px solid rgba(6, 244, 177, 0.25);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
}
.how-step h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.how-step p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.code-frame {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.code-frame-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.code-frame-bar .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border);
}
.code-frame-bar .path {
  margin-left: 6px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
}
.code-frame pre {
  margin: 0;
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
}
.code-frame .tk-tag { color: #f87171; }
.code-frame .tk-attr { color: #fbbf24; }
.code-frame .tk-str { color: var(--accent); }
.code-frame .tk-cmt { color: var(--text-dim); font-style: italic; }

/* ─── CTA block ───────────────────────────────────── */
.cta-block {
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(6, 244, 177, 0.08), transparent 60%),
    var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 80px auto;
}
.cta-block h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.cta-block p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.cta-block .hero-ctas { justify-content: center; }

/* ─── Footer ──────────────────────────────────────── */
footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo { height: 18px; display: block; margin-bottom: 14px; }
.footer-wordmark {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.footer-brand p { max-width: 300px; font-size: 14px; color: var(--text-muted); }
.footer-col h5 {
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text); margin-bottom: 14px; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-muted); }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 820px) {
  .problem-grid, .pillars, .how { grid-template-columns: 1fr; gap: 20px; }
  .how { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 72px 0; }
  .hero { padding: 80px 0 64px; }
}
