/* ==========================================================================
   GB10 Manager - Documentation technique
   Theme sombre identique a l'application
   ========================================================================== */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2333;
    --bg-card-hover: #222d3f;
    --bg-input: #0d1117;
    --bg-sidebar: #13171f;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --accent-bg: rgba(88, 166, 255, 0.1);
    --success: #3fb950;
    --success-bg: rgba(63, 185, 80, 0.15);
    --warning: #d29922;
    --warning-bg: rgba(210, 153, 34, 0.15);
    --danger: #f85149;
    --danger-bg: rgba(248, 81, 73, 0.15);
    --border: #30363d;
    --border-light: #21262d;
    --shadow: rgba(0, 0, 0, 0.4);
    --radius: 8px;
    --radius-sm: 4px;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --transition: 0.2s ease;
    --sidebar-width: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   Layout : Sidebar + Content
   ========================================================================== */

.doc-layout {
    display: flex;
    min-height: 100vh;
}

.doc-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
    padding: 1.5rem 0;
}

.doc-sidebar-header {
    padding: 0 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doc-sidebar-header img {
    width: 40px;
    height: 40px;
}

.doc-sidebar-header .doc-brand {
    display: flex;
    flex-direction: column;
}

.doc-sidebar-header .doc-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.doc-sidebar-header .doc-brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.doc-nav-group {
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.doc-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.doc-nav-link {
    display: block;
    padding: 0.45rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.doc-nav-link:hover {
    color: var(--text-primary);
    background: var(--accent-bg);
}

.doc-nav-link.active {
    color: var(--accent);
    background: var(--accent-bg);
    font-weight: 600;
}

.doc-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: 960px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.75rem;
}

h1 .version-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--success-bg);
    color: var(--success);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-light);
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.35rem;
}

li strong {
    color: var(--accent);
}

/* ==========================================================================
   Code blocks
   ========================================================================== */

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-card);
    color: var(--accent);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    line-height: 1.5;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.82rem;
}

.code-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
}

th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: 0.6rem 0.85rem;
    border-bottom: 2px solid var(--border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

td {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

tr:hover td {
    background: rgba(88, 166, 255, 0.03);
}

td code {
    font-size: 0.8em;
}

/* ==========================================================================
   Info boxes / Callouts
   ========================================================================== */

.callout {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    border-left: 4px solid;
}

.callout-info {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--text-secondary);
}

.callout-warning {
    background: var(--warning-bg);
    border-color: var(--warning);
    color: var(--text-secondary);
}

.callout-danger {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--text-secondary);
}

.callout-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--text-secondary);
}

.callout strong {
    display: block;
    margin-bottom: 0.3rem;
}

/* ==========================================================================
   Feature cards
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
}

.feature-card .feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-card h4 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.feature-card p {
    font-size: 0.82rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* ==========================================================================
   Screenshots - Repliques visuelles de l'interface
   ========================================================================== */

.screenshot {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px var(--shadow);
}

.screenshot-chrome {
    background: var(--bg-card);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.screenshot-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.screenshot-dot.red { background: #f85149; }
.screenshot-dot.yellow { background: #d29922; }
.screenshot-dot.green { background: #3fb950; }

.screenshot-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    font-family: var(--font-mono);
}

.screenshot-body {
    padding: 0;
}

.screenshot-caption {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

/* -- Composants repliques de l'app dans les screenshots -- */

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.mock-logo {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.mock-logo-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #58a6ff 0%, #79c0ff 50%, #a5d6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.mock-logo-sub {
    font-size: 0.9rem;
    color: #8b949e;
    font-weight: 500;
}

.mock-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #8b949e;
}

.mock-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 6px #3fb950;
    display: inline-block;
}

.mock-gear {
    font-size: 1.1rem;
    color: #8b949e;
    margin-left: 0.3rem;
}

.mock-tabs {
    display: flex;
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 0 0.5rem;
}

.mock-tab {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    color: #8b949e;
    cursor: default;
    border-bottom: 2px solid transparent;
}

.mock-tab.active {
    color: #58a6ff;
    border-bottom-color: #58a6ff;
    font-weight: 600;
}

.mock-links-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(88, 166, 255, 0.04);
    border-bottom: 1px solid #21262d;
    font-size: 0.7rem;
    flex-wrap: wrap;
}

.mock-links-label {
    color: #6e7681;
    font-weight: 600;
    margin-right: 0.2rem;
}

.mock-links-pill {
    background: rgba(88, 166, 255, 0.08);
    color: #58a6ff;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    font-size: 0.65rem;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.mock-content {
    padding: 1rem 1.2rem;
}

.mock-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mock-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e6edf3;
}

.mock-btn {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    border-radius: 4px;
    cursor: default;
}

.mock-btn-default {
    background: #21262d;
    color: #8b949e;
    border: 1px solid #30363d;
}

.mock-btn-primary {
    background: #1f6feb;
    color: #fff;
    border: 1px solid #1f6feb;
}

.mock-btn-danger {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.mock-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.mock-card {
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0.75rem;
}

.mock-card-label {
    font-size: 0.65rem;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.mock-card-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e6edf3;
    font-family: 'Cascadia Code', monospace;
}

.mock-stats-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.mock-stat-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
}

.mock-stat-label {
    color: #6e7681;
    font-weight: 600;
    min-width: 2.5rem;
}

.mock-progress-bar {
    width: 80px;
    height: 6px;
    background: #21262d;
    border-radius: 3px;
    overflow: hidden;
}

.mock-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: #58a6ff;
}

.mock-progress-fill.gpu { background: #76b900; }
.mock-progress-fill.warn { background: #d29922; }

.mock-stat-value {
    color: #e6edf3;
    font-family: 'Cascadia Code', monospace;
    font-size: 0.68rem;
}

/* Diag Ollama mock */
.mock-diag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.mock-diag-card {
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0.75rem;
}

.mock-diag-card.full {
    grid-column: 1 / -1;
}

.mock-diag-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #58a6ff;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mock-diag-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.35rem;
}

.mock-diag-stat {
    display: flex;
    flex-direction: column;
}

.mock-diag-stat .label {
    font-size: 0.6rem;
    color: #6e7681;
}

.mock-diag-stat .value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e6edf3;
    font-family: 'Cascadia Code', monospace;
}

/* Model list mock */
.mock-model-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid #21262d;
    font-size: 0.75rem;
}

.mock-model-name {
    color: #e6edf3;
    font-family: 'Cascadia Code', monospace;
    font-weight: 600;
}

.mock-model-size {
    color: #6e7681;
    font-size: 0.7rem;
}

.mock-model-actions {
    display: flex;
    gap: 0.3rem;
}

/* Pull model form mock */
.mock-pull-form {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.mock-pull-input {
    flex: 1;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #8b949e;
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
    font-family: 'Cascadia Code', monospace;
}

/* Container grid mock */
.mock-container-card {
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.mock-container-name {
    font-weight: 600;
    color: #e6edf3;
    font-size: 0.8rem;
}

.mock-container-status {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
}

.mock-container-status.running {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
}

.mock-container-status.stopped {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

/* Apps layout mock */
.mock-apps-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    min-height: 200px;
}

.mock-apps-sidebar {
    background: #13171f;
    border-right: 1px solid #30363d;
    padding: 0.5rem;
}

.mock-app-item {
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 0.15rem;
    cursor: default;
}

.mock-app-item.selected {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    font-weight: 600;
}

.mock-app-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.3rem;
}

.mock-app-status-dot.up { background: #3fb950; }
.mock-app-status-dot.down { background: #f85149; }

.mock-apps-detail {
    padding: 0.75rem;
}

/* Settings mock */
.mock-settings-tabs {
    display: flex;
    border-bottom: 1px solid #30363d;
    padding: 0 0.5rem;
    background: #161b22;
}

.mock-settings-tab {
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    color: #8b949e;
    cursor: default;
    border-bottom: 2px solid transparent;
}

.mock-settings-tab.active {
    color: #58a6ff;
    border-bottom-color: #58a6ff;
}

.mock-settings-body {
    padding: 0.75rem;
}

.mock-form-group {
    margin-bottom: 0.75rem;
}

.mock-form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.2rem;
    display: block;
}

.mock-form-desc {
    font-size: 0.68rem;
    color: #6e7681;
    margin-bottom: 0.35rem;
}

.mock-select {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #e6edf3;
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
    width: 180px;
}

.mock-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mock-toggle {
    width: 34px;
    height: 18px;
    background: #58a6ff;
    border-radius: 9px;
    position: relative;
    display: inline-block;
}

.mock-toggle::after {
    content: '';
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}

/* Theme grid mock */
.mock-theme-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
}

.mock-theme-card {
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.4rem;
    text-align: center;
}

.mock-theme-card.active {
    border-color: #58a6ff;
}

.mock-theme-swatches {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-bottom: 0.2rem;
}

.mock-theme-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.mock-theme-name {
    font-size: 0.6rem;
    color: #8b949e;
}

/* Chat panel mock */
.mock-chat-header {
    background: #1c2333;
    padding: 0.4rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #e6edf3;
    font-weight: 600;
    border-top: 1px solid #30363d;
}

.mock-chat-body {
    background: #0d1117;
    padding: 0.5rem 0.75rem;
    min-height: 80px;
}

.mock-chat-msg {
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    max-width: 85%;
}

.mock-chat-msg.system {
    background: rgba(88, 166, 255, 0.08);
    color: #8b949e;
    border: 1px solid rgba(88, 166, 255, 0.15);
}

.mock-chat-msg.user {
    background: #1f6feb;
    color: #fff;
    margin-left: auto;
}

.mock-chat-msg.ai {
    background: #1c2333;
    color: #e6edf3;
    border: 1px solid #30363d;
}

.mock-chat-input-row {
    display: flex;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: #161b22;
    border-top: 1px solid #30363d;
}

.mock-chat-input {
    flex: 1;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    color: #8b949e;
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
}

/* Mode switch mock */
.mock-mode-switch {
    display: inline-flex;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.68rem;
}

.mock-mode-btn {
    padding: 0.2rem 0.5rem;
    color: #8b949e;
    background: #161b22;
    cursor: default;
}

.mock-mode-btn.active {
    background: #1f6feb;
    color: #fff;
}

/* ==========================================================================
   Architecture diagram (text based)
   ========================================================================== */

.arch-diagram {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-secondary);
    overflow-x: auto;
    white-space: pre;
}

/* ==========================================================================
   API endpoint blocks
   ========================================================================== */

.endpoint {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.75rem;
}

.endpoint-method {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-right: 0.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.endpoint-method.get {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
}

.endpoint-method.post {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
}

.endpoint-method.delete {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
}

.endpoint-path {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.endpoint-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .doc-sidebar {
        width: 220px;
    }
    .doc-content {
        margin-left: 220px;
        padding: 1.5rem;
    }
    .mock-diag-row {
        grid-template-columns: 1fr;
    }
    .mock-apps-layout {
        grid-template-columns: 1fr;
    }
    .mock-theme-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .doc-sidebar {
        display: none;
    }
    .doc-content {
        margin-left: 0;
        padding: 1rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .mock-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Scrollbar custom
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 12px var(--shadow);
    transition: opacity var(--transition);
    z-index: 99;
}

.back-to-top:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.doc-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}
