:root {
    --bg: #041b34;
    --bg-2: #061f3a;
    --surface: #082440;
    --surface-2: #0b2e46;
    --line: rgba(216, 226, 238, 0.18);
    --text: #f4f7fb;
    --muted: #b9c7d6;
    --purple: #a24bff;
    --violet: #c66bff;
    --magenta: #ff5bcf;
    --gold: #f7c86b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

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

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

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

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

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

.site-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: 42px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #e8eef6;
    font: 700 14px/1 Inter, Roboto, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link,
.nav-item.is-active .nav-link {
    background: rgba(162, 75, 255, 0.14);
    color: #fff;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #06182e;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

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

.dropdown a:hover,
.dropdown a:focus {
    background: rgba(255, 91, 207, 0.12);
    color: #fff;
}

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

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s ease;
}

.button-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--violet), var(--purple) 48%, var(--magenta));
    box-shadow: 0 10px 30px rgba(162, 75, 255, 0.32);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.06);
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 800;
}

.hero {
    position: relative;
    min-height: clamp(430px, 68vh, 560px);
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-compact {
    min-height: clamp(360px, 54vh, 470px);
}

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

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 27, 52, 0.94), rgba(4, 27, 52, 0.68) 48%, rgba(4, 27, 52, 0.24)),
        linear-gradient(0deg, rgba(4, 27, 52, 0.96), rgba(4, 27, 52, 0.08) 42%);
}

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

.hero h1,
.content-shell h2,
.content-shell h3 {
    margin: 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.96;
}

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

.hero p {
    max-width: 650px;
    margin: 22px 0 28px;
    color: #d8e2ee;
    font-size: clamp(16px, 2vw, 18px);
}

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

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

.content-shell {
    width: min(880px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(38px, 7vw, 72px) 0;
}

.article-content {
    overflow-x: visible;
}

.article-content img {
    display: block;
    height: auto;
    margin: 24px 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 36, 64, 0.55);
}

.content-shell h2 {
    margin-top: 48px;
    font-size: clamp(32px, 5.2vw, 48px);
}

.content-shell h2:first-child,
.table-of-contents + h2 {
    margin-top: 0;
}

.content-shell h3 {
    margin-top: 30px;
    font-size: clamp(24px, 3.7vw, 34px);
}

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

.content-shell p,
.content-shell li {
    color: #d8e2ee;
}

.content-shell a {
    color: #ffd789;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.content-shell ul,
.content-shell ol {
    padding-left: 22px;
}

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

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

.table-of-contents ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    overflow-wrap: anywhere;
    table-layout: auto;
}

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

th {
    background: #123a55;
    color: #fff;
}

td {
    background: rgba(8, 36, 64, 0.55);
    color: #d8e2ee;
}

.faq-cta {
    margin: 48px 0 0;
}

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

.footer-shell {
    display: grid;
    gap: 22px;
    padding: 38px 0;
}

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

.footer-nav a {
    color: #e8eef6;
    font-weight: 700;
    text-decoration: none;
}

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

@media (max-width: 900px) {
    body.menu-is-open {
        overflow: hidden;
    }

    .header-shell {
        min-height: 68px;
        flex-wrap: wrap;
        gap: 14px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        margin: 0;
        padding: 12px 0 18px;
    }

    .site-nav.is-open {
        display: block;
    }

    .nav-item {
        border-top: 1px solid var(--line);
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        min-height: 46px;
        padding: 0;
    }

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

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

@media (max-width: 620px) {
    body {
        font-size: 15px;
        line-height: 1.68;
    }

    .header-actions {
        display: none;
    }

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

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

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

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

    th,
    td {
        padding: 12px;
    }
}
