:root {
    --ink: #f5fbff;
    --muted: #a9bdc9;
    --cyan: #00e1d9;
    --cyan-soft: rgba(0, 225, 217, 0.12);
    --navy-950: #020a13;
    --navy-900: #06111d;
    --navy-850: #071827;
    --navy-800: #082238;
    --line: rgba(0, 225, 217, 0.18);
    --line-soft: rgba(255, 255, 255, 0.09);
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
    --radius: 18px;
    --header-h: 82px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(0, 225, 217, 0.09), transparent 28rem),
        linear-gradient(180deg, #03101c 0%, #041827 48%, #020a13 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    transform: translateY(-150%);
    padding: 10px 14px;
    color: #00131f;
    background: var(--cyan);
    border-radius: 8px;
    font-weight: 800;
}

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

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(2, 10, 19, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 40px));
    min-height: var(--header-h);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 2px solid rgba(0, 225, 217, 0.42);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 225, 217, 0.13);
}

.brand-text {
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -0.35px;
    background: linear-gradient(90deg, #fff, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    width: 100%;
}

.nav-link,
.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    color: #edf9ff;
    background: none;
    border: 0;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.75px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-link:hover,
.menu-toggle:hover { color: var(--cyan); }

.nav-group { position: relative; }

.chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.nav-group.open .chevron { transform: rotate(225deg) translate(-1px, -1px); }

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: min(640px, 76vw);
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(4, 15, 27, 0.98);
    box-shadow: var(--shadow);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-group.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown a {
    display: block;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
}

.dropdown a:hover,
.dropdown a:focus-visible {
    border-color: var(--line);
    background: var(--cyan-soft);
}

.drop-label {
    display: block;
    margin-bottom: 3px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.drop-title {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.35;
}

.drop-all {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--cyan);
    font-weight: 800;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 19px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #ecffff;
    background: transparent;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
    color: #001416;
    background: var(--cyan);
    border-color: var(--cyan);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 225, 217, 0.14);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: "";
}

.mobile-toggle span { position: relative; }
.mobile-toggle span::before { position: absolute; top: -6px; }
.mobile-toggle span::after { position: absolute; top: 6px; }

.page-hero {
    position: relative;
    padding: 88px 0 72px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
}

.page-hero::after {
    position: absolute;
    right: -9rem;
    bottom: -18rem;
    width: 38rem;
    height: 38rem;
    border: 1px solid rgba(0, 225, 217, 0.13);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(0, 225, 217, 0.025), 0 0 0 140px rgba(0, 225, 217, 0.018);
    content: "";
    pointer-events: none;
}

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hero-copy { position: relative; z-index: 1; max-width: 920px; }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumbs a { color: #d5eaf3; text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs span[aria-hidden="true"] { color: rgba(255,255,255,.35); }

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; color: #fff; line-height: 1.18; }
h1 { max-width: 1050px; margin-bottom: 22px; font-size: clamp(40px, 6.4vw, 72px); letter-spacing: -2px; }

.article-hero h1 { font-size: clamp(37px, 5.3vw, 64px); }

.lead {
    max-width: 820px;
    margin: 0 0 22px;
    color: #c5d8e2;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.65;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: var(--muted);
    font-size: 14px;
}

.article-meta strong { color: #e8f8ff; }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(230px, 290px);
    justify-content: center;
    gap: 64px;
    padding: 72px 0 90px;
}

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

.article-body h2,
.article-body h3 { scroll-margin-top: calc(var(--header-h) + 25px); }

.article-body h2 {
    margin: 58px 0 18px;
    padding-top: 8px;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.6px;
}

.article-body h3 { margin: 36px 0 12px; font-size: clamp(21px, 2.2vw, 27px); }
.article-body p { margin: 0 0 22px; color: #c7d6df; font-size: 17px; }
.article-body strong { color: #f5fbff; }

.article-body a:not(.button) {
    color: #73fff9;
    text-decoration-color: rgba(115, 255, 249, 0.45);
    text-underline-offset: 3px;
}

.article-body ul,
.article-body ol { margin: 0 0 25px; padding-left: 24px; color: #c7d6df; }
.article-body li { margin-bottom: 10px; padding-left: 5px; }
.article-body li::marker { color: var(--cyan); }

.toc {
    position: sticky;
    top: calc(var(--header-h) + 25px);
    align-self: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(6, 20, 33, 0.78);
}

.toc-title { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); }
.toc li { margin: 7px 0; }
.toc a { color: var(--muted); font-size: 13px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--cyan); }

.callout {
    margin: 34px 0;
    padding: 24px 26px;
    border: 1px solid rgba(0, 225, 217, 0.3);
    border-left: 4px solid var(--cyan);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 225, 217, 0.1), rgba(5, 23, 38, 0.72));
}

.callout h3 { margin: 0 0 9px; font-size: 19px; }
.callout p:last-child { margin-bottom: 0; }

.checklist {
    margin: 30px 0;
    padding: 24px;
    border: 1px solid var(--line-soft);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
}

.checklist h3 { margin-top: 0; }
.checklist ul { margin-bottom: 0; list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { position: absolute; left: 0; color: var(--cyan); content: "✓"; font-weight: 900; }

.table-wrap { margin: 30px 0; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; background: rgba(2, 10, 19, 0.35); }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
th { color: #fff; background: rgba(0, 225, 217, 0.08); font-size: 13px; letter-spacing: 0.45px; }
td { color: #c4d5de; font-size: 14px; }
tr:last-child td { border-bottom: 0; }

.article-cta {
    margin: 56px 0 0;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: radial-gradient(circle at 100% 0%, rgba(0, 225, 217, 0.15), transparent 45%), #061522;
    box-shadow: var(--shadow);
}

.article-cta h2 { margin: 0 0 12px; padding: 0; font-size: clamp(25px, 3vw, 34px); }
.article-cta p { max-width: 650px; }

.references {
    margin-top: 58px;
    padding-top: 36px;
    border-top: 1px solid var(--line-soft);
}

.references h2 { margin-top: 0; font-size: 27px; }
.references li { font-size: 14px; overflow-wrap: anywhere; }

.related-section {
    padding: 78px 0;
    border-top: 1px solid var(--line-soft);
    background: rgba(1, 8, 15, 0.45);
}

.section-heading { max-width: 740px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 46px); }
.section-heading p { color: var(--muted); font-size: 17px; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.insight-card {
    position: relative;
    min-height: 300px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    background: linear-gradient(145deg, rgba(8, 40, 61, 0.74), rgba(4, 13, 24, 0.9));
    box-shadow: 0 18px 38px rgba(0,0,0,.2);
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.insight-card:hover { transform: translateY(-5px); border-color: rgba(0, 225, 217, 0.5); }
.card-category { margin-bottom: 15px; color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: 1.3px; text-transform: uppercase; }
.insight-card h2, .insight-card h3 { margin-bottom: 13px; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.3; }
.insight-card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.card-action { margin-top: auto; color: #8bfffa; font-size: 13px; font-weight: 850; letter-spacing: .55px; text-transform: uppercase; }

.hub-intro { padding: 78px 0 92px; }
.hub-intro .card-grid { margin-top: 34px; }

.site-footer {
    padding: 64px 0 30px;
    border-top: 1px solid var(--line-soft);
    background: #010811;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-weight: 850; }
.footer-brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; }
.footer-copy { max-width: 330px; color: var(--muted); font-size: 14px; }
.footer-col h2 { margin-bottom: 14px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; margin: 8px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: #78909d; font-size: 13px; }

@media (max-width: 1080px) {
    .header-actions .button:not(.button-primary) { display: none; }
    .primary-nav { gap: 16px; }
    .article-layout { gap: 38px; }
}

@media (max-width: 900px) {
    :root { --header-h: 72px; }
    .header-inner { width: min(100% - 30px, 1240px); min-height: var(--header-h); }
    .brand img { width: 43px; height: 43px; }
    .brand-text { font-size: 19px; }
    .mobile-toggle { display: inline-flex; }
    .primary-nav {
        position: fixed;
        inset: var(--header-h) 0 auto auto;
        width: min(360px, 90vw);
        height: calc(100vh - var(--header-h));
        padding: 24px;
        display: block;
        overflow-y: auto;
        transform: translateX(105%);
        border-left: 1px solid var(--line);
        background: #030d17;
        transition: transform 0.28s ease;
    }
    .primary-nav.open { transform: translateX(0); }
    .nav-link, .menu-toggle { width: 100%; justify-content: space-between; padding: 13px 0; }
    .nav-group { width: 100%; }
    .dropdown {
        position: static;
        width: 100%;
        margin: 0;
        padding: 5px 0 12px 9px;
        display: none;
        grid-template-columns: 1fr;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
    .nav-group.open .dropdown { display: grid; transform: none; }
    .drop-all { grid-column: auto; text-align: left; }
    .header-actions { margin-left: auto; }
    .header-actions .button { display: none; }
    .page-hero { padding: 68px 0 58px; }
    h1 { letter-spacing: -1.2px; }
    .article-layout { grid-template-columns: 1fr; gap: 35px; padding-top: 55px; }
    .toc { position: static; grid-row: 1; }
    .article-body { grid-row: 2; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .container { width: min(100% - 30px, 1160px); }
    .brand-text { font-size: 17px; }
    .page-hero { padding-top: 50px; }
    .article-hero h1 { font-size: clamp(34px, 10.5vw, 48px); }
    .lead { font-size: 18px; }
    .article-body p { font-size: 16px; }
    .article-body h2 { margin-top: 45px; }
    .card-grid { grid-template-columns: 1fr; }
    .insight-card { min-height: 0; }
    .article-cta { padding: 25px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

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