:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #5b6472;
  --line: #dde3ee;
  --accent: #1d4ed8;
  --accent-2: #0f766e;
  --soft: #eef6ff;
  --code: #0f172a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
.home-shell { max-width: 1120px; margin: 0 auto; padding: 56px 28px 80px; }
.hero { border-bottom: 1px solid var(--line); padding-bottom: 42px; margin-bottom: 36px; }
.hero-docs { margin-bottom: 28px; }
.hero-logo { width: min(420px, 100%); height: auto; display: block; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.subtle { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
h1 { font-size: clamp(38px, 6vw, 72px); line-height: .95; margin: 0 0 20px; letter-spacing: 0; }
h2 { margin-top: 36px; font-size: 28px; }
h3 { margin-top: 24px; font-size: 19px; }
p, li { color: var(--muted); line-height: 1.65; font-size: 16px; }
.lead { font-size: 20px; max-width: 760px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.actions a { display: inline-flex; padding: 11px 15px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--paper); font-weight: 700; }
.section-heading { max-width: 760px; margin-bottom: 18px; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin: 0 0 8px; }
.quickstart-band, .spec-band, .surface-note { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 28px; align-items: center; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin: 28px 0; }
.quickstart-band h2, .spec-band h2, .surface-note h2, .section-heading h2 { margin: 0 0 12px; }
.terminal-card, .code-panel { background: var(--code); color: #e5e7eb; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.terminal-title, .panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #111827; border-bottom: 1px solid rgba(255,255,255,.08); color: #cbd5e1; font-size: 13px; }
.terminal-title span { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 16px 0 0 #f59e0b, 32px 0 0 #ef4444; margin-right: 32px; }
.terminal-card pre, .code-panel pre { margin: 0; border-radius: 0; box-shadow: none; }
.terminal-card.compact { box-shadow: none; }
.learning-path, .example-lab, .learn-grid-section { margin: 42px 0; }
.step-grid, .learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step-card, .learn-grid div, .spec-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px; text-decoration: none; }
.step-card span, .spec-card span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 850; }
.step-card h3 { margin: 0 0 8px; color: var(--ink); }
.step-card p, .learn-grid p, .spec-card small { margin: 0; }
.lab-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 18px; align-items: stretch; }
.run-panel { display: grid; align-content: start; gap: 14px; }
.output .terminal-title span { background: var(--accent-2); box-shadow: 16px 0 0 #94a3b8, 32px 0 0 #64748b; }
.text-link { font-weight: 800; text-decoration: none; }
.spec-band { background: linear-gradient(135deg, #ffffff 0%, #f3fbf9 100%); }
.spec-card strong { display: block; color: var(--ink); margin-bottom: 8px; font-size: 20px; }
.surface-note { grid-template-columns: 260px minmax(0, 1fr); background: #111827; border-color: #111827; }
.surface-note h2 { color: #fff; }
.surface-note p { color: #d1d5db; }
.portal { max-width: 860px; }
.portal h1 { display: none; }
.portal h2 { padding-top: 28px; margin-top: 34px; border-top: 1px solid var(--line); }
.portal h3 { margin-bottom: 0; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.chapter-card { display: block; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.chapter-card span { display: block; color: var(--ink); font-weight: 750; margin-bottom: 8px; }
.chapter-card small { color: var(--muted); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 292px; overflow: auto; padding: 24px 18px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 26px; font-weight: 850; text-decoration: none; margin-bottom: 22px; }
.brand img { width: 42px; height: auto; border-radius: 6px; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a { color: #374151; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 14px; }
.sidebar nav a:hover { background: #eef2ff; color: var(--accent); }
.nav-label { margin: 22px 10px 8px; color: #667085; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.content { max-width: 820px; margin-left: 292px; padding: 48px 56px 90px; background: var(--paper); min-height: 100vh; }
.content h1 { font-size: 46px; line-height: 1.05; }
.doc-example-step { margin: 20px 0; }
.doc-example-label { display: inline-flex; margin-bottom: 8px; padding: 4px 8px; border-radius: 4px; background: var(--soft); color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
pre { background: var(--code); color: #e5e7eb; border-radius: 8px; padding: 16px; overflow: auto; line-height: 1.55; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
p code, li code { background: #eef2ff; color: #27347a; padding: 2px 5px; border-radius: 4px; }
@media (max-width: 860px) { .sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--line); } .content { margin-left: 0; padding: 32px 22px 70px; } .home-shell { padding: 36px 20px 70px; } .quickstart-band, .spec-band, .surface-note, .lab-grid, .step-grid, .learn-grid { grid-template-columns: 1fr; } }
