/*
 * Beta v1.0 launch splash.
 *
 * Fullscreen modal with a scrollable inner panel. Sits above everything
 * (z-index 99999) and traps the body scroll while it's up. Designed to
 * read as HYPE: dark panel, vespene-green eyebrow, big serif-display
 * title, scannable section grid.
 */

#beta-splash-root .beta-splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(ellipse at center,
        rgba(8, 16, 24, 0.92) 0%,
        rgba(0, 0, 0, 0.97) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: beta-splash-fade-in 220ms ease-out;
}

@keyframes beta-splash-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

#beta-splash-root .beta-splash-modal {
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    background: linear-gradient(180deg,
        #0e1a24 0%,
        #0a1218 100%);
    border: 1px solid rgba(79, 195, 247, 0.25);
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(79, 195, 247, 0.08),
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(79, 195, 247, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: beta-splash-rise 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes beta-splash-rise {
    from { transform: translateY(16px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Hero ------------------------------------------------------------------ */

#beta-splash-root .beta-splash-hero {
    padding: 36px 44px 28px;
    background: linear-gradient(135deg,
        rgba(102, 187, 106, 0.10) 0%,
        rgba(79, 195, 247, 0.08) 60%,
        transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#beta-splash-root .beta-splash-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #66bb6a;
    margin-bottom: 14px;
    text-transform: uppercase;
}

#beta-splash-root .beta-splash-title {
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

#beta-splash-root .beta-splash-subtitle {
    font-size: 16px;
    line-height: 1.55;
    color: #b0bec5;
    margin: 0;
    max-width: 720px;
}

/* Body grid ------------------------------------------------------------- */

#beta-splash-root .beta-splash-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 28px 44px 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 28px;

    /* Custom scrollbar to match the modal's palette */
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 195, 247, 0.35) transparent;
}

#beta-splash-root .beta-splash-body::-webkit-scrollbar {
    width: 10px;
}
#beta-splash-root .beta-splash-body::-webkit-scrollbar-track {
    background: transparent;
}
#beta-splash-root .beta-splash-body::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.30);
    border-radius: 5px;
}
#beta-splash-root .beta-splash-body::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.50);
}

#beta-splash-root .beta-splash-section h2 {
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #4fc3f7;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}

#beta-splash-root .beta-splash-section p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #cfd8dc;
    margin: 0;
}

/* Footer ---------------------------------------------------------------- */

#beta-splash-root .beta-splash-footer {
    padding: 20px 44px 28px;
    background: linear-gradient(0deg,
        rgba(102, 187, 106, 0.08) 0%,
        transparent 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

#beta-splash-root .beta-splash-footnote {
    margin: 0;
    font-size: 13px;
    color: #90a4ae;
    line-height: 1.5;
    flex: 1 1 320px;
    min-width: 0;
}

#beta-splash-root .beta-splash-cta {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #66bb6a 0%, #4fc3f7 100%);
    color: #0a1218;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(102, 187, 106, 0.30);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

#beta-splash-root .beta-splash-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 6px 24px rgba(102, 187, 106, 0.45);
}

#beta-splash-root .beta-splash-cta:active {
    transform: translateY(0);
    filter: brightness(0.96);
}

/* Mobile ---------------------------------------------------------------- */

@media (max-width: 720px) {
    #beta-splash-root .beta-splash-overlay {
        padding: 0;
    }
    #beta-splash-root .beta-splash-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    #beta-splash-root .beta-splash-hero {
        padding: 24px 22px 20px;
    }
    #beta-splash-root .beta-splash-body {
        padding: 22px 22px 8px;
        grid-template-columns: 1fr;
        gap: 18px;
    }
    #beta-splash-root .beta-splash-footer {
        padding: 18px 22px 22px;
    }
}
