:root {
    /* Light Theme (Default) */
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --row: #f1f5f9;
    --border: #e2e8f0;
    --accent: #ed0096; /* Pink */
    --accent-alt: #ff8c00; /* Orange */
    --primary: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --glass-border: rgba(15, 23, 42, 0.1);
}

/* Dark Theme Overrides */
body.dark-theme {
    --bg: #0a0c1a;
    --card-bg: #0f1420;
    --row: #11121a;
    --border: #1b2130;
    --accent: #ed0096;
    --accent-alt: #ff8c00;
    --primary: #ffffff;
    --text: #ffffff;
    --muted: #bfc4cc;
    --glass-border: #1b2130;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    /* Professional Blueprint Pattern - Triple Density */
    background-image: 
        radial-gradient(var(--border) 1px, transparent 0);
    background-size: 13.3px 13.3px;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

header {
    background: var(--bg);
    color: var(--primary);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: -1px;
    font-weight: 800;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.nav-bar {
    background: var(--card-bg);
    padding: 15px 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.nav-bar a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
    opacity: 0.8;
}

.nav-bar a:hover {
    color: var(--accent);
    opacity: 1;
}

.theme-toggle {
    background: var(--row);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--border);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card h2, .card h3 {
    color: var(--primary);
    margin-top: 0;
    font-weight: 700;
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.footer {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    background: var(--bg);
    border-top: 1px solid var(--border);
}

/* Button Suite - High Fidelity */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary { background: #3b82f6; color: white; }
.btn-dark { background: #0f172a; color: white; }
.btn-danger { background: #ef4444; color: white; }
.btn-success { background: #10b981; color: white; }
.btn-warning { background: #f59e0b; color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--row); }

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Remove crisis mode as it's replaced by dark-theme */
