@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

/*
 * 2. CSS Variables (Theming & Tokens)
 * Defaulting to Lite Mode per user request
 */

:root {
    /* Lite Theme (Default now) */
    --deep-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #020408;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);

    /* Core Brand Colors (Shared across themes) */
    --primary-blue: #0052FF;
    --primary-hover: #0040cc;
    --accent-glow: rgba(0, 82, 255, 0.4);

    /* Typography System */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: monospace;

    /* Spacing & Layout */
    --section-padding: clamp(60px, 8vw, 120px);
    --container-max: 1280px;
    --container-sm: 800px;

    /* Animation Tokens */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme (Now the true default) */
[data-theme='light'] {
    --deep-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #020408;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
}

/* Dark Theme Overlay */
[data-theme='dark'] {
    --deep-bg: #020408;
    --card-bg: #0a0d14;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* === Global Resets === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--deep-bg);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* === Responsive Typography (Clamp) === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: clamp(16px, 2vw, 24px);
}

h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
}

h5 {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 600;
}

p {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--text-muted);
    margin-bottom: clamp(20px, 3vw, 32px);
    max-width: 65ch;
    /* Good readability length */
}

small {
    font-size: clamp(0.85rem, 1vw, 1rem);
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}