/* =========================================================
   Base CSS
   Header and footer only.
   No page body, hero, section, card, banner, or content styles.
   ========================================================= */

.site-header,
.site-header *,
.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-header a,
.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-header img,
.site-footer img,
.site-header svg,
.site-footer svg {
    display: block;
    max-width: 100%;
}

.site-header button,
.site-footer button,
.site-footer input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(92, 116, 164, 0.18);
    background:
        linear-gradient(180deg, rgba(4, 8, 18, 0.86), rgba(4, 8, 18, 0.68)),
        rgba(2, 7, 16, 0.72);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16), inset 0 -1px 0 rgba(112, 142, 202, 0.12);
    backdrop-filter: blur(18px);
}

.site-header .container,
.site-footer .container {
    width: min(calc(100% - 40px), 1456px);
    margin: 0 auto;
}

.navbar {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    min-height: 76px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 18px;
}

.brand img,
.footer-intro img {
    width: 204px;
    height: 44px;
    filter: drop-shadow(0 0 16px rgba(93, 116, 255, 0.18));
}

.brand-divider {
    width: 1px;
    height: 32px;
    background: rgba(183, 194, 224, 0.25);
}

.brand small {
    color: #f0f4ff;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
}

.nav-menu a {
    position: relative;
    color: #ffffff;
    padding: 29px 0 28px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.94rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: #b15cff;
}

.nav-menu a.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #9a4dff;
    box-shadow: 0 0 16px rgba(154, 77, 255, 0.8);
}

.site-header .btn {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 22px;
    color: #f6f8ff;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transition: transform 520ms ease;
}

.site-header .btn:hover {
    transform: translateY(-2px);
}

.site-header .btn:hover::before {
    transform: translateX(120%);
}

.site-header .btn span {
    transition: transform 180ms ease;
}

.site-header .btn:hover span {
    transform: translateX(4px);
}

.site-header .btn-primary {
    background: linear-gradient(135deg, #8f43ff 0%, #2ea8ff 100%);
    box-shadow: 0 14px 38px rgba(50, 130, 255, 0.28);
}

.site-header .btn-small {
    min-height: 42px;
    padding: 0 16px;
}

.nav-cta {
    justify-self: end;
    min-width: 148px;
    border-color: rgba(178, 86, 255, 0.82);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(22, 14, 46, 0.72), rgba(8, 10, 30, 0.54)),
        rgba(10, 10, 28, 0.45);
    box-shadow: inset 0 0 18px rgba(158, 77, 255, 0.08), 0 0 24px rgba(154, 77, 255, 0.1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(93, 132, 200, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #f6f8ff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(64, 96, 148, 0.16);
    background:
        radial-gradient(circle at 12% 0%, rgba(48, 132, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff, #ffffff);
    padding: 76px 0 30px;
    font-family: "Inter", system-ui, sans-serif;
}

.footer-aura {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(940px, 92vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #28b8ff, #9a4dff, transparent);
    box-shadow: 0 0 50px rgba(40, 184, 255, 0.4);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(160px, 0.55fr));
    gap: 34px;
}

.footer-intro p {
    max-width: 360px;
    margin-top: 18px;
    color: #101b2b;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 4px;
    color: #101b2b;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-column a,
.footer-bottom a,
.footer-bottom p {
    color: #526176;
    font-weight: 700;
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: #245fe8;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.social-links a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(64, 96, 148, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    color: #526176;
    font-size: 0.75rem;
    font-weight: 900;
}

.newsletter form {
    display: flex;
    gap: 8px;
}

.newsletter input {
    min-width: 0;
    border: 1px solid rgba(64, 96, 148, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #101b2b;
    padding: 12px 14px;
}

.newsletter button {
    border: 1px solid rgba(64, 96, 148, 0.2);
    border-radius: 14px;
    background: #101b2b;
    color: #ffffff;
    padding: 0 14px;
    font-weight: 900;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 56px;
    border-top: 1px solid rgba(64, 96, 148, 0.14);
    padding-top: 22px;
}

.footer-bottom div {
    display: flex;
    gap: 18px;
}

@media (max-width: 1200px) {
    .navbar {
        grid-template-columns: auto 1fr auto;
    }

    .brand small,
    .brand-divider {
        display: none;
    }
}

@media (max-width: 760px) {
    .site-header .container,
    .site-footer .container {
        width: min(calc(100% - 28px), 1456px);
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        min-height: 72px;
    }

    .brand img {
        width: 164px;
    }

    .nav-toggle {
        display: block;
        z-index: 102;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu {
        position: fixed;
        inset: 84px 14px auto;
        display: grid;
        gap: 0;
        transform: translateY(-10px) scale(0.98);
        opacity: 0;
        pointer-events: none;
        border: 1px solid rgba(93, 132, 200, 0.28);
        border-radius: 24px;
        background: rgba(8, 10, 17, 0.94);
        padding: 14px;
        box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
        backdrop-filter: blur(24px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .nav-menu.is-open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a {
        border-radius: 16px;
        padding: 13px 14px;
    }

    .nav-menu a.is-active::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom,
    .newsletter form {
        flex-direction: column;
        align-items: stretch;
    }
}
