:root {
    --bg: #041b34;
    --bg-strong: #06182e;
    --surface: #082440;
    --surface-soft: #0b2e46;
    --surface-line: rgba(198, 107, 255, 0.24);
    --purple: #a24bff;
    --violet: #c66bff;
    --magenta: #ff5bcf;
    --gold: #f7c86b;
    --text: #f4f7fb;
    --muted: #b9c7d6;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
    --heading: "Arial Narrow", "Oswald", Impact, sans-serif;
    --body: Inter, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(4, 27, 52, 0.86), #041b34 520px),
        var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
}

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

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

.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;
}

.menu-toggle {
    display: none;
}

.primary-nav {
    flex: 1;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-item > a,
.nav-item > span,
.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    color: #e8eef6;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
}

.nav-item.is-active > a,
.nav-item.is-active > span,
.nav-item > a:hover,
.nav-item > span:hover,
.footer-nav a:hover {
    color: #ffffff;
    background: rgba(198, 107, 255, 0.16);
}

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

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

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

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

.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;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
    background: linear-gradient(135deg, var(--violet), var(--purple) 48%, var(--magenta));
    box-shadow: 0 14px 34px rgba(162, 75, 255, 0.3);
}

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

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

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

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(4, 27, 52, 0.96) 0%, rgba(4, 27, 52, 0.74) 45%, rgba(4, 27, 52, 0.38) 100%),
        linear-gradient(180deg, rgba(4, 27, 52, 0.1), #041b34 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 66px 0 58px;
}

.hero h1,
.article-content h2,
.article-content h3 {
    margin: 0;
    font-family: var(--heading);
    font-weight: 800;
    line-height: 0.96;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(44px, 7vw, 67px);
    color: #ffffff;
}

.hero p {
    max-width: 650px;
    margin: 22px 0 0;
    color: #d8e2ee;
    font-size: 16px;
}

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

.faq-cta {
    margin: 46px 0 24px;
}

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

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

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

.table-of-contents {
    position: sticky;
    top: 108px;
    align-self: start;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(8, 36, 64, 0.72);
}

.table-of-contents strong {
    color: #ffffff;
    font-size: 14px;
}

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

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

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

.article-content {
    min-width: 0;
}

.article-content section + section {
    margin-top: 46px;
}

.article-content h2 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 48px);
}

.article-content h3 {
    margin: 30px 0 10px;
    color: #ffffff;
    font-size: clamp(25px, 4vw, 34px);
}

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

.article-content p {
    max-width: 820px;
    margin: 0 0 16px;
    color: #d8e2ee;
}

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

.article-content ul,
.article-content ol {
    max-width: 820px;
    padding-left: 22px;
    margin: 14px 0 0;
    color: #d8e2ee;
}

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

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 18px 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(6, 24, 46, 0.76);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    color: #ffffff;
    background: rgba(162, 75, 255, 0.18);
}

td {
    color: #d8e2ee;
}

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

.faq-block {
    padding-top: 6px;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #06182e;
}

.footer-inner {
    display: grid;
    gap: 22px;
    padding: 40px 0;
}

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

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

@media (max-width: 900px) {
    .header-inner {
        min-height: 68px;
        justify-content: space-between;
        gap: 14px;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        gap: 4px;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
    }

    .menu-toggle-line {
        width: 18px;
        height: 2px;
        background: #ffffff;
    }

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

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

    .site-header.is-open .header-inner {
        flex-wrap: wrap;
        padding-bottom: 18px;
    }

    .primary-nav {
        order: 3;
        flex-basis: 100%;
    }

    .primary-nav ul {
        display: grid;
        gap: 4px;
    }

    .nav-item > a,
    .nav-item > span {
        width: 100%;
        justify-content: space-between;
        padding: 0 10px;
    }

    .dropdown {
        position: static;
        display: grid !important;
        min-width: 0;
        padding: 0 0 8px 16px !important;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .header-actions {
        order: 4;
        width: 100%;
    }

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

    .hero {
        min-height: 390px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(4, 27, 52, 0.96), rgba(4, 27, 52, 0.7)),
            linear-gradient(180deg, rgba(4, 27, 52, 0.1), #041b34);
    }

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

    .content-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 38px;
    }

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

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

    .header-inner,
    .footer-inner,
    .content-shell,
    .hero-content {
        width: min(100% - 28px, 1160px);
    }

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

    .hero {
        min-height: 350px;
    }

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

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

    .article-content h2 {
        font-size: clamp(30px, 10vw, 38px);
    }

    .article-content h3 {
        font-size: clamp(24px, 8vw, 28px);
    }

    table {
        min-width: 640px;
    }

    .button {
        width: 100%;
    }

    .hero-cta {
        width: auto;
    }

    .footer-nav {
        display: grid;
    }
}
