:root {
    --ink: #101828;
    --muted: #667085;
    --paper: #f4f7fb;
    --surface: #ffffff;
    --line: #d0d8e5;
    --cyan: #0891b2;
    --violet: #7c3aed;
    --red: #dc2626;
    --green: #16a34a;
    --dark: #172033;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 18px 18px, rgba(8, 145, 178, .18) 2px, transparent 3px),
        linear-gradient(90deg, rgba(16, 24, 40, .05) 1px, transparent 1px),
        linear-gradient(rgba(16, 24, 40, .05) 1px, transparent 1px),
        var(--paper);
    background-size: 72px 72px, 36px 36px, 36px 36px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.68;
}
a { color: inherit; }
.site-header {
    max-width: 1240px;
    margin: 18px auto 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .08);
}
.site-footer {
    max-width: 1240px;
    margin: 54px auto 0;
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    background: var(--dark);
    color: white;
    border-radius: 14px 14px 0 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: conic-gradient(from 90deg, var(--cyan), var(--violet), var(--green), var(--cyan));
    font-weight: 950;
    box-shadow: 0 0 0 6px rgba(8, 145, 178, .12);
}
.brand strong { display: block; font-size: 18px; }
.brand small { display: block; color: var(--muted); font-size: 13px; }
nav, .footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
nav a, .footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    padding: 8px 10px;
    border-radius: 999px;
}
nav a:hover { background: #e6f7fb; color: var(--cyan); }
.footer-links a { color: #b9e8f1; }
.hero {
    max-width: 1240px;
    margin: 28px auto 34px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 420px;
    gap: 24px;
    align-items: stretch;
}
.hero > div:first-child, .page-title {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 42px;
    box-shadow: 0 22px 60px rgba(16, 24, 40, .08);
}
.hero h1, .page-title h1 {
    margin: 0 0 18px;
    max-width: 940px;
    font-size: clamp(2.5rem, 4rem, 4rem);
    line-height: 1;
}
.hero p, .page-title p { max-width: 780px; color: var(--muted); font-size: 18px; }
.eyebrow {
    display: inline-flex;
    margin: 0 0 14px;
    color: var(--cyan);
    background: #e6f7fb;
    border: 1px solid #b8e4ef;
    border-radius: 999px;
    padding: 6px 10px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 900;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    color: white;
    background: var(--cyan);
    text-decoration: none;
    font-weight: 900;
}
.button:hover { background: var(--violet); }
.button.secondary { background: var(--green); }
.graph-panel {
    min-height: 360px;
    position: relative;
    overflow: hidden;
    background: var(--dark);
    border-radius: 18px;
    border: 1px solid #24324d;
    box-shadow: 0 22px 60px rgba(16, 24, 40, .16);
}
.graph-panel::before {
    content: "";
    position: absolute;
    inset: 38px;
    background:
        linear-gradient(35deg, transparent 48%, rgba(255,255,255,.18) 49%, rgba(255,255,255,.18) 51%, transparent 52%),
        linear-gradient(145deg, transparent 48%, rgba(255,255,255,.14) 49%, rgba(255,255,255,.14) 51%, transparent 52%);
}
.node {
    position: absolute;
    display: inline-grid;
    place-items: center;
    min-width: 96px;
    min-height: 44px;
    padding: 10px 14px;
    color: white;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}
.node.main { left: 50%; top: 44%; transform: translate(-50%, -50%); background: var(--cyan); }
.node.n1 { left: 28px; top: 48px; background: var(--violet); }
.node.n2 { right: 28px; top: 66px; background: var(--green); }
.node.n3 { left: 46px; bottom: 52px; background: var(--red); }
.node.n4 { right: 46px; bottom: 48px; background: #2563eb; }
.section, .page-title, .band {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 24px;
}
.section-heading {
    max-width: 820px;
    margin-bottom: 24px;
}
.section-heading h2, .band h2 {
    margin: 0;
    font-size: clamp(2rem, 3rem, 3rem);
    line-height: 1.08;
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(16, 24, 40, .06);
}
.thumb {
    min-height: 84px;
    background:
        linear-gradient(90deg, var(--accent), transparent),
        var(--dark);
    display: flex;
    align-items: end;
    padding: 16px;
}
.thumb span { color: white; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.card-body { padding: 22px; }
.card h2, .card h3 { margin: 8px 0 10px; line-height: 1.2; font-size: 24px; }
.card h2 a, .card h3 a { text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--cyan); }
.card p { color: var(--muted); }
.meta { color: var(--violet) !important; font-size: 13px; font-weight: 900; }
.band {
    margin-top: 20px;
    margin-bottom: 48px;
    background: var(--dark);
    color: white;
    border-radius: 18px;
}
.band p { color: #cbd5e1; max-width: 760px; }
.article { max-width: 960px; margin: 0 auto; padding: 42px 24px; }
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.breadcrumb a { color: var(--cyan); text-decoration: none; }
.article-header {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 18px 46px rgba(16, 24, 40, .07);
}
.article-header h1 { font-size: clamp(2.3rem, 3.7rem, 3.7rem); line-height: 1.04; margin: 0 0 18px; }
.article-header p:not(.eyebrow) { color: var(--muted); font-size: 19px; }
.article-content {
    max-width: 800px;
    margin: 30px auto 0;
    font-size: 18px;
}
.article-content h2 { font-size: 31px; line-height: 1.16; margin-top: 42px; }
.contextual-links, .source-link {
    background: #eefcff;
    border: 1px solid #b8e4ef;
    border-left: 6px solid var(--cyan);
    border-radius: 14px;
    padding: 16px 18px;
}
.contextual-links a, .source-link a { color: var(--violet); font-weight: 900; }
.expert-box {
    margin: 44px 0 10px;
    padding: 26px;
    background: var(--dark);
    color: white;
    border-radius: 18px;
}
.expert-box p { color: #cbd5e1; }
.expert-box h2 { margin-top: 0; }
.expert-box a { color: #67e8f9; font-weight: 900; }
.narrow { max-width: 900px; }
.site-footer p { max-width: 600px; color: #cbd5e1; }

@media (max-width: 860px) {
    .site-header, .site-footer { flex-direction: column; align-items: flex-start; }
    .hero { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .hero h1, .page-title h1, .article-header h1 { font-size: 2.45rem; }
    .hero > div:first-child, .page-title, .article-header { padding: 26px; }
}
