:root {
    --bg: #07101b;
    --bg-soft: #0a1421;

    --surface: #0e1928;
    --surface-2: #111f30;
    --surface-hover: #14253a;

    --border: #22344a;
    --border-soft: #192a3e;

    --text: #f3f7fc;
    --muted: #91a3b9;
    --muted-2: #667b94;

    --blue: #4298ff;
    --blue-bright: #62adff;
    --purple: #7b5cff;

    --green: #18df8b;
    --green-soft: rgba(24, 223, 139, 0.08);

    --red: #ff6875;
    --red-soft: rgba(255, 104, 117, 0.08);

    --yellow: #f4c45f;

    --radius-sm: 8px;
    --radius: 13px;
    --radius-lg: 18px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.22);
}


* {
    box-sizing: border-box;
}


html {
    min-height: 100%;

    scroll-behavior: smooth;
}


body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(50, 111, 188, 0.15),
            transparent 36%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 15px;

    line-height: 1.55;
}


a {
    color: inherit;

    text-decoration: none;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


.container {
    width: min(
        1120px,
        calc(100% - 36px)
    );

    margin-inline: auto;
}


/* ============================================================
   Header
   ============================================================ */

.site-header {
    position: sticky;

    top: 0;

    z-index: 100;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);

    background:
        rgba(7, 16, 27, 0.88);

    backdrop-filter: blur(18px);
}


.header-inner {
    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;
}


.brand {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    font-weight: 750;

    letter-spacing: -0.01em;
}


.brand-mark {
    width: 36px;

    height: 36px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    color: white;

    font-size: 13px;

    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );

    box-shadow:
        0 8px 30px
        rgba(66, 152, 255, 0.24);
}


.brand-name {
    font-size: 17px;
}


.main-nav {
    display: flex;

    align-items: center;

    gap: 6px;
}


.main-nav a {
    padding: 8px 12px;

    border-radius: 8px;

    color: var(--muted);

    font-size: 14px;
}


.main-nav a:hover,
.main-nav a.active {
    color: var(--text);

    background:
        rgba(255, 255, 255, 0.055);
}


/* ============================================================
   Hero
   ============================================================ */

.hero {
    padding:
        72px
        0
        36px;
}


.hero .container {
    max-width: 1120px;
}


.eyebrow,
.section-kicker {
    color: var(--blue-bright);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.15em;
}


.hero h1 {
    margin:
        10px
        0
        0;

    max-width: 760px;

    font-size:
        clamp(
            38px,
            6vw,
            64px
        );

    line-height: 1.02;

    letter-spacing: -0.04em;
}


.hero-copy {
    max-width: 720px;

    margin:
        20px
        0
        0;

    color: var(--muted);

    font-size: 18px;
}


/* ============================================================
   Network
   ============================================================ */

.network-overview {
    margin-bottom: 54px;
}


.network-banner {
    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 48px;

    padding:
        12px
        16px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    background: var(--surface);

    font-size: 13px;

    font-weight: 650;
}


.status-dot {
    width: 9px;

    height: 9px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--muted);
}


.network-banner.healthy {
    color: var(--green);

    border-color:
        rgba(24, 223, 139, 0.45);

    background: var(--green-soft);
}


.network-banner.healthy .status-dot {
    background: var(--green);

    box-shadow:
        0 0 14px
        rgba(24, 223, 139, 0.7);
}


.network-banner.degraded {
    color: var(--red);

    border-color:
        rgba(255, 104, 117, 0.48);

    background: var(--red-soft);
}


.network-banner.degraded .status-dot {
    background: var(--red);
}


.network-banner.loading {
    color: var(--muted);
}


.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-top: 12px;
}


.stat-card {
    min-height: 92px;

    padding: 17px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            180deg,
            rgba(17, 31, 48, 0.96),
            rgba(13, 25, 40, 0.96)
        );
}


.stat-label {
    color: var(--muted);

    font-size: 11px;

    margin-bottom: 7px;
}


.stat-value {
    font-size: 23px;

    font-weight: 750;

    letter-spacing: -0.02em;
}


/* ============================================================
   Sections
   ============================================================ */

.section {
    margin-bottom: 58px;
}


.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 24px;

    margin-bottom: 16px;
}


.section-heading h2 {
    margin:
        5px
        0
        0;

    font-size: 23px;

    letter-spacing: -0.02em;
}


.section-heading p {
    margin:
        6px
        0
        0;

    color: var(--muted);
}


/* ============================================================
   Search
   ============================================================ */

.search-panel {
    padding: 8px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background: var(--surface);
}


.search-form {
    display: flex;

    gap: 8px;
}


.search-form input {
    flex: 1;

    min-width: 0;

    border: 0;

    outline: 0;

    padding:
        13px
        14px;

    color: var(--text);

    background: transparent;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;

    font-size: 13px;
}


.search-form input::placeholder {
    color: var(--muted-2);
}


.primary-button,
.secondary-button {
    border: 0;

    border-radius: 9px;

    padding:
        11px
        18px;

    color: white;

    font-weight: 700;
}


.primary-button {
    background:
        linear-gradient(
            135deg,
            #258cff,
            #3d75ea
        );
}


.primary-button:hover {
    filter: brightness(1.09);
}


.secondary-button {
    border:
        1px solid
        var(--border);

    color: var(--text);

    background: var(--surface-2);
}


.secondary-button:hover {
    background: var(--surface-hover);
}


.search-message {
    min-height: 0;

    padding:
        0
        14px;

    color: var(--muted);

    font-size: 13px;
}


.search-message:not(:empty) {
    padding:
        10px
        14px
        7px;
}


.search-result {
    padding:
        4px
        0
        0;
}


.hidden {
    display: none;
}


/* ============================================================
   File verification
   ============================================================ */

.drop-zone {
    padding:
        30px
        20px;

    text-align: center;

    border:
        1px dashed
        #334c68;

    border-radius:
        var(--radius);

    background:
        rgba(13, 25, 40, 0.58);

    transition:
        border-color 160ms ease,
        background 160ms ease;
}


.drop-zone.dragging {
    border-color: var(--blue);

    background:
        rgba(66, 152, 255, 0.07);
}


.drop-zone.found {
    border-color: var(--green);

    background: var(--green-soft);
}


.drop-zone.not-found {
    border-color: var(--red);

    background: var(--red-soft);
}


.drop-icon {
    width: 45px;

    height: 45px;

    display: grid;

    place-items: center;

    margin:
        0
        auto
        10px;

    border-radius: 12px;

    color: var(--blue-bright);

    border:
        1px solid
        var(--border);

    background: var(--surface-2);

    font-weight: 800;
}


.drop-title {
    font-weight: 750;

    margin-bottom: 3px;
}


.drop-copy {
    color: var(--muted);

    font-size: 13px;
}


.text-button {
    padding: 0;

    border: 0;

    color: var(--blue-bright);

    background: none;
}


.text-button:hover {
    text-decoration: underline;
}


.file-result {
    margin-top: 14px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;

    font-size: 12px;

    word-break: break-all;
}


/* ============================================================
   Validators
   ============================================================ */

.validator-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}


.validator-card {
    min-width: 0;

    padding: 16px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    background: var(--surface);
}


.validator-card.online {
    border-color:
        rgba(24, 223, 139, 0.34);
}


.validator-card.offline {
    border-color:
        rgba(255, 104, 117, 0.4);
}


.validator-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;
}


.validator-name {
    font-weight: 750;
}


.status-badge {
    padding:
        2px
        7px;

    border-radius: 999px;

    font-size: 10px;

    font-weight: 800;
}


.status-badge.online {
    color: var(--green);

    background:
        rgba(24, 223, 139, 0.08);
}


.status-badge.offline {
    color: var(--red);

    background:
        rgba(255, 104, 117, 0.08);
}


.validator-meta {
    margin-top: 13px;

    color: var(--muted);

    font-size: 12px;
}


.validator-address {
    margin-top: 9px;

    color: #c8d7e8;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;

    font-size: 11px;

    word-break: break-all;
}


.validator-head {
    margin-top: 7px;

    color: var(--muted-2);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;

    font-size: 10px;

    word-break: break-all;
}


/* ============================================================
   Blocks
   ============================================================ */

.block-list {
    display: grid;

    gap: 0;
}


.block-card,
.result-card {
    padding: 19px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            180deg,
            var(--surface-2),
            var(--surface)
        );

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.08);
}


.block-card.invalid {
    border-color: var(--red);
}


.block-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 13px;
}


.block-number {
    font-size: 16px;

    font-weight: 800;
}


.block-date {
    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}


.valid-badge {
    padding:
        3px
        8px;

    border:
        1px solid
        rgba(24, 223, 139, 0.5);

    border-radius: 999px;

    color: var(--green);

    background:
        rgba(24, 223, 139, 0.06);

    font-size: 10px;

    font-weight: 800;
}


.valid-badge.invalid {
    border-color:
        rgba(255, 104, 117, 0.5);

    color: var(--red);

    background: var(--red-soft);
}


.detail-grid {
    display: grid;

    grid-template-columns:
        145px
        minmax(0, 1fr);

    gap:
        7px
        15px;

    font-size: 12px;
}


.detail-label {
    color: var(--muted);
}


.detail-value {
    min-width: 0;

    color: #d8e4f1;
}


.hash {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;

    word-break: break-all;
}


.transaction {
    margin-top: 17px;

    padding-top: 14px;

    border-top:
        1px dashed
        #29405a;
}


.transaction-title {
    margin-bottom: 8px;

    color: var(--blue-bright);

    font-size: 11px;

    font-weight: 750;

    letter-spacing: 0.05em;
}


.chain-link {
    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 28px;

    color: var(--muted-2);

    font-size: 10px;
}


.chain-link::before {
    content: "";

    width: 1px;

    height: 18px;

    margin-right: 8px;

    background: var(--border);
}


.loading-card {
    padding: 28px;

    text-align: center;

    color: var(--muted);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    background: var(--surface);
}


/* ============================================================
   Results
   ============================================================ */

.result-card {
    margin-top: 4px;
}


.result-type {
    margin-bottom: 13px;

    color: var(--blue-bright);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.1em;
}


/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    margin-top: 75px;

    border-top:
        1px solid
        var(--border-soft);

    background:
        rgba(5, 12, 21, 0.65);
}


.footer-inner {
    min-height: 118px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


.footer-brand {
    font-weight: 800;
}


.footer-copy,
.footer-network {
    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {

    .stats-grid,
    .validator-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 640px) {

    .container {
        width:
            min(
                100% - 24px,
                1120px
            );
    }


    .header-inner {
        min-height: 62px;
    }


    .main-nav {
        display: none;
    }


    .hero {
        padding:
            48px
            0
            30px;
    }


    .hero-copy {
        font-size: 16px;
    }


    .stats-grid,
    .validator-grid {
        grid-template-columns: 1fr;
    }


    .section {
        margin-bottom: 46px;
    }


    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }


    .search-form {
        flex-direction: column;
    }


    .primary-button {
        width: 100%;
    }


    .detail-grid {
        grid-template-columns: 1fr;

        gap: 3px;
    }


    .detail-label {
        margin-top: 7px;

        font-size: 10px;

        text-transform: uppercase;

        letter-spacing: 0.06em;
    }


    .footer-inner {
        flex-direction: column;

        align-items: flex-start;

        justify-content: center;
    }

}