@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/ibm-plex-mono-600-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --gray-1: #5a5d66;
    --white: #ffffff;
    --primary-1: #438a2e;
    --primary-2: #e8f0e5;
    --primary-3: #ffd803;
    --gray-2: #ebebec;
    --gray-3: #f8f8f8;
    --border-color-dark: #1414141a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--gray-3);
    color: var(--gray-1);
    font-family: "Space Grotesk", sans-serif;
}

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

.page-shell {
    min-height: 100vh;
    padding: 48px 24px;
}

.hero-card {
    max-width: 1296px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color-dark);
    overflow: hidden;
    box-shadow: 0 12px 24px #0000001a;
}

.hero-topbar,
.control-panel,
.cta-panel {
    padding: 24px;
}

.hero-topbar,
.cta-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.eyebrow,
.pill,
.button,
.action-button,
.status-line {
    font-family: "IBM Plex Mono", sans-serif;
}

.brand-link {
    display: inline-block;
    margin-bottom: 12px;
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--primary-1);
}

h1,
h2 {
    margin: 0;
}

h1 {
    margin-bottom: 8px;
}

.hero-subtitle {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 24px;
    max-width: 640px;
}

.spec-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.pill {
    padding: 8px 12px;
    border-radius: 16px;
    background: var(--primary-2);
    font-size: 14px;
}

.stream-shell {
    position: relative;
    background: #111;
}

#stream-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
}

.overlay-message {
    position: absolute;
    inset: 24px;
    display: grid;
    place-items: center;
    padding: 24px;
    border-radius: 16px;
    background: rgb(17 17 17 / 78%);
    color: var(--white);
    text-align: center;
}

.overlay-message-offline {
    gap: 12px;
}

.overlay-message-offline h3,
.overlay-message-offline p {
    margin: 0;
}

.overlay-message-offline p {
    opacity: 0.85;
}

#unsupported-message {
    gap: 12px;
}

#unsupported-message h3,
#unsupported-message p {
    margin: 0;
}

#unsupported-message p {
    opacity: 0.85;
    font-size: 15px;
    line-height: 1.6;
}

.stream-canvas-offline {
    filter: grayscale(1) brightness(0.6);
}

.hidden {
    display: none;
}

.control-panel {
    border-top: 1px solid var(--border-color-dark);
}

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

.action-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: box-shadow .2s, background-color .2s, border-color .2s, opacity .2s;
    font-size: 14px;
    font-weight: 600;
}

.action-button {
    background: var(--primary-1);
    color: var(--white);
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 16px 18px;
}

.action-button small {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.75;
    line-height: 1.3;
}

.action-button:hover,
.button-primary:hover {
    box-shadow: inset 100px 0 100px 100px #0000004d;
}

.action-button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.status-line {
    margin: 0;
    padding: 16px 24px;
    background: var(--gray-3);
    border-top: 1px solid var(--border-color-dark);
}

/* Info section: 3-column explainer cards */

.info-section {
    padding: 24px;
    border-top: 1px solid var(--border-color-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--gray-3);
    border-radius: 8px;
    padding: 24px;
}

.info-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.info-card p {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
}

/* Network / Looking Glass section */

.network-section {
    padding: 24px;
    border-top: 1px solid var(--border-color-dark);
}

.network-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--gray-3);
    border-radius: 8px;
    padding: 24px;
}

.network-inner h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.network-inner p {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    max-width: 560px;
}

.network-inner .button {
    flex-shrink: 0;
}

/* CTA footer */

.cta-panel {
    border-top: 1px solid var(--border-color-dark);
    background: var(--gray-1);
    color: var(--white);
}

.cta-subline {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 22px;
    font-family: "IBM Plex Mono", sans-serif;
    opacity: 0.7;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.button-primary {
    background: var(--primary-1);
    color: var(--white);
}

.button-outline {
    border-color: var(--border-color-dark);
    color: var(--gray-1);
}

.button-outline-white {
    border-color: #ffffff40;
    color: var(--white);
}

/* Site footer */

.site-footer {
    max-width: 1296px;
    margin: 24px auto 0;
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: "IBM Plex Mono", sans-serif;
    font-size: 13px;
    color: var(--gray-1);
    opacity: 0.6;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    font-weight: 600;
    transition: opacity .2s;
}

.site-footer a:hover {
    opacity: 0.6;
}

/* Responsive */

@media (max-width: 991px) {
    .hero-topbar,
    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

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

@media (max-width: 767px) {
    .page-shell {
        padding: 24px 12px;
    }

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

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

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