/* --- Variáveis e Reset --- */
:root {
    --bg-main: #FFFFFF;
    --text-primary: #1C1C1C;
    --text-secondary: rgba(139, 139, 139, 0.733);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Estrutura Hero (Fullscreen Real) --- */

.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Altura dinâmica para mobile */
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

/* O Conteúdo (Texto) deve flutuar sobre o vídeo e a textura */
.hero-content {
    position: relative;
    z-index: 30;
    /* Garante que fique na frente de tudo */
    padding: 0 8%;
    width: 100%;
    /* Ocupa a largura total para alinhamento flex */
    max-width: 1500px;
    /* Limite opcional para o texto não espalhar demais */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
    /* Permite scroll através do texto */
}

/* Devolve interação aos botões */
.hero-content button,
.hero-content a {
    pointer-events: auto;
}

/* --- O VÍDEO (Com Textura Overlay) --- */

.hero-video-container {
    position: absolute !important;
    /* !important para sobrepor inline do GSAP */
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 10;
    /* Camada intermediária */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- A Textura/Overlay de Contraste --- */
.hero-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Preenche todo o container: top, left, right, bottom 0 */

    /* Textura preta com 50% de opacidade */
    background: rgba(0, 0, 0, 0.5);

    z-index: 15;
    /* Acima do vídeo (11), abaixo do texto (30) */
    pointer-events: none;
    /* Garante que o scroll passe direto */
}

#product-video {
    width: 100% !important;
    height: 100% !important;
    /* 'cover' faz o vídeo preencher a tela toda, cortando bordas se necessário. */
    object-fit: cover;

    z-index: 11;
    /* O vídeo em si fica atrás da textura */
    will-change: transform;
    pointer-events: none;
}

/* --- Elementos de Interface --- */

.nav-load {
    z-index: 100;
}

.scroll-hint {
    position: absolute;
    bottom: 5%;
    left: 8%;
    z-index: 40;
    /* Acima de tudo */
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Se você tem fundo escuro, mude para branco */
    color: rgb(255, 255, 255);
}

/* --- Tipografia e Efeitos --- */

.title-anim {
    display: block;
    /* Se o overlay estiver escuro, considere mudar a cor do texto para branco */
    /* color: #FFFFFF; */
}

.text-reveal-wrapper {
    overflow: hidden;
    display: inline-block;
}

.transparent-text {
    color: transparent;
    /* Se o overlay for escuro, mude o stroke para rgba(255, 255, 255, 0.3) */
    -webkit-text-stroke: 1px rgba(231, 231, 231, 0.3);
}

/* --- Indicador de Scroll --- */

.scroll-indicator {
    width: 1px;
    height: 30px;
    /* Se o overlay for escuro, mude para rgba(255, 255, 255, 0.2) */
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Se o overlay for escuro, mude para #FFFFFF */
    background: var(--text-primary);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

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

@media (max-width: 768px) {
    .hero-content {
        width: 100%;
        padding: 0 5%;
        text-align: center;
        align-items: center;
    }

    .scroll-hint {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* --- Reusable Interactions & Patterns --- */

.reveal-element {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

.transparent-text:hover {
    -webkit-text-stroke: 1px rgba(231, 231, 231, 1);
}

/* Beam Button Animation */
@keyframes shimmer {
    from {
        transform: translateX(-100%) skewX(-15deg);
    }

    to {
        transform: translateX(200%) skewX(-15deg);
    }
}

.beam-button {
    position: relative;
    overflow: hidden;
}

.beam-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.beam-button:hover::before {
    left: 100%;
}

/* Glow Effects */
.glow-on-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-on-hover:hover {
    box-shadow: 0 10px 40px rgba(28, 28, 28, 0.1);
    transform: translateY(-4px);
}

/* Micro-interactions */
.interactive-scale {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-scale:active {
    transform: scale(0.95);
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100%;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    animation: marquee 30s linear infinite;
}

/* Bg Grid */
.bg-grid {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* --- Suporte Lenis --- */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-stopped {
    overflow: hidden;
}
