/* =========================================================
   SEÇÃO — COMPONENTES
   grade bento e cartões de componente com imagem
   ========================================================= */

/* Próxima Seção (Aparece ao continuar rolando) */
.next-section{
    position: relative;
    width: 100%;
    min-height: 100vh; /* Garante tamanho completo para a segunda seção */
    background-color: #080808;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    z-index: 10;
}.next-section h2{
    font-family: "Syncopate", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
}.next-section p{
    color: #a1a1a6;
    font-size: 1.1rem;
}
/* Cabeçalho das Especificações */
.specs-head{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
/* Bento de componentes: 4x5 preenchido (2x2, 2x1 e 1x1) */
.bento {
    display: grid;
    width: min(1180px, 100%);
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, minmax(200px, auto));
    grid-template-areas:
        "b1 b1 b1 s1 s1 s1"
        "b1 b1 b1 s2 s2 s2"
        "s3 s3 s3 b2 b2 b2"
        "s4 s4 s4 b2 b2 b2"
        "b3 b3 b3 s5 s5 s5"
        "b3 b3 b3 s6 s6 s6";
    gap: 14px;
}.bento-card--sup{
    grid-area: b1;
}.bento-card--mot{
    grid-area: b3;
}.bento-card--pnt{
    grid-area: s2;
}.bento-card--chs{
    grid-area: b2;
}.bento-card--brk{
    grid-area: s3;
}.bento-card--air{
    grid-area: s4;
}.bento-card--shk{
    grid-area: s1;
}.bento-card--sft{
    grid-area: s5;
}.bento-card--acc{
    grid-area: s6;
}.bento-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: #0c0c0e;
    cursor: pointer;
    outline: none;
    transition:
        border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scrim permanente: o titulo precisa ser legivel sem hover */
.bento-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.bento-card:focus-visible {
    border-color: rgba(0, 255, 102, 0.6);
    box-shadow:
        0 0 0 2px rgba(0, 255, 102, 0.55),
        0 12px 34px rgba(0, 0, 0, 0.5);
}
/* Sem o brilho verde: aqui a imagem é a protagonista */
.bento-card::after{
    content: none;
}.bento-card__img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}.bento-card:hover .bento-card__img{
    transform: scale(1.09);
}.bento-card__body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 3;
    padding: 18px 22px 20px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(0, 0, 0, 0.9) 55%,
        rgba(0, 0, 0, 0.62) 100%
    );
    transform: translateY(101%);
    opacity: 0;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

/* hover do mouse, foco do teclado e estado ativo por toque */
.bento-card:hover .bento-card__body,
.bento-card:focus .bento-card__body,
.bento-card:focus-within .bento-card__body {
    transform: translateY(0);
    opacity: 1;
}

/* scrim some quando o painel cobre */
.bento-card:hover::before,
.bento-card:focus::before {
    opacity: 0;
}.bento-card__title {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 18px;
    z-index: 2;
    font-family: "Syncopate", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00ff66;
    transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* quando o painel sobe, o titulo cede o lugar */
.bento-card:hover .bento-card__title,
.bento-card:focus .bento-card__title {
    opacity: 0;
    transform: translateY(-8px);
}.bento-card__text{
    font-size: 0.8rem;
    line-height: 1.55;
    color: #d8d8dd;
    overflow: hidden;
}.bento-card--sft .bento-card__text,
.bento-card:hover{
    border-color: rgba(0, 255, 102, 0.5);
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.5),
        0 0 42px rgba(0, 255, 102, 0.12);
}
/* Telas médias: mantém o par (1 grande | 2 empilhados) em 2 colunas */
@media (max-width: 900px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        grid-auto-rows: minmax(220px, auto);
        grid-template-areas:
            "b1 b1"
            "s1 s2"
            "b2 b2"
            "s3 s4"
            "b3 b3"
            "s5 s6";
    }
}
/* Celular: 1 coluna */
@media (max-width: 520px) {
    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(180px, auto);
        grid-template-areas:
            "b1"
            "s1"
            "s2"
            "b2"
            "s3"
            "s4"
            "b3"
            "s5"
            "s6";
    }

    .bento-card__title {
        left: 18px;
        right: 18px;
        bottom: 14px;
    }

    .bento-card__body {
        padding: 16px 18px 18px;
    }
}
