/* ============================================
   DESIGN TOKENS — matched to the real app (frontend/css/style.css)
   ============================================ */
:root {
    --sidebar-bg:      #000000;
    --sidebar-hover:   rgba(255,255,255,0.09);
    --sidebar-active:  rgba(255,255,255,0.16);
    --sidebar-text:    #b0bac8;
    --sidebar-text-muted: #6b7280;
    --sidebar-section-label: #4a5260;

    --bg-canvas:    #f4f7fe;
    --bg-card:      #ffffff;
    --bg-card-hover:#f8faff;

    --text-main:    #1a202c;
    --text-muted:   #718096;

    --border:       #e8ecf4;
    --border-focus: #2d3748;

    --accent:          #000000;
    --accent-hover:    #1a1a1a;
    --accent-glow:     rgba(45,55,72,0.12);

    --red: #e53e3e;
    --green: #38a169;

    --tag-bg:     #edf2f7;
    --tag-text:   #4a5568;
    --tag-border: #e2e8f0;

    --code-bg:     #3b3b3f;
    --code-text:   #d0d0d0;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);

    --stat-blue:    #4299e1;
    --stat-blue-bg: rgba(66,153,225,0.1);
    --stat-dark:    #2d3748;
    --stat-dark-bg: rgba(45,55,72,0.08);
    --stat-red:     #e53e3e;
    --stat-red-bg:  rgba(229,62,62,0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-canvas);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary, .btn-secondary, .btn-ghost-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-focus);
}

.btn-ghost-dark {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.16); }

.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244,247,254,0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.navbar-brand-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.navbar-brand-icon svg { width: 34px; height: 34px; }
.navbar-brand-icon svg path { stroke: #000000; }

.navbar-brand-name { white-space: nowrap; }
.brand-accent { color: var(--sidebar-text-muted); }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-nav-links { display: flex; gap: 1.6rem; }

.navbar-nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s;
}
.navbar-nav-links a:hover { color: var(--text-main); }

.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }

.navbar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ============================================
   HERO — light canvas, matches app background
   ============================================ */
.hero {
    position: relative;
    background: var(--bg-canvas);
    padding: 4.5rem 0 4rem;
}

.hero-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.hero-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.hero h1 {
    font-size: clamp(2.3rem, 4.8vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
    color: var(--text-main);
}

.hero h1 .hero-underline {
    position: relative;
    white-space: nowrap;
}
.hero h1 .hero-underline::after {
    content: '';
    position: absolute;
    left: -0.05em; right: -0.05em; bottom: 0.06em;
    height: 0.3em;
    background: var(--stat-blue-bg);
    z-index: -1;
    border-radius: 3px;
}

.hero p.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2.25rem;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-cta-note {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* ============================================
   LIVE DEMO — interactive tabs over a real app mock
   ============================================ */
.demo {
    max-width: 980px;
    margin: 0 auto;
}

.demo-tabs {
    display: inline-flex;
    gap: 0.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.3rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}

.demo-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.demo-tab svg { width: 16px; height: 16px; }
.demo-tab:hover { color: var(--text-main); }
.demo-tab.active {
    background: var(--accent);
    color: #fff;
}

.app-frame {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-align: left;
}

.app-frame-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.app-frame-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.app-frame-url {
    margin-left: 0.5rem;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.app-frame-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 420px;
}

/* Sidebar replica */
.demo-sidebar {
    background: var(--sidebar-bg);
    padding: 1.1rem 0.85rem;
}
.demo-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.4rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.9rem;
}
.demo-sidebar-brand svg { width: 22px; height: 22px; }
.demo-sidebar-brand span { color: #fff; font-weight: 700; font-size: 1rem; }
.demo-sidebar-brand span .brand-accent { color: var(--sidebar-text-muted); }

.demo-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sidebar-text);
    margin-bottom: 0.1rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.demo-nav-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.demo-nav-link.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.demo-nav-link:hover:not(.active) { background: var(--sidebar-hover); color: #fff; }

.demo-main {
    padding: 1.5rem;
    background: var(--bg-canvas);
    overflow: hidden;
}

.demo-panel { display: none; }
.demo-panel.active { display: block; animation: panelIn 0.25s ease; }

@keyframes panelIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.demo-statrow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}
.demo-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}
.demo-stat-card .stat-label { font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); display: block; margin-bottom: 0.25rem; }
.demo-stat-card .stat-value { font-size: 1.4rem; font-weight: 700; color: var(--text-main); line-height: 1; }
.demo-stat-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.demo-stat-icon svg { width: 16px; height: 16px; }
.demo-stat-icon--blue { background: var(--stat-blue-bg); color: var(--stat-blue); }
.demo-stat-icon--dark { background: var(--stat-dark-bg); color: var(--stat-dark); }
.demo-stat-icon--red  { background: var(--stat-red-bg);  color: var(--stat-red); }

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

/* Snippet card replica */
.demo-snippet-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}
.demo-snippet-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}
.demo-snippet-top h4 { font-size: 0.88rem; font-weight: 600; color: var(--text-main); }
.demo-lang-badge {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-canvas);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.12rem 0.45rem;
    white-space: nowrap;
}
.demo-code-block {
    background: var(--code-bg);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.6rem;
}
.demo-code-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.18); margin-bottom: 0.3rem; }
.demo-code-line:last-child { margin-bottom: 0; width: 65%; }
.demo-tag-row { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.demo-tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--tag-border);
    padding: 0.22rem 0.55rem;
    border-radius: 20px;
    font-size: 0.66rem;
    font-weight: 500;
}

/* Drive folder replica */
.demo-folder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.demo-folder-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 0.7rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.demo-folder-card svg { width: 20px; height: 20px; color: var(--text-main); }
.demo-folder-card span { font-size: 0.74rem; font-weight: 600; color: var(--text-main); }

/* Problem tracker replica */
.demo-problem-list { display: flex; flex-direction: column; gap: 0.6rem; }
.demo-problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.demo-problem-title { font-size: 0.84rem; font-weight: 600; color: var(--text-main); }
.demo-problem-badge {
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.demo-problem-badge--open { background: var(--stat-red-bg); color: var(--stat-red); }
.demo-problem-badge--solved { background: rgba(56,161,105,0.1); color: var(--green); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 5rem 0; }
.section-tight { padding: 3.25rem 0; }

.section-head {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 3rem;
}
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
}
.section-head p { color: var(--text-muted); font-size: 1.03rem; }

.section-on-dark .section-eyebrow { color: var(--sidebar-text); }
.section-on-dark .section-head h2 { color: #fff; }
.section-on-dark .section-head p { color: var(--sidebar-text); }

/* ============================================
   FEATURES — same card language as the app's stat/snippet cards
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-focus);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.feature-icon-box svg { width: 21px; height: 21px; }
.feature-icon-box--blue { background: var(--stat-blue-bg); color: var(--stat-blue); }
.feature-icon-box--dark { background: var(--stat-dark-bg); color: var(--stat-dark); }
.feature-icon-box--red  { background: var(--stat-red-bg);  color: var(--stat-red); }

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.feature-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}
.feature-card-sm {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}
.feature-card-sm h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-card-sm p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================
   HOW IT WORKS — dark band (mirrors sidebar black)
   ============================================ */
.how-band {
    background: var(--sidebar-bg);
    color: #fff;
}
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.step-card { text-align: left; }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.4rem; color: #fff; }
.step-card p { color: var(--sidebar-text); font-size: 0.87rem; line-height: 1.6; }

/* ============================================
   SECURITY / HOSTED BAND
   ============================================ */
.dark-band-section { background: var(--bg-canvas); }
.dark-band {
    background: var(--sidebar-bg);
    color: #fff;
    border-radius: 14px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.dark-band h2 {
    font-size: clamp(1.5rem, 2.8vw, 1.95rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.dark-band p {
    color: var(--sidebar-text);
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 1.4rem;
}
.dark-band-list { display: flex; flex-direction: column; gap: 0.85rem; }
.dark-band-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.89rem;
    color: #dfe3ea;
}
.dark-band-item svg { width: 17px; height: 17px; color: var(--stat-blue); flex-shrink: 0; margin-top: 0.1rem; }

.dark-band-code {
    background: var(--code-bg);
    border-radius: 10px;
    padding: 1.2rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.78rem;
    color: var(--code-text);
    line-height: 1.7;
    overflow-x: auto;
}
.dark-band-code .cmt { color: #8a8a90; }
.dark-band-code .cmd { color: #6fc97b; }

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.1rem 1.4rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-question svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer-inner { padding: 0 1.4rem 1.1rem; font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta-section { background: var(--sidebar-bg); padding: 5.5rem 0; }
.final-cta { text-align: center; }
.final-cta h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
    color: #fff;
}
.final-cta p { color: var(--sidebar-text); font-size: 1.05rem; margin-bottom: 2rem; }
.final-cta-row { display: flex; align-items: center; justify-content: center; gap: 1rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--bg-canvas); border-top: 1px solid var(--border); padding: 3rem 0 2rem; color: var(--text-muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; color: var(--text-main); }
.footer-brand-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-brand-icon svg { width: 30px; height: 30px; }
.footer-brand-icon svg path { stroke: #000000; }
.footer-tagline { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; max-width: 260px; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.85rem; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--text-main); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-grid-small { grid-template-columns: repeat(2, 1fr); }
    .steps-row { grid-template-columns: 1fr; gap: 2.5rem; }
    .dark-band { grid-template-columns: 1fr; padding: 2.5rem 1.75rem; }
    .app-frame-body { grid-template-columns: 160px 1fr; }
    .demo-folder-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-nav-links { display: none; }
    .navbar-toggle { display: flex; }
    .hero { padding: 3rem 0 0; }
    .app-frame-body { grid-template-columns: 1fr; }
    .demo-sidebar { display: none; }
    .demo-statrow { grid-template-columns: 1fr 1fr; }
    .demo-grid-2 { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid-small { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
    .final-cta-section { padding: 4rem 0; }
    .footer-inner { flex-direction: column; }
    .demo-tabs { width: 100%; }
    .demo-tab { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-cta-row { flex-direction: column; width: 100%; }
    .hero-cta-row .btn-primary, .hero-cta-row .btn-secondary { width: 100%; }
    .demo-statrow { grid-template-columns: 1fr; }
    .demo-folder-grid { grid-template-columns: 1fr; }
    .footer-cols { gap: 1.75rem; }
}

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.mobile-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(80vw, 320px);
    background: var(--sidebar-bg);
    color: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 200;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-nav-close {
    align-self: flex-end;
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 1.1rem; }
.mobile-nav-links a { font-size: 1.05rem; font-weight: 600; color: #fff; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: auto; }
.mobile-nav-actions .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.25); }
.mobile-nav-actions .btn-secondary:hover { background: rgba(255,255,255,0.1); }
