:root {
    color-scheme: light;
    --bg: #eef5f8;
    --panel: rgba(255, 255, 255, 0.62);
    --panel-strong: rgba(255, 255, 255, 0.86);
    --stroke: rgba(22, 43, 56, 0.13);
    --stroke-strong: rgba(22, 43, 56, 0.20);
    --text: #101820;
    --muted: rgba(16, 24, 32, 0.70);
    --soft: rgba(16, 24, 32, 0.52);
    --accent: #0a84ff;
    --accent-2: #30d158;
    --industrial: #00a7c7;
    --shadow: 0 34px 100px rgba(20, 45, 64, 0.18);
    --shadow-soft: 0 18px 55px rgba(20, 45, 64, 0.11);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

body {
    overflow-x: hidden;
}

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

.page-shell {
    min-height: 100vh;
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 30px 38px 34px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 8% 12%, rgba(0, 167, 199, 0.22), transparent 30%),
        radial-gradient(circle at 86% 16%, rgba(48, 209, 88, 0.18), transparent 28%),
        radial-gradient(circle at 52% 105%, rgba(10, 132, 255, 0.18), transparent 38%),
        linear-gradient(135deg, #f7fbfd 0%, #edf5f8 48%, #e8f2f5 100%);
}

.ambient-grid {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(22, 43, 56, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 43, 56, 0.055) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 76%);
}

.orb {
    position: absolute;
    z-index: -2;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    filter: blur(22px);
    opacity: 0.18;
}

.orb-one {
    right: -120px;
    top: 130px;
    background: var(--industrial);
}

.orb-two {
    left: -160px;
    bottom: -140px;
    background: var(--accent-2);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1420px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand img {
    display: block;
    width: min(620px, 72vw);
    height: auto;
    filter: drop-shadow(0 18px 34px rgba(20, 45, 64, 0.16));
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 17px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.70);
    color: rgba(16, 24, 32, 0.72);
    font-size: 0.93rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px) saturate(140%);
}

.pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.46);
    animation: pulse 2s infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(620px, 1.24fr) minmax(460px, 0.96fr);
    align-items: center;
    gap: 38px;
    max-width: 1420px;
    min-height: calc(100vh - 230px);
    margin: 0 auto;
    padding: 56px 0 42px;
}

.glass-card {
    border: 1px solid var(--stroke);
    background: linear-gradient(145deg, var(--panel-strong), var(--panel));
    box-shadow: var(--shadow);
    backdrop-filter: blur(32px) saturate(150%);
}

.intro-card {
    padding: clamp(38px, 5vw, 72px);
    border-radius: var(--radius-xl);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--industrial);
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(4rem, 6.1vw, 7.25rem);
    line-height: 0.91;
    letter-spacing: -0.078em;
}

.lead {
    max-width: 780px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: clamp(1.06rem, 1.7vw, 1.34rem);
    line-height: 1.62;
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 38px;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.96), rgba(48, 209, 88, 0.94));
    color: #ffffff;
    font-weight: 850;
    box-shadow: 0 18px 48px rgba(10, 132, 255, 0.22);
}

.secondary-note {
    color: var(--soft);
    font-weight: 750;
}

.telemetry-card {
    position: relative;
    min-height: 0;
    padding: 30px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.telemetry-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 18%, rgba(10, 132, 255, 0.10), transparent 32%),
        radial-gradient(circle at 86% 78%, rgba(48, 209, 88, 0.10), transparent 34%);
}

.panel-header,
.signal-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.panel-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--stroke);
    color: var(--muted);
    font-weight: 800;
}

.panel-header strong {
    color: #15803d;
}

.signal-stack {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.signal-row {
    padding: 18px 20px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.56);
    color: var(--muted);
    box-shadow: 0 10px 28px rgba(20, 45, 64, 0.08);
}

.signal-row strong {
    color: var(--text);
    white-space: nowrap;
}

.mini-diagram {
    position: relative;
    z-index: 1;
    height: 245px;
    margin-top: 30px;
    border: 1px solid var(--stroke-strong);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(90deg, rgba(10, 132, 255, 0.12), transparent 36%, rgba(48, 209, 88, 0.11)),
        repeating-linear-gradient(0deg, transparent 0 22px, rgba(22, 43, 56, 0.052) 23px 24px),
        rgba(255, 255, 255, 0.45);
    overflow: hidden;
}

.node,
.trace {
    position: absolute;
    display: block;
}

.node {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(16, 24, 32, 0.78);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0 26px rgba(10, 132, 255, 0.35);
}

.node-a { left: 14%; top: 58%; }
.node-b { left: 38%; top: 32%; }
.node-c { right: 34%; top: 64%; }
.node-d { right: 13%; top: 36%; }

.trace {
    height: 2px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(10, 132, 255, 0.88), rgba(48, 209, 88, 0.88));
    box-shadow: 0 0 18px rgba(10, 132, 255, 0.24);
}

.trace-one { left: 17%; top: 61%; width: 27%; transform: rotate(-28deg); }
.trace-two { left: 41%; top: 36%; width: 26%; transform: rotate(31deg); }
.trace-three { right: 16%; top: 42%; width: 24%; transform: rotate(151deg); }

.footer-note {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    max-width: 1420px;
    margin: 0 auto;
    color: var(--soft);
    font-size: 0.96rem;
    font-weight: 700;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.46); }
    70% { box-shadow: 0 0 0 10px rgba(48, 209, 88, 0); }
    100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

@media (max-width: 1180px) {
    .hero-content {
        grid-template-columns: 1fr;
        max-width: 920px;
        min-height: auto;
        padding-top: 52px;
    }

    .topbar,
    .footer-note {
        max-width: 920px;
    }

    .telemetry-card {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .hero {
        padding: 22px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand img {
        width: min(520px, 92vw);
    }

    .hero-content {
        padding-top: 42px;
    }

    .footer-note {
        flex-direction: column;
        padding-bottom: 20px;
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 16px;
    }

    .intro-card,
    .telemetry-card {
        border-radius: 24px;
    }

    .intro-card,
    .telemetry-card {
        padding: 24px;
    }

    h1 {
        font-size: clamp(3.05rem, 16vw, 4.6rem);
    }

    .lead {
        font-size: 1rem;
    }

    .primary-action {
        width: 100%;
    }

    .mini-diagram {
        height: 220px;
        margin-top: 24px;
    }
}

.not-found-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 30% 20%, rgba(10, 132, 255, 0.14), transparent 30%),
        linear-gradient(135deg, #f7fbfd 0%, #edf5f8 50%, #e8f2f5 100%);
}

.not-found-card {
    width: min(620px, 100%);
    text-align: center;
}

.loading-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    gap: 18px;
    padding: 32px;
    color: var(--muted);
    font-weight: 750;
    background:
        radial-gradient(circle at 8% 12%, rgba(0, 167, 199, 0.22), transparent 30%),
        radial-gradient(circle at 86% 16%, rgba(48, 209, 88, 0.18), transparent 28%),
        linear-gradient(135deg, #f7fbfd 0%, #edf5f8 48%, #e8f2f5 100%);
}

.loading-shell img {
    width: min(420px, 80vw);
    height: auto;
    filter: drop-shadow(0 18px 34px rgba(20, 45, 64, 0.16));
}

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 18px 18px 18px;
    z-index: 1000;
    padding: 16px 18px;
    border: 1px solid rgba(255, 59, 48, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 55px rgba(20, 45, 64, 0.18);
    color: #101820;
    backdrop-filter: blur(22px) saturate(140%);
}

#blazor-error-ui .reload {
    margin-left: 10px;
    font-weight: 850;
    color: var(--accent);
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}
