/* ==========================================================================
   Home - Defuse The Bomb
   Estilos exclusivos da página inicial pública. Não é importado por
   nenhuma outra tela (dashboard, fila, rank, login) — usa o prefixo
   ".dtb-" para nunca colidir com classes globais de styles.css/theme.css.
   ========================================================================== */

.dtb {
    overflow-x: hidden;
    background: #120e17;
}

.dtb-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(145deg, var(--roxo-claro), var(--roxo));
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.dtb-eyebrow--roxo {
    color: var(--roxo);
    background: var(--roxo-bg);
}

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

.dtb-hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    isolation: isolate;
}

.dtb-hero__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
    animation: dtb-kenburns 22s ease-in-out infinite alternate;
}

@keyframes dtb-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.dtb-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 20%, rgba(142, 68, 173, 0.35), transparent 55%),
        linear-gradient(200deg, rgba(20, 14, 26, 0.55) 10%, rgba(15, 11, 20, 0.88) 75%, #0f0b14 100%);
}

.dtb-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.dtb-nav--scrolled {
    background: rgba(15, 11, 20, 0.72);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.dtb-nav__logo {
    height: 48px;
    width: 48px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.dtb-nav__links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dtb-nav__links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dtb-nav__links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dtb-nav__cta {
    background: linear-gradient(145deg, var(--roxo-claro), var(--roxo)) !important;
    box-shadow: var(--shadow-sm);
}

.dtb-nav__cta:hover {
    background: linear-gradient(145deg, var(--roxo), var(--roxo-escuro)) !important;
}

.dtb-hero__content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    padding: 2rem 1.5rem 4rem;
    margin: 0 auto;
    text-align: center;
}

.dtb-hero__content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.1rem;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.dtb-hero__content h1 span {
    background: linear-gradient(145deg, #ff6b6b, var(--vermelho));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dtb-hero__content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 2rem;
}

.dtb-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dtb-scroll {
    position: relative;
    z-index: 1;
    align-self: center;
    margin-bottom: 1.8rem;
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.dtb-scroll:hover {
    border-color: #fff;
    transform: translateY(3px);
}

.dtb-scroll span {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    animation: dtb-scroll-dot 1.6s ease infinite;
}

@keyframes dtb-scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* --------------------------------------------------------------------- */
/* Reveal on scroll                                                       */
/* --------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------- */
/* Seções gerais                                                          */
/* --------------------------------------------------------------------- */

.dtb-section {
    position: relative;
    padding: 5.5rem 0;
    background: #fff;
}

.dtb-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--texto);
    margin-bottom: 0.75rem;
}

.dtb-section > .container > .text-center {
    max-width: 640px;
    margin: 0 auto 3rem;
}

/* --------------------------------------------------------------------- */
/* Sobre / feature                                                        */
/* --------------------------------------------------------------------- */

.dtb-about {
    background: linear-gradient(180deg, #fff 0%, var(--roxo-bg) 100%);
}

.dtb-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.dtb-about__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}

.dtb-about__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(142, 68, 173, 0.25), transparent 60%);
    pointer-events: none;
}

.dtb-about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.dtb-about__media:hover img {
    transform: scale(1.06);
}

.dtb-about__text p {
    color: var(--texto-suave);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.dtb-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dtb-checklist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--texto);
}

.dtb-checklist i {
    color: var(--verde);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------- */
/* Como funciona                                                          */
/* --------------------------------------------------------------------- */

.dtb-steps__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.dtb-step {
    background: #fdfcfe;
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dtb-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--roxo-claro);
}

.dtb-step__num {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--roxo-claro), var(--roxo));
    box-shadow: var(--shadow-sm);
}

.dtb-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--texto);
}

.dtb-step p {
    color: var(--texto-suave);
    font-size: 0.95rem;
    margin: 0;
}

/* --------------------------------------------------------------------- */
/* Galeria                                                                */
/* --------------------------------------------------------------------- */

.dtb-gallery {
    background: var(--roxo-bg);
}

.dtb-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.dtb-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: none;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
    background: #000;
}

.dtb-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.dtb-gallery__item::after {
    content: "\F52A";
    font-family: "bootstrap-icons", sans-serif;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(180deg, transparent 40%, rgba(43, 35, 51, 0.75));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dtb-gallery__item:hover img {
    transform: scale(1.08);
}

.dtb-gallery__item:hover::after,
.dtb-gallery__item:focus-visible::after {
    opacity: 1;
}

/* --------------------------------------------------------------------- */
/* CTA final                                                              */
/* --------------------------------------------------------------------- */

.dtb-cta {
    padding: 6rem 0;
    text-align: center;
    color: #fff;
    background: #1c1624;
}

.dtb-cta__bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/home/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.28;
}

.dtb-cta .container {
    position: relative;
}

.dtb-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.dtb-cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
    margin: 0 auto 2rem;
}

.dtb-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------- */
/* Botões                                                                 */
/* --------------------------------------------------------------------- */

.dtb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.dtb-btn:hover {
    transform: translateY(-4px);
}

.dtb-btn--primary {
    color: #fff;
    background: linear-gradient(145deg, var(--roxo-claro), var(--roxo));
    box-shadow: 0 10px 24px rgba(142, 68, 173, 0.45);
}

.dtb-btn--primary:hover {
    color: #fff;
    background: linear-gradient(145deg, var(--roxo), var(--roxo-escuro));
    box-shadow: 0 14px 30px rgba(142, 68, 173, 0.55);
}

.dtb-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
}

.dtb-btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
}

.dtb-btn--outline {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: transparent;
}

.dtb-btn--outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
}

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

.dtb-footer {
    background: #0f0b14;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.dtb-footer__logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: block;
    opacity: 0.9;
}

.dtb-footer p {
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.dtb-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--roxo-claro), var(--roxo));
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dtb-footer__social:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.dtb-footer small {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------- */
/* Lightbox                                                               */
/* --------------------------------------------------------------------- */

.dtb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(10, 8, 13, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dtb-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.dtb-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.dtb-lightbox.is-open img {
    transform: scale(1);
}

.dtb-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dtb-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* --------------------------------------------------------------------- */
/* Responsivo                                                             */
/* --------------------------------------------------------------------- */

@media (max-width: 991px) {
    .dtb-about__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dtb-about__media {
        aspect-ratio: 16 / 10;
    }

    .dtb-steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dtb-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dtb-cta__bg {
        background-attachment: scroll;
    }
}

@media (max-width: 575px) {
    .dtb-hero__content {
        padding: 1.5rem 1.25rem 3rem;
    }

    .dtb-nav {
        padding: 1rem;
    }

    .dtb-nav__links a {
        font-size: 0.85rem;
        padding: 0.45rem 0.7rem;
    }

    .dtb-section {
        padding: 3.5rem 0;
    }

    .dtb-steps__grid {
        grid-template-columns: 1fr;
    }

    .dtb-gallery__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .dtb-btn {
        width: 100%;
        justify-content: center;
    }

    .dtb-hero__actions,
    .dtb-cta__actions {
        width: 100%;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dtb-hero__bg {
        animation: none;
    }

    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .dtb-scroll span {
        animation: none;
    }
}
