/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-royal: #01064a;
    --azul-royal-light: #0a1266;
    --azul-royal-dark: #000330;
    --amarelo-solar: #e7b809;
    --amarelo-solar-light: #f5ce3a;
    --amarelo-solar-dark: #c49c07;
    --branco: #ffffff;
    --branco-off: #f0f2f8;
    --cinza-claro: #e0e3ed;
    --cinza-texto: #8892b0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--azul-royal-dark);
    color: var(--branco);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#particles-bg .particle {
    position: absolute;
    border-radius: 50%;
    background: var(--amarelo-solar);
    opacity: 0.08;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--azul-royal-dark) 0%, var(--azul-royal) 40%, var(--azul-royal-light) 100%);
    text-align: center;
    padding: 40px 20px 60px;
    z-index: 1;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(231, 184, 9, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(231, 184, 9, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 50px rgba(255, 240, 180, 0.3)) drop-shadow(0 0 90px rgba(255, 240, 180, 0.15));
    animation: logoFloat 4s ease-in-out infinite, logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 40px rgba(255, 240, 180, 0.2)); }
    100% { filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 70px rgba(255, 240, 180, 0.35)) drop-shadow(0 0 110px rgba(255, 240, 180, 0.15)); }
}

/* ===== FACHADA IMAGE ===== */
.fachada-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 20px;
    overflow: hidden;
}

.fachada-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.fachada-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, var(--azul-royal) 0%, transparent 100%);
    pointer-events: none;
}

/* ===== CNPJ BADGE ===== */
.cnpj-badge {
    font-size: 0.72rem;
    color: var(--cinza-texto);
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.7;
}

/* ===== FUNNEL QUESTION ===== */
.funnel-question {
    margin-bottom: 28px;
}

.funnel-question h1 {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 16px;
}

/* ===== FUNNEL BUTTONS ===== */
.funnel-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
    max-width: 600px;
    margin: 0 auto 28px;
}

.funnel-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.funnel-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(231, 184, 9, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.funnel-btn:hover {
    border-color: var(--amarelo-solar);
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(231, 184, 9, 0.15),
        inset 0 1px 0 rgba(231, 184, 9, 0.2);
}

.funnel-btn:hover::before {
    opacity: 1;
}

.funnel-btn:hover .funnel-btn-img {
    transform: scale(1.08);
}

.funnel-btn:hover .funnel-btn-img-shine {
    left: 120%;
}

.funnel-btn:hover .funnel-btn-arrow {
    transform: translateX(4px);
    color: var(--amarelo-solar);
}

.funnel-btn:hover .funnel-btn-label {
    color: var(--amarelo-solar);
}

.funnel-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Button image */
.funnel-btn-img-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, rgba(1, 6, 74, 0.6) 0%, rgba(10, 18, 102, 0.4) 100%);
}

.funnel-btn-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.funnel-btn-img-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}

/* Button info */
.funnel-btn-info {
    padding: 14px 12px 8px;
    text-align: center;
}

.funnel-btn-label {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--branco);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.funnel-btn-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--cinza-texto);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.funnel-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 16px;
    color: var(--cinza-texto);
    transition: all 0.3s ease;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--amarelo-solar);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--amarelo-solar);
    border-radius: 2px;
    animation: highlightGrow 1.5s ease-out forwards;
    transform-origin: left;
}

@keyframes highlightGrow {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--amarelo-solar), var(--amarelo-solar-light));
    color: var(--azul-royal-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 24px;
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 184, 9, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(231, 184, 9, 0); }
}

/* Urgency Bar */
.urgency-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding: 14px 20px;
    background: rgba(231, 184, 9, 0.08);
    border: 1px solid rgba(231, 184, 9, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--amarelo-solar-light);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(255, 68, 68, 0); }
}

/* ===== OFERTA PAGE ===== */
.oferta-page {
    background: linear-gradient(160deg, var(--azul-royal-dark) 0%, var(--azul-royal) 50%, var(--azul-royal-light) 100%);
}

.oferta-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 80px;
    z-index: 1;
}

.oferta-content {
    text-align: center;
    max-width: 700px;
}

/* Confetti */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Back Link */
.back-link {
    display: inline-block;
    color: var(--cinza-claro);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    transition: color 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.back-link:hover {
    color: var(--amarelo-solar);
    background: rgba(255,255,255,0.08);
}

/* Logo Oferta */
.logo-oferta {
    max-width: 160px;
    margin-bottom: 24px;
}

/* Oferta Badge */
.oferta-badge {
    margin-bottom: 20px;
}

.oferta-badge-text {
    display: inline-block;
    background: linear-gradient(135deg, var(--amarelo-solar), var(--amarelo-solar-light));
    color: var(--azul-royal-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 50px;
    animation: tagPulse 2s ease-in-out infinite;
}

/* Oferta Title */
.oferta-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight-yellow {
    color: var(--amarelo-solar);
    position: relative;
    display: inline-block;
}

.highlight-yellow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--amarelo-solar);
    border-radius: 2px;
    animation: highlightGrow 1.2s ease-out 0.5s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

/* Oferta Subtitle */
.oferta-subtitle {
    font-size: 1.05rem;
    color: var(--cinza-claro);
    margin-bottom: 36px;
    line-height: 1.7;
}

.oferta-subtitle strong {
    color: var(--branco);
}

/* Código de Desconto Box */
.codigo-box {
    background: linear-gradient(145deg, rgba(231, 184, 9, 0.1) 0%, rgba(231, 184, 9, 0.03) 100%);
    border: 2px dashed var(--amarelo-solar);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.codigo-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(231, 184, 9, 0.05) 0%, transparent 50%);
    animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.codigo-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--amarelo-solar);
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.codigo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.codigo-valor {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--amarelo-solar);
    background: rgba(231, 184, 9, 0.08);
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid rgba(231, 184, 9, 0.2);
}

.btn-copiar {
    background: var(--amarelo-solar);
    color: var(--azul-royal-dark);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copiar:hover {
    background: var(--amarelo-solar-light);
    transform: scale(1.05);
}

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

.codigo-instrucao {
    font-size: 0.8rem;
    color: var(--cinza-texto);
    margin-top: 12px;
    position: relative;
}

/* Benefícios */
.beneficios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

.beneficio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--cinza-claro);
    transition: all 0.3s ease;
}

.beneficio-item:hover {
    background: rgba(231, 184, 9, 0.06);
    border-color: rgba(231, 184, 9, 0.2);
    transform: translateX(4px);
}

.beneficio-item strong {
    color: var(--branco);
}

.beneficio-icon {
    font-size: 1.3rem;
    min-width: 24px;
}

/* WhatsApp CTA Button */
.cta-section {
    margin-bottom: 32px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--branco);
    font-family: 'Montserrat', sans-serif;
    padding: 20px 40px;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        0 8px 32px rgba(37, 211, 102, 0.3),
        0 0 0 0 rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 12px 40px rgba(37, 211, 102, 0.4),
        0 0 0 0 rgba(37, 211, 102, 0);
}

.btn-whatsapp:active {
    transform: translateY(-1px) scale(0.98);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(37, 211, 102, 0.3),
            0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow:
            0 8px 32px rgba(37, 211, 102, 0.3),
            0 0 0 16px rgba(37, 211, 102, 0);
    }
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
}

.btn-whatsapp-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-whatsapp-main {
    font-size: 1.1rem;
    font-weight: 800;
}

.btn-whatsapp-sub {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.85;
}

/* Urgency / Countdown */
.urgency-section {
    margin-top: 8px;
}

.timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--cinza-claro);
}

.timer-box strong {
    color: #ff6b6b;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 1.8rem;
    font-weight: 900;
    padding: 12px 18px;
    min-width: 68px;
    color: var(--amarelo-solar);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cinza-texto);
    margin-top: 6px;
    font-weight: 600;
}

.countdown-sep {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--cinza-texto);
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 12px;
    opacity: 0.6;
}

footer p {
    font-size: 0.85rem;
    color: var(--cinza-texto);
    margin-bottom: 4px;
}

.footer-small {
    font-size: 0.7rem !important;
    color: var(--cinza-texto) !important;
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 32px 16px 48px;
    }

    .logo {
        max-width: 140px;
        margin-bottom: 12px;
    }

    .fachada-img {
        max-height: 200px;
    }

    .funnel-question h1 {
        font-size: 1.3rem;
    }

    .funnel-buttons {
        flex-direction: row;
        gap: 12px;
        max-width: 100%;
    }

    .funnel-btn {
        border-radius: 14px;
    }

    .funnel-btn-img-wrapper {
        height: 100px;
        border-radius: 12px 12px 0 0;
    }

    .funnel-btn-info {
        padding: 10px 8px 6px;
    }

    .funnel-btn-label {
        font-size: 0.95rem;
    }

    .funnel-btn-arrow {
        padding: 6px 0 12px;
    }

    .urgency-bar {
        font-size: 0.8rem;
        padding: 12px 16px;
    }

    .beneficios {
        grid-template-columns: 1fr;
    }

    .btn-whatsapp {
        padding: 16px 28px;
        flex-direction: row;
    }

    .btn-whatsapp-main {
        font-size: 1rem;
    }

    .codigo-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .codigo-valor {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }

    .countdown-number {
        font-size: 1.4rem;
        padding: 10px 14px;
        min-width: 56px;
    }

    .countdown-sep {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 24px 12px 40px;
    }

    .logo {
        max-width: 120px;
    }

    .fachada-img {
        max-height: 160px;
    }

    .funnel-question {
        margin-bottom: 20px;
    }

    .funnel-question h1 {
        font-size: 1.15rem;
    }

    .funnel-buttons {
        gap: 10px;
    }

    .funnel-btn-img-wrapper {
        height: 85px;
    }

    .funnel-btn-info {
        padding: 8px 6px 4px;
    }

    .funnel-btn-label {
        font-size: 0.82rem;
    }

    .funnel-btn-sub {
        font-size: 0.6rem;
    }

    .funnel-btn-arrow {
        padding: 4px 0 10px;
    }

    .funnel-btn-arrow svg {
        width: 16px;
        height: 16px;
    }

    .oferta-title {
        font-size: 1.5rem;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
    }
}

/* ===== SELECTION ANIMATION ===== */
.funnel-btn.selected {
    border-color: var(--amarelo-solar);
    background: rgba(231, 184, 9, 0.12);
    animation: btnSelected 0.5s ease forwards;
}

@keyframes btnSelected {
    0% { transform: scale(1); }
    30% { transform: scale(0.95); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* ===== SMOOTH REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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