/* ======================================================
   COMPPHYS DESIGN SYSTEM
   Premium dark-mode UI with glassmorphism
   ====================================================== */

/* --- Design Tokens --- */
:root {
    /* Backgrounds */
    --bg-base: #080c14;
    --bg-surface: #0f1520;
    --bg-elevated: #151d2e;
    --bg-hover: #1c2840;
    --bg-code: #1a1e2e;

    /* Accents */
    --accent-purple: #a78bfa;
    --accent-cyan: #22d3ee;
    --accent-blue: #60a5fa;
    --accent-green: #34d399;
    --accent-orange: #fbbf24;
    --accent-pink: #f472b6;
    --accent-red: #f87171;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #ec4899);
    --gradient-cool: linear-gradient(135deg, #3b82f6, #10b981);
    --gradient-sunset: linear-gradient(135deg, #f87171, #fbbf24);
    --gradient-ocean: linear-gradient(135deg, #22d3ee, #8b5cf6);

    /* Text */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-bright: #f8fafc;

    /* Glass */
    --glass-bg: rgba(15, 21, 32, 0.75);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 255, 255, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Sidebar */
    --sidebar-width: 290px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}
h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; font-weight: 600; line-height: 1.3; color: var(--text-bright); }
a { color: var(--accent-cyan); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent-purple); }
code, pre { font-family: 'JetBrains Mono', monospace; }
img { max-width: 100%; }

/* --- Utility Classes --- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ======================================================
   LAYOUT
   ====================================================== */
.app-container { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: rgba(8, 12, 20, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    border-radius: 0;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 2px; }

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1rem;
}
.brand-icon {
    font-size: 1.8rem;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.brand h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.sidebar-search { padding: 0 1rem 0.75rem; }
.sidebar-search input {
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}
.sidebar-search input:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.sidebar-search input::placeholder { color: var(--text-muted); }

#nav-menu { padding: 0 0.75rem 2rem; flex: 1; }
.nav-section {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 1.25rem 0.75rem 0.5rem;
    font-weight: 700;
}
.nav-item {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border-left-color: var(--accent-purple);
    font-weight: 600;
}
.nav-item.hidden { display: none; }

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem; left: 1rem;
    z-index: 200;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 3rem 4rem;
    max-width: 1000px;
    animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.2); } 50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ======================================================
   HOME PAGE
   ====================================================== */
.home-hero {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
}
.home-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    top: -250px; right: -200px;
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}
.home-hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06), transparent 70%);
    bottom: -150px; left: -100px;
    pointer-events: none;
}
.home-hero h1 { font-size: 3.2rem; margin-bottom: 1rem; font-weight: 800; }
.home-hero .subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 550px; margin: 0 auto 1.5rem; }
.home-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
}
.home-stat { text-align: center; }
.home-stat .stat-number { font-size: 2rem; font-weight: 700; font-family: 'Outfit', sans-serif; }
.home-stat .stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.unit-section { margin-top: 3rem; }
.unit-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.unit-badge {
    display: inline-flex;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.unit-badge.u1 { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.unit-badge.u2 { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.topic-card {
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.topic-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.topic-card:hover { transform: translateY(-4px); border-color: var(--glass-border-hover); }
.topic-card:hover::before { opacity: 1; }
.topic-card .card-emoji { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.topic-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.topic-card p { font-size: 0.82rem; color: var(--text-secondary); }

/* Card gradient top bars */
.topic-card[data-gradient="purple"]::before { background: var(--gradient-primary); }
.topic-card[data-gradient="warm"]::before { background: var(--gradient-warm); }
.topic-card[data-gradient="cool"]::before { background: var(--gradient-cool); }
.topic-card[data-gradient="sunset"]::before { background: var(--gradient-sunset); }
.topic-card[data-gradient="ocean"]::before { background: var(--gradient-ocean); }

/* ======================================================
   TOPIC CONTENT PAGES
   ====================================================== */
.topic-header { margin-bottom: 2.5rem; }
.topic-header h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.topic-header .topic-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 700px; }
.topic-header .topic-breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.topic-header .topic-breadcrumb span { color: var(--accent-purple); }

/* Theory Sections */
.theory-section { margin-bottom: 2rem; }
.theory-section h2 { font-size: 1.6rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--glass-border); }
.theory-section h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; color: var(--accent-cyan); }
.theory-section p { margin-bottom: 1rem; color: var(--text-primary); }
.theory-section ul, .theory-section ol { margin: 0.75rem 0 1rem 1.5rem; }
.theory-section li { margin-bottom: 0.4rem; color: var(--text-primary); }
.theory-section li::marker { color: var(--accent-purple); }
.theory-section strong { color: var(--text-bright); }

/* Info / Concept Boxes */
.concept-box, .info-box, .warning-box, .tip-box, .example-box {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.25rem 0;
    border-left: 4px solid;
}
.concept-box { background: rgba(139, 92, 246, 0.08); border-color: var(--accent-purple); }
.info-box { background: rgba(96, 165, 250, 0.08); border-color: var(--accent-blue); }
.warning-box { background: rgba(251, 191, 36, 0.08); border-color: var(--accent-orange); }
.tip-box { background: rgba(52, 211, 153, 0.08); border-color: var(--accent-green); }
.example-box { background: rgba(244, 114, 182, 0.08); border-color: var(--accent-pink); }
.concept-box h4 { color: var(--accent-purple); margin-bottom: 0.5rem; }
.info-box h4 { color: var(--accent-blue); margin-bottom: 0.5rem; }
.warning-box h4 { color: var(--accent-orange); margin-bottom: 0.5rem; }
.tip-box h4 { color: var(--accent-green); margin-bottom: 0.5rem; }
.example-box h4 { color: var(--accent-pink); margin-bottom: 0.5rem; }

/* Definition */
.definition {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}
.definition dt { font-weight: 700; color: var(--accent-cyan); min-width: 120px; font-size: 0.9rem; }
.definition dd { color: var(--text-primary); }

/* Math Blocks */
.math-display {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1.15rem;
    overflow-x: auto;
}

/* ======================================================
   CODE BLOCKS
   ====================================================== */
.code-wrapper {
    margin: 1.25rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.code-header .lang-badge {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
}
.code-wrapper pre {
    margin: 0;
    padding: 1.25rem;
    background: var(--bg-code) !important;
    overflow-x: auto;
}
.code-wrapper pre code {
    font-size: 0.88rem;
    line-height: 1.65;
    background: none !important;
}

/* Output Box */
.output-box {
    margin: -0.25rem 0 1.25rem;
    padding: 1rem 1.25rem;
    background: #0d1117;
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-green);
}
.output-box::before {
    content: '▶ Output';
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ======================================================
   INTERACTIVE ELEMENTS
   ====================================================== */
.interactive-area {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
}
.interactive-area h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
}
.interactive-area h3::before {
    content: '⚡';
    font-size: 1.1rem;
}

/* Controls */
.controls-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: end;
}
.control-field { flex: 1; min-width: 150px; }
.control-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.control-field input[type="text"],
.control-field input[type="number"],
.control-field select,
.control-field textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}
.control-field input:focus,
.control-field textarea:focus,
.control-field select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
.control-field textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin: 0.5rem 0;
}
input[type="range"]::-webkit-slider-track {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
    transition: var(--transition-fast);
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
}

/* Buttons */
.btn {
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); transform: translateY(-2px); }
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--glass-border-hover); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Result/Output display */
.result-display {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    min-height: 40px;
    color: var(--accent-green);
    white-space: pre-wrap;
}

/* ======================================================
   TABLES
   ====================================================== */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.88rem;
}
.styled-table thead th {
    background: var(--bg-elevated);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent-purple);
    border-bottom: 2px solid var(--glass-border);
    white-space: nowrap;
}
.styled-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: top;
}
.styled-table tbody tr { transition: var(--transition-fast); }
.styled-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.styled-table code {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--accent-cyan);
}

/* ======================================================
   TABS
   ====================================================== */
.tabs {
    margin: 1.5rem 0;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.tab-buttons {
    display: flex;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--glass-border);
    overflow-x: auto;
}
.tab-btn {
    padding: 0.7rem 1.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.tab-btn.active { color: var(--accent-purple); border-bottom-color: var(--accent-purple); background: rgba(139,92,246,0.05); }
.tab-content { display: none; padding: 1.25rem; }
.tab-content.active { display: block; animation: fadeIn 0.25s ease; }

/* ======================================================
   TIMELINE
   ====================================================== */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin: 1.5rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0.9rem;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    opacity: 0.4;
}
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.timeline-item:hover { border-color: var(--accent-purple); transform: translateX(4px); }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.1rem; top: 1.25rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent-purple);
    box-shadow: 0 0 8px rgba(139,92,246,0.5);
    border: 2px solid var(--bg-base);
}
.timeline-item .timeline-date {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.timeline-item h4 { font-size: 1rem; margin: 0.25rem 0; }
.timeline-item p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

/* ======================================================
   DIAGRAM / VISUALIZATION
   ====================================================== */
.diagram-container {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    text-align: center;
    overflow-x: auto;
}
.memory-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0.4rem;
    transition: var(--transition);
}
.memory-cell .cell-box {
    width: 50px; height: 50px;
    border: 2px solid var(--accent-purple);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(139,92,246,0.1);
    transition: var(--transition);
}
.memory-cell:hover .cell-box {
    background: rgba(139,92,246,0.25);
    box-shadow: 0 0 12px rgba(139,92,246,0.3);
    transform: scale(1.05);
}
.memory-cell .cell-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Flowchart nodes */
.flow-node {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    margin: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}
.flow-node.start { background: rgba(52,211,153,0.15); border: 2px solid var(--accent-green); color: var(--accent-green); border-radius: 50px; }
.flow-node.process { background: rgba(96,165,250,0.15); border: 2px solid var(--accent-blue); color: var(--accent-blue); }
.flow-node.decision { background: rgba(251,191,36,0.15); border: 2px solid var(--accent-orange); color: var(--accent-orange); transform: rotate(0deg); }
.flow-node.end { background: rgba(248,113,113,0.15); border: 2px solid var(--accent-red); color: var(--accent-red); border-radius: 50px; }
.flow-arrow { color: var(--text-muted); font-size: 1.2rem; margin: 0 0.5rem; }

/* Canvas for visualizations */
.vis-canvas {
    width: 100%;
    max-width: 800px;
    height: 300px;
    background: #0b0f18;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
    .main-content { padding: 2rem; }
    .home-hero h1 { font-size: 2.5rem; }
    .controls-row { flex-direction: column; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: block; }
    .main-content { margin-left: 0; padding: 1.5rem; padding-top: 4rem; }
    .home-hero h1 { font-size: 2rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .home-stats { flex-direction: column; gap: 1rem; }
    .interactive-area { padding: 1rem; }
}
