/* --- 2.4 Body Base --- */

body {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(14, 165, 233, 0.18), transparent 70%),
        radial-gradient(ellipse 70% 45% at 50% 50%, rgba(255, 255, 255, 0.04), transparent 65%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(14, 165, 233, 0.12), transparent 60%),
        linear-gradient(180deg, #020617 0%, #0b1120 20%, #0f172a 45%, #0b1120 75%, #020617 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- 2.5 Typography Scale --- */

.section-tag {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--brand-primary);
    opacity: 0.65;
    margin-bottom: var(--space-xs);
}

.hero-brand-text {
    font-family: 'Road Rage', cursive;
    font-size: clamp(2.2rem, 8vw, 6.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.5), 0 0 15px rgba(56, 189, 248, 0.25);
    transition: text-shadow 0.3s ease;
    display: inline-block;
    line-height: 1;
}

.hero-brand:hover .hero-brand-text {
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.65), 0 0 10px rgba(56, 189, 248, 0.45);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    max-width: 600px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

/* --- Base Transitions --- */
a,
button {
    transition: color 250ms ease-in-out, text-shadow 250ms ease-in-out, background-color 250ms ease-in-out, transform 250ms ease-in-out, box-shadow 250ms ease-in-out;
}

/* --- 2.8 Card Surface Styling --- */

article {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-md);
}

/* --- Section Spacing & Fluid Container --- */

section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

/* Global Navbar Offset Handling */
section[id] {
    scroll-margin-top: 5rem;
}

main {
    padding-top: 5rem;
}

footer {
    padding: var(--space-md) var(--space-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
}