:root {
    --electric-blue: #00D5FF;
    --neon-glow: rgba(0, 213, 255, 0.4);
    --text-desc: rgba(210, 240, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #000;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Background */
.video-background {
    position: fixed;
    inset: 0;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
}

/* 
   RIBBON CONTAINER (4 CORNERS GRID)
*/
.ribbon-container {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 40px;
    z-index: 1000;
    pointer-events: none;
    /* Permite cliques passarem para elementos abaixo se necessário, mas os boxes terão auto */
}

.ribbon-box {
    width: 450px;
    max-width: 100%;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 213, 255, 0.12), rgba(0, 213, 255, 0.05));
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    padding: 0 25px;
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 213, 255, 0.3);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Posicionamento nos Cantos */
.top-left {
    justify-self: start;
    align-self: start;
}

.top-right {
    justify-self: end;
    align-self: start;
    text-align: right;
    flex-direction: row-reverse;
}

.bottom-left {
    justify-self: start;
    align-self: end;
}

.bottom-right {
    justify-self: end;
    align-self: end;
    text-align: right;
    flex-direction: row-reverse;
}

.top-right .ribbon-marker,
.bottom-right .ribbon-marker {
    margin-right: 0;
    margin-left: 25px;
}

.ribbon-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Simetria dos Markers */
.ribbon-marker {
    width: 8px;
    height: 32px;
    /* Marker tipo barra vertical */
    background: var(--electric-blue);
    margin-right: 25px;
    box-shadow: 0 0 15px var(--electric-blue);
    flex-shrink: 0;
}

.ribbon-box h3 {
    font-size: 1.05rem;
    color: var(--electric-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 213, 255, 0.7);
}

.ribbon-box p {
    font-size: 0.85rem;
    color: var(--text-desc);
    font-weight: 300;
}

/* Hover Effect */
.ribbon-box:hover {
    background: rgba(0, 213, 255, 0.2);
    transform: scale(1.05);
    border-color: var(--electric-blue);
    box-shadow: 0 0 40px rgba(0, 213, 255, 0.2);
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .ribbon-container {
        grid-template-columns: 1fr;
        /* Uma coluna no mobile */
        grid-template-rows: auto auto 1fr auto auto;
        /* Espaço no meio */
        padding: 20px;
        gap: 15px;
    }

    .ribbon-box {
        width: 100%;
        height: 65px;
        /* Um pouco maior no mobile para legibilidade */
        justify-self: center !important;
        flex-direction: row !important;
        /* Reseta direção no mobile */
        text-align: left !important;
    }

    .ribbon-marker {
        margin-right: 15px !important;
        margin-left: 0 !important;
    }

    /* Força ordem para manter "Cima" e "Baixo" */
    .top-left {
        grid-row: 1;
    }

    .top-right {
        grid-row: 2;
    }

    /* O 1fr no grid-rows cria o espaço central aqui */
    .bottom-left {
        grid-row: 4;
    }

    .bottom-right {
        grid-row: 5;
    }

    .ribbon-box h3 {
        font-size: 1.0rem;
    }

    .ribbon-box p {
        font-size: 0.8rem;
        white-space: normal;
    }
}