/* ════════════════════════════════════════════
   INSIGHT — Global Variables & Base Reset
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── LIGHT MODE (default) ── */
:root {
    /* Core palette */
    --primary:       #0f0f1a;
    --primary-light: #f3f4f6;
    --accent:        #4f46e5;
    --accent-light:  #6366f1;

    /* Pipeline stage colours */
    --color-capture: #0ea5e9;  /* Teal   — Stage 1 */
    --color-sim:     #4f46e5;  /* Indigo — Stage 2 */
    --color-ai:      #10b981;  /* Green  — Stage 3 */

    /* Convenience aliases */
    --teal:  #0ea5e9;
    --green: #10b981;

    /* Typography */
    --text:       #0f0f1a;
    --text-dark:  #0f0f1a;
    --text-light: #4b5563;

    /* Surfaces */
    --bg:        #ffffff;
    --bg-subtle: #f9fafb;
    --border:    #e5e7eb;

    /* Card surface (separate so dark mode can override) */
    --card-bg:   #ffffff;

    /* Nav */
    --nav-bg:    rgba(255,255,255,0.98);
    --nav-border: rgba(229,231,235,1);
}

/* ── DARK MODE ── */
[data-theme="dark"] {
    --primary:       #f1f5f9;
    --primary-light: #1e1e30;

    --text:       #f1f5f9;
    --text-dark:  #f1f5f9;
    --text-light: #94a3b8;

    --bg:        #0d0d1a;
    --bg-subtle: #13131f;
    --border:    #2a2a40;

    --card-bg:   #181828;

    --nav-bg:    rgba(13,13,26,0.97);
    --nav-border: rgba(42,42,64,1);
}

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

/* Smooth colour transitions when theme switches */
body, nav, footer, section, .card, .project-card, .team-card,
.pub-card, .app-card, .flow-card, .filter-tag, .pipeline-pill,
.pipe-step, input, select, textarea {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; }
html { scroll-behavior: smooth; }
