@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   CSS Custom Properties — noir-cat theme
   ============================================================ */
:root {
  --bg:            #1a1a1a;
  --bg-surface:    #212121;
  --bg-overlay:    #2a2a2a;
  --bg-selection:  #313244;
  --fg:            #d4d4d4;
  --fg-muted:      #8a8a9a;
  --fg-subtle:     #585b70;
  --border:        #2e2e3a;

  --blue:   #89b4fa;
  --purple: #cba6f7;
  --green:  #a6e3a1;
  --red:    #f38ba8;
  --yellow: #f9e2af;
  --cyan:   #89dceb;

  --accent: var(--blue);

  --nav-height:    60px;
  --container-max: 1100px;
  --radius:        8px;
  --radius-sm:     4px;
  --transition:    0.18s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

button { font-family: inherit; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
h4 { font-size: 1.05rem; }

p { color: var(--fg); margin-bottom: 1rem; }

p:last-child { margin-bottom: 0; }

strong { color: #fff; font-weight: 600; }

code, kbd, pre {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

code {
  background: var(--bg-overlay);
  color: var(--cyan);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
}

pre {
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  padding: 0;
  color: var(--fg);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 26px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__links li { list-style: none; }

.nav__links a {
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: block;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--fg);
  background: var(--bg-overlay);
  opacity: 1;
}

.nav__github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg);
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 0.5rem;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.nav__github:hover {
  border-color: var(--accent);
  background: var(--bg-selection);
  opacity: 1;
  color: var(--fg);
}

/* Hamburger toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-header {
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 { margin-bottom: 0.5rem; }

.page-header .lead {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(137, 180, 250, 0.055) 0%, transparent 68%);
  pointer-events: none;
}

.hero__content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.hero__logo {
  height: 180px;
  width: auto;
  margin: 0 auto 1.5rem;
}

.hero__name {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.75rem, 4vw, 3.4rem);
  font-weight: 500;
  color: #E0DEF4;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--fg-muted);
}

.hero__tagline {
  font-size: 1.2rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero__install {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.hero__install-prompt {
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  user-select: none;
  flex-shrink: 0;
}

.hero__install code {
  background: none;
  color: var(--fg);
  padding: 0;
  font-size: 0.8rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__install-copy {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.hero__install-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Terminal window
   ============================================================ */
.term-window {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.term-bar {
  background: #252525;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.term-dot--red    { background: #ff5f57; }
.term-dot--yellow { background: #ffbd2e; }
.term-dot--green  { background: #28c941; }

.term-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #606060;
  pointer-events: none;
  white-space: nowrap;
}

/* Hero terminal */
.hero__term {
  background: #0e0e0e;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero__term .term-body {
  padding: 2.5rem 2.5rem 2rem;
}

.hero__term .hero__install {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #0a0e17;
  border-color: var(--accent);
}

.btn-primary:hover {
  opacity: 0.85;
  color: #0a0e17;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-overlay);
  border-color: var(--fg-muted);
  opacity: 1;
  color: var(--fg);
}

/* ============================================================
   Section titles
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: 0.6rem;
}

.section-sub {
  text-align: center;
  color: var(--fg-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ============================================================
   Grids
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ============================================================
   Feature cards
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), background var(--transition);
}

.card:hover {
  border-color: var(--fg-subtle);
  background: #242424;
}

.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.card__icon--blue   { background: rgba(137, 180, 250, 0.1); }
.card__icon--purple { background: rgba(203, 166, 247, 0.1); }
.card__icon--green  { background: rgba(166, 227, 161, 0.1); }
.card__icon--yellow { background: rgba(249, 226, 175, 0.1); }
.card__icon--red    { background: rgba(243, 139, 168, 0.1); }
.card__icon--cyan   { background: rgba(137, 220, 235, 0.1); }

.card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Tool list (home stack section)
   ============================================================ */
.tool-list {
  max-width: 620px;
  margin: 0 auto;
}

.tool-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.tool-item:last-child { border-bottom: none; }

.tool-name {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 110px;
  flex-shrink: 0;
}

.tool-desc {
  color: var(--fg-muted);
  font-size: 0.875rem;
}

/* ============================================================
   CTA block
   ============================================================ */
.cta-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 2rem 0 5rem;
}

.cta-block h2 { margin-bottom: 0.65rem; }

.cta-block p {
  color: var(--fg-muted);
  margin-bottom: 1.75rem;
}

/* ============================================================
   Docs layout
   ============================================================ */
.docs-wrap {
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 5rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  max-height: calc(100vh - var(--nav-height) - 2rem);
  overflow-y: auto;
}

.sidebar-group { margin-bottom: 1.75rem; }

.sidebar-group:last-child { margin-bottom: 0; }

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  padding: 0 0.6rem;
  margin-bottom: 0.4rem;
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-nav a {
  display: block;
  color: var(--fg-muted);
  font-size: 0.85rem;
  padding: 0.38rem 0.6rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.sidebar-nav a:hover {
  color: var(--fg);
  background: var(--bg-overlay);
  opacity: 1;
}

.sidebar-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(137, 180, 250, 0.07);
  opacity: 1;
}

/* Docs content */
.docs-content section {
  scroll-margin-top: calc(var(--nav-height) + 1.75rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.docs-content section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.docs-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.docs-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.docs-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.docs-content p { margin-bottom: 1rem; }

.docs-content ul,
.docs-content ol {
  color: var(--fg);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.docs-content li { margin-bottom: 0.3rem; line-height: 1.55; }

.docs-content li p { margin: 0; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  background: var(--bg-overlay);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }

tr:hover td {
  background: rgba(255,255,255,0.02);
  color: var(--fg);
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.18em 0.55em;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue   { background: rgba(137, 180, 250, 0.14); color: var(--blue); }
.badge-green  { background: rgba(166, 227, 161, 0.14); color: var(--green); }
.badge-yellow { background: rgba(249, 226, 175, 0.14); color: var(--yellow); }
.badge-red    { background: rgba(243, 139, 168, 0.14); color: var(--red); }
.badge-purple { background: rgba(203, 166, 247, 0.14); color: var(--purple); }
.badge-cyan   { background: rgba(137, 220, 235, 0.14); color: var(--cyan); }

/* ============================================================
   Callout
   ============================================================ */
.callout {
  background: rgba(137, 180, 250, 0.05);
  border: 1px solid rgba(137, 180, 250, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.5rem;
}

.callout p { margin: 0; font-size: 0.9rem; color: var(--fg); }

.callout.warn {
  background: rgba(249, 226, 175, 0.05);
  border-color: rgba(249, 226, 175, 0.2);
  border-left-color: var(--yellow);
}

.callout.tip {
  background: rgba(166, 227, 161, 0.05);
  border-color: rgba(166, 227, 161, 0.2);
  border-left-color: var(--green);
}

/* ============================================================
   Changelog page
   ============================================================ */
.changelog-list { max-width: 780px; }

.cl-entry {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
}

.cl-entry:last-child { border-bottom: none; }

.cl-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cl-version {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.cl-date {
  color: var(--fg-subtle);
  font-size: 0.875rem;
}

.cl-section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  margin: 1.1rem 0 0.4rem;
}

.cl-items {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cl-items li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cl-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg-subtle);
}

.cl-loading,
.cl-error {
  padding: 3rem;
  text-align: center;
  color: var(--fg-muted);
}

.cl-error {
  color: var(--red);
  background: rgba(243, 139, 168, 0.05);
  border: 1px solid rgba(243, 139, 168, 0.2);
  border-radius: var(--radius);
}

/* ============================================================
   About page
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.about-main p {
  color: var(--fg-muted);
  font-size: 1.025rem;
  line-height: 1.8;
  max-width: 600px;
}

.about-main h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.about-aside {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.aside-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.aside-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  margin-bottom: 1rem;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aside-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.875rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.aside-links a:last-child { border-bottom: none; }

.aside-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin: 0.2rem;
}

.chips { margin-top: 0.5rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__brand img { height: 18px; }

.footer__copy {
  color: var(--fg-subtle);
  font-size: 0.825rem;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  color: var(--fg-subtle);
  font-size: 0.825rem;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--fg);
  opacity: 1;
}

/* ============================================================
   Divider
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================================
   Responsive — Tablet (< 900px)
   ============================================================ */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 190px 1fr;
    gap: 2.5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-aside {
    position: static;
  }
}

/* ============================================================
   Responsive — Mobile (< 720px)
   ============================================================ */
@media (max-width: 720px) {
  /* Nav */
  .nav__toggle {
    display: flex;
    order: 2;
  }

  .nav__menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    z-index: 199;
  }

  .nav__menu.open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav__links a {
    padding: 0.7rem 0.75rem;
    font-size: 0.925rem;
  }

  .nav__github {
    margin-left: 0;
    justify-content: center;
    margin-top: 0.4rem;
    padding: 0.65rem;
    font-size: 0.875rem;
  }

  /* Docs */
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
  }

  /* Grids */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero__term { max-width: 100%; }

  .hero__term .term-body { padding: 1.75rem 1.25rem 1.5rem; }

  .hero__install {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem;
  }

  .hero__install code {
    white-space: normal;
    word-break: break-all;
    font-size: 0.775rem;
  }

  /* CTA */
  .cta-block { padding: 2rem 1.25rem; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }

  .section { padding: 3.5rem 0; }
}

@media (max-width: 720px) {
  .hero__logo { height: 80px; }
}

@media (max-width: 480px) {
  .hero__logo { height: 62px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; justify-content: center; max-width: 260px; }
  h1 { font-size: 1.65rem; }
}
