html, body {
    margin: 0;
    padding: 0;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: Inter, Arial, sans-serif;
    min-height: 100%;
}

body {
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(45, 125, 255, 0.07), transparent 30%),
        radial-gradient(circle at 82% 24%, rgba(45, 125, 255, 0.10), transparent 26%),
        linear-gradient(180deg, #030711 0%, #050915 100%);
    z-index: -3;
}

.site-bg__noise {
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image: radial-gradient(rgba(255,255,255,0.42) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
    z-index: -2;
}

.site-bg__glow {
    position: absolute;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.12;
    background: var(--site-accent);
    z-index: -1;
}

.site-bg__glow--left {
    top: 80px;
    left: -300px;
    opacity: 0.06;
}

.site-bg__glow--right {
    top: 140px;
    right: -280px;
    opacity: 0.07;
}

/* ===== HEADER ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 0 0;
    transition: all 0.25s ease;
}

.site-header::after {
    content: "";
    display: block;
    margin-top: 12px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,0.06),
        rgba(255,255,255,0)
    );
    opacity: 0.85;
}

.site-header.is-scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 12, 24, 0.50);
    box-shadow: 0 14px 50px rgba(0,0,0,0.24);
}

.site-header.is-scrolled::after {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,0.08),
        rgba(255,255,255,0)
    );
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ===== LOGO ===== */

.site-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 170px;
    z-index: 1;
}

.site-logo::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 170px;
    height: 72px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 35% 50%, rgba(45,125,255,0.16), transparent 58%),
        linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    filter: blur(18px);
    opacity: 0.75;
    z-index: -1;
    pointer-events: none;
}

.site-logo__image {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-logo__text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* ===== NAV ===== */

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(238,243,255,0.78);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.site-nav__link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 6px 20px rgba(0,0,0,0.14);
}

/* ===== ACTIONS ===== */

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.header-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 10px 26px rgba(0,0,0,0.18);
}

.header-btn::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 9px;
    box-shadow: 0 0 10px currentColor;
    opacity: 0.95;
}

.header-btn--ghost {
    background: rgba(255,255,255,0.045);
    color: rgba(238,243,255,0.88);
    border-color: rgba(255,255,255,0.09);
}

.header-btn--ghost::before {
    color: #ffd15c;
    background: #ffd15c;
}

.header-btn--primary {
    background: rgba(42, 66, 112, 0.42);
    color: #eaf2ff;
    border-color: rgba(92, 134, 220, 0.24);
}

.header-btn--primary::before {
    color: #64ffd7;
    background: #64ffd7;
}

.header-btn:hover {
    transform: translateY(-1px);
    opacity: 0.98;
}

.header-btn--ghost:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
}

.header-btn--primary:hover {
    background: rgba(50, 78, 132, 0.54);
    border-color: rgba(114, 158, 248, 0.30);
}

/* ===== MAIN ===== */

.site-main {
    position: relative;
    z-index: 1;
}

/* ===== CURSOR TRAIL ===== */

.cursor-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.cursor-trail__dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(109, 154, 255, 0.85);
    box-shadow: 0 0 14px rgba(109, 154, 255, 0.75);
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

@media (max-width: 1024px) {
    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .site-header__actions {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .site-header__inner {
        padding: 0 16px;
    }

    .site-nav {
        gap: 8px;
        flex-wrap: wrap;
    }

    .site-nav__link {
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .header-btn {
        min-height: 42px;
        padding: 0 14px;
        font-size: 13px;
    }
}