:root {
    --bg: #041b34;
    --bg-deep: #06182e;
    --bg-panel: #082440;
    --bg-panel-strong: #0b2e46;
    --border: rgba(198, 107, 255, 0.22);
    --text: #f4f7fb;
    --muted: #b9c7d6;
    --soft: #d8e2ee;
    --purple: #a24bff;
    --violet: #c66bff;
    --magenta: #ff5bcf;
    --gold: #f7c86b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius: 8px;
    --content: 980px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 75% 0%, rgba(255, 91, 207, 0.12), transparent 34rem),
        linear-gradient(180deg, #041b34 0%, #061f3a 42%, #041b34 100%);
    font-family: Inter, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

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

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 100;
    padding: 0.65rem 0.9rem;
    color: #041b34;
    background: #fff;
    border-radius: var(--radius);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

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

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

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.site-nav a,
.nav-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 0.85rem;
    color: var(--soft);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .is-active > a,
.site-nav .is-active {
    color: #fff;
}

.has-dropdown {
    position: relative;
}

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

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

.dropdown a {
    display: flex;
    border-radius: 6px;
}

.dropdown a:hover,
.dropdown a:focus {
    background: rgba(162, 75, 255, 0.18);
}

.header-actions {
    display: flex;
    gap: 0.7rem;
    margin-left: 0.7rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(180deg, var(--violet), var(--purple) 52%, var(--magenta));
    box-shadow: 0 0 28px rgba(198, 107, 255, 0.35);
}

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

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

.faq-cta {
    display: flex;
    justify-content: flex-start;
    margin: 3rem 0 -1rem;
}

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

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

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(430px, 68vh, 560px);
    overflow: hidden;
    border-bottom: 1px solid rgba(198, 107, 255, 0.16);
}

.hero-article {
    min-height: clamp(360px, 56vh, 480px);
}

.hero-image {
    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, 0.96) 0%, rgba(4, 27, 52, 0.73) 42%, rgba(4, 27, 52, 0.34) 100%),
        linear-gradient(180deg, rgba(255, 91, 207, 0.08), rgba(4, 27, 52, 0.95));
}

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

h1,
h2,
h3 {
    margin: 0;
    color: #fff;
    font-family: Oswald, Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 800;
    line-height: 0.98;
    text-transform: uppercase;
}

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

h2 {
    margin-top: 3rem;
    font-size: clamp(34px, 4.8vw, 48px);
}

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

.hero p {
    max-width: 610px;
    margin: 1.1rem 0 1.4rem;
    color: var(--soft);
    font-size: 16px;
}

.content-shell {
    width: min(var(--content), calc(100% - 32px));
    margin: 0 auto;
    padding: 3.2rem 0 4.5rem;
}

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

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

.content-shell a {
    color: var(--gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.content-shell ul,
.content-shell ol {
    padding-left: 1.25rem;
}

.content-shell li + li {
    margin-top: 0.45rem;
}

.legal-copy {
    max-width: 890px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

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

.table-of-contents p {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
}

.table-of-contents ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.table-of-contents a {
    color: var(--gold);
}

.article-content img {
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
    padding: 0.35rem;
    border: 1px solid rgba(198, 107, 255, 0.26);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
}

.article-content table {
    width: 100%;
    margin: 1.4rem 0 2rem;
    border-collapse: collapse;
    table-layout: auto;
    min-width: min(100%, 620px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(8, 36, 64, 0.78);
}

.article-content th,
.article-content td {
    padding: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    vertical-align: top;
}

.article-content th {
    color: #fff;
    background: rgba(162, 75, 255, 0.16);
}

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

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #082440, #06182e);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 2rem 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
}

.footer-links a {
    color: var(--soft);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

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

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

    .menu-toggle {
        display: block;
    }

    .site-nav,
    .header-actions {
        position: fixed;
        left: 16px;
        right: 16px;
        display: none;
        margin: 0;
        background: rgba(6, 24, 46, 0.98);
    }

    body.nav-open .site-nav,
    body.nav-open .header-actions {
        display: flex;
    }

    .site-nav {
        top: 78px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .site-nav a,
    .nav-item > a {
        width: 100%;
        min-height: 46px;
    }

    .dropdown {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 0.75rem;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .header-actions {
        top: 225px;
        justify-content: stretch;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-top: 0;
        border-radius: 0 0 var(--radius) var(--radius);
    }

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

    .hero,
    .hero-article {
        min-height: 390px;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(4, 27, 52, 0.72), rgba(4, 27, 52, 0.96)),
            linear-gradient(90deg, rgba(162, 75, 255, 0.14), transparent);
    }

    .hero-content {
        padding: 3rem 0;
    }

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

    h2 {
        margin-top: 2.4rem;
        font-size: clamp(30px, 9vw, 38px);
    }

    h3 {
        font-size: clamp(23px, 7vw, 28px);
    }

    .content-shell {
        padding: 2.4rem 0 3.4rem;
    }

    .faq-cta {
        margin-top: 2.4rem;
    }

    .article-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin: 1.2rem 0;
    }

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

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

    .header-actions {
        flex-direction: column;
    }

    .hero,
    .hero-article {
        min-height: 360px;
    }

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

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