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

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

/* ── Variables — kldload palette: dark with blue/cyan/orange accents ── */
:root {
  --bg:      #0c0e14;
  --bg2:     #10131a;
  --bg3:     #161a24;
  --bg4:     #1a1f2b;
  --border:  #1e2536;
  --border2: #283040;
  --accent:  #326ce5;  /* kubernetes blue */
  --accent2: #5b9aff;  /* lighter blue for links/hover */
  --text:    #d0d8e8;
  --bright:  #f0f4fa;
  --muted:   #5a6a85;
  --subtle:  #94a3b8;
  --green:   #34d399;
  --red:     #ef6461;
  --yellow:  #fbbf24;
  --orange:  #22d3ee;
  --cyan:    #22d3ee;
  --mono:    'JetBrains Mono', 'Cascadia Code', 'Fira Code', ui-monospace, monospace;
  --sans:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  z-index: 100;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.logo { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--text); text-decoration: none; line-height: 1; }
.logo span { color: var(--cyan); }
.logo:hover { text-decoration: none; opacity: 0.88; }

.top-nav { display: flex; gap: 1.5rem; align-items: center; }
.top-nav a { color: var(--muted); font-size: 0.88rem; text-decoration: none; transition: color 0.15s; }
.top-nav a:hover { color: var(--text); text-decoration: none; }

.btn-setup {
  background: var(--accent);
  color: #000 !important;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--mono);
  transition: background 0.15s;
}
.btn-setup:hover { background: var(--accent2) !important; text-decoration: none !important; }

/* ── Layout ── */
.layout { display: flex; margin-top: 52px; min-height: calc(100vh - 52px); }

/* ── Sidebar ── */
.sidebar {
  width: 220px; min-width: 220px;
  position: fixed;
  top: 52px; left: 0;
  height: calc(100vh - 52px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg2);
  padding: 1.5rem 0;
}

.sidebar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-transform: uppercase;
  padding: 1rem 1.2rem 0.4rem;
  font-family: var(--mono);
  user-select: none;
  transition: color 0.15s;
}
.sidebar-label:hover { color: var(--yellow); }
.sidebar-label::after {
  content: '\25B8';
  font-size: 0.7rem;
  transition: transform 0.2s;
  color: var(--muted);
}
.sidebar-label.open { color: var(--yellow); }
.sidebar-label.open::after { transform: rotate(90deg); color: var(--yellow); }
.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
  text-transform: uppercase;
  padding: 0.5rem 1.2rem 0.25rem 1.6rem;
  font-family: var(--mono);
  user-select: none;
  transition: color 0.15s;
}
.sidebar-sub:hover { color: var(--yellow); }
.sidebar-sub::after {
  content: '\25B8';
  font-size: 0.6rem;
  transition: transform 0.2s;
  color: var(--muted);
}
.sidebar-sub.open { color: var(--yellow); }
.sidebar-sub.open::after { transform: rotate(90deg); color: var(--yellow); }
.sidebar-subnav { display: none; flex-direction: column; }
.sidebar-subnav.open { display: flex; }

/* Copy button on code blocks */
pre { position: relative; }
pre .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  z-index: 1;
}
pre .copy-btn:hover { background: rgba(255,255,255,0.12); color: var(--text); border-color: var(--accent); }
pre .copy-btn.copied { background: rgba(52,211,153,0.15); color: var(--green); border-color: var(--green); }

.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-nav a {
  display: block;
  padding: 0.4rem 1.2rem;
  font-size: 0.84rem;
  color: #8b9abf;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.sidebar-nav a:hover { color: #6ee7b7; background: rgba(52,211,153,0.07); text-decoration: none; }
.sidebar-nav a.active { color: #34d399; border-left-color: #34d399; background: rgba(52,211,153,0.11); font-weight: 600; }

/* ── Content ── */
.content { margin-left: 220px; flex: 1; padding: 3rem 3rem; min-height: 100vh; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem; font-family: var(--mono); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* ── Headings ── */
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.75rem; color: var(--bright); }
h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 2.5rem; margin-bottom: 0.75rem; color: var(--bright); padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--text); }
h4 { font-size: 0.95rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.4rem; color: var(--subtle); }

.page-subtitle { font-size: 1.05rem; color: var(--subtle); margin-bottom: 2rem; line-height: 1.7; }

p { color: var(--subtle); margin-bottom: 1rem; line-height: 1.7; }
ul, ol { color: var(--subtle); padding-left: 1.4rem; margin-bottom: 1rem; line-height: 1.7; }
li { margin-bottom: 0.25rem; }
li strong { color: var(--text); }

/* ── Code ── */
pre, code { font-family: var(--mono); font-size: 0.82rem; }
code { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 0.1rem 0.4rem; color: var(--cyan); }
pre { background: var(--bg2); border: 1px solid var(--border); border-radius: 5px; padding: 1.2rem 1.4rem; line-height: 1.8; overflow-x: auto; color: var(--subtle); margin-bottom: 1.25rem; }
pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

.c { color: var(--muted); }
.k { color: var(--accent2); }
.s { color: var(--green); }
.ok { color: var(--green); }
.hi { color: #c792ea; }

/* ── Callout boxes ── */
.callout { border-radius: 5px; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.9rem; line-height: 1.6; border-left: 3px solid; }
.callout strong { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.callout a { text-decoration: underline; }
.callout.info { background: rgba(0,184,217,0.06); border-left-color: var(--accent); color: var(--subtle); }
.callout.info strong { color: var(--accent); }
.callout.warning, .callout.warn { background: rgba(249,168,37,0.07); border-left-color: var(--yellow); color: var(--subtle); }
.callout.warning strong, .callout.warn strong { color: var(--yellow); }
.callout.pro { background: rgba(199,146,234,0.07); border-left-color: #c792ea; color: var(--subtle); }
.callout.pro strong { color: #c792ea; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; margin-bottom: 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 1.25rem; }
thead th { padding: 0.7rem 1rem; text-align: left; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; border-bottom: 1px solid var(--border); background: var(--bg2); font-family: var(--mono); }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.015); }
tbody td { padding: 0.65rem 1rem; color: var(--subtle); vertical-align: top; }
tbody td:first-child { color: var(--text); font-weight: 500; }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--muted); }
.partial { color: var(--yellow); }
.col-kldload { color: var(--accent) !important; font-weight: 600 !important; }

/* ── Badge ── */
.badge { display: inline-block; background: rgba(0,184,217,0.1); color: var(--accent); border: 1px solid rgba(0,184,217,0.25); border-radius: 3px; font-size: 0.72rem; font-family: var(--mono); padding: 0.15rem 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Section label ── */
.section-label { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }

/* ── Hero ── */
.hero-wrap { background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,184,217,0.1) 0%, transparent 70%); border: 1px solid var(--border); border-radius: 8px; padding: 3rem 2rem 2.5rem; margin-bottom: 3rem; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(0,184,217,0.08); border: 1px solid rgba(0,184,217,0.25); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.8rem; color: var(--accent); font-family: var(--mono); margin-bottom: 1.5rem; }
.hero-badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-wrap h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; color: var(--bright); }
.hero-wrap h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1rem; color: var(--subtle); max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.4rem; border-radius: 5px; font-size: 0.9rem; font-weight: 700; transition: all 0.15s; text-decoration: none; font-family: var(--mono); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent2); text-decoration: none; color: #000; }
.btn-ghost { background: transparent; color: var(--subtle); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.btn-secondary { background: #1e3a5f; color: #60a5fa; border: 1px solid rgba(96,165,250,0.4); }
.btn-secondary:hover { background: #1a4a7a; border-color: #60a5fa; }

/* ── Terminal widget ── */
.hero-term { max-width: 600px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-align: left; }
.term-bar { background: var(--bg3); padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }
.term-title { flex: 1; text-align: center; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.term-body { padding: 1rem 1.25rem; font-family: var(--mono); font-size: 0.78rem; line-height: 1.8; }
.term-body .prompt { color: var(--accent); }
.term-body .cmd { color: var(--bright); }
.term-body .out { color: var(--muted); }

/* ── Hero steps ── */
.hero-steps { display: flex; align-items: stretch; justify-content: center; gap: 0; max-width: 680px; margin: 0 auto 0.5rem; flex-wrap: wrap; }
.hero-step { flex: 1; min-width: 160px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem 1rem; text-align: center; transition: border-color 0.15s; }
.hero-step:hover { border-color: var(--accent); }
.hs-num { width: 2.4rem; height: 2.4rem; border: 2px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 1rem; color: var(--accent); font-weight: 700; margin: 0 auto 0.6rem; }
.hs-dunn .hs-num { background: var(--accent); color: #000; border-color: var(--accent); font-size: 1.2rem; }
.hs-label { font-size: 0.95rem; font-weight: 700; color: var(--bright); margin-bottom: 0.4rem; font-family: var(--mono); }
.hs-desc { font-size: 0.8rem; color: var(--subtle); line-height: 1.5; }
.hs-link { color: var(--accent); text-decoration: none; }
.hs-link:hover { text-decoration: underline; }
.hs-arrow { display: flex; align-items: center; padding: 0 0.5rem; color: var(--accent); font-size: 1.4rem; opacity: 0.5; flex-shrink: 0; }
@media (max-width: 520px) { .hs-arrow { display: none; } .hero-step { min-width: 100%; } }
.hs-code { background: var(--bg3); border: 1px solid var(--border); border-radius: 3px; padding: 0.1rem 0.35rem; font-family: var(--mono); font-size: 0.75rem; color: var(--accent); display: inline-block; margin-bottom: 0.35rem; }
.hero-screenshot { display: block; margin: 1.5rem auto 0; max-width: 820px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color 0.15s; }
.hero-screenshot:hover { border-color: var(--accent); }
.hero-screenshot img { display: block; width: 100%; height: auto; }

/* ── Feature grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 2rem; }
.feature-card { background: var(--bg2); padding: 1.4rem; transition: background 0.15s; }
.feature-card:hover { background: var(--bg3); }
.feature-icon { font-size: 1.3rem; margin-bottom: 0.6rem; }
.feature-card h3 { font-size: 0.95rem; margin-top: 0; margin-bottom: 0.4rem; border: none; padding: 0; color: var(--text); }
.feature-card p { font-size: 0.85rem; margin-bottom: 0; }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 0; position: relative; margin-bottom: 1.5rem; }
.steps::before { content: ''; position: absolute; left: 1.3rem; top: 2rem; bottom: 2rem; width: 1px; background: linear-gradient(to bottom, var(--accent), transparent); }
.step { display: flex; gap: 1.25rem; padding: 1.25rem 0; }
.step-num { flex-shrink: 0; width: 2.6rem; height: 2.6rem; background: var(--bg2); border: 1px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.8rem; color: var(--accent); font-weight: 700; z-index: 1; }
.step-content h3 { font-size: 0.95rem; margin-top: 0.3rem; border: none; padding: 0; }
.step-content p { font-size: 0.85rem; margin-bottom: 0; }

/* ── Author note ── */
.author-note { max-width: 100%; }
.author-quote { margin: 0; padding: 0; border: none; }
.author-quote p { font-size: 0.95rem; color: var(--subtle); line-height: 1.8; margin-bottom: 1rem; }
.author-quote p:last-of-type { margin-bottom: 0.75rem; }
.author-quote em { color: var(--text); font-style: italic; }
.author-quote code { background: var(--bg2); border: 1px solid var(--border); border-radius: 3px; padding: 0.1rem 0.35rem; font-size: 0.85em; color: var(--accent); }
.author-sig { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin-top: 1.25rem; }

/* ── Download cards ── */
.download-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.download-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; transition: border-color 0.15s, box-shadow 0.15s; }
.download-card:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(0,184,217,0.1); }
.download-card .tag { display: inline-block; background: rgba(0,184,217,0.1); color: var(--accent); border: 1px solid rgba(0,184,217,0.25); border-radius: 3px; font-size: 0.7rem; font-family: var(--mono); padding: 0.1rem 0.4rem; font-weight: 700; }
.download-card h3 { font-size: 1rem; margin: 0; border: none; padding: 0; color: var(--bright); }
.download-card p { font-size: 0.83rem; flex: 1; margin-bottom: 0; }
.coming-soon { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 0.75rem; }

/* ── Wiki cards ── */
.wiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.wiki-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 5px; padding: 1rem 1.2rem; transition: border-color 0.15s; display: block; }
.wiki-card:hover { border-color: var(--accent); text-decoration: none; background: rgba(0,184,217,0.03); }
.wiki-card h4 { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.wiki-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 0; }

/* ── Replaces grid (comparison page) ── */
.replaces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin: 1.75rem 0; }
.replaces-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem 1.5rem; }
.replaces-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--accent); margin-bottom: 0.6rem; }
.replaces-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: 0.75rem; }
.replaces-note { font-size: 0.78rem; color: var(--text); opacity: 0.55; border-left: 2px solid var(--accent); padding-left: 0.6rem; }
.replaces-footer { margin-top: 2rem; padding: 1.25rem 1.5rem; background: rgba(0,184,217,0.05); border: 1px solid rgba(0,184,217,0.2); border-radius: 8px; }
.replaces-footer p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin: 0; }
.replaces-footer strong { color: var(--text); }

/* ── Template cards ── */
.tmpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.tmpl-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; transition: border-color 0.15s, box-shadow 0.15s; }
.tmpl-card:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(0,184,217,0.07); }
.tmpl-glyph { font-size: 1.8rem; margin-bottom: 0.75rem; }
.tmpl-card h3 { font-size: 1rem; font-weight: 700; color: var(--bright); border: none; padding: 0; margin: 0 0 0.35rem; letter-spacing: 0.03em; }
.tmpl-card .tmpl-sub { font-size: 0.82rem; color: var(--accent); font-family: var(--mono); margin-bottom: 0.6rem; }
.tmpl-card p { font-size: 0.85rem; color: var(--subtle); margin-bottom: 0.75rem; }
.tmpl-pkgs { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 0.6rem; line-height: 1.6; }

/* ── Pipeline steps ── */
.pipeline { display: flex; flex-direction: column; gap: 0; }
.pipeline-step { display: flex; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.pipeline-step:last-child { border-bottom: none; }
.pipeline-num { flex-shrink: 0; width: 2.4rem; height: 2.4rem; background: rgba(0,184,217,0.08); border: 1px solid rgba(0,184,217,0.3); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.78rem; color: var(--accent); font-weight: 700; }
.pipeline-body h4 { font-size: 0.92rem; color: var(--text); margin: 0.2rem 0 0.3rem; }
.pipeline-body p { font-size: 0.83rem; color: var(--subtle); margin: 0; }
.pipeline-body code { font-size: 0.78rem; }

/* ── How-it-works grid ── */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

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

/* ── Screenshot gallery ── */
.ss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.ss-card { display: block; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.ss-card:hover { border-color: var(--accent); box-shadow: 0 0 24px rgba(0,184,217,0.12); transform: translateY(-2px); text-decoration: none; }
.ss-card img { width: 100%; height: 160px; object-fit: cover; display: block; border-bottom: 1px solid var(--border); }
.ss-label { padding: 0.5rem 0.75rem; font-size: 0.78rem; color: var(--muted); font-family: var(--mono); }
.ss-card:hover .ss-label { color: var(--subtle); }
@media (max-width: 900px) { .ss-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ss-grid { grid-template-columns: 1fr; } }

/* ── Download steps ── */
.dl-steps { display: flex; flex-direction: column; gap: 0; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.dl-step { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); background: var(--bg2); transition: background 0.15s; }
.dl-step:last-child { border-bottom: none; }
.dl-step:hover { background: var(--bg3); }
.dl-num { flex-shrink: 0; width: 2rem; height: 2rem; background: rgba(0,184,217,0.08); border: 1px solid rgba(0,184,217,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.78rem; color: var(--accent); font-weight: 700; }
.dl-body { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.dl-body strong { font-size: 0.92rem; color: var(--bright); font-weight: 600; }
.dl-body span { font-size: 0.82rem; color: var(--muted); }
.dl-body code { font-size: 0.78rem; }
.dl-action { flex-shrink: 0; }
.dl-features { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }

/* ── Power section cards ── */
.power-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.power-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; transition: border-color 0.15s, box-shadow 0.15s; }
.power-card:hover { border-color: var(--border2); box-shadow: 0 0 20px rgba(0,184,217,0.05); }
.power-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.power-icon { font-size: 1.1rem; flex-shrink: 0; }
.power-head h3 { font-size: 0.98rem; font-weight: 700; color: var(--bright); margin: 0; border: none; padding: 0; }
.power-tag { font-family: var(--mono); font-size: 0.68rem; color: var(--accent); background: rgba(0,184,217,0.08); border: 1px solid rgba(0,184,217,0.18); border-radius: 3px; padding: 0.1rem 0.45rem; letter-spacing: 0.04em; white-space: nowrap; }
.power-card p { font-size: 0.87rem; color: var(--subtle); line-height: 1.7; margin-bottom: 0.6rem; }
.power-example { background: var(--bg3); border: 1px solid var(--border); border-radius: 5px; padding: 0.7rem 0.9rem; margin-top: 0.75rem; }
.power-example-label { display: block; font-family: var(--mono); font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.power-example code { font-size: 0.76rem; background: none; border: none; padding: 0; color: var(--accent2); display: block; white-space: pre-wrap; word-break: break-all; }

/* ── ZFS layout table ── */
.zfs-layout { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 1.5rem 0; }
.zl-row { display: grid; grid-template-columns: 220px 90px 1fr; gap: 0; border-bottom: 1px solid var(--border); }
.zl-row:last-child { border-bottom: none; }
.zl-row > div { padding: 0.85rem 1rem; font-size: 0.86rem; }
.zl-header { background: var(--bg3); }
.zl-header > div { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: var(--mono); }
.zl-name { background: var(--bg2); border-right: 1px solid var(--border); font-family: var(--mono); }
.zl-name code { background: none; border: none; padding: 0; font-size: 0.82rem; color: var(--accent); }
.zl-mount { background: var(--bg2); border-right: 1px solid var(--border); color: var(--subtle); font-family: var(--mono); }
.zl-mount code { background: none; border: none; padding: 0; color: var(--text); }
.zl-why { color: var(--subtle); line-height: 1.55; }
.zl-why strong { color: var(--text); }
@media (max-width: 700px) { .zl-row { grid-template-columns: 1fr; } .zl-name, .zl-mount { border-right: none; border-bottom: 1px solid var(--border); } .zl-header .zl-mount, .zl-header .zl-why { display: none; } }

/* ── Boot environment example ── */
.zl-be-example { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 1rem; }
.zl-be-row { display: flex; align-items: baseline; gap: 1rem; padding: 0.75rem 1.2rem; border-bottom: 1px solid var(--border); background: var(--bg2); transition: background 0.1s; }
.zl-be-row:last-child { border-bottom: none; }
.zl-be-row:hover { background: var(--bg3); }
.zl-be-cmd { font-family: var(--mono); font-size: 0.84rem; color: var(--accent2); flex-shrink: 0; }
.zl-be-desc { font-size: 0.83rem; color: var(--muted); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #303848; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); margin-left: 220px; padding: 2rem 4rem; text-align: center; }
.footer-logo { font-family: var(--mono); font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin: 0.75rem 0; }
.footer-links a { font-size: 0.8rem; color: var(--muted); }
.footer-links a:hover { color: var(--subtle); }
.site-footer p { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  #mobile-menu-btn { display: block !important; }
  .tagline-sep, .tagline-text { display: none !important; }
  .sidebar {
    display: none;
    position: fixed;
    top: 52px; left: 0;
    width: 260px;
    height: calc(100vh - 52px);
    z-index: 99;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
  }
  .sidebar.mobile-open { display: block !important; }
  .content { margin-left: 0 !important; padding: 1.5rem !important; }
  .site-footer { margin-left: 0; padding: 2rem 1.5rem; }
  .how-grid { grid-template-columns: 1fr !important; }
  .steps::before { display: none; }

  /* Force all inline grids to single column on mobile */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Fix hero text */
  .hero-wrap h1 { font-size: 1.5rem !important; }
  .hero-sub { font-size: 0.88rem !important; }

  /* Fix download cards */
  .download-cards { flex-direction: column !important; }
  .download-card { min-width: 100% !important; }

  /* Fix concept grids */
  .concept-grid { grid-template-columns: 1fr !important; }

  /* Fix teach cards overflow */
  .teach-card { overflow-x: auto; }

  /* Fix tables */
  table { font-size: 0.75rem !important; display: block; overflow-x: auto; }

  /* Fix pre/code overflow */
  pre { font-size: 0.72rem !important; overflow-x: auto; max-width: calc(100vw - 3rem); }

  /* Fix manifesto */
  .manifesto { padding: 1rem !important; }

  /* Fix hero screenshots */
  .hero-wrap img { max-width: 100% !important; }
}
@media (max-width: 500px) {
  .topbar { padding: 0 0.75rem; }
  .top-nav { gap: 0.5rem; }
  .logo { font-size: 1rem !important; }
  .hero-wrap h1 { font-size: 1.2rem !important; }
  .content { padding: 1rem !important; }
  pre { font-size: 0.65rem !important; }
}

/* ── How-it-works two-mode layout ── */
.how-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.how-mode { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.how-mode-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; font-family: var(--mono); margin-bottom: 0.5rem; }
.how-mode h3 { margin: 0 0 1rem; font-size: 1.1rem; }
@media (max-width: 700px) { .how-modes { grid-template-columns: 1fr; } }

/* Compatibility table */
.compat-table { margin-top: 2.5rem; }
.compat-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; font-family: var(--mono); margin-bottom: 1rem; }
.compat-grid { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.compat-row { display: grid; grid-template-columns: 1.6fr 1.4fr 1fr 1fr 1fr; gap: 0; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; align-items: center; }
.compat-row:last-child { border-bottom: none; }
.compat-header { background: var(--bg2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }
.compat-yes { color: #34d399; font-weight: 700; }
.compat-no { color: var(--muted); }
@media (max-width: 700px) { .compat-row { grid-template-columns: 1fr 1fr; } .compat-row > div:nth-child(n+3) { display: none; } .compat-header > div:nth-child(n+3) { display: none; } }

/* ── Screenshot grid ── */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.shot-card {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.shot-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.shot-card img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; background: var(--bg3); }
.shot-label { padding: 0.55rem 0.8rem; font-size: 0.78rem; color: var(--subtle); line-height: 1.4; font-family: var(--mono); }
.shot-wide { grid-column: span 2; }
@media (max-width: 900px) { .screenshot-grid { grid-template-columns: 1fr 1fr; } .shot-wide { grid-column: span 2; } }
@media (max-width: 600px) { .screenshot-grid { grid-template-columns: 1fr; } .shot-wide { grid-column: span 1; } }

/* ── Distro cards (kldload-specific) ── */
.distro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.distro-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; text-align: center; transition: border-color 0.15s, box-shadow 0.15s; }
.distro-card:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(0,184,217,0.1); }
.distro-card .distro-name { font-size: 1.1rem; font-weight: 700; color: var(--bright); margin-bottom: 0.3rem; }
.distro-card .distro-status { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.distro-card .distro-desc { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.5; }

/* ── Gap analysis cards ── */
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
.gap-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; text-align: center; }
.gap-card h4 { font-size: 0.92rem; margin-bottom: 0.5rem; }
.gap-card p { font-size: 0.83rem; margin-bottom: 0; }
@media (max-width: 700px) { .gap-grid { grid-template-columns: 1fr; } }

/* ── Pipeline visual ── */
.sealed-pipeline { display: flex; align-items: stretch; justify-content: center; gap: 0; max-width: 780px; margin: 1.5rem auto 2rem; flex-wrap: wrap; }
.sealed-step { flex: 1; min-width: 140px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem 0.8rem; text-align: center; }
.sealed-step:hover { border-color: var(--accent); }
.sealed-step .sp-num { width: 2rem; height: 2rem; border: 2px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.85rem; color: var(--accent); font-weight: 700; margin: 0 auto 0.5rem; }
.sealed-step .sp-label { font-size: 0.9rem; font-weight: 700; color: var(--bright); margin-bottom: 0.3rem; font-family: var(--mono); }
.sealed-step .sp-desc { font-size: 0.78rem; color: var(--subtle); line-height: 1.4; }
.sp-arrow { display: flex; align-items: center; padding: 0 0.4rem; color: var(--accent); font-size: 1.3rem; opacity: 0.5; }
@media (max-width: 600px) { .sp-arrow { display: none; } .sealed-step { min-width: 100%; } }

/* ── Documentation views ── */
.page-view section { max-width: 820px; }
.page-view h1 { font-size: 1.5rem; color: var(--bright); border-bottom: 2px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.page-view h2 { font-size: 1.15rem; color: var(--accent2); border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.page-view h3 { font-size: 1rem; color: var(--green); margin-top: 1.25rem; margin-bottom: 0.5rem; }
.page-view h4 { font-size: 0.92rem; color: var(--orange); margin-top: 0.75rem; margin-bottom: 0.4rem; }
.page-view p { font-size: 0.9rem; line-height: 1.75; color: var(--subtle); margin-bottom: 0.6rem; max-width: 720px; }
.page-view ul, .page-view ol { font-size: 0.9rem; line-height: 1.75; color: var(--subtle); margin-bottom: 0.6rem; padding-left: 1.5rem; max-width: 720px; }
.page-view li { margin-bottom: 0.25rem; }
.page-view table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin-bottom: 1rem; table-layout: fixed; }
.page-view th { background: var(--bg3); color: var(--text); text-align: left; padding: 0.45rem 0.5rem; border: 1px solid var(--border); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; word-wrap: break-word; }
.page-view td { padding: 0.4rem 0.5rem; border: 1px solid var(--border); color: var(--subtle); vertical-align: top; word-wrap: break-word; overflow-wrap: break-word; }
.page-view td code { font-size: 0.75rem; word-break: break-all; }
.page-view pre { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 0.8rem; overflow-x: auto; margin-bottom: 0.75rem; font-size: 0.78rem; line-height: 1.55; max-width: 100%; }
.page-view pre code { background: none; padding: 0; font-size: 1em; white-space: pre-wrap; word-wrap: break-word; }
.page-view code { font-family: var(--mono); font-size: 0.82em; background: var(--bg3); padding: 0.12rem 0.35rem; border-radius: 3px; }
.page-view blockquote { border-left: 3px solid var(--accent); padding: 0.5rem 1rem; margin: 0.75rem 0; background: rgba(0,184,217,0.04); border-radius: 0 6px 6px 0; max-width: 720px; }
.page-view blockquote p { color: var(--text); margin-bottom: 0.3rem; }
.page-view hr { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.page-view strong { color: var(--text); }
