:root {
    --bg-main: #09090b;
    --bg-surface: #18181b;
    --bg-surface-hover: #1f1f23;
    --bg-elevated: #27272a;

    --border-color: #27272a;
    --border-subtle: rgba(255, 255, 255, 0.06);

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-purple: #9333ea;
    --accent-purple-hover: #a855f7;
    --accent-glow: rgba(147, 51, 234, 0.25);
    --accent-glow-soft: rgba(147, 51, 234, 0.08);

    --font-sans: 'Inter', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s var(--ease-smooth);
}

a:hover {
    color: var(--text-primary);
}

::selection {
    background: var(--accent-purple);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* ===== ACCESSIBILITY ===== */

*:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* ===== IMAGES ===== */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===== UTILITIES ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}