:root {
    color-scheme: dark;
    --bg: #050b13;
    --panel: #091423;
    --panel-2: #0d1a2c;
    --line: #20324a;
    --text: #f6f8fc;
    --muted: #98a9bf;
    --cyan: #70ddf1;
    --blue: #53bff1;
    --green: #63db7e;
    --orange: #f7931a;
    --danger: #ff7580;
    --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 16%, rgba(28, 96, 145, .17), transparent 30rem),
        radial-gradient(circle at 88% 24%, rgba(247, 147, 26, .07), transparent 29rem),
        var(--bg);
}
a { color: inherit; text-decoration: none; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 14px clamp(18px, 4vw, 62px);
    border-bottom: 1px solid rgba(59, 82, 111, .38);
    background: rgba(5, 11, 19, .9);
    backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffad4b, var(--orange));
    font-size: 32px;
    font-weight: 900;
    box-shadow: 0 10px 35px rgba(247, 147, 26, .2);
}
.brand > span:last-child { display: grid; gap: 3px; }
.brand strong { letter-spacing: .14em; font-size: 20px; }
.brand small { color: var(--muted); letter-spacing: .14em; font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-actions a { padding: 13px 18px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; }
.top-actions .primary { border-color: #31516e; background: rgba(17, 35, 55, .75); }

main { width: min(100%, 1500px); margin-inline: auto; padding: 38px clamp(18px, 4vw, 60px) 70px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    align-items: center;
    min-height: 650px;
    gap: clamp(30px, 6vw, 90px);
}
.eyebrow, .section-label { color: var(--cyan); font-weight: 900; letter-spacing: .15em; font-size: 12px; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow i, .live-dot {
    width: 10px; aspect-ratio: 1; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 16px rgba(99, 219, 126, .75);
}
h1 { margin: 28px 0 24px; font-size: clamp(60px, 7vw, 116px); line-height: .88; letter-spacing: -.065em; }
h1 span { color: #b8eff8; }
.hero-copy > p { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 24px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-actions a { min-height: 58px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: space-between; gap: 70px; border-radius: 15px; font-weight: 900; }
.hero-actions .cta { background: linear-gradient(100deg, var(--cyan), var(--blue)); color: #04111a; }
.hero-actions .ghost { border: 1px solid var(--line); background: rgba(9, 20, 35, .7); }

.node-orbit {
    position: relative;
    width: min(100%, 590px);
    aspect-ratio: 1;
    margin-inline: auto;
}
.orbit { position: absolute; inset: 50%; translate: -50% -50%; border: 1px solid #183047; border-radius: 50%; }
.orbit-1 { width: 96%; height: 96%; }
.orbit-2 { width: 69%; height: 69%; border-style: dashed; }
.orbit-3 { width: 40%; height: 40%; }
.orbit-core {
    position: absolute; inset: 50%; translate: -50% -50%;
    width: 31%; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 4px;
    border: 1px solid #4a8391; border-radius: 50%; background: rgba(4, 13, 23, .87);
    box-shadow: 0 0 60px rgba(64, 186, 210, .08);
}
.orbit-core small { color: var(--cyan); letter-spacing: .17em; font-weight: 900; font-size: 10px; }
.orbit-core strong { font-size: clamp(46px, 5vw, 72px); }
.orbit-core span { color: var(--muted); font-size: 9px; }
.peer-dot {
    position: absolute; width: 17px; aspect-ratio: 1; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 10px rgba(99, 219, 126, .06), 0 0 23px rgba(99, 219, 126, .5);
}
.d1 { top: 6%; left: 48%; }.d2 { top: 21%; right: 11%; }.d3 { top: 57%; right: 1%; }
.d4 { bottom: 8%; right: 24%; }.d5 { bottom: 13%; left: 21%; }.d6 { top: 48%; left: 1%; }

.status-strip {
    display: grid; grid-template-columns: repeat(5, 1fr);
    margin: 20px 0 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(8, 18, 31, .88);
}
.status-strip article { min-width: 0; padding: 22px; border-right: 1px solid var(--line); }
.status-strip article:last-child { border-right: 0; }
.status-strip small { display: block; margin-bottom: 9px; color: #7387a3; font-weight: 800; letter-spacing: .09em; font-size: 10px; }
.status-strip strong { display: flex; align-items: center; gap: 9px; font-size: clamp(17px, 2vw, 25px); }
.status-strip em { color: var(--muted); font-size: 12px; font-style: normal; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel, .support-panel {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(13, 27, 46, .96), rgba(6, 14, 25, .98));
}
.panel { overflow: hidden; }
.panel.wide { grid-column: 1 / -1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-bottom: 1px solid var(--line); }
.panel-head h2, .support-panel h2 { margin: 7px 0 0; font-size: clamp(24px, 3vw, 38px); }
.section-label { margin: 0; }
.verified-badge { padding: 8px 12px; border-radius: 999px; background: rgba(48, 145, 76, .16); color: #8bf0a1; font-weight: 900; font-size: 12px; }

.info-list { margin: 0; padding: 5px 28px 22px; }
.info-list div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid rgba(43, 63, 87, .5); }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 800; color: #d8eef5; }

.service-list { padding: 7px 28px 24px; }
.service-list > * { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(43, 63, 87, .5); }
.service-list > *:last-child { border-bottom: 0; }
.service-list span { display: grid; gap: 5px; }
.service-list small { color: var(--muted); }
.service-list em { padding: 7px 11px; border-radius: 999px; background: rgba(48, 145, 76, .16); color: #8bf0a1; font-weight: 900; font-style: normal; font-size: 11px; }
.service-list em.private { background: rgba(142, 70, 77, .18); color: #ffabb2; }
.service-list em.pending { background: rgba(167, 120, 31, .17); color: #ffd277; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-grid > div { padding: 28px; border-right: 1px solid var(--line); }
.feature-grid > div:last-child { border-right: 0; }
.feature-grid span { color: var(--cyan); font-weight: 900; font-size: 12px; }
.feature-grid b { display: block; margin-top: 18px; font-size: 19px; }
.feature-grid p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }

.support-panel {
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    margin-top: 22px; padding: 34px;
}
.support-panel p:last-child { margin: 13px 0 0; color: var(--muted); }
.support-panel > a { flex: 0 0 auto; padding: 17px 22px; border-radius: 14px; background: linear-gradient(100deg, var(--cyan), var(--blue)); color: #04111a; font-weight: 900; }

footer {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 26px clamp(18px, 4vw, 62px); border-top: 1px solid rgba(59, 82, 111, .38); color: var(--muted);
}
footer > div { display: grid; gap: 4px; }
footer strong { color: var(--text); letter-spacing: .12em; }
footer nav { display: flex; gap: 22px; }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 60px 0 30px; }
    .node-orbit { width: min(100%, 520px); }
    .status-strip { grid-template-columns: repeat(2, 1fr); }
    .status-strip article { border-bottom: 1px solid var(--line); }
    .content-grid { grid-template-columns: 1fr; }
    .panel.wide { grid-column: auto; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-grid > div { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .topbar { min-height: 72px; padding: 11px 14px; }
    .brand-mark { width: 46px; border-radius: 13px; font-size: 27px; }
    .brand strong { font-size: 15px; }
    .brand small { display: none; }
    .top-actions a:first-child { display: none; }
    .top-actions a { padding: 11px 13px; font-size: 13px; }
    main { padding-inline: 14px; padding-top: 18px; }
    .hero { padding-top: 34px; gap: 12px; }
    h1 { font-size: clamp(50px, 17vw, 76px); }
    .hero-copy > p { font-size: 16px; }
    .hero-actions { display: grid; }
    .hero-actions a { width: 100%; gap: 20px; }
    .node-orbit { width: min(100%, 380px); }
    .status-strip { grid-template-columns: 1fr 1fr; }
    .status-strip article { padding: 17px; }
    .status-strip article:last-child { grid-column: 1 / -1; }
    .panel-head { align-items: flex-start; flex-direction: column; padding: 22px 18px; }
    .info-list, .service-list { padding-inline: 18px; }
    .info-list div { grid-template-columns: 1fr; gap: 7px; }
    .info-list dd { text-align: left; }
    .service-list > * { align-items: flex-start; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid > div { border-right: 0; }
    .support-panel { align-items: stretch; flex-direction: column; padding: 24px 18px; }
    .support-panel > a { text-align: center; }
    footer { align-items: flex-start; flex-direction: column; }
    footer nav { flex-wrap: wrap; }
}


/* Realtime status expansion */
.status-strip {
    grid-template-columns: repeat(9, minmax(130px, 1fr));
    overflow-x: auto;
}
.status-strip article {
    min-width: 145px;
}
.status-strip strong.is-degraded,
.status-strip strong.is-degraded .live-dot {
    color: var(--danger);
}
.status-strip strong.is-degraded .live-dot {
    background: var(--danger);
    box-shadow: 0 0 16px rgba(255, 117, 128, .65);
}

@media (max-width: 1180px) {
    .status-strip {
        grid-template-columns: repeat(3, 1fr);
        overflow: hidden;
    }
    .status-strip article {
        min-width: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 640px) {
    .status-strip {
        grid-template-columns: 1fr 1fr;
    }
    .status-strip article:last-child {
        grid-column: 1 / -1;
    }
}


/* ==========================================================
   Phase 1: Global Peer Intelligence
========================================================== */
.network-intelligence { margin-top: 28px; }
.section-heading {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
    margin-bottom: 20px; padding: 8px 2px;
}
.section-heading h2 { margin: 8px 0 10px; font-size: clamp(32px, 4vw, 58px); letter-spacing: -.045em; }
.section-heading > div:first-child > p:last-child { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.65; }
.network-live { display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(9,20,35,.78); font-size: 12px; font-weight: 900; }
.intelligence-summary { display: grid; grid-template-columns: repeat(6, 1fr); overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(8,18,31,.88); }
.intelligence-summary article { padding: 20px; border-right: 1px solid var(--line); }
.intelligence-summary article:last-child { border-right: 0; }
.intelligence-summary small { display: block; margin-bottom: 8px; color: #7387a3; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.intelligence-summary strong { font-size: clamp(24px, 3vw, 38px); }
.intelligence-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; }
.map-panel { grid-row: span 2; }
.panel-head.compact { padding: 22px 24px; }
.panel-head h3 { margin: 6px 0 0; font-size: clamp(21px, 2.4vw, 31px); }
.peer-map-wrap { position: relative; min-height: 420px; padding: 16px; background: radial-gradient(circle at 50% 50%, rgba(49,131,151,.12), transparent 65%); }
#peer-map { display: block; width: 100%; height: auto; }
.map-grid path { fill: none; stroke: rgba(86,118,150,.13); stroke-width: 1; }
.continents path { fill: #0b2635; stroke: #225064; stroke-width: 2; }
.peer-map-dot { fill: var(--green); stroke: #d9ffe3; stroke-width: 1.5; filter: url(#dotGlow); cursor: pointer; }
.peer-map-ring { fill: url(#mapGlow); }
.map-empty { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: min(90%, 460px); padding: 18px; text-align: center; color: var(--muted); border: 1px solid var(--line); border-radius: 16px; background: rgba(5,11,19,.9); }
.map-note { padding: 0 24px 22px; color: #7890aa; font-size: 12px; }
.ranking-list { padding: 8px 24px 22px; }
.rank-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(43,63,87,.5); }
.rank-row:last-child { border-bottom: 0; }
.rank-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name small { color: var(--muted); }
.rank-count { font-weight: 900; color: #dff9ff; }
.rank-bar { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: #12253a; }
.rank-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.loading-row { padding: 22px 0; color: var(--muted); }
.mix-panel { grid-column: 1 / -1; }
.mix-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 24px; }
.mix-columns h4 { margin: 0 0 15px; color: var(--muted); }
.donut-list { display: grid; gap: 12px; }
.mix-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; }
.mix-row span { display: flex; align-items: center; gap: 10px; }
.mix-row i { width: 10px; aspect-ratio: 1; border-radius: 50%; background: var(--cyan); }
.mix-row:nth-child(2) i { background: var(--green); }.mix-row:nth-child(3) i { background: var(--orange); }.mix-row:nth-child(4) i { background: #b48cff; }
.api-panel { margin-top: 22px; }
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 24px; }
.api-grid a { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(5,13,24,.66); }
.api-grid code { color: var(--cyan); overflow-wrap: anywhere; }
.api-grid span { color: var(--muted); }
@media (max-width: 1100px) {
    .intelligence-summary { grid-template-columns: repeat(3, 1fr); }
    .intelligence-summary article { border-bottom: 1px solid var(--line); }
    .intelligence-grid { grid-template-columns: 1fr; }
    .map-panel { grid-row: auto; }
}
@media (max-width: 640px) {
    .section-heading { align-items: flex-start; flex-direction: column; }
    .intelligence-summary { grid-template-columns: 1fr 1fr; }
    .intelligence-summary article { padding: 16px; }
    .peer-map-wrap { min-height: auto; padding: 5px; }
    .mix-columns, .api-grid { grid-template-columns: 1fr; }
    .panel-head.compact { padding-inline: 18px; }
    .ranking-list, .mix-columns, .api-grid { padding-inline: 18px; }
}
