:root {
    --bg: #041b34;
    --bg-deep: #06182e;
    --bg-section: #082440;
    --bg-raised: #0b2e46;
    --surface: #123a55;
    --text: #f4f7fb;
    --muted: #b9c7d6;
    --soft: #d8e2ee;
    --purple: #a24bff;
    --violet: #c66bff;
    --magenta: #ff5bcf;
    --gold: #f7c86b;
    --line: rgba(255, 255, 255, .16);
    --shadow: 0 24px 70px rgba(0, 0, 0, .32);
    --font-display: "Arial Narrow", "Oswald", "Inter", sans-serif;
    --font-body: Inter, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 91, 207, .18), transparent 30%),
        radial-gradient(circle at 78% 0%, rgba(162, 75, 255, .22), transparent 28%),
        linear-gradient(180deg, var(--bg), var(--bg-section) 48%, var(--bg));
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

.skip-link:focus {
    z-index: 100;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    border-radius: 6px;
    background: var(--gold);
    color: #06182e;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: rgba(4, 27, 52, .9);
    backdrop-filter: blur(18px);
}

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

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

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

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

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

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.is-active,
.has-dropdown.is-active > .nav-link,
.footer-nav a:hover,
.footer-nav a:focus {
    color: #ffffff;
}

.has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 172px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 24, 46, .98);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

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

.nav-dropdown a:hover,
.nav-dropdown a:focus {
    background: rgba(198, 107, 255, .16);
}

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

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

.button-primary {
    background: linear-gradient(180deg, var(--magenta), var(--purple));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(162, 75, 255, .34);
}

.button-secondary {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .06);
    color: #ffffff;
}

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

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

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

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

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

.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, .95), rgba(4, 27, 52, .62) 44%, rgba(4, 27, 52, .28)),
        linear-gradient(0deg, rgba(4, 27, 52, .94), rgba(4, 27, 52, .18) 44%, rgba(4, 27, 52, .5)),
        radial-gradient(circle at 70% 24%, rgba(255, 91, 207, .24), transparent 34%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 92px 0 54px;
}

.hero h1,
.article-body h2,
.article-body h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 900;
    line-height: .95;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(44px, 8vw, 67px);
}

.hero p {
    max-width: 640px;
    margin: 22px 0 0;
    color: var(--soft);
    font-size: 16px;
}

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

.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li,
.breadcrumbs a,
.breadcrumbs span {
    color: var(--soft);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.breadcrumbs li:not(:last-child)::after {
    margin-left: 8px;
    color: rgba(255, 255, 255, .42);
    content: "/";
}

.content-section {
    padding: 58px 0 72px;
    background:
        linear-gradient(180deg, rgba(8, 36, 64, .86), rgba(4, 27, 52, .92)),
        linear-gradient(90deg, transparent, rgba(247, 200, 107, .05), transparent);
}

.content-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 54px;
    align-items: start;
}

.table-of-contents {
    position: sticky;
    top: 98px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.table-of-contents p {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

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

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

.table-of-contents a:hover,
.table-of-contents a:focus {
    color: #ffffff;
}

.article-body {
    max-width: 780px;
}

.article-body h2 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: clamp(34px, 6vw, 48px);
}

.article-body h2:not(:first-child) {
    margin-top: 54px;
}

.article-body h3 {
    margin-top: 34px;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: clamp(25px, 4vw, 34px);
}

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

.article-body p {
    margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px;
    padding-left: 22px;
}

.article-body a {
    color: #ffffff;
    font-weight: 800;
    text-decoration-color: rgba(255, 91, 207, .75);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.article-image {
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(6, 24, 46, .62);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.article-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-content img {
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(6, 24, 46, .68);
}

.faq-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 58px 0 28px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(162, 75, 255, .2), rgba(255, 91, 207, .12));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

.faq-cta p {
    margin: 0;
    color: #ffffff;
    font-weight: 800;
}

.article-body table {
    display: block;
    width: 100%;
    margin: 22px 0 0;
    border-collapse: collapse;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 24, 46, .62);
    white-space: normal;
}

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

.article-body th {
    color: #ffffff;
    font-weight: 900;
}

.article-body tr:last-child td {
    border-bottom: 0;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, var(--bg-section), var(--bg-deep));
}

.footer-inner {
    display: grid;
    gap: 24px;
    padding: 42px 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
}

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

@media (max-width: 820px) {
    .header-inner {
        min-height: 68px;
        gap: 14px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav,
    .header-actions {
        display: none;
    }

    .site-header.is-open .primary-nav,
    .site-header.is-open .header-actions {
        display: grid;
        grid-column: 1 / -1;
        width: 100%;
    }

    .site-header.is-open .header-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        padding-bottom: 18px;
    }

    .site-header.is-open .menu-toggle {
        justify-self: end;
    }

    .primary-nav {
        margin-left: 0;
        gap: 6px;
        padding-top: 6px;
    }

    .nav-link {
        min-height: 38px;
    }

    .nav-dropdown {
        position: static;
        min-width: 0;
        padding: 0 0 0 14px;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        transform: none;
        visibility: visible;
    }

    .header-actions {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        min-height: 390px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(4, 27, 52, .96), rgba(4, 27, 52, .72)),
            linear-gradient(0deg, rgba(4, 27, 52, .96), rgba(4, 27, 52, .28));
    }

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

    .hero h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .content-section {
        padding: 38px 0 54px;
    }

    .content-shell {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

    .hero {
        min-height: 360px;
    }

    .hero-content {
        padding-top: 58px;
    }

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

    .button {
        width: 100%;
    }

    .faq-cta {
        display: grid;
        padding: 18px;
    }

    .footer-nav {
        display: grid;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
