:root {
    --bg: #041b34;
    --bg-2: #061f3a;
    --surface: #082440;
    --surface-2: #0b2e46;
    --surface-3: #123a55;
    --purple: #a24bff;
    --violet: #c66bff;
    --magenta: #ff5bcf;
    --gold: #f7c86b;
    --text: #ffffff;
    --text-soft: #d8e2ee;
    --text-muted: #aebccb;
    --border: rgba(255, 255, 255, .14);
    --shadow: 0 22px 60px rgba(0, 0, 0, .32);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--bg), var(--bg-2) 42%, #05192e);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
}

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

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

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

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

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

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

.nav-item {
    position: relative;
}

.nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 6px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.nav-button {
    cursor: pointer;
    border: 0;
    background: transparent;
}

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

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(6, 24, 46, .98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
}

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

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

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

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

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

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

.button-primary {
    background: linear-gradient(180deg, var(--violet), var(--purple) 55%, var(--magenta));
    color: var(--text);
    box-shadow: 0 14px 34px rgba(162, 75, 255, .32);
}

.button-secondary {
    border: 1px solid rgba(247, 200, 107, .5);
    color: var(--gold);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 10px 28px rgba(247, 200, 107, .14);
}

.article-cta {
    margin: 40px 0 10px;
}

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

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

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

.hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 27, 52, .92), rgba(4, 27, 52, .62) 48%, rgba(4, 27, 52, .24)),
        linear-gradient(180deg, rgba(4, 27, 52, .08), rgba(4, 27, 52, .94));
}

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

.hero h1,
.article-content h2,
.article-content h3 {
    margin: 0;
    font-family: "Arial Narrow", Oswald, Impact, sans-serif;
    font-weight: 800;
    line-height: .98;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 860px;
    font-size: clamp(42px, 7vw, 67px);
    text-wrap: balance;
}

.hero p {
    max-width: 660px;
    margin: 22px 0 0;
    color: var(--text-soft);
    font-size: clamp(15px, 2vw, 18px);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.breadcrumbs a {
    color: var(--gold);
    text-decoration: none;
}

.content-wrap {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 56px;
    padding: 54px 0 70px;
}

.table-of-contents {
    align-self: start;
    position: sticky;
    top: 98px;
    padding: 18px;
    border-left: 3px solid var(--magenta);
    background: rgba(8, 36, 64, .62);
}

.table-of-contents strong {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 14px;
}

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

.table-of-contents a {
    color: var(--text-soft);
    font-size: 14px;
    text-decoration: none;
}

.article-content {
    max-width: 820px;
}

.article-content h2 {
    margin: 42px 0 18px;
    color: var(--text);
    font-size: clamp(32px, 5vw, 48px);
}

.article-content h3 {
    margin: 28px 0 10px;
    color: var(--gold);
    font-size: clamp(24px, 4vw, 34px);
}

.article-content p,
.article-content li,
.article-content td,
.article-content th {
    color: var(--text-soft);
    font-size: 16px;
}

.article-content p {
    margin: 0 0 16px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 22px 20px;
    padding: 0;
}

.article-content li + li {
    margin-top: 6px;
}

.article-content img {
    width: 100%;
    height: auto;
    margin: 26px 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(8, 36, 64, .7);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0 26px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: min(640px, 100vw - 32px);
    border-collapse: collapse;
    background: rgba(11, 46, 70, .72);
}

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

th {
    color: var(--text);
    background: rgba(162, 75, 255, .18);
}

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

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px 42px;
    align-items: center;
    padding: 34px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: flex-end;
}

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

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--gold);
    outline: none;
}

.disclaimer {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

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

    .menu-toggle {
        display: block;
    }

    .site-navigation {
        order: 5;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding: 12px 0;
    }

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

    .nav-link {
        width: 100%;
        justify-content: space-between;
    }

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

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

    .content-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .table-of-contents {
        position: static;
    }
}

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

    .header-actions {
        width: 100%;
    }

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

    .hero {
        min-height: 420px;
    }

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

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

    th,
    td {
        padding: 12px 14px;
        white-space: nowrap;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}
