:root {
    --primary-gold: #ffbd3f;
    --primary-gold-glow: rgba(255, 189, 63, 0.6);
    --bg-dark: #0a0a0a;
    --bg-card: rgba(30, 30, 36, 0.7);
    --text-white: #ffffff;
    --text-grey: #a0a0a0;
    --font-main: 'Montserrat', sans-serif;
    --font-title: 'Montserrat', sans-serif;

    /* CONTROLES DO BANNER - DESKTOP */
    --banner-desk-width: 100%;
    --banner-desk-height: 100%;
    --banner-desk-pos-x: 20%;
    --banner-desk-pos-y: center;
    --banner-desk-size: cover;
    --banner-desk-opacity: 1;

    /* CONTROLES DO BANNER - MOBILE (CELULAR) */
    --banner-mob-width: 100%;
    --banner-mob-height: 100%;
    --banner-mob-pos-x: 40%;
    --banner-mob-pos-y: top;
    --banner-mob-size: cover;
    --banner-mob-opacity: 1;

    /* CONTROLE DE POSIÇÃO DO TEXTO NO MOBILE */
    --hero-content-padding-top-mob: 15rem;
    /* Aumente este valor para descer mais o texto */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Base Scaling Adjustment */
/* Simulates the 80% zoom look natively for desktops */
@media only screen and (min-width: 992px) {
    html {
        font-size: 80%;
        /* Reduces base unit size to achieve the 80% zoom effect */
    }
}

/* Fluid Images & Media */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* 3. Global Fluid Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(197, 160, 68, 0.2);
    position: relative;
    /* Integrado ao fluxo natural */
    width: 100%;
    z-index: 1000;
}

.info-pill {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--text-grey);
}

.date-label {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--primary-gold);
    font-weight: 600;
    letter-spacing: 1px;
}

.date-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-title);
    color: var(--primary-gold);
    text-shadow: 0 0 10px var(--primary-gold-glow);
}

.countdown {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.countdown-item {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-title);
    color: var(--primary-gold);
    text-shadow: 0 0 10px var(--primary-gold-glow);
}

.countdown-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-grey);
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 80px);
    /* Ajusta para ocupar o resto da tela (80px aprox é o header) */
    height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 10%;
    background-color: var(--bg-dark);
    gap: 4rem;
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--banner-desk-width);
    height: var(--banner-desk-height);
    background-image: url('img/banner_desktop.webp');
    background-size: var(--banner-desk-size);
    background-position: var(--banner-desk-pos-x) var(--banner-desk-pos-y);
    background-repeat: no-repeat;
    opacity: var(--banner-desk-opacity);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.sub-title {
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 1.1rem;
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 0.1rem;
    font-family: var(--font-title);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
}

.main-title span {
    color: var(--primary-gold);
    text-shadow: 0 0 15px var(--primary-gold-glow), 0 0 30px rgba(255, 189, 63, 0.3);
}

.description-large {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.description-large span {
    color: var(--primary-gold);
}

.description-small {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 500px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Form */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.input-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.input-group {
    position: relative;
    width: 100%;
}

.icon-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #25D366;
    /* WhatsApp Green */
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

/* Dark Input Style variant */
.white-input {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem 1.2rem;
    font-weight: 600;
    /* Aumentado para melhor leitura */
}

.white-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    /* Mais branco e visível */
    font-weight: 500;
}

.white-input:focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 2px rgba(255, 189, 63, 0.1);
    background: rgba(255, 255, 255, 0.08) !important;
}

.white-input.with-icon {
    padding-left: 3.5rem;
}

/* Removendo margem abaixo do CTA no mobile */
@media (max-width: 768px) {
    .cta-button {
        margin-bottom: 0 !important;
    }
}

.input-group input:not(.white-input):focus {
    border-color: var(--primary-gold);
}

.cta-button {
    position: relative;
    padding: 1.3rem 3rem;
    background: transparent;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    /* clip-path removido para permitir glow externo */
    z-index: 1;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 15px rgba(255, 189, 63, 0.5));
    animation: button-pulse 1.5s infinite ease-in-out;
}

@keyframes button-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gold);
    /* Clip path movido para o elemento de fundo */
    clip-path: polygon(0 0, 95% 0, 100% 20%, 100% 100%, 5% 100%, 0 80%);
    z-index: -2;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: linear-gradient(135deg,
            rgba(35, 35, 35, 0.95) 0%,
            rgba(10, 10, 10, 1) 100%);
    clip-path: polygon(0 0, 95% 0, 100% 20%, 100% 100%, 5% 100%, 0 80%);
    z-index: -1;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    animation: none;
    /* Pausa a pulsação para focar no brilho intenso */
    filter: drop-shadow(0 0 25px rgba(255, 189, 63, 1));
}

.cta-button:hover::before {
    opacity: 1;
    /* Garante visibilidade total */
}

.cta-button span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.form-footer {
    font-size: 0.8rem;
    color: var(--text-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: -0.5rem;
}

/* Marquee Ticker */
.marquee {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 189, 63, 0.2);
    overflow: hidden;
    display: flex;
    z-index: 1000;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    gap: 4rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.marquee-icon {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

/* 4. Media Queries (Granular & Fluid) */

@media only screen and (max-width: 1400px) {
    .main-title {
        font-size: 3.8rem;
    }
}

@media only screen and (max-width: 1200px) {
    .main-title {
        font-size: 3.4rem;
    }
}

@media only screen and (max-width: 992px) {
    .hero {
        padding: 6rem 5% 4rem;
    }

    .main-title {
        font-size: 3rem;
    }

    .description-large {
        font-size: 1.8rem;
    }
}

@media only screen and (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.6rem;
    }

    .info-pill {
        padding: 0.2rem 0.8rem;
        background: none;
    }

    .date-value {
        font-size: 1.3rem;
    }

    .countdown {
        gap: 0.8rem;
    }

    .countdown-value {
        font-size: 1.3rem;
    }

    .hero {
        padding-top: var(--hero-content-padding-top-mob);
        height: auto;
        min-height: calc(100vh - 120px);
        text-align: center;
        justify-content: flex-start;
        /* Alinhado ao topo */
        background-color: var(--bg-dark);
        padding-bottom: 2rem;
        flex-direction: column;
    }

    .hero-banner {
        width: var(--banner-mob-width);
        height: 600px;
        /* Altura fixa para o banner no mobile, sugerindo 'tamanho de fundo' consistente */
        background-image: url('img/banner_cel.webp');
        background-size: var(--banner-mob-size);
        background-position: var(--banner-mob-pos-x) var(--banner-mob-pos-y);
        opacity: var(--banner-mob-opacity);
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .description-large {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .description-small {
        margin: 0 auto 2rem;
        font-size: 0.9rem;
    }

    .form-container {
        width: 100%;
        max-width: 420px;
    }

    .input-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media only screen and (max-width: 600px) {
    .main-title {
        font-size: 2.4rem;
    }

    .description-large {
        font-size: 1.4rem;
    }

    .info-pill {
        font-size: 0.7rem;
    }

    .date-value {
        font-size: 1.1rem;
    }

    .marquee-item {
        font-size: 0.9rem;
        gap: 0.8rem;
    }

    .marquee {
        padding: 0.6rem 0;
    }
}

@media only screen and (max-width: 480px) {
    .hero {
        padding-top: var(--hero-content-padding-top-mob);
    }

    .main-title {
        font-size: 2.1rem;
    }

    .description-large {
        font-size: 1.3rem;
    }

    .description-small {
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    .sub-title {
        font-size: 0.8rem;
        letter-spacing: 0.2rem;
    }

    .cta-button {
        padding: 1.1rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-value,
    .date-value {
        font-size: 1rem;
    }
}

/* Adjust for very small devices */
@media only screen and (max-width: 360px) {
    .main-title {
        font-size: 1.8rem;
    }

    .description-large {
        font-size: 1.2rem;
    }

    .top-bar {
        padding: 0.4rem;
    }

    .info-pill {
        font-size: 0.65rem;
    }
}

/* =========================================
   5. Utilities & New Features
   ========================================= */

.hidden {
    display: none !important;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 189, 63, 0.3);
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.modal-icon i {
    font-size: 2.5rem;
    color: #25D366;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.modal-text {
    color: var(--text-grey);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.modal-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: #25D366;
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    transition: background 0.3s;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.modal-cta:hover {
    background: #20b858;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-grey);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}

/* Mobile Sticky Bar */
.mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 189, 63, 0.2);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.mobile-sticky.visible {
    transform: translateY(0);
}

.sticky-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

@media only screen and (max-width: 768px) {
    .mobile-sticky {
        display: block;
    }
}