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

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #0a66ff;
    --accent: #3b82f6;
    --secondary: #eff6ff;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(10, 102, 255, 0.10);
    --radius: 22px;
    --dark: #0f172a;
    --muted: #64748b;
    --border: #dbeafe;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.10), transparent 42%),
        radial-gradient(circle at 12% 28%, rgba(10, 102, 255, 0.06), transparent 38%),
        #f8fbff;
    color: var(--dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: -20vh -20vw;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 15%, rgba(59, 130, 246, .12) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 25%, rgba(59, 130, 246, .10) 0 2px, transparent 3px),
        radial-gradient(circle at 35% 70%, rgba(10, 102, 255, .08) 0 2px, transparent 3px),
        radial-gradient(circle at 85% 75%, rgba(10, 102, 255, .06) 0 2px, transparent 3px);
    opacity: .9;
}

main section {
    max-width: 1200px;
    margin: auto;
    padding: clamp(4rem, 8vw, 6rem) 1.25rem;
}

main section h2 {
    position: relative;
    margin-bottom: 3rem;
    color: var(--primary);
    font-size: 2.5rem;
    text-align: center;
}

main section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 10px;
    background: var(--accent);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(15, 23, 42, .06);
    transition: transform .28s ease;
    will-change: transform;
}

header.hide {
    transform: translateY(-120%);
}

nav {
    max-width: 1200px;
    margin: auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    width: auto;
    height: 80px;
    display: block;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    list-style: none;
}

nav a {
    position: relative;
    color: var(--dark);
    font-weight: 700;
    text-decoration: none;
    transition: color .25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .25s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
    width: 100%;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    nav {
        justify-content: center;
        padding: .9rem 1rem;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    nav ul {
        width: 100%;
        gap: 1rem;
    }

    main section h2 {
        font-size: 2rem;
    }
}
