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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: var(--bg-base);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-base);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Subtle starfield-noise on the base */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 700px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(900px 600px at 0% 110%, rgba(236, 72, 153, 0.12), transparent 60%),
        radial-gradient(800px 600px at 50% 50%, rgba(34, 211, 238, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

img, svg {
    max-width: 100%;
    display: block;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-secondary); }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

main {
    position: relative;
    z-index: 1;
}

/* Gradient text helper */
.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Focus ring */
:focus-visible {
    outline: 2px solid var(--grad-c);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(236, 72, 153, 0.35);
    color: #fff;
}

/* Aurora background — fixed behind everything */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aurora__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.55;
    will-change: transform;
}

.aurora__blob--a {
    width: 620px; height: 620px;
    top: -180px; left: -120px;
    background: radial-gradient(circle, var(--grad-a), transparent 70%);
    animation: floatA 22s var(--ease-soft) infinite;
}

.aurora__blob--b {
    width: 520px; height: 520px;
    top: 40%; right: -160px;
    background: radial-gradient(circle, var(--grad-b), transparent 70%);
    animation: floatB 26s var(--ease-soft) infinite;
}

.aurora__blob--c {
    width: 480px; height: 480px;
    bottom: -160px; left: 30%;
    background: radial-gradient(circle, var(--grad-c), transparent 70%);
    animation: floatC 30s var(--ease-soft) infinite;
    opacity: 0.4;
}

.aurora__cursor {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
    filter: blur(60px);
    transform: translate(-50%, -50%);
    left: 50%; top: 50%;
    transition: transform 600ms var(--ease-soft), opacity 600ms;
    opacity: 0;
}

.aurora__cursor.is-active {
    opacity: 1;
}
