:root {
    --bg: #06111f;
    --card: rgba(10, 22, 39, 0.88);
    --line: rgba(149, 177, 217, 0.16);
    --text: #f5f7fb;
    --muted: #a4b3cb;
    --brand: #28d7b0;
    --brand-2: #52a7ff;
    --accent: #ffbf57;
    --danger: #ff698d;
    --shadow: 0 28px 80px rgba(3, 8, 18, 0.42);
    --container: 1240px;
    --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font: 16px/1.6 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(40, 215, 176, 0.18), transparent 28%),
        radial-gradient(circle at 85% 8%, rgba(82, 167, 255, 0.16), transparent 25%),
        linear-gradient(180deg, #06111f 0%, #0b1627 42%, #08111d 100%);
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.topbar {
    position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px);
    background: rgba(6, 17, 31, 0.84); border-bottom: 1px solid var(--line);
}
.topbar-inner {
    min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 0;
}
.topbar-mobile-row {
    display: contents;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.02em; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #04111f; font-weight: 900;
}
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--muted); }
.nav a.active, .nav a:hover { color: var(--text); }
.header-mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    box-shadow: none;
}
.header-mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    position: relative;
}
.header-mobile-toggle span::before,
.header-mobile-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.header-mobile-toggle span::before { top: -6px; }
.header-mobile-toggle span::after { top: 6px; }
.button {
    border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 800; font-size: 14px;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.button.header-mobile-toggle { display: none; }
.button-primary { color: #04111f; background: linear-gradient(135deg, var(--brand), #5ef1d0); }
.button-secondary { color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.header-cta {
    min-width: 154px;
    min-height: 56px;
    padding: 0 26px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: 0 14px 30px rgba(40, 215, 176, 0.18);
    white-space: nowrap;
    line-height: 1;
}
.hero { padding: 48px 0 24px; }
.hero-card, .card, .tool-card, .state-card, .faq-item, .panel {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 34px; }
.eyebrow {
    display: inline-flex; gap: 10px; align-items: center; border-radius: 999px; padding: 8px 14px;
    background: rgba(40, 215, 176, 0.10); border: 1px solid rgba(40, 215, 176, 0.24);
    color: var(--brand); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.05em; margin: 18px 0 16px; max-width: 13ch; }
.lead { font-size: 18px; color: var(--muted); max-width: 65ch; }
.hero-actions, .section-actions, .tool-actions, .app-links, .pill-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stats-grid, .tool-grid, .content-grid, .state-grid, .compare-grid, .two-grid, .table-grid {
    display: grid; gap: 16px;
}
.stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 24px; }
.metric { padding: 18px; background: rgba(255,255,255,0.03); border-radius: 18px; border: 1px solid var(--line); }
.metric strong { display: block; font-size: 28px; line-height: 1; margin-bottom: 6px; }
.metric span { display: block; color: var(--muted); font-size: 13px; }
section { padding: 24px 0; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.04em; margin-bottom: 8px; }
.section-head p { color: var(--muted); max-width: 70ch; margin-bottom: 0; }
.card { padding: 28px; }
.tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-card {
    padding: 22px; min-height: 210px; background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
    display: flex; flex-direction: column;
}
.tool-card .icon { font-size: 28px; margin-bottom: 10px; }
.priority {
    margin-top: auto; display: inline-flex; padding: 6px 12px; border-radius: 999px; width: fit-content;
    background: rgba(255, 191, 87, 0.12); border: 1px solid rgba(255, 191, 87, 0.26); color: var(--accent);
    font-size: 12px; font-weight: 800;
}
.priority.primary { color: var(--brand); background: rgba(40, 215, 176, 0.10); border-color: rgba(40, 215, 176, 0.24); }
.two-grid { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); }
.panel { padding: 22px; position: sticky; top: 92px; height: fit-content; }
.field { margin-bottom: 14px; }
label {
    display: block; font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px;
}
input, select {
    width: 100%; border-radius: 16px; border: 1px solid var(--line); background: #0d1a2f;
    color: var(--text); font: inherit; padding: 14px 16px;
}
.results, .stack { display: grid; gap: 16px; }
.result-card, .mini-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 22px; padding: 22px;
}
.result-row, .mini-row { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.score { font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: -0.05em; }
.good { color: var(--brand); }
.mid { color: var(--accent); }
.bad { color: var(--danger); }
.helper { color: var(--muted); font-size: 14px; }
.pill {
    display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(82, 167, 255, 0.1);
    border: 1px solid rgba(82, 167, 255, 0.2); color: #9fd0ff; font-size: 12px; font-weight: 700;
}
.progress { width: 100%; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #72f0d6); }
table { width: 100%; border-collapse: collapse; }
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
}
.table-scroll table {
    min-width: 620px;
}
.table-scroll table:last-child {
    margin-bottom: 0;
}
th, td { padding: 14px 12px; border-bottom: 1px solid rgba(149, 177, 217, 0.12); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.state-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.state-card { padding: 18px; }
.state-card strong { display: block; font-size: 28px; line-height: 1; margin-bottom: 8px; }
.map-card { position: relative; overflow: hidden; }
.map-toolbar, .map-legend, .map-selected-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.map-board-wrap { overflow-x: auto; padding-bottom: 8px; }
.map-board {
    position: relative; width: 480px; height: 280px; margin: 0 auto;
}
.map-tile {
    position: absolute; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #fff; cursor: pointer; border: 1px solid rgba(255,255,255,0.12);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.map-tile:hover, .map-tile.active {
    transform: scale(1.12);
    box-shadow: 0 14px 28px rgba(3, 8, 18, 0.32);
    border-color: rgba(255,255,255,0.5);
    z-index: 5;
}
.map-tooltip {
    position: fixed; z-index: 70; min-width: 180px; padding: 12px 14px; border-radius: 16px;
    background: rgba(8, 16, 28, 0.96); border: 1px solid var(--line); color: var(--text);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35); pointer-events: none; display: none;
}
.map-tooltip strong { display: block; margin-bottom: 6px; }
.map-tooltip .helper { font-size: 12px; margin-bottom: 3px; }
.map-selected {
    margin-top: 18px; padding: 20px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.state-table { width: 100%; border-collapse: collapse; }
.state-table th, .state-table td { padding: 13px 12px; border-bottom: 1px solid rgba(149, 177, 217, 0.12); text-align: left; vertical-align: top; }
.state-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.legend-bar {
    width: 120px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #ff698d 0%, #ffbf57 50%, #28d7b0 100%);
}
.compare-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq-item { padding: 22px; }
.footer { padding: 36px 0 80px; color: var(--muted); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.footer-links a { color: var(--text); font-size: 14px; }
.disclosure-block {
    margin-top: 24px; padding: 22px; border-radius: 22px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(149, 177, 217, 0.12);
}
.disclosure-block h3 { margin-bottom: 10px; }
.disclosure-block p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.cookie-banner {
    position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 60; display: none;
    padding: 18px; border-radius: 22px; background: rgba(8, 16, 28, 0.97);
    border: 1px solid rgba(149, 177, 217, 0.18); box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}
.cookie-banner.show { display: block; }
.cookie-inner { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.cookie-copy { max-width: 70ch; }
.cookie-copy p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.cookie-status {
    display: none; margin-top: 10px; padding: 10px 12px; border-radius: 14px;
    background: rgba(82, 167, 255, 0.08); border: 1px solid rgba(82, 167, 255, 0.18);
    color: #c6e3ff; font-size: 13px;
}
.cookie-banner.manage-mode .cookie-status { display: block; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.page-intro-support { padding-top: 0; }
.page-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.page-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(149, 177, 217, 0.14);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}
.page-meta-chip.is-link {
    color: #c6e3ff;
    text-decoration: none;
}
.page-meta-chip.is-link:hover {
    background: rgba(82, 167, 255, 0.12);
    border-color: rgba(82, 167, 255, 0.24);
}
.page-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.page-summary-card h2 {
    margin-bottom: 10px;
}
.summary-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}
.summary-list li + li {
    margin-top: 8px;
}
.page-summary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.page-summary-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(82, 167, 255, 0.08);
    border: 1px solid rgba(82, 167, 255, 0.18);
    color: #c6e3ff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.page-summary-links a:hover {
    background: rgba(82, 167, 255, 0.14);
}
.notice {
    padding: 14px 18px; border-radius: 18px; border: 1px dashed rgba(255, 191, 87, 0.28);
    color: #ffd694; background: rgba(255, 191, 87, 0.08);
}
@media (max-width: 1120px) {
    .stats-grid, .tool-grid, .two-grid, .state-grid, .content-grid, .compare-grid, .faq-grid, .page-summary-grid { grid-template-columns: 1fr; }
    .panel { position: static; }
}
@media (max-width: 840px) {
    .topbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .topbar-mobile-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }
    .brand {
        min-width: 0;
        flex: 1 1 auto;
    }
    .brand small {
        font-size: 11px;
    }
    .header-mobile-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }
    .button.header-mobile-toggle {
        display: inline-flex;
    }
    .nav,
    .header-cta {
        display: none;
    }
    .topbar-inner.mobile-open .nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
        padding: 10px 18px;
        border-radius: 20px;
        border: 1px solid rgba(149, 177, 217, 0.14);
        background: rgba(255,255,255,0.03);
    }
    .topbar-inner.mobile-open .nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(149, 177, 217, 0.12);
        text-align: left;
    }
    .topbar-inner.mobile-open .nav a:last-child {
        border-bottom: 0;
    }
    .topbar-inner.mobile-open .header-cta {
        display: inline-flex;
        width: 100%;
        min-width: 0;
        min-height: 52px;
        border-radius: 16px;
        margin-top: 2px;
        box-shadow: 0 10px 24px rgba(40, 215, 176, 0.16);
    }
    .section-head { flex-direction: column; align-items: start; }
    .hero-card, .card { padding: 22px; }
    .page-meta-strip { flex-direction: column; align-items: flex-start; }
    .cookie-inner { flex-direction: column; align-items: start; }
}
