:root {
    --bg: #050814;
    --bg-2: #080d1c;
    --panel: rgba(13, 20, 39, 0.78);
    --panel-strong: #0d152a;
    --panel-soft: rgba(16, 25, 48, 0.7);

    --line: rgba(140, 168, 220, 0.13);
    --line-strong: rgba(140, 168, 220, 0.22);

    --text: #f4f7ff;
    --text-soft: #9da9c5;
    --text-muted: #6f7d9b;

    --cyan: #3ee7ff;
    --blue: #4e8cff;
    --violet: #a775ff;
    --green: #4cf5b1;
    --yellow: #ffc966;
    --red: #ff6685;

    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 13px;

    --shadow:
        0 28px 80px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


* {
    box-sizing: border-box;
}


html {
    min-height: 100%;
    background: var(--bg);
}


body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(77, 76, 255, 0.10), transparent 32%),
        radial-gradient(circle at 88% 14%, rgba(0, 213, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #050814 0%, #070b16 52%, #050711 100%);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.45;
    overflow-x: hidden;
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.23;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}


.ambient {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .08;
    pointer-events: none;
}


.ambient-one {
    top: 100px;
    left: -180px;
    background: var(--violet);
}


.ambient-two {
    top: 500px;
    right: -220px;
    background: var(--cyan);
}


.app-shell {
    position: relative;
    z-index: 1;
}


.topbar {
    height: 84px;
    padding: 0 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 8, 20, 0.76);
    backdrop-filter: blur(22px);
    position: sticky;
    top: 0;
    z-index: 20;
}


.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}


.brand-mark {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(62, 231, 255, .28);
    border-radius: 14px;
    position: relative;
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            145deg,
            rgba(62, 231, 255, .12),
            rgba(167, 117, 255, .07)
        );
    box-shadow:
        0 0 30px rgba(62, 231, 255, .08),
        inset 0 0 20px rgba(62, 231, 255, .04);
}


.brand-mark span {
    position: absolute;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    opacity: .75;
}


.brand-mark span:nth-child(1) {
    width: 24px;
    height: 10px;
    transform: rotate(18deg);
}


.brand-mark span:nth-child(2) {
    width: 24px;
    height: 10px;
    transform: rotate(-55deg);
}


.brand-mark span:nth-child(3) {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}


.brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .19em;
}


.brand-subtitle {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: .08em;
    margin-top: 2px;
}


.system-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(76, 245, 177, .18);
    border-radius: 999px;
    color: #9efbd6;
    background: rgba(76, 245, 177, .055);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}


.system-status.mini {
    padding: 7px 11px;
}


.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px var(--green);
    animation: pulse 1.9s infinite;
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .38; }
}


main {
    width: min(1520px, calc(100% - 56px));
    margin: 0 auto;
    padding: 52px 0 34px;
}


.hero {
    min-height: 370px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 50px;
    align-items: center;
    margin-bottom: 34px;
}


.eyebrow,
.section-kicker {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}


.hero h1 {
    max-width: 880px;
    margin: 17px 0 17px;
    font-size: clamp(46px, 6vw, 82px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 760;
}


.hero h1 span {
    display: block;
    background: linear-gradient(
        90deg,
        var(--cyan) 0%,
        #71a8ff 42%,
        #b38cff 78%,
        #d9b7ff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.hero-description {
    max-width: 710px;
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}


.hero-pills {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}


.hero-pills span {
    color: #b8c7e6;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}


.radar-panel {
    min-height: 325px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}


.radar {
    position: relative;
    width: 275px;
    height: 275px;
    flex: 0 0 auto;
    border: 1px solid rgba(62,231,255,.17);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(62,231,255,.08) 0%,
            rgba(62,231,255,.025) 45%,
            transparent 70%
        );
    box-shadow:
        0 0 90px rgba(62,231,255,.07),
        inset 0 0 70px rgba(62,231,255,.025);
    overflow: hidden;
}


.radar-ring {
    position: absolute;
    border: 1px solid rgba(62,231,255,.13);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.radar-ring-1 { width: 72%; height: 72%; }
.radar-ring-2 { width: 46%; height: 46%; }
.radar-ring-3 { width: 20%; height: 20%; }


.radar-axis {
    position: absolute;
    background: rgba(62,231,255,.11);
}


.radar-axis-x {
    width: 100%;
    height: 1px;
    top: 50%;
}


.radar-axis-y {
    height: 100%;
    width: 1px;
    left: 50%;
}


.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 284deg,
            rgba(62,231,255,.03) 310deg,
            rgba(62,231,255,.28) 356deg,
            transparent 360deg
        );
    animation: radarSweep 4.8s linear infinite;
}


@keyframes radarSweep {
    to { transform: rotate(360deg); }
}


.radar-core {
    width: 9px;
    height: 9px;
    position: absolute;
    top: calc(50% - 4.5px);
    left: calc(50% - 4.5px);
    border-radius: 50%;
    background: white;
    box-shadow:
        0 0 8px white,
        0 0 22px var(--cyan);
}


.radar-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 16px var(--cyan);
}


.dot-1 { top: 28%; left: 64%; }
.dot-2 { top: 66%; left: 31%; background: var(--violet); }
.dot-3 { top: 48%; left: 76%; background: var(--green); }


.radar-caption {
    display: flex;
    flex-direction: column;
}


.radar-caption span {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}


.radar-caption strong {
    font-size: 31px;
    margin-top: 6px;
}


.radar-caption small {
    color: var(--text-soft);
}


.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 17px;
}


.metric-card,
.glass-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(
            145deg,
            rgba(18, 27, 53, .80),
            rgba(8, 14, 30, .76)
        );
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}


.metric-card {
    min-height: 210px;
    border-radius: var(--radius-lg);
    padding: 23px;
}


.metric-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    top: -90px;
    right: -70px;
    border-radius: 50%;
    filter: blur(28px);
    opacity: .13;
}


.metric-card.cyan::before { background: var(--cyan); }
.metric-card.violet::before { background: var(--violet); }
.metric-card.blue::before { background: var(--blue); }
.metric-card.green::before { background: var(--green); }


.metric-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.metric-icon {
    font-size: 18px;
    color: var(--cyan);
}


.violet .metric-icon { color: var(--violet); }
.blue .metric-icon { color: var(--blue); }
.green .metric-icon { color: var(--green); }


.metric-tag {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
    color: var(--text-muted);
}


.metric-value {
    font-size: 50px;
    line-height: 1;
    font-weight: 760;
    letter-spacing: -.04em;
    margin-top: 30px;
}


.metric-denominator {
    font-size: 22px;
    color: var(--text-muted);
}


.metric-title {
    margin-top: 7px;
    font-size: 14px;
    font-weight: 700;
}


.metric-footer {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 9px;
}


.intelligence-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .72fr);
    gap: 17px;
    margin-bottom: 17px;
}


.glass-card {
    border-radius: var(--radius-xl);
}


.intelligence-card,
.coverage-card,
.table-card {
    padding: 27px;
}


.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}


.section-heading h2 {
    font-size: 19px;
    margin: 5px 0 0;
    letter-spacing: -.02em;
}


.live-chip {
    color: var(--green);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    border: 1px solid rgba(76,245,177,.16);
    background: rgba(76,245,177,.055);
    border-radius: 999px;
    padding: 7px 10px;
}


.pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    min-height: 105px;
}


.pipeline-node {
    min-width: 92px;
    display: flex;
    flex-direction: column;
}


.pipeline-number {
    font-size: 25px;
    font-weight: 760;
}


.pipeline-label {
    color: var(--text-muted);
    font-size: 10px;
    margin-top: 4px;
}


.pipeline-node.highlighted .pipeline-number {
    color: var(--cyan);
}


.pipeline-node.muted .pipeline-number {
    color: var(--violet);
}


.pipeline-line {
    height: 1px;
    min-width: 30px;
    flex: 1;
    background:
        linear-gradient(
            90deg,
            rgba(62,231,255,.10),
            rgba(62,231,255,.35),
            rgba(167,117,255,.12)
        );
}


.progress-block {
    border-top: 1px solid var(--line);
    padding-top: 19px;
}


.progress-heading {
    display: flex;
    justify-content: space-between;
    color: var(--text-soft);
    font-size: 11px;
}


.progress-heading strong {
    color: var(--cyan);
}


.progress-track {
    height: 7px;
    margin-top: 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    overflow: hidden;
}


.progress-value {
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--cyan),
            var(--violet)
        );
    box-shadow: 0 0 15px rgba(62,231,255,.32);
}


.coverage-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.coverage-card .section-heading {
    width: 100%;
}


.coverage-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        conic-gradient(
            var(--cyan) var(--coverage),
            rgba(255,255,255,.055) 0
        );
    box-shadow: 0 0 34px rgba(62,231,255,.08);
    position: relative;
}


.coverage-ring::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #0a1122;
}


.coverage-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}


.coverage-inner strong {
    display: block;
    font-size: 33px;
}


.coverage-inner span {
    color: var(--text-muted);
    font-size: 11px;
}


.coverage-caption {
    max-width: 240px;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    margin: 17px 0 0;
}


.table-card {
    margin-bottom: 17px;
}


.section-count {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
}


.table-scroll {
    overflow-x: auto;
}


table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}


thead th {
    padding: 11px 14px;
    color: #7785a3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid var(--line-strong);
}


tbody td {
    padding: 14px;
    color: #c4cee2;
    font-size: 12px;
    border-bottom: 1px solid rgba(140,168,220,.075);
    vertical-align: middle;
}


tbody tr {
    transition:
        background .18s ease,
        transform .18s ease;
}


tbody tr:hover {
    background: rgba(73, 113, 190, .055);
}


tbody tr:last-child td {
    border-bottom: 0;
}


.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}


.source-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}


.source-cell strong {
    color: #edf3ff;
    display: block;
    font-size: 12px;
}


.source-cell small {
    display: block;
    color: var(--text-muted);
    margin-top: 2px;
    font-size: 9px;
}


.source-orb {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(62,231,255,.5);
}


.soft-badge,
.signal-tag,
.source-code {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
}


.soft-badge {
    padding: 5px 7px;
    background: rgba(78,140,255,.065);
    border: 1px solid rgba(78,140,255,.10);
    color: #9ebcff;
    font-size: 9px;
}


.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
}


.status i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}


.status-live {
    color: #8cf7cf;
}


.status-live i {
    background: var(--green);
    box-shadow: 0 0 9px rgba(76,245,177,.55);
}


.status-queued {
    color: #7785a3;
}


.status-queued i {
    background: #53617f;
}


.status-warning {
    color: var(--yellow);
}


.status-warning i {
    background: var(--yellow);
    box-shadow: 0 0 9px rgba(255,201,102,.44);
}


.status-error {
    color: var(--red);
}


.status-error i {
    background: var(--red);
}


.source-count,
.accent-number {
    color: var(--cyan);
    font-weight: 750;
}


.muted-text,
.date-cell {
    color: var(--text-muted);
}


.source-code {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    padding: 5px 7px;
    color: #9fc8ff;
    background: rgba(78,140,255,.055);
    border: 1px solid rgba(78,140,255,.09);
    font-size: 9px;
}


.document-title {
    max-width: 540px;
}


.document-title strong {
    display: block;
    color: #edf2fd;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}


.document-title small {
    display: block;
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 9px;
}


.terms-cell {
    max-width: 340px;
}


.signal-tag {
    color: #d2baff;
    background: rgba(167,117,255,.07);
    border: 1px solid rgba(167,117,255,.13);
    padding: 4px 6px;
    margin: 2px 3px 2px 0;
    font-size: 8px;
    font-weight: 700;
}


.signal-more {
    color: var(--text-muted);
    font-size: 9px;
}


.open-link {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--cyan);
    text-decoration: none;
    background: rgba(62,231,255,.025);
    font-size: 15px;
    transition: .18s ease;
}


.open-link:hover {
    border-color: rgba(62,231,255,.35);
    background: rgba(62,231,255,.08);
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(62,231,255,.07);
}


.link-cell {
    width: 46px;
}


.error-number {
    color: var(--red);
    font-weight: 800;
}


.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 38px !important;
}


footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 5px 8px;
    color: var(--text-muted);
    font-size: 10px;
}


footer > div:first-child {
    display: flex;
    gap: 9px;
    align-items: center;
}


footer strong {
    color: #aebbd5;
    letter-spacing: .12em;
}


.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
}


@media (max-width: 1180px) {

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

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

    .radar-panel {
        justify-content: flex-start;
    }

    .intelligence-row {
        grid-template-columns: 1fr;
    }

    .coverage-card {
        align-items: flex-start;
    }

    .coverage-caption {
        text-align: left;
    }
}


@media (max-width: 720px) {

    .topbar {
        height: 72px;
        padding: 0 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .system-status {
        font-size: 8px;
    }

    main {
        width: calc(100% - 28px);
        padding-top: 30px;
    }

    .hero {
        min-height: auto;
        gap: 25px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-description {
        font-size: 14px;
    }

    .radar-panel {
        transform-origin: left center;
        transform: scale(.82);
        width: 122%;
        margin-bottom: -22px;
    }

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

    .metric-card {
        min-height: 170px;
    }

    .metric-value {
        margin-top: 20px;
        font-size: 43px;
    }

    .pipeline {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .pipeline-line {
        min-width: 45px;
    }

    .intelligence-card,
    .coverage-card,
    .table-card {
        padding: 19px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
