:root {
    color-scheme: dark;
    --bg: #07090d;
    --panel: #0f141c;
    --panel-raised: #141b25;
    --line: #273344;
    --line-soft: rgba(151, 166, 186, 0.14);
    --text: #f2f5f8;
    --muted: #9ca7b5;
    --blue: #58a6ff;
    --blue-soft: rgba(88, 166, 255, 0.12);
    --purple: #bc8cff;
    --purple-soft: rgba(188, 140, 255, 0.12);
    --green: #56d364;
    --green-soft: rgba(86, 211, 100, 0.11);
    --red: #ff8d83;
    --red-soft: rgba(255, 141, 131, 0.11);
    --amber: #f2b84b;
    --amber-soft: rgba(242, 184, 75, 0.11);
    --base0C: #72e1e1;
    --base08: #ff6b7a;
    --mint: var(--base0C);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 280px;
    margin: 0;
    background:
        linear-gradient(rgba(88, 166, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.025) 1px, transparent 1px),
        var(--bg);
    background-size: 48px 48px;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: #91c9ff;
    text-underline-offset: 3px;
}

a:hover {
    color: #c9e6ff;
}

code {
    color: #dce7f5;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.top-anchor {
    position: absolute;
    top: 0;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 20;
    padding: 8px 12px;
    border-radius: 5px;
    background: #fff;
    color: #000;
    transform: translateY(-150%);
}

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

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 44px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 14, 20, 0.96);
}

.hero::before,
.relay-card::before,
.support-card::before {
    position: absolute;
    top: 0;
    right: 18px;
    left: 18px;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    content: "";
}

.brand-lockup {
    display: flex;
    min-width: 0;
    gap: 20px;
    align-items: center;
}

.nojs-mark {
    display: inline-grid;
    width: 42px;
    height: 36px;
    flex: none;
    place-items: center;
    border: 1px solid rgba(94, 234, 212, 0.42);
    border-radius: 6px;
    background: rgba(94, 234, 212, 0.075);
    color: var(--mint);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
}

.nojs-mark--small {
    width: 28px;
    height: 25px;
    border-radius: 5px;
    font-size: 0.68rem;
}

.nojs-mark__glyphs {
    display: inline-flex;
    align-items: baseline;
    letter-spacing: 0;
    line-height: 1;
}

.nojs-mark__js {
    color: var(--base0C);
}

.nojs-mark__times {
    color: var(--base08);
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 4px;
    font-size: 2.35rem;
    line-height: 1.15;
}

.hero-copy > p:last-child,
.section-heading > p:last-child {
    color: var(--muted);
}

.hero-copy > p:last-child {
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.standard-link,
.fleet-link,
.section-nav a {
    border: 1px solid rgba(88, 166, 255, 0.34);
    border-radius: 999px;
    background: var(--blue-soft);
    color: #c1e0ff;
    font-weight: 750;
    text-decoration: none;
}

.standard-link,
.fleet-link {
    padding: 9px 13px;
    white-space: nowrap;
}

.fleet-link {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
}

.fleet-strip {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.fleet-strip span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.fleet-strip strong {
    color: var(--text);
    font-family: "Cascadia Code", Consolas, monospace;
}

.fleet-strip .bridge-count {
    border-color: rgba(88, 166, 255, 0.28);
    background: var(--blue-soft);
    color: #a9d4ff;
}

.fleet-strip .middle-count {
    border-color: rgba(188, 140, 255, 0.28);
    background: var(--purple-soft);
    color: #d3b2ff;
}

.fleet-strip .exit-count {
    border-color: rgba(255, 141, 131, 0.28);
    background: var(--red-soft);
    color: #ffb0aa;
}

.fleet-strip .ipv6-count {
    border-color: rgba(86, 211, 100, 0.26);
    background: var(--green-soft);
    color: #87df91;
}

.mode-notice {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 12px 0;
    padding: 12px 15px;
    border: 1px solid rgba(88, 166, 255, 0.22);
    border-radius: 8px;
    background: rgba(88, 166, 255, 0.055);
    color: var(--muted);
    font-size: 0.86rem;
}

.mode-notice strong {
    display: block;
    margin-bottom: 1px;
    color: #c9e4ff;
}

.nojs-identity {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
    color: #bdf6ed;
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.section-nav {
    position: sticky;
    top: 8px;
    z-index: 10;
    display: flex;
    width: max-content;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 14px auto 32px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 10, 15, 0.94);
}

.section-nav a {
    padding: 6px 10px;
    border-color: transparent;
    background: transparent;
    font-size: 0.78rem;
}

.section-nav a:hover,
.section-nav a:focus-visible {
    border-color: rgba(88, 166, 255, 0.3);
    background: var(--blue-soft);
}

.summary,
.fleet-section,
.support-section {
    scroll-margin-top: 78px;
    margin-bottom: 42px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    display: flex;
    gap: 9px;
    align-items: baseline;
    margin-bottom: 5px;
    font-size: 1.7rem;
}

.section-heading h2 span {
    color: var(--muted);
    font-size: 0.82rem;
}

.section-heading > p:last-child {
    max-width: 820px;
    margin-bottom: 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.summary-item {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 112px;
    place-items: center;
    align-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    text-align: center;
}

.summary-item::before {
    position: absolute;
    top: 0;
    right: 12px;
    left: 12px;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: currentColor;
    content: "";
    opacity: 0.8;
}

.summary-item strong {
    color: var(--text);
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 1.34rem;
}

.summary-item span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.summary-item .summary-icon {
    display: grid;
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    color: currentColor;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.9;
    text-transform: none;
}

.total-stat,
.ipv6-stat {
    color: var(--blue);
}

.public-stat {
    color: var(--purple);
}

.country-stat {
    color: var(--green);
}

.platform-stat {
    color: var(--amber);
}

.asn-stat {
    color: var(--red);
}

.region {
    scroll-margin-top: 78px;
    margin-top: 28px;
}

.region-heading {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 9px;
}

.region-heading::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(88, 166, 255, 0.72), rgba(88, 166, 255, 0.08) 58%, transparent);
    content: "";
}

.region-africa .region-heading::after {
    background: linear-gradient(90deg, rgba(86, 211, 100, 0.72), rgba(86, 211, 100, 0.08) 58%, transparent);
}

.region-north-america .region-heading::after {
    background: linear-gradient(90deg, rgba(255, 141, 131, 0.72), rgba(255, 141, 131, 0.08) 58%, transparent);
}

.region-heading h3 {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin: 0;
    font-size: 1.12rem;
}

.region-icon {
    line-height: 1;
}

.region-heading span {
    color: var(--muted);
    font-size: 0.8rem;
}

.relay-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.bridge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.relay-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.relay-card::before {
    right: 14px;
    left: 14px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.relay-card.bridge {
    background: linear-gradient(140deg, var(--blue-soft), transparent 46%), var(--panel);
}

.relay-card.bridge::before {
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.relay-card.exit {
    background: linear-gradient(140deg, var(--red-soft), transparent 46%), var(--panel);
}

.relay-card.exit::before {
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.relay-card header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 9px;
}

.relay-heading {
    min-width: 0;
}

.relay-card h4 {
    margin: 0 0 5px;
    font-size: 1.02rem;
    overflow-wrap: anywhere;
}

.role {
    display: inline-block;
    color: #d5b7ff;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bridge .role {
    color: #9fd0ff;
}

.exit .role {
    color: #ffaaa3;
}

.relay-kind {
    display: inline-flex;
    min-height: 28px;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border: 1px solid rgba(188, 140, 255, 0.3);
    border-radius: 7px;
    background: var(--purple-soft);
    color: var(--purple);
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 0.66rem;
    font-weight: 800;
}

.bridge .relay-kind {
    border-color: rgba(88, 166, 255, 0.3);
    background: var(--blue-soft);
    color: var(--blue);
}

.exit .relay-kind {
    border-color: rgba(255, 141, 131, 0.3);
    background: var(--red-soft);
    color: var(--red);
}

.relay-description {
    min-height: 40px;
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 0.81rem;
}

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.quick-facts span {
    min-width: 0;
    padding: 4px 7px;
    border: 1px solid var(--line-soft);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
    color: #c3ccd7;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.relay-details-trigger {
    width: 100%;
    padding: 10px 2px 0;
    border: 0;
    border-top: 1px solid var(--line-soft);
    background: transparent;
    color: #a9d3fc;
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 750;
    text-align: left;
}

.relay-details-trigger::after {
    float: right;
    color: var(--muted);
    content: "+";
    font-family: "Cascadia Code", Consolas, monospace;
}

.relay-details-trigger:hover {
    color: #d4eaff;
}

.relay-details-trigger:focus-visible,
.relay-details-close:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.relay-details-popover {
    width: min(560px, calc(100vw - 28px));
    max-height: min(78vh, 680px);
    margin: auto;
    padding: 17px;
    overflow: auto;
    border: 1px solid rgba(88, 166, 255, 0.42);
    border-radius: 8px;
    background: #0d141d;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.55);
    color: var(--text);
}

.relay-details-popover::backdrop {
    background: rgba(2, 6, 12, 0.7);
}

.relay-details-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.relay-details-heading h5 {
    margin: 0;
    font-size: 1rem;
}

.relay-details-close {
    display: grid;
    width: 30px;
    height: 30px;
    flex: none;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    cursor: pointer;
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 1rem;
}

.relay-details-close:hover {
    border-color: rgba(255, 141, 131, 0.45);
    color: var(--red);
}

.relay-card dl {
    display: grid;
    gap: 0;
    margin: 12px 0 0;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.14);
    font-size: 0.8rem;
}

.detail-row {
    display: grid;
    grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 10px;
}

.detail-row + .detail-row {
    border-top: 1px solid var(--line-soft);
}

.relay-card dt {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.relay-card dd {
    min-width: 0;
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.metrics-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.76rem;
    font-weight: 750;
}

.official-link {
    color: #d2b2ff;
}

.official-link:hover {
    color: #e6d2ff;
}

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

.support-card {
    position: relative;
    overflow: hidden;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.support-card::before {
    right: 14px;
    left: 14px;
}

.proof-card::before {
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.project-card::before {
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.support-icon {
    display: grid;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    place-items: center;
    border: 1px solid rgba(88, 166, 255, 0.28);
    border-radius: 6px;
    background: var(--blue-soft);
    color: var(--blue);
    font-family: "Cascadia Code", Consolas, monospace;
    font-weight: 800;
}

.proof-card .support-icon {
    border-color: rgba(86, 211, 100, 0.26);
    background: var(--green-soft);
    color: var(--green);
}

.project-card .support-icon {
    border-color: rgba(188, 140, 255, 0.28);
    background: var(--purple-soft);
    color: var(--purple);
}

.support-card h3 {
    margin-bottom: 9px;
    font-size: 0.92rem;
}

.support-card a {
    display: block;
    margin-top: 7px;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

footer {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: 0.78rem;
}

footer p {
    margin-bottom: 4px;
}

footer .canary-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #e7c15d;
    font-weight: 750;
}

footer .canary-link:hover {
    color: #ffe08a;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 20px, 1200px);
        padding-top: 10px;
    }

    .section-nav {
        position: static;
        width: 100%;
        border-radius: 8px;
    }

    .relay-grid,
    .bridge-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    html {
        scroll-behavior: auto;
    }

    .hero {
        gap: 16px;
        padding: 18px;
    }

    .brand-lockup {
        gap: 13px;
        align-items: flex-start;
    }

    h1 {
        font-size: 1.75rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .standard-link,
    .fleet-link {
        text-align: center;
    }

    .fleet-strip span {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }

    .mode-notice {
        display: grid;
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 10px;
    }

    .section-nav a {
        flex: 1 1 30%;
        text-align: center;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-item {
        min-height: 100px;
    }

    .section-heading h2 {
        display: block;
        font-size: 1.4rem;
    }

    .section-heading h2 span {
        display: block;
        margin-top: 2px;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .relay-card dd {
        text-align: left;
    }
}

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