:root {
    --bg: #000000;
    --surface: #0d0d0f;
    --surface-raised: #151519;
    --border: #29292e;
    --text: #f7f7f8;
    --muted: #a4a4ad;
    --blue: #0a84ff;
    --cyan: #20d4f4;
    --gradient: linear-gradient(135deg, var(--blue), var(--cyan));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #61b6ff;
    text-underline-offset: 3px;
}

a:hover {
    color: #a2d7ff;
}

:focus-visible {
    outline: 3px solid #62c8ff;
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 1000;
    border-radius: 8px;
    background: white;
    color: black;
    padding: 10px 14px;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
}

.nav-shell,
.page-shell,
.footer-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.nav-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    background: var(--gradient);
    background-clip: text;
    color: transparent;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.nav-links a:hover {
    color: white;
}

.nav-links .nav-cta {
    border-radius: 999px;
    background: white;
    color: black;
    padding: 9px 16px;
}

.nav-links .nav-cta:hover {
    background: #dfefff;
    color: black;
}

.page-shell {
    padding: 52px 0 88px;
}

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

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: white;
}

.article-hero,
.hub-hero {
    max-width: 850px;
    padding: 40px 0 50px;
}

.eyebrow {
    color: #62c8ff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    letter-spacing: -0.035em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.65rem, 7vw, 5.25rem);
    margin: 0 0 24px;
}

.article-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.gradient-text {
    background: var(--gradient);
    background-clip: text;
    color: transparent;
}

.lead {
    color: #c5c5cc;
    font-size: clamp(1.15rem, 2.5vw, 1.42rem);
    line-height: 1.55;
    margin: 0;
    max-width: 760px;
}

.article-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.9rem;
    margin-top: 24px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 64px;
    align-items: start;
}

.article-body {
    max-width: 760px;
}

.article-body h2 {
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    margin: 64px 0 18px;
    scroll-margin-top: 24px;
}

.article-body h3 {
    font-size: 1.35rem;
    margin: 36px 0 12px;
    scroll-margin-top: 24px;
}

.article-body p,
.article-body li {
    color: #d0d0d6;
    font-size: 1.06rem;
}

.article-body ul,
.article-body ol {
    padding-left: 1.45rem;
}

.article-body li + li {
    margin-top: 10px;
}

.article-body strong {
    color: white;
}

.answer-card,
.note,
.cta-band {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(10, 132, 255, 0.13), rgba(32, 212, 244, 0.04));
    padding: 24px;
}

.answer-card {
    margin: 4px 0 42px;
}

.answer-card p,
.note p {
    margin: 0;
}

.answer-card strong:first-child,
.note strong:first-child {
    display: block;
    margin-bottom: 6px;
}

.note {
    background: var(--surface);
    border-left: 4px solid var(--blue);
    margin: 30px 0;
}

.steps {
    counter-reset: step;
    list-style: none;
    padding: 0 !important;
}

.steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 26px 52px;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient);
    color: black;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    font-weight: 850;
}

.table-wrap {
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 26px 0 36px;
    overflow-x: auto;
}

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

caption {
    padding: 16px;
    color: white;
    font-size: 0.95rem;
    font-weight: 750;
    text-align: left;
}

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

th {
    background: var(--surface-raised);
    color: white;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td {
    color: #ceced5;
}

tbody th {
    background: transparent;
    color: #ceced5;
    font-size: inherit;
    letter-spacing: normal;
    text-transform: none;
}

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

.article-figure {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: radial-gradient(circle at 50% 30%, rgba(10, 132, 255, 0.24), transparent 62%), var(--surface);
    margin: 40px 0;
    padding: 28px;
    text-align: center;
}

.article-figure img {
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin: 0 auto;
}

.article-figure figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 18px;
}

.toc {
    position: sticky;
    top: 28px;
    border-left: 1px solid var(--border);
    padding-left: 22px;
}

.toc p {
    color: white;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li + li {
    margin-top: 10px;
}

.toc a {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
    text-decoration: none;
}

.toc a:hover {
    color: white;
}

.cta-band {
    margin-top: 64px;
    padding: 30px;
}

.cta-band h2,
.cta-band h3 {
    margin-top: 0;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--gradient);
    color: #00101a;
    font-weight: 800;
    padding: 12px 20px;
    text-decoration: none;
}

.button:hover {
    color: #00101a;
    transform: translateY(-1px);
}

.button.secondary {
    border: 1px solid var(--border);
    background: var(--surface-raised);
    color: white;
}

.related-section {
    border-top: 1px solid var(--border);
    margin-top: 72px;
    padding-top: 42px;
}

.related-section h2 {
    font-size: 1.6rem;
    margin: 0 0 22px;
}

.guide-grid,
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.guide-card,
.related-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: inherit;
    display: block;
    padding: 24px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.guide-card:hover,
.related-card:hover {
    border-color: #3f8fcf;
    background: var(--surface-raised);
    color: inherit;
    transform: translateY(-3px);
}

.guide-card .card-number {
    color: #62c8ff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.guide-card h2,
.related-card h3 {
    color: white;
    font-size: 1.35rem;
    margin: 14px 0 10px;
}

.guide-card p,
.related-card p {
    color: var(--muted);
    margin: 0;
}

.guide-card .card-link {
    color: #70c5ff;
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 750;
    margin-top: 20px;
}

.hub-intro {
    max-width: 760px;
    margin-bottom: 36px;
}

.hub-intro h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hub-intro p {
    color: var(--muted);
    font-size: 1.08rem;
}

.resource-list {
    border-top: 1px solid var(--border);
    margin-top: 70px;
    padding-top: 42px;
}

.resource-list h2 {
    font-size: 1.7rem;
}

.resource-list ul {
    color: var(--muted);
    padding-left: 1.2rem;
}

.article-body .editorial-note {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
    margin: 30px 0 0;
    padding-top: 20px;
}

.article-body .editorial-note strong {
    color: #d6d6dc;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.footer-shell {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

@media (max-width: 860px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .toc {
        position: static;
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 20px;
    }

    .guide-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .page-shell,
    .footer-shell {
        width: min(100% - 28px, 1120px);
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .page-shell {
        padding-top: 28px;
    }

    .article-hero,
    .hub-hero {
        padding-top: 22px;
    }

    .article-body h2 {
        margin-top: 50px;
    }

    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 32px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
