/* Theme Variables */
:root, [data-theme="dark"] {
    --bg: #0a0e1a;
    --bg-surface: #0f131f;
    --bg-surface-low: #171b28;
    --bg-surface-high: #262a37;
    --bg-surface-highest: #313442;
    --text-primary: #e4e4e7;
    --text-body: #a1a1aa;
    --text-muted: #71717a;
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --accent-container: #38bdf8;
    --accent-on-container: #001e2c;
    --tertiary: #ffc176;
    --tier-cool: #c084fc;
    --border: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(23, 27, 40, 0.6);
}

[data-theme="light"] {
    --bg: #fafafa;
    --bg-surface: #f0f2f5;
    --bg-surface-low: #ffffff;
    --bg-surface-high: #e8eaed;
    --bg-surface-highest: #d0d3d8;
    --text-primary: #18181b;
    --text-body: #52525b;
    --text-muted: #a1a1aa;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-container: #0284c7;
    --accent-on-container: #ffffff;
    --tertiary: #b87333;
    --tier-cool: #9333ea;
    --border: rgba(0, 0, 0, 0.06);
    --border-subtle: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(0, 0, 0, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.6);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Typography */
h1, .wordmark {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2, .section-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
}

h3, .section-heading {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* Gradient Mesh Background */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Responsive Typography */
@media (min-width: 768px) {
    h1, .wordmark {
        font-size: 4.5rem;
    }

    h3, .section-heading {
        font-size: 3rem;
    }
}
