:root {
    --bg: #041B34;
    --bg-deep: #06182E;
    --surface: #082440;
    --surface-soft: #0B2E46;
    --surface-line: rgba(198, 107, 255, 0.28);
    --text: #F4F7FB;
    --muted: #B9C7D6;
    --purple: #A24BFF;
    --violet: #C66BFF;
    --magenta: #FF5BCF;
    --gold: #F7C86B;
    --shadow: rgba(0, 0, 0, 0.32);
    font-family: Inter, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: #FFD789;
}

.visually-hidden,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    z-index: 30;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    color: #041B34;
    background: #FFFFFF;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(4, 27, 52, 0.92);
    backdrop-filter: blur(16px);
}

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

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 28px;
}

.brand-link,
.footer-brand {
    display: inline-flex;
    align-items: center;
}

.brand-link img,
.footer-brand img {
    width: 90px;
    max-height: none;
    height: auto;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link,
.dropdown-menu a,
.footer-links a {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nav-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.is-active {
    color: #FFFFFF;
    background: rgba(162, 75, 255, 0.18);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    display: none;
    min-width: 164px;
    padding: 8px;
    border: 1px solid var(--surface-line);
    border-radius: 8px;
    background: #06182E;
    box-shadow: 0 18px 36px var(--shadow);
}

.dropdown-menu::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 8px;
    content: "";
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: rgba(255, 91, 207, 0.16);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--violet), var(--purple) 48%, var(--magenta));
    box-shadow: 0 10px 28px rgba(162, 75, 255, 0.28);
}

.button-primary:hover,
.button-primary:focus {
    box-shadow: 0 12px 34px rgba(255, 91, 207, 0.34);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span:not(.visually-hidden) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #FFFFFF;
}

.hero {
    position: relative;
    min-height: clamp(430px, 68vh, 560px);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(4, 27, 52, 0.96) 0%, rgba(4, 27, 52, 0.74) 42%, rgba(4, 27, 52, 0.24) 100%),
        linear-gradient(180deg, rgba(4, 27, 52, 0.1) 0%, rgba(4, 27, 52, 0.92) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(72px, 12vh, 118px) 0 56px;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Impact, "Arial Narrow", Inter, sans-serif;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 760px;
    font-size: clamp(43px, 8vw, 67px);
}

.hero p {
    max-width: 640px;
    margin: 20px 0 0;
    color: #E8EEF6;
    font-size: 18px;
}

.hero-cta {
    margin-top: 28px;
}

.content-shell {
    width: min(880px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 76px;
}

.content-shell h2 {
    margin-top: 52px;
    font-size: clamp(33px, 5.6vw, 48px);
}

.content-shell h2:first-child,
.breadcrumbs + h2,
.table-of-contents + h2 {
    margin-top: 0;
}

.content-shell h3 {
    margin-top: 30px;
    font-size: clamp(25px, 4.4vw, 34px);
}

.content-shell p,
.content-shell li,
.content-shell td,
.content-shell th {
    font-size: 16px;
}

.content-shell p,
.content-shell ul,
.content-shell ol,
.content-shell figure,
.content-shell table,
.faq-cta {
    margin-top: 16px;
}

.article-image {
    margin-right: 0;
    margin-left: 0;
}

.article-image img {
    display: block;
    width: 100%;
    height: auto;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.article-content img {
    max-width: 100%;
    height: auto;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.faq-cta {
    display: flex;
    justify-content: center;
    padding: 24px 0 8px;
}

.content-shell p,
.content-shell li {
    color: var(--muted);
}

.content-shell ul,
.content-shell ol {
    padding-left: 22px;
}

.content-shell table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.content-shell th,
.content-shell td {
    min-width: 180px;
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    text-align: left;
}

.content-shell th {
    color: #FFFFFF;
    background: #123A55;
}

.breadcrumbs,
.table-of-contents {
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-of-contents {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.table-of-contents strong {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    text-transform: uppercase;
}

.table-of-contents ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #06182E;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 32px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
}

.footer-disclaimer {
    max-width: 420px;
    margin: 0 0 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .header-inner,
    .footer-inner,
    .hero-content,
    .content-shell {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 68px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .site-navigation,
    .header-actions {
        display: none;
        width: 100%;
    }

    .site-navigation.is-open,
    .header-actions.is-open {
        display: flex;
    }

    .site-navigation {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }

    .nav-link {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: block;
        margin: 0 0 6px 14px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .button {
        flex: 1 1 0;
    }

    .hero {
        min-height: 390px;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(4, 27, 52, 0.72) 0%, rgba(4, 27, 52, 0.94) 100%),
            linear-gradient(90deg, rgba(4, 27, 52, 0.84), rgba(4, 27, 52, 0.52));
    }

    .hero-content {
        padding: 62px 0 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .content-shell {
        padding: 40px 0 58px;
    }

    .content-shell p,
    .content-shell li,
    .content-shell td,
    .content-shell th {
        font-size: 15px;
    }

    .content-shell table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-disclaimer {
        max-width: none;
        margin-left: 0;
    }
}
