* {
    box-sizing: border-box;
}

:root {
    --bg: #08111f;
    --surface: rgba(17, 31, 51, .78);
    --surface-solid: #111f33;
    --surface-light: #172944;
    --border: rgba(148, 163, 184, .18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #41d1ff;
    --accent-2: #8b5cf6;
    --success: #34d399;
    --danger: #fb7185;
    --shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 5%, rgba(65, 209, 255, .12), transparent 30rem),
        radial-gradient(circle at 90% 22%, rgba(139, 92, 246, .12), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(148, 163, 184, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .09) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 36px));
    margin: 18px auto 0;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(8, 17, 31, .74);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #07111d;
    font-size: 20px;
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #cbd5e1;
    font-size: 14px;
}

nav a:hover {
    color: white;
}

.panel-link {
    padding: 10px 14px;
    border: 1px solid rgba(65, 209, 255, .32);
    border-radius: 11px;
    background: rgba(65, 209, 255, .08);
}

main {
    position: relative;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    align-items: center;
    gap: 62px;
    min-height: 680px;
    padding: 90px 0 60px;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

h1 {
    max-width: 760px;
    margin: 18px 0 22px;
    font-size: clamp(44px, 7vw, 78px);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-copy > p,
.cta p {
    max-width: 680px;
    margin: 0;
    color: #b8c4d6;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 19px;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    transition: transform .2s ease, opacity .2s ease;
}

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

.button.primary {
    background: linear-gradient(135deg, var(--accent), #72e6ff);
    color: #06111d;
    box-shadow: 0 14px 34px rgba(65, 209, 255, .17);
}

.button.secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .035);
    color: var(--text);
}

.terminal {
    overflow: hidden;
    border: 1px solid rgba(65, 209, 255, .19);
    border-radius: 20px;
    background: rgba(5, 13, 25, .88);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .025);
}

.terminal-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fb7185;
}

.terminal-header span:nth-child(2) {
    background: #fbbf24;
}

.terminal-header span:nth-child(3) {
    background: #34d399;
}

.terminal-header strong {
    margin-left: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.terminal pre {
    margin: 0;
    padding: 28px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.terminal b {
    color: var(--success);
}

.terminal em {
    color: var(--danger);
    font-style: normal;
}

.prompt {
    color: var(--accent);
}

.section {
    padding: 80px 0;
}

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

h2 {
    margin: 9px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #dbe5f2;
    font-size: 13px;
    background: rgba(255, 255, 255, .035);
}

.live-pill i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.live-pill.is-online i {
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, .10);
}

.live-pill.is-offline i {
    background: var(--danger);
    box-shadow: 0 0 0 6px rgba(251, 113, 133, .10);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.status-card {
    min-height: 220px;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--surface), rgba(12, 23, 40, .72));
    box-shadow: 0 15px 45px rgba(0, 0, 0, .11);
}

.status-card .icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    margin-bottom: 30px;
    border-radius: 13px;
    background: rgba(65, 209, 255, .10);
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .07em;
}

.status-card span,
.status-card strong,
.status-card small {
    display: block;
}

.status-card span {
    color: var(--muted);
    font-size: 13px;
}

.status-card strong {
    margin: 8px 0;
    font-size: 25px;
    letter-spacing: -.025em;
    word-break: break-word;
}

.status-card small {
    color: #9eacc0;
    line-height: 1.5;
}

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.check-list article {
    display: flex;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(17, 31, 51, .55);
}

.check {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(52, 211, 153, .12);
    color: var(--success);
    font-weight: 900;
}

.check-list strong {
    font-size: 16px;
}

.check-list p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.error-box {
    margin: 25px 0 70px;
    padding: 20px;
    border: 1px solid rgba(251, 113, 133, .28);
    border-radius: 16px;
    background: rgba(127, 29, 29, .20);
}

.error-box p {
    margin-bottom: 0;
    color: #fecdd3;
    word-break: break-word;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 70px 0 95px;
    padding: 34px;
    border: 1px solid rgba(65, 209, 255, .20);
    border-radius: 22px;
    background:
        linear-gradient(125deg, rgba(65, 209, 255, .10), rgba(139, 92, 246, .09)),
        var(--surface);
}

.cta h2 {
    max-width: 700px;
    margin-bottom: 13px;
}

footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 25px 0 35px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    nav > a:not(.panel-link) {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: auto;
        padding-top: 80px;
    }

    .terminal {
        transform: none;
    }

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

@media (max-width: 620px) {
    .topbar {
        width: calc(100% - 20px);
        margin-top: 10px;
    }

    .brand small {
        display: none;
    }

    main,
    footer {
        width: calc(100% - 24px);
    }

    h1 {
        font-size: 46px;
    }

    .section {
        padding: 58px 0;
    }

    .section-heading,
    .cta {
        align-items: stretch;
        flex-direction: column;
    }

    .status-grid,
    .check-list {
        grid-template-columns: 1fr;
    }

    .status-card {
        min-height: 185px;
    }

    footer {
        flex-direction: column;
    }
}
