:root {
    --bg: #07101d;
    --bg-soft: #0b1728;
    --panel: rgba(255, 255, 255, 0.07);
    --panel-strong: rgba(255, 255, 255, 0.11);
    --line: rgba(255, 255, 255, 0.14);
    --text: #edf6ff;
    --muted: #a9bbd2;
    --brand: #4de2ff;
    --brand-2: #8d7cff;
    --good: #53f0a2;
    --warn: #ffd166;
    --danger: #ff6b6b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --container: 1180px;
    --topbar: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(77, 226, 255, 0.20), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(141, 124, 255, 0.22), transparent 32%),
        linear-gradient(180deg, #07101d 0%, #0a1120 50%, #05080f 100%);
    color: var(--text);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.75; }
code {
    color: #b8f6ff;
    background: rgba(77, 226, 255, 0.1);
    border: 1px solid rgba(77, 226, 255, 0.16);
    padding: 0.15rem 0.42rem;
    border-radius: 9px;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.skip-link, .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    width: auto;
    height: auto;
    margin: 10px;
    padding: 12px 16px;
    clip: auto;
    background: var(--brand);
    color: #04101c;
    z-index: 50;
    border-radius: 12px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: var(--topbar);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 29, 0.72);
    backdrop-filter: blur(18px);
}
.topbar__inner {
    min-height: var(--topbar);
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}
.brand__mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #04101c;
    font-weight: 900;
    letter-spacing: -0.08em;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 34px rgba(77, 226, 255, 0.25);
}
.brand__text { display: grid; gap: 1px; }
.brand__text strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand__text small { color: var(--muted); }

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
}
.main-nav__link {
    padding: 11px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    transition: 180ms ease;
}
.main-nav__link:hover,
.main-nav__link.is-active {
    color: var(--text);
    background: var(--panel-strong);
}
.main-nav__link.is-active {
    box-shadow: inset 0 0 0 1px rgba(77, 226, 255, 0.22);
}
.nav-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
}
.nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 2px;
}

.site-main { min-height: 68vh; }
.hero {
    padding: 72px 0 42px;
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    gap: 34px;
    align-items: center;
}
.eyebrow {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
}
h1, h2, h3 { line-height: 1.05; margin: 0; }
h1 {
    font-size: clamp(2.5rem, 7vw, 5.7rem);
    letter-spacing: -0.07em;
    max-width: 900px;
}
h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); letter-spacing: -0.04em; }
h3 { font-size: 1.08rem; }
.lead {
    max-width: 720px;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero__actions,
.form-actions,
.subhero__row,
.table-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
    color: #04101c;
    background: linear-gradient(135deg, var(--brand), var(--good));
    border-color: transparent;
    box-shadow: 0 14px 36px rgba(77, 226, 255, 0.24);
}
.btn--ghost { background: var(--panel); color: var(--text); }
.btn--light { background: #eef9ff; color: #06111f; border-color: transparent; }
.hero__domains {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}
.hero__domains span {
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.035);
}

.card,
.network-panel,
.feature-card,
.api-banner {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.network-panel { padding: 22px; }
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.84rem;
}
.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 0 rgba(83, 240, 162, 0.7);
    animation: pulse 1.6s infinite;
}
.radar-card {
    position: relative;
    min-height: 330px;
    margin: 20px 0;
    display: grid;
    place-items: center;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(77,226,255,0.12), transparent 45%),
        radial-gradient(circle, rgba(77,226,255,0.18) 0 1px, transparent 1px);
    background-size: auto, 28px 28px;
}
.radar-card__rings {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    border: 1px solid rgba(77, 226, 255, 0.28);
    box-shadow: inset 0 0 0 55px rgba(77,226,255,0.025), inset 0 0 0 110px rgba(77,226,255,0.035);
    animation: rotate 14s linear infinite;
}
.radar-card__rings::after {
    content: '';
    position: absolute;
    inset: 50% 0 auto 50%;
    height: 1px;
    background: linear-gradient(90deg, var(--brand), transparent);
    transform-origin: left;
    width: 145px;
}
.radar-card__center {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    color: #04101c;
    font-weight: 950;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    z-index: 1;
}
.radar-card__node {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 22px var(--good);
}
.node-a { top: 20%; left: 30%; }
.node-b { right: 24%; top: 44%; background: var(--brand); box-shadow: 0 0 22px var(--brand); }
.node-c { left: 45%; bottom: 22%; background: var(--warn); box-shadow: 0 0 22px var(--warn); }
.mini-stats,
.hub-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.stat {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.045);
}
.stat strong { display: block; font-size: 1.28rem; }
.stat span { color: var(--muted); font-size: 0.83rem; }

.section-grid {
    padding: 38px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-card { padding: 26px; box-shadow: none; }
.feature-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(77,226,255,0.1);
    border: 1px solid rgba(77,226,255,0.18);
}
.split-section {
    padding: 50px 0;
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 28px;
    align-items: start;
}
.hub-strip { display: grid; gap: 12px; }
.hub-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,0.055);
}
.hub-pill strong { display: block; }
.hub-pill span { display: block; color: var(--muted); margin-top: 4px; }
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}
.badge--online { color: #062216; background: var(--good); }
.badge--offline { color: #2b0808; background: var(--danger); }
.api-banner {
    margin: 30px auto 72px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, rgba(77,226,255,0.22), rgba(141,124,255,0.22));
}

.subhero {
    padding: 54px 0 28px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
}
.subhero p { max-width: 720px; }
.subhero__row { justify-content: space-between; }
.form-layout {
    padding: 34px 0 72px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
    align-items: start;
}
.hub-form, .checklist, .toolbar, .table-card, .forum-topic, .forum-note { padding: 24px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.form-wide { grid-column: 1 / -1; }
label span,
.search-box span,
.toolbar label span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 0.88rem;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(4, 10, 18, 0.74);
    color: var(--text);
    padding: 14px 15px;
    outline: none;
    font: inherit;
}
input:focus, select:focus, textarea:focus {
    border-color: rgba(77,226,255,0.65);
    box-shadow: 0 0 0 4px rgba(77,226,255,0.12);
}
.form-message { margin: 0; min-height: 24px; }
.checklist ul, .plain-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}
.checklist li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--good);
    font-weight: 900;
}

.toolbar {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
}
.hub-grid {
    padding: 24px 0 72px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.hub-card { padding: 24px; }
.hub-card__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.hub-card h2 { font-size: 1.4rem; }
.hub-card__top p { margin: 8px 0 0; }
.hub-address {
    display: block;
    overflow-wrap: anywhere;
    margin-bottom: 16px;
}
.empty-state {
    margin-top: -40px;
    margin-bottom: 70px;
    padding: 22px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    text-align: center;
}
.table-card { margin-top: 30px; margin-bottom: 72px; }
.table-card__head { justify-content: space-between; margin-bottom: 18px; }
.table-card__head input { max-width: 320px; }
.table-wrap { overflow-x: auto; }
.hub-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}
.hub-table th,
.hub-table td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.hub-table th {
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.forum-grid {
    padding: 34px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.forum-topic span {
    color: var(--brand);
    font-weight: 950;
    letter-spacing: 0.12em;
}
.forum-topic h2 { margin-top: 18px; font-size: 1.45rem; }
.forum-topic a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--brand);
    font-weight: 900;
}
.forum-note { margin-bottom: 72px; }

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,0.22);
    padding: 42px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 28px;
}
.footer-grid h2,
.footer-grid h3 { margin-bottom: 10px; }
.plain-list li { color: var(--muted); padding: 4px 0; }
.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    flex-wrap: wrap;
}

.reveal { opacity: 0; transform: translateY(16px); animation: reveal 640ms ease forwards; }
.reveal--delay { animation-delay: 140ms; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(83, 240, 162, 0); } 100% { box-shadow: 0 0 0 0 rgba(83, 240, 162, 0); } }
@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(var(--topbar) + 10px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
        padding: 12px;
        background: rgba(7, 16, 29, 0.96);
        box-shadow: var(--shadow);
    }
    .main-nav.is-open { display: flex; }
    .main-nav__link { border-radius: 16px; }
    .hero__grid,
    .split-section,
    .form-layout,
    .footer-grid { grid-template-columns: 1fr; }
    .section-grid,
    .hub-grid,
    .forum-grid { grid-template-columns: 1fr; }
    .toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    :root { --topbar: 70px; }
    .brand__text small { display: none; }
    .hero { padding-top: 44px; }
    .radar-card { min-height: 240px; }
    .mini-stats,
    .hub-card__stats,
    .form-grid { grid-template-columns: 1fr; }
    .api-banner { display: grid; }
    .hub-pill { align-items: flex-start; flex-direction: column; }
}
