
/* =========================================================
   CATALYST - HUGGING FACE FINAL RESPONSIVE HOME STYLESHEET
   Target: match local Catalyst layout across screen sizes
   Replace static/css/style.css with this entire file.
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #020711;
    --bg-soft: #04101e;
    --panel: linear-gradient(145deg, rgba(6, 23, 44, 0.96), rgba(2, 13, 27, 0.96));
    --panel-border: rgba(42, 139, 219, 0.44);
    --panel-border-soft: rgba(42, 111, 171, 0.25);

    --text: #f4f7fc;
    --text-soft: #a9b7ca;
    --text-muted: #71849e;

    --blue: #259eff;
    --cyan: #4bdfff;
    --purple: #a94cff;
    --green: #48df82;

    --content-max: 1480px;
    --side-pad: clamp(18px, 2.5vw, 42px);
    --section-gap: clamp(18px, 1.8vw, 28px);
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--bg);
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 28%, rgba(0, 113, 223, 0.10), transparent 30%),
        radial-gradient(circle at 84% 46%, rgba(122, 47, 216, 0.08), transparent 30%),
        linear-gradient(180deg, #020711 0%, #020914 50%, #01050c 100%);
}

body,
button,
input,
textarea,
select {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video,
canvas {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

[hidden] {
    display: none !important;
}

/* background grid */
.background-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(29, 143, 230, 0.28) 1px, transparent 1.5px);
    background-size: 150px 150px;
    background-position: 16px 8px;
    opacity: 0.25;
}

/* main page */
.page-shell {
    position: relative;
    width: min(var(--content-max), calc(100% - (var(--side-pad) * 2)));
    min-height: 100vh;
    margin: 0 auto;
    padding: 10px 0 24px;
}

/* shared panel */
.glass-panel {
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* =========================================================
   TOP NAVIGATION
   ========================================================= */

.top-navigation {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 70px;
}

.slide-navigation {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(132, 157, 187, 0.42);
}

.powered-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 7px 11px;
    border: 1px solid rgba(43, 124, 198, 0.18);
    border-radius: 10px;
    background: rgba(4, 16, 31, 0.34);
}

.powered-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(42, 148, 255, 0.38));
}

.powered-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.powered-brand-text span {
    color: #8fa8c5;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.powered-brand-text strong {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   CATALYST BRAND HEADER
   ========================================================= */

.brand-header {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: -8px;
    padding: 0 0 16px;
    text-align: center;
}

.brand-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(108, 72, 255, 0.36));
}

.brand-main h1 {
    margin: 0;
    color: #f5f7fb;
    font-size: clamp(50px, 5vw, 72px);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: clamp(8px, 0.9vw, 12px);
}

.brand-subtitle {
    margin: 12px 0 0;
    color: #f0f3f9;
    font-size: clamp(12px, 1vw, 16px);
    font-weight: 400;
    letter-spacing: clamp(3px, 0.45vw, 5px);
}

.brand-tagline {
    margin: 14px 0 0;
    color: #d9e0eb;
    font-size: clamp(8px, 0.75vw, 11px);
    font-weight: 600;
    letter-spacing: clamp(2px, 0.35vw, 4px);
}

.brand-line {
    width: 160px;
    height: 2px;
    margin-top: 14px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--blue) 25%,
            #f5f6ff 50%,
            var(--purple) 75%,
            transparent
        );
}

/* =========================================================
   MAIN TWO-COLUMN AREA
   ========================================================= */

.hero-layout {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
    align-items: stretch;
    gap: var(--section-gap);
    width: 100%;
    margin-top: 2px;
}

.network-column,
.command-panel {
    min-width: 0;
}

/* left column */
.network-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.globe-area {
    position: relative;
    width: 100%;
    height: clamp(360px, 31vw, 480px);
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 40%, rgba(11, 49, 88, 0.16), transparent 56%);
}

.globe-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #00040a;
}

.globe-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
}

.globe-video-vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 48% 44%,
            transparent 38%,
            rgba(0, 6, 16, 0.08) 62%,
            rgba(0, 5, 14, 0.68) 100%
        );
}

.globe-video-sheen {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        linear-gradient(
            120deg,
            rgba(27, 156, 255, 0.05),
            transparent 34%,
            transparent 63%,
            rgba(150, 59, 255, 0.04)
        );
}

.globe-loading {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: grid;
    place-items: center;
    color: #778aa3;
    font-size: 11px;
    letter-spacing: 1.1px;
    background: rgba(1, 7, 16, 0.92);
    transition: opacity 220ms ease, visibility 220ms ease;
}

.globe-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.globe-video-error {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: none;
    place-items: center;
    padding: 30px;
    color: #9bacc1;
    text-align: center;
    background: rgba(3, 11, 24, 0.96);
}

.globe-video-error.visible {
    display: grid;
}

.globe-help {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 10;
    padding: 6px 11px;
    border: 1px solid rgba(39, 141, 222, 0.46);
    border-radius: 999px;
    color: #71869f;
    font-size: 8px;
    background: rgba(2, 15, 29, 0.82);
}

/* metrics */
.network-information {
    display: grid;
    grid-template-columns: minmax(190px, 0.54fr) minmax(0, 1.46fr);
    gap: 12px;
    width: 100%;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 66px;
    padding: 12px 16px;
}

.health-dot {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(72, 223, 130, 0.86);
}

.status-label {
    margin: 0;
    color: #c5d2e0;
    font-size: 8px;
    letter-spacing: 0.35px;
}

.network-status strong {
    display: block;
    margin-top: 5px;
    color: var(--green);
    font-size: 14px;
    font-weight: 600;
}

.network-statistics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 66px;
    overflow: hidden;
}

.network-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border-right: 1px solid rgba(44, 93, 139, 0.28);
}

.network-stat:last-child {
    border-right: 0;
}

.network-stat-icon {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 18px;
}

.network-stat strong {
    display: block;
    color: #e8eef7;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.network-stat p {
    margin: 4px 0 0;
    color: #788ba3;
    font-size: 7px;
    line-height: 1.25;
}

/* =========================================================
   COMMAND PANEL
   ========================================================= */

.command-panel {
    width: 100%;
    padding: clamp(20px, 1.7vw, 28px);
    overflow: hidden;
}

.command-introduction h2 {
    margin: 0;
    color: #f2f5fb;
    font-size: clamp(28px, 2.1vw, 36px);
    font-weight: 500;
    letter-spacing: -0.4px;
}

.command-introduction p {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: clamp(12px, 0.9vw, 15px);
    line-height: 1.5;
}

.command-introduction p span {
    color: var(--cyan);
}

.panel-divider {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    background:
        linear-gradient(
            90deg,
            rgba(56, 117, 173, 0.52),
            rgba(56, 117, 173, 0.12)
        );
}

.command-question {
    margin: 0 0 14px;
    color: #b2bfd0;
    font-size: clamp(13px, 0.95vw, 16px);
}

/* action cards */
.action-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    min-height: 90px;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(56, 135, 205, 0.42);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.action-card:hover {
    transform: translateY(-2px);
}

.action-purple {
    border-color: rgba(164, 72, 255, 0.72);
    background:
        linear-gradient(
            135deg,
            rgba(41, 20, 78, 0.92),
            rgba(13, 20, 51, 0.95)
        );
}

.action-blue {
    border-color: rgba(37, 149, 237, 0.74);
    background:
        linear-gradient(
            135deg,
            rgba(4, 49, 83, 0.92),
            rgba(5, 24, 48, 0.95)
        );
}

.action-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 36px;
    font-weight: 200;
    line-height: 1;
}

.purple-icon {
    border: 2px solid var(--purple);
    color: var(--purple);
    background: rgba(58, 24, 104, 0.38);
}

.search-icon {
    border: 2px solid var(--blue);
    background: rgba(9, 61, 103, 0.38);
}

.search-icon::before {
    content: "";
    position: absolute;
    width: 34%;
    height: 34%;
    border: 3px solid var(--blue);
    border-radius: 50%;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: 18%;
    bottom: 20%;
    width: 28%;
    height: 3px;
    border-radius: 999px;
    background: var(--blue);
    transform: rotate(45deg);
}

.action-content {
    min-width: 0;
}

.action-content strong {
    display: block;
    color: #f4f6fb;
    font-size: clamp(16px, 1.15vw, 20px);
    font-weight: 600;
    line-height: 1.25;
}

.action-content small {
    display: block;
    margin-top: 6px;
    color: #a6b3c6;
    font-size: clamp(9px, 0.7vw, 12px);
    line-height: 1.45;
}

.action-arrow {
    color: #aebcd0;
    font-size: 34px;
    font-weight: 200;
    line-height: 1;
}

.action-purple .action-arrow {
    color: var(--purple);
}

.action-blue .action-arrow {
    color: var(--blue);
}

/* activity */
.activity-divider {
    margin-top: 20px;
    margin-bottom: 13px;
}

.activity-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-heading > span {
    color: var(--cyan);
    font-size: 15px;
}

.activity-heading h3 {
    margin: 0;
    color: #dfe7f0;
    font-size: 12px;
    font-weight: 600;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 5px 11px;
    border-right: 1px solid rgba(48, 91, 132, 0.24);
}

.activity-item:first-child {
    padding-left: 0;
}

.activity-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.activity-icon {
    flex: 0 0 auto;
    font-size: 17px;
}

.purple-text { color: var(--purple); }
.blue-text { color: var(--blue); }
.cyan-text { color: var(--cyan); }
.green-text { color: var(--green); }

.activity-item strong {
    display: block;
    color: #eaf0f8;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.activity-item p {
    margin: 5px 0 0;
    color: #788ba3;
    font-size: 7px;
    line-height: 1.4;
}

/* =========================================================
   FEATURE STRIP
   ========================================================= */

.feature-strip {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin-top: 14px;
    padding: 14px 16px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 7px 16px;
    border-right: 1px solid rgba(45, 88, 130, 0.24);
}

.feature-card:first-child {
    padding-left: 4px;
}

.feature-card:last-child {
    padding-right: 4px;
    border-right: 0;
}

.feature-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 20px;
}

.feature-card h3 {
    margin: 0;
    color: #e2e8f1;
    font-size: 11px;
    font-weight: 600;
}

.feature-card p {
    margin: 5px 0 0;
    color: #7c8da3;
    font-size: 8px;
    line-height: 1.45;
}

/* footer */
.page-footer {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    padding: 16px 16px 4px;
    color: #8091a7;
    font-size: 9px;
    text-align: center;
}

.page-footer > span {
    color: var(--purple);
}

.page-footer strong {
    color: #aebed1;
    font-weight: 500;
}

/* =========================================================
   RESPONSIVE - LAPTOP / TABLET
   ========================================================= */

@media (max-width: 1180px) {
    .page-shell {
        width: calc(100% - 24px);
    }

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

    .network-column {
        order: 1;
    }

    .command-panel {
        order: 2;
    }

    .globe-area {
        height: min(58vw, 560px);
        min-height: 360px;
    }

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

    .feature-card:nth-child(2) {
        border-right: 0;
    }

    .feature-card:nth-child(-n + 2) {
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(45, 88, 130, 0.24);
    }

    .feature-card:nth-child(n + 3) {
        padding-top: 14px;
    }
}

@media (max-width: 820px) {
    .top-navigation {
        min-height: 52px;
    }

    .powered-brand-logo {
        width: 34px;
        height: 34px;
    }

    .brand-main {
        gap: 12px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand-main h1 {
        font-size: 44px;
        letter-spacing: 7px;
    }

    .brand-subtitle {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .brand-tagline {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .network-information {
        grid-template-columns: 1fr;
    }

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

    .network-stat:nth-child(2) {
        border-right: 0;
    }

    .network-stat:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(44, 93, 139, 0.28);
    }

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

    .activity-item {
        padding: 8px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(48, 91, 132, 0.24);
    }

    .activity-item:last-child {
        border-bottom: 0;
    }
}

/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 560px) {
    .page-shell {
        width: calc(100% - 16px);
    }

    .top-navigation {
        align-items: flex-start;
    }

    .slide-navigation {
        flex-wrap: wrap;
    }

    .powered-brand-text {
        display: none;
    }

    .brand-main {
        flex-direction: column;
        gap: 7px;
    }

    .brand-main h1 {
        font-size: 38px;
        letter-spacing: 6px;
    }

    .brand-subtitle {
        max-width: 94%;
        font-size: 9px;
        line-height: 1.6;
        letter-spacing: 2.2px;
    }

    .brand-tagline {
        max-width: 94%;
        font-size: 7px;
        line-height: 1.7;
        letter-spacing: 1.8px;
    }

    .globe-area {
        min-height: 300px;
        height: 82vw;
    }

    .network-statistics {
        grid-template-columns: 1fr;
    }

    .network-stat {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid rgba(44, 93, 139, 0.28);
    }

    .network-stat:last-child {
        border-bottom: 0;
    }

    .command-panel {
        padding: 16px;
    }

    .action-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        min-height: 90px;
        padding: 13px;
    }

    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .action-arrow {
        display: none;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 13px 3px;
        border-right: 0;
        border-bottom: 1px solid rgba(45, 88, 130, 0.24);
    }

    .feature-card:last-child {
        border-bottom: 0;
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
