:root {
    --bg: #041b34;
    --bg-2: #061f3a;
    --surface: #082440;
    --surface-2: #0b2e46;
    --line: rgba(216, 226, 238, 0.2);
    --text: #ffffff;
    --text-soft: #d8e2ee;
    --muted: #aebccb;
    --purple: #a24bff;
    --violet: #c66bff;
    --magenta: #ff5bcf;
    --gold: #f7c86b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(162, 75, 255, 0.12), transparent 520px),
        linear-gradient(135deg, var(--bg), var(--bg-2) 46%, #082440);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration-color: rgba(255, 91, 207, 0.65);
    text-underline-offset: 4px;
}

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

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 50;
    transform: translateY(-140%);
    background: var(--gold);
    color: #06182e;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 800;
}

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

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

.header-shell,
.footer-shell {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

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

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

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

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

.nav-group {
    position: relative;
}

.nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.nav-link-static {
    cursor: default;
}

.nav-group:hover .nav-link,
.nav-group:focus-within .nav-link,
.nav-group.is-active .nav-link {
    color: var(--text);
    background: rgba(198, 107, 255, 0.15);
}

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    padding: 8px;
    border: 1px solid rgba(198, 107, 255, 0.25);
    border-radius: 8px;
    background: rgba(6, 24, 46, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.18s ease;
}

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

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

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

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

.action-link,
.primary-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.action-link-primary,
.primary-cta {
    background: linear-gradient(135deg, var(--purple), var(--magenta));
    color: #fff;
    box-shadow: 0 12px 34px rgba(255, 91, 207, 0.24);
}

.action-link-ghost {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--text-soft);
}

.primary-cta:hover,
.primary-cta:focus,
.action-link-primary:hover,
.action-link-primary:focus {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 14px;
    height: 2px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: clamp(420px, 66vh, 550px);
    display: grid;
    align-items: end;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-home {
    min-height: clamp(430px, 68vh, 560px);
}

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

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

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(4, 27, 52, 0.95), rgba(4, 27, 52, 0.7) 42%, rgba(4, 27, 52, 0.3)),
        linear-gradient(0deg, var(--bg), transparent 48%);
}

.hero-content {
    position: relative;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 88px 0 58px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
}

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

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

.hero p {
    max-width: 650px;
    margin: 18px 0 24px;
    color: var(--text-soft);
    font-size: 16px;
}

.content-shell {
    width: min(100% - 32px, 920px);
    margin: 0 auto;
    padding: 54px 0 72px;
}

.content-shell h2 {
    margin-top: 46px;
    color: #fff;
    font-size: clamp(34px, 5vw, 48px);
}

.content-shell h2:first-child {
    margin-top: 0;
}

.content-shell h3 {
    margin-top: 28px;
    color: var(--gold);
    font-size: clamp(25px, 4vw, 34px);
}

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

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

.faq-cta {
    margin-top: 46px;
}

.content-shell ul,
.content-shell ol {
    padding-left: 24px;
    color: var(--text-soft);
}

.content-shell ul {
    list-style: disc;
}

.content-shell ol {
    list-style: decimal;
}

.article-content img {
    display: block;
    margin: 26px 0;
    padding: 8px;
    border: 1px solid rgba(198, 107, 255, 0.24);
    border-radius: 8px;
    background: rgba(6, 24, 46, 0.55);
}

.content-shell table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    table-layout: auto;
    border: 1px solid rgba(198, 107, 255, 0.22);
    border-radius: 8px;
    background: rgba(8, 36, 64, 0.76);
}

.content-shell th,
.content-shell td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(216, 226, 238, 0.14);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.content-shell th {
    background: rgba(198, 107, 255, 0.14);
    color: #fff;
}

.content-shell td {
    color: var(--text-soft);
}

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

.footer-shell {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 34px 0;
}

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

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

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

@media (max-width: 920px) {
    .header-shell {
        min-height: 68px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
        padding: 0 12px;
    }

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

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

    .site-nav {
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 10px;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.05);
    }

    .dropdown {
        position: static;
        min-width: 0;
        margin-top: 6px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(6, 24, 46, 0.72);
    }

    .header-actions {
        order: 4;
    }

    .action-link {
        flex: 1;
    }

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

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

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

    .footer-disclaimer {
        margin-left: 0;
    }
}

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

    .hero,
    .hero-home {
        min-height: 350px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(4, 27, 52, 0.96), rgba(4, 27, 52, 0.72)),
            linear-gradient(0deg, var(--bg), transparent 48%);
    }

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

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

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

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

    .content-shell th,
    .content-shell td {
        overflow-wrap: normal;
    }

    .content-shell th,
    .content-shell td {
        padding: 12px;
    }
}
