:root {
    --bg-primary: #050505;
    --bg-elevated: rgba(18, 18, 22, 0.88);
    --bg-card: rgba(22, 22, 28, 0.72);
    --accent-orange: #ff6b35;
    --accent-coral: rgb(255, 127, 80);
    --accent-cyan: #00d9ff;
    --accent-green: #10b981;
    --brand-purple: #691345;
    --border: rgba(255, 255, 255, 0.08);
    --text-muted: rgba(255, 255, 255, 0.55);
}

* { box-sizing: border-box; }

body.mvp-app {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    background: var(--bg-primary);
    color: rgba(255, 255, 255, 0.92);
    min-height: 100vh;
}

body.mvp-landing {
    min-height: 100vh;
    overflow-x: hidden;
}

.mvp-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(105, 19, 69, 0.45), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 20%, rgba(0, 217, 255, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 107, 53, 0.15), transparent 55%),
        var(--bg-primary);
}

.mvp-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    pointer-events: none;
}

.mvp-shell { position: relative; z-index: 1; }

.glass-panel {
    background: var(--bg-elevated);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
    border-color: rgba(255, 127, 80, 0.22);
}

.stat-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--accent-cyan);
    background: rgba(0, 217, 255, 0.06);
}

.nav-btn {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
}

.nav-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
    color: var(--accent-coral);
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 127, 80, 0.35);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--brand-purple));
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
    border-color: rgba(0, 217, 255, 0.35);
    background: rgba(0, 217, 255, 0.08);
}

.field-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    display: block;
}

.field-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #fff;
    font-size: 0.875rem;
}

.field-input:focus {
    outline: none;
    border-color: rgba(0, 217, 255, 0.4);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.check-row:hover { background: rgba(255, 255, 255, 0.03); }

.check-row input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    accent-color: var(--accent-orange);
    flex-shrink: 0;
}

.check-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--accent-cyan);
    opacity: 0.75;
}

.score-bar-fill {
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    height: 6px;
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in { animation: mvpFadeIn 0.45s ease-out; }

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

.footer-brand a {
    color: var(--accent-coral);
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
}

.footer-brand a:hover { color: var(--accent-cyan); }

.search-input {
    width: 100%;
    max-width: 20rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    color: #fff;
    font-size: 0.8125rem;
}

.hidden { display: none !important; }

/* Landing */
.landing-hero {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.landing-card {
    text-align: left;
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* PDF export (on-screen hidden area uses light theme) */
#pdf-export-root {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 210mm;
    background: #fff;
    color: #111;
    padding: 24px;
    font-family: system-ui, sans-serif;
}

#pdf-export-root h1 { font-size: 1.35rem; margin: 0 0 8px; color: #691345; }
#pdf-export-root h2 { font-size: 0.95rem; margin: 16px 0 8px; color: #333; }
#pdf-export-root .pdf-meta { font-size: 0.8rem; color: #555; margin-bottom: 16px; }
#pdf-export-root ul { padding-left: 1.2rem; font-size: 0.8rem; }
#pdf-export-root li { margin-bottom: 4px; }
#pdf-export-root .done { color: #059669; }
#pdf-export-root .pending { color: #9ca3af; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }

@media (max-width: 768px) {
    .mvp-sidebar { width: 100%; max-height: 40vh; }
    .mvp-layout { flex-direction: column; }
}
