/* AllSafe Fast Documentation — Complete Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===== CSS Variables ===== */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --sidebar-w: 280px;
  --toc-w: 240px;
  --header-h: 72px;
  --content-max: 820px;
  --radius: 8px;
  --radius-sm: 6px;
  --transition: 0.15s ease;
}

/* Light theme (default) */
:root {
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-code: #f8fafc;
  --bg-code-inline: #e2e8f0;
  --bg-terminal: #0f172a;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #0d5d57;
  --primary-bg: #f0fdfa;
  --primary-bg-hover: #ccfbf1;
  --accent: #f59e0b;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning: #ea580c;
  --warning-bg: #fff7ed;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --info-bg: #eff6ff;
  --info-border: #3b82f6;
  --link: #0f766e;
  --link-hover: #0d5d57;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --code-text: #1e293b;
  --code-kw: #c084fc;
  --code-str: #16a34a;
  --code-fn: #2563eb;
  --code-cls: #ea580c;
  --code-cmt: #64748b;
  --code-num: #f59e0b;
  --code-dec: #d946ef;
  --code-op: #64748b;
  --code-bg: #1e293b;
  --code-bg-text: #e2e8f0;
  --code-border: #334155;
  --overlay: rgba(0,0,0,0.4);
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-code: #1e293b;
  --bg-code-inline: #334155;
  --bg-terminal: #0f172a;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;
  --border: #334155;
  --border-strong: #475569;
  --primary: #14b8a6;
  --primary-light: #2dd4bf;
  --primary-dark: #0f766e;
  --primary-bg: rgba(20,184,166,0.1);
  --primary-bg-hover: rgba(20,184,166,0.15);
  --accent: #f59e0b;
  --success: #22c55e;
  --success-bg: rgba(34,197,94,0.1);
  --warning: #f97316;
  --warning-bg: rgba(249,115,22,0.1);
  --error: #ef4444;
  --error-bg: rgba(239,68,68,0.1);
  --info-bg: rgba(59,130,246,0.1);
  --info-border: #3b82f6;
  --link: #2dd4bf;
  --link-hover: #5eead4;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --code-text: #e2e8f0;
  --code-kw: #c084fc;
  --code-str: #86efac;
  --code-fn: #93c5fd;
  --code-cls: #fcd34d;
  --code-cmt: #64748b;
  --code-num: #fdba74;
  --code-dec: #f0abfc;
  --code-op: #94a3b8;
  --code-bg: #0f172a;
  --code-bg-text: #e2e8f0;
  --code-border: #334155;
  --overlay: rgba(0,0,0,0.6);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background var(--transition), color var(--transition); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 4px; color: var(--text-secondary); }
strong { color: var(--text); font-weight: 600; }

/* ===== Header ===== */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; z-index: 200; transition: background var(--transition), border-color var(--transition); }
.header-left { display: flex; align-items: center; gap: 16px; }

/* ===== HEADER LOGO - LARGER SIZE (80px) ===== */
.header-logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}
.header-logo:hover { 
    text-decoration: none; 
}
.header-logo img {
    height: 80px;
    width: auto;
    display: block;
}
/* ===== END LOGO STYLES ===== */

/* ===== SIDEBAR EMOJIS - PRIMARY COLOR ===== */
.sidebar-icon.emoji-primary {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
}

/* Slightly larger emojis for better visibility */
.sidebar-icon.emoji-primary {
    font-size: 17px;
}

/* Dark theme - emojis stay primary color */
[data-theme="dark"] .sidebar-icon.emoji-primary {
    color: var(--primary);
}
/* ===== END EMOJI STYLES ===== */

.header-nav { display: flex; gap: 4px; }
.header-nav a { padding: 6px 12px; font-size: 14px; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--transition); }
.header-nav a:hover { color: var(--text); background: var(--bg-tertiary); text-decoration: none; }
.header-nav a.active { color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-search { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; color: var(--text-tertiary); transition: all var(--transition); min-width: 200px; }
.header-search:hover { border-color: var(--border-strong); background: var(--bg-tertiary); }
.header-search kbd { font-family: var(--font-mono); font-size: 11px; padding: 1px 6px; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 4px; color: var(--text-tertiary); margin-left: auto; }
.theme-toggle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; color: var(--text-secondary); transition: all var(--transition); font-size: 16px; }
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.github-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); transition: all var(--transition); font-size: 16px; }
.github-link:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.menu-toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--text); font-size: 20px; }

/* ===== Layout ===== */
.layout { display: flex; padding-top: var(--header-h); min-height: 100vh; }

/* ===== Sidebar ===== */
.sidebar { width: var(--sidebar-w); position: fixed; top: var(--header-h); left: 0; bottom: 0; overflow-y: auto; background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 16px 0; z-index: 100; transition: transform 0.25s ease, background var(--transition), border-color var(--transition); }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar-section { margin-bottom: 8px; }
.sidebar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 12px 20px 4px; }
.sidebar-link { display: flex; align-items: center; gap: 8px; padding: 6px 20px; font-size: 13.5px; font-weight: 500; color: var(--text-secondary); text-decoration: none; border-left: 2px solid transparent; transition: all var(--transition); line-height: 1.4; }
.sidebar-link:hover { color: var(--text); background: var(--bg-tertiary); text-decoration: none; }
.sidebar-link.active { color: var(--primary); border-left-color: var(--primary); background: var(--primary-bg); font-weight: 600; }
.sidebar-link .sidebar-icon { width: 20px; text-align: center; flex-shrink: 0; font-size: 17px; }

/* ===== Main Content ===== */
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; padding-bottom: 60px; }
.content-wrapper { display: flex; max-width: calc(var(--sidebar-w) + var(--content-max) + var(--toc-w)); }
.content { flex: 1; max-width: var(--content-max); padding: 32px 48px; min-width: 0; }

/* ===== TOC ===== */
.toc { width: var(--toc-w); position: sticky; top: var(--header-h); align-self: flex-start; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 32px 24px; flex-shrink: 0; }
.toc-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.toc nav { display: flex; flex-direction: column; gap: 2px; }
.toc a { font-size: 13px; color: var(--text-tertiary); text-decoration: none; padding: 3px 0 3px 12px; border-left: 2px solid transparent; transition: all var(--transition); line-height: 1.4; }
.toc a:hover { color: var(--text); border-left-color: var(--border-strong); text-decoration: none; }
.toc a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.toc a.toc-h3 { padding-left: 24px; font-size: 12px; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-tertiary); margin-bottom: 20px; }
.breadcrumbs a { color: var(--text-tertiary); }
.breadcrumbs a:hover { color: var(--link); text-decoration: none; }
.breadcrumbs .separator { color: var(--text-muted); font-size: 12px; }
.breadcrumbs .current { color: var(--text-secondary); font-weight: 500; }

/* ===== Typography ===== */
h1 { font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 12px; line-height: 1.25; }
h2 { font-size: 24px; font-weight: 700; color: var(--text); margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
h3 { font-size: 19px; font-weight: 600; color: var(--text); margin: 28px 0 12px; scroll-margin-top: 80px; }
h4 { font-size: 16px; font-weight: 600; color: var(--text); margin: 20px 0 8px; scroll-margin-top: 80px; }
p { margin-bottom: 16px; color: var(--text-secondary); line-height: 1.7; }

/* ===== Code ===== */
code { font-family: var(--font-mono); font-size: 0.875em; background: var(--bg-code-inline); color: var(--primary-dark); padding: 2px 6px; border-radius: 4px; }
[data-theme="dark"] code { color: var(--primary-light); }
pre { background: var(--code-bg); color: var(--code-bg-text); padding: 20px 24px; border-radius: var(--radius); overflow-x: auto; margin: 16px 0 24px; font-size: 13px; line-height: 1.6; border: 1px solid var(--code-border); position: relative; }
pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.tk-kw { color: var(--code-kw); }
.tk-str { color: var(--code-str); }
.tk-fn { color: var(--code-fn); }
.tk-cls { color: var(--code-cls); }
.tk-cmt { color: var(--code-cmt); font-style: italic; }
.tk-num { color: var(--code-num); }
.tk-dec { color: var(--code-dec); }
.tk-op { color: var(--code-op); }

/* Copy button */
.copy-btn { position: absolute; top: 8px; right: 8px; background: var(--bg-tertiary); border: 1px solid var(--code-border); color: var(--text-muted); padding: 3px 10px; border-radius: 4px; cursor: pointer; font-size: 11px; font-family: var(--font-sans); transition: all var(--transition); z-index: 1; }
.copy-btn:hover { background: var(--border-strong); color: var(--text); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }

/* ===== Callouts ===== */
.callout { border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; border-left: 4px solid; font-size: 14px; display: flex; gap: 12px; align-items: flex-start; }
.callout-icon { font-size: 18px; flex-shrink: 0; line-height: 1.5; }
.callout-body { flex: 1; }
.callout-title { font-weight: 700; margin-bottom: 4px; font-size: 14px; }
.callout p { margin-bottom: 0; }
.callout p + p { margin-top: 8px; }
.callout-note { background: var(--info-bg); border-color: var(--info-border); }
.callout-note .callout-title { color: var(--info-border); }
.callout-tip { background: var(--success-bg); border-color: var(--success); }
.callout-tip .callout-title { color: var(--success); }
.callout-warn { background: var(--warning-bg); border-color: var(--warning); }
.callout-warn .callout-title { color: var(--warning); }
.callout-danger { background: var(--error-bg); border-color: var(--error); }
.callout-danger .callout-title { color: var(--error); }
.callout-important { background: var(--primary-bg); border-color: var(--primary); }
.callout-important .callout-title { color: var(--primary-dark); }
[data-theme="dark"] .callout-important .callout-title { color: var(--primary-light); }

/* ===== Tables ===== */
.table-wrapper { overflow-x: auto; margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--bg-secondary); text-align: left; padding: 10px 14px; font-weight: 600; color: var(--text); border-bottom: 2px solid var(--border-strong); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; }
tr:hover td { background: var(--bg-secondary); }
table code { font-size: 12px; }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all var(--transition); }
.card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; }
.card-icon { font-size: 24px; margin-bottom: 8px; }

/* ===== Badges ===== */
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-get { background: var(--primary-bg); color: var(--primary-dark); }
.badge-post { background: var(--info-bg); color: var(--info-border); }
.badge-put { background: var(--warning-bg); color: var(--warning); }
.badge-del, .badge-delete { background: var(--error-bg); color: var(--error); }
.badge-impl { background: var(--success-bg); color: var(--success); }
.badge-wip { background: var(--warning-bg); color: var(--warning); }
.badge-plan { background: var(--bg-tertiary); color: var(--text-tertiary); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; font-family: var(--font-mono); }
.pill-req { background: var(--error-bg); color: var(--error); }
.pill-opt { background: var(--bg-tertiary); color: var(--text-tertiary); }
.pill-async { background: var(--info-bg); color: var(--info-border); }
.pill-static { background: var(--primary-bg); color: var(--primary-dark); }

/* ===== Endpoint blocks ===== */
.endpoint { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); margin: 16px 0; overflow: hidden; }
.endpoint-header { padding: 10px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); background: var(--bg); }
.endpoint-header .method { font-weight: 700; font-size: 11px; font-family: var(--font-mono); }
.endpoint-header .path { font-family: var(--font-mono); font-size: 14px; color: var(--text); font-weight: 500; }
.endpoint-body { padding: 16px; }
.endpoint-body p:last-child { margin-bottom: 0; }

/* ===== Terminal ===== */
.terminal { background: var(--bg-terminal); color: #e2e8f0; border-radius: var(--radius); margin: 16px 0 24px; overflow: hidden; border: 1px solid #334155; position: relative; }
.terminal-header { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #1e293b; border-bottom: 1px solid #334155; }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #22c55e; }
.terminal-title { font-size: 12px; color: #94a3b8; margin-left: 8px; font-family: var(--font-mono); }
.terminal-copy { margin-left: auto; background: none; border: 1px solid #334155; color: #64748b; padding: 3px 10px; border-radius: 4px; cursor: pointer; font-size: 11px; transition: all var(--transition); }
.terminal-copy:hover { color: #e2e8f0; border-color: #475569; }
.terminal-copy.copied { color: #22c55e; border-color: #22c55e; }
.terminal-body { padding: 16px 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; }
.terminal-body .prompt { color: #22c55e; }
.terminal-body .cmd { color: #e2e8f0; }
.terminal-body .output { color: #64748b; }

/* ===== Flow diagrams ===== */
.flow-diagram { display: flex; flex-direction: column; gap: 0; margin: 24px 0; }
.flow-step { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; position: relative; display: flex; align-items: flex-start; gap: 14px; }
.flow-step .step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.flow-step .step-content { flex: 1; }
.flow-step .step-content strong { display: block; margin-bottom: 2px; }
.flow-arrow { text-align: center; color: var(--text-muted); font-size: 20px; line-height: 1; padding: 4px 0; }

/* ===== Tree diagram ===== */
.tree-diagram { margin: 20px 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; background: var(--code-bg); color: var(--code-bg-text); padding: 24px; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--code-border); }
.tree-diagram .t-branch { color: var(--text-muted); }
.tree-diagram .t-file { color: var(--primary-light); }
.tree-diagram .t-comment { color: var(--text-muted); font-style: italic; }

/* ===== Field lists ===== */
.field-list { margin: 12px 0; }
.field-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.field-row:last-child { border-bottom: none; }
.field-name { font-family: var(--font-mono); font-size: 13px; color: var(--primary-dark); font-weight: 600; }
[data-theme="dark"] .field-name { color: var(--primary-light); }
.field-desc { font-size: 14px; color: var(--text-secondary); }

/* ===== Tabs ===== */
.tabs { margin: 16px 0 24px; }
.tab-headers { display: flex; gap: 2px; border-bottom: 1px solid var(--border); }
.tab-header { padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--text-tertiary); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all var(--transition); }
.tab-header:hover { color: var(--text); }
.tab-header.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; padding-top: 16px; }
.tab-panel.active { display: block; }

/* ===== Nav buttons ===== */
.nav-buttons { display: flex; justify-content: space-between; margin-top: 48px; gap: 16px; }
.nav-buttons .nav-btn, .nav-button { display: flex; flex-direction: column; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text-secondary); transition: all var(--transition); flex: 1; max-width: 48%; }
.nav-buttons .nav-btn:hover, .nav-button:hover { border-color: var(--primary-light); box-shadow: var(--shadow); text-decoration: none; }
.nav-buttons .nav-btn .label, .nav-button .label { font-size: 12px; color: var(--text-muted); }
.nav-buttons .nav-btn .title, .nav-button .title { font-weight: 600; color: var(--text); margin-top: 2px; }

/* ===== Edit link ===== */
.edit-link { margin-top: 24px; font-size: 13px; color: var(--text-muted); }
.edit-link a { color: var(--text-tertiary); }

/* ===== Search overlay ===== */
.search-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 300; display: none; align-items: flex-start; justify-content: center; padding-top: 100px; }
.search-overlay.active { display: flex; }
.search-box { width: 90%; max-width: 600px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-input { width: 100%; padding: 16px 20px; border: none; outline: none; font-size: 16px; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.search-input::placeholder { color: var(--text-muted); }
.search-results { max-height: 400px; overflow-y: auto; }
.search-result { padding: 12px 20px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background var(--transition); display: block; text-decoration: none; color: inherit; }
.search-result:hover, .search-result.selected { background: var(--bg-secondary); }
.search-result .sr-title { font-weight: 600; font-size: 14px; color: var(--text); }
.search-result .sr-context { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.search-result .sr-desc { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.search-empty { padding: 24px 20px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ===== Landing page ===== */
.landing-hero { text-align: center; padding: 80px 24px 60px; max-width: 800px; margin: 0 auto; }
.landing-hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 16px; line-height: 1.15; }
.landing-hero .tagline { font-size: 20px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.5; }
.landing-hero .badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.landing-hero .badges span { background: var(--bg-secondary); border: 1px solid var(--border); padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.landing-install { display: inline-flex; align-items: center; gap: 12px; background: var(--code-bg); color: var(--code-bg-text); padding: 12px 24px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 15px; border: 1px solid var(--code-border); margin-bottom: 32px; }
.landing-install .copy-btn { position: static; background: none; border: 1px solid var(--code-border); color: var(--text-muted); padding: 3px 10px; border-radius: 4px; cursor: pointer; font-size: 11px; font-family: var(--font-sans); }
.landing-cta { display: flex; gap: 12px; justify-content: center; }
.landing-btn { padding: 10px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 600; text-decoration: none; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.landing-btn-primary { background: var(--primary); color: #fff; }
.landing-btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.landing-btn-secondary { background: var(--bg-secondary); color: var(--text); border: 1px solid var(--border); }
.landing-btn-secondary:hover { border-color: var(--border-strong); text-decoration: none; color: var(--text); }
.landing-section { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.landing-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 32px 0; }

/* ===== Checklist ===== */
.checklist { list-style: none; margin-left: 0; }
.checklist li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 10px; }
.checklist input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; }

/* ===== Hero Logo ===== */
.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.hero-logo img {
    max-height: 80px;
    width: auto;
    display: block;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) { 
    .toc { display: none; } 
    .content { max-width: 100%; } 
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main { margin-left: 0; }
    .content { padding: 24px 20px; }
    .header-search { display: none; }
    .menu-toggle { display: flex; }
    .header-nav { display: none; }
    .landing-hero h1 { font-size: 36px; }
    .landing-hero .tagline { font-size: 17px; }
    .field-row { grid-template-columns: 1fr; gap: 4px; }
    .card-grid { grid-template-columns: 1fr; }
    
    /* ===== SLIGHTLY SMALLER LOGO ON TABLET ===== */
    .header-logo img {
        height: 60px;
    }
    .hero-logo img {
        max-height: 60px;
    }
}

@media (max-width: 500px) {
    .landing-hero { padding: 48px 16px 40px; }
    .landing-hero h1 { font-size: 28px; }
    .nav-buttons { flex-direction: column; }
    .nav-buttons .nav-btn, .nav-button { max-width: 100%; }
    
    /* ===== SMALLER LOGO ON MOBILE ===== */
    .header-logo img {
        height: 45px;
    }
    .hero-logo img {
        max-height: 50px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { 
    *, *::before, *::after { 
        animation-duration: 0.01ms !important; 
        transition-duration: 0.01ms !important; 
    } 
    html { scroll-behavior: auto; } 
}