:root {
    --bg: #041b34;
    --bg-deep: #06182e;
    --surface: #082440;
    --surface-strong: #0b2e46;
    --surface-soft: #123a55;
    --text: #f4f7fb;
    --muted: #b9c7d6;
    --muted-strong: #d8e2ee;
    --purple: #a24bff;
    --violet: #c66bff;
    --magenta: #ff5bcf;
    --gold: #f7c86b;
    --line: rgba(216, 226, 238, .18);
    --shadow: 0 24px 70px rgba(0, 0, 0, .34);
    --display: "Arial Narrow", "Oswald", "Impact", sans-serif;
    --body: Inter, Roboto, Montserrat, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(162, 75, 255, .12), transparent 420px),
        linear-gradient(135deg, #041b34 0%, #061f3a 48%, #082440 100%);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

.skip-link:focus {
    z-index: 20;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    background: var(--gold);
    color: #041b34;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(4, 27, 52, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.primary-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted-strong);
    font: 700 14px/1 var(--body);
    text-decoration: none;
    cursor: pointer;
}

.nav-item.is-active > .nav-link,
.nav-link:hover,
.nav-link:focus-visible {
    color: #ffffff;
    background: rgba(162, 75, 255, .18);
    outline: none;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #06182e;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease;
}

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

.dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--muted-strong);
    font-size: 14px;
    text-decoration: none;
}

.dropdown a:hover,
.dropdown a:focus-visible {
    background: rgba(255, 91, 207, .14);
    color: #ffffff;
    outline: none;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

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

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

.button-primary {
    background: linear-gradient(135deg, var(--purple), var(--magenta));
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(162, 75, 255, .28);
}

.button-primary:hover,
.button-primary:focus-visible {
    box-shadow: 0 18px 44px rgba(255, 91, 207, .28);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, .24);
    color: #ffffff;
    background: rgba(255, 255, 255, .06);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.menu-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
}

.hero {
    position: relative;
    min-height: clamp(430px, 68vh, 560px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(4, 27, 52, .94) 0%, rgba(4, 27, 52, .73) 42%, rgba(4, 27, 52, .32) 100%),
        linear-gradient(0deg, rgba(4, 27, 52, .92) 0%, rgba(4, 27, 52, .08) 50%);
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 54px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted-strong);
    font-size: 14px;
}

.breadcrumbs a {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, .38);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 900;
    line-height: .98;
    text-transform: uppercase;
    letter-spacing: 0;
}

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

h2 {
    margin-top: 0;
    font-size: clamp(32px, 4vw, 48px);
}

h3 {
    margin-top: 34px;
    font-size: clamp(25px, 3vw, 34px);
}

.hero p {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--muted-strong);
    font-size: 16px;
}

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

.faq-cta {
    margin: 22px 0 42px;
}

.content-band {
    padding: clamp(42px, 7vw, 82px) 0;
}

.article-content {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
}

.table-of-contents {
    margin-bottom: 42px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 36, 64, .72);
}

.table-of-contents strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.table-of-contents ul {
    margin: 0;
}

.article-section {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.article-section:first-of-type {
    border-top: 0;
}

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

.article-content p {
    color: var(--muted-strong);
}

.article-content img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    padding: 8px;
    border: 1px solid rgba(216, 226, 238, .22);
    border-radius: 8px;
    background: rgba(8, 36, 64, .58);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.article-content ul,
.article-content ol {
    display: grid;
    gap: 10px;
    padding-left: 22px;
    color: var(--muted-strong);
}

.table-wrap {
    overflow-x: auto;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    display: block;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border-collapse: collapse;
    background: rgba(6, 24, 46, .76);
}

th,
td {
    min-width: 140px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: #ffffff;
    background: rgba(162, 75, 255, .18);
}

td {
    color: var(--muted-strong);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #06182e;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    gap: 22px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.footer-nav a {
    color: var(--muted-strong);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: #ffffff;
}

.footer-disclaimer {
    max-width: 860px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 920px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 14px;
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-left: 0;
        padding: 10px 0 4px;
        border-top: 1px solid var(--line);
    }

    .primary-nav.is-open {
        display: grid;
        gap: 6px;
    }

    .nav-link,
    .nav-link-button {
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: grid;
        margin-top: 0;
        margin: 0 0 8px 12px;
        min-width: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, .04);
    }

    .dropdown::before {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .header-actions {
        width: 100%;
        order: 4;
    }

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

    .hero {
        min-height: 390px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(4, 27, 52, .94), rgba(4, 27, 52, .7)),
            linear-gradient(0deg, rgba(4, 27, 52, .94), rgba(4, 27, 52, .18));
    }

    .hero-content {
        padding: 50px 0 38px;
    }

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

    .article-content img {
        margin: 22px 0;
        padding: 6px;
    }

    .article-content table {
        white-space: nowrap;
    }

    .article-content th,
    .article-content td {
        min-width: 132px;
    }

    .content-band {
        padding: 34px 0 54px;
    }
}
