/* ============================================
   RESET & BASE — Neon Aurora Fusion
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-secondary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === Aurora animated background === */
.aurora-bg {
    position: fixed; inset: 0;
    pointer-events: none; overflow: hidden;
    z-index: 0;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: auroraFloat 20s ease-in-out infinite;
}
.aurora-blob:nth-child(1) {
    width: 600px; height: 500px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    top: -15%; left: 10%;
}
.aurora-blob:nth-child(2) {
    width: 500px; height: 400px;
    background: linear-gradient(135deg, var(--magenta), var(--purple));
    top: 40%; right: -10%;
    animation-delay: -7s;
}
.aurora-blob:nth-child(3) {
    width: 400px; height: 400px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    bottom: -15%; left: 30%;
    animation-delay: -14s;
}
@keyframes auroraFloat {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(40px, -30px) scale(1.08) rotate(2deg); }
    66% { transform: translate(-30px, 20px) scale(0.95) rotate(-1deg); }
}

/* Subtle grid overlay */
.grid-overlay {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(0,229,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at 30% 20%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 20%, black 0%, transparent 70%);
}

/* === Typography === */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.3px;
}
h1 { font-size: 1.75rem; letter-spacing: -0.5px; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1rem; font-weight: 600; }
h4 { font-size: 0.9rem; font-weight: 600; }

p { line-height: 1.6; }

a { color: var(--cyan); text-decoration: none; transition: opacity var(--duration-fast) ease; }
a:hover { opacity: 0.85; }

code, pre { font-family: var(--font-mono); font-size: 0.85rem; }

.num, .stat-value, td { font-variant-numeric: tabular-nums; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* Selection */
::selection { background: rgba(0,229,255,0.2); color: var(--text-primary); }

/* Focus */
:focus-visible { outline: 2px solid rgba(0,229,255,0.4); outline-offset: 2px; }

/* Utility */
.text-cyan { color: var(--cyan); }
.text-emerald { color: var(--emerald); }
.text-magenta { color: var(--magenta); }
.text-amber { color: var(--amber); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }
.font-heading { font-family: var(--font-heading); }

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