/* ================================================================
 * REFIN LANÇAMENTOS — style.css
 *
 *  1. Variáveis (design tokens)
 *  2. Reset / Base
 *  3. Utilitários
 *  4. Animações e keyframes
 *  5. Navbar landing
 *  6. Hero
 *  7. Ticker
 *  8. Seções — títulos e badges comuns
 *  9. Benefícios
 * 10. Como funciona (steps)
 * 11. Produtos (cards de lançamento)
 * 12. Números / Stats
 * 13. Momentos / Eventos
 * 14. Depoimentos (carousel)
 * 15. FAQ (accordion)
 * 16. CTA Final
 * 17. Footer
 * 18. Modal de cadastro
 * 19. Responsividade
 * ================================================================ */


/* ── 1. VARIÁVEIS ────────────────────────────────────────────── */
:root {
    --refin-azul:         #1B3E7C;
    --refin-azul-escuro:  #0D1B2A;
    --refin-azul-claro:   #2E5FA3;
    --refin-dourado:      #F4A91C;
    --refin-dourado-esc:  #C98D0D;
    --refin-fundo:        #F4F6F9;
    --refin-texto:        #2C2C2C;
    --refin-borda:        #E8EDF5;
    --fonte-base:         system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --raio-card:          16px;
    --sombra-card:        0 4px 24px rgba(0, 0, 0, .07);
    --sombra-card-hover:  0 14px 40px rgba(27, 62, 124, .14);
}


/* ── 2. RESET / BASE ─────────────────────────────────────────── */
body {
    font-family: var(--fonte-base);
    color: var(--refin-texto);
    overflow-x: hidden;
}

.pagina-landing {
    scroll-behavior: smooth;
}


/* ── 3. UTILITÁRIOS ──────────────────────────────────────────── */
.py-landing { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.bg-fundo-claro { background-color: var(--refin-fundo) !important; }
.z-1 { position: relative; z-index: 1; }
.destaque-dourado { color: var(--refin-dourado); }


/* ── 4. ANIMAÇÕES ────────────────────────────────────────────── */
@keyframes flutuar {
    0%, 100% { transform: translateY(0)   rotate(0deg); }
    50%       { transform: translateY(-22px) rotate(4deg); }
}
@keyframes piscar {
    0%, 100% { opacity: 1; }
    50%       { opacity: .2; }
}
@keyframes quicar {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes pulsar-btn {
    0%, 100% { box-shadow: 0 4px 24px rgba(244, 169, 28, .45); }
    50%       { box-shadow: 0 4px 40px rgba(244, 169, 28, .8); }
}
@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}

/* Scroll-reveal genérico */
.animar-entrada {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .7s ease, transform .7s ease;
}
.animar-entrada.animado {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }
.delay-6 { transition-delay: .48s; }


/* ── 5. NAVBAR LANDING ───────────────────────────────────────── */
.navbar-landing {
    background: transparent;
    transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}
.navbar-landing.scrolled {
    background: rgba(9, 20, 36, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
    padding-top: .7rem;
    padding-bottom: .7rem;
}
.navbar-landing .navbar-toggler-icon {
    filter: invert(1);
}
.nav-link-landing {
    color: rgba(255, 255, 255, .8) !important;
    font-weight: 500;
    transition: color .2s;
    padding: .5rem 1rem !important;
}
.nav-link-landing:hover { color: var(--refin-dourado) !important; }


/* ── 6. HERO ─────────────────────────────────────────────────── */
.hero-landing {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 18% 60%, rgba(46, 95, 163, .38) 0%, transparent 55%),
        radial-gradient(ellipse at 82% 15%, rgba(244, 169, 28, .07) 0%, transparent 40%),
        linear-gradient(160deg, #060E1D 0%, #0F2340 40%, #1B3E7C 72%, #08111F 100%);
    position: relative;
    overflow: hidden;
}

/* Grade sutil sobre o hero */
.hero-grade {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Formas decorativas flutuantes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
    position: absolute;
    border-radius: 50%;
    animation: flutuar var(--dur, 9s) ease-in-out infinite;
}
.hero-shape.shape-1 {
    width: 560px; height: 560px;
    border: 1px solid rgba(244, 169, 28, .08);
    top: -120px; right: -80px;
    --dur: 11s;
}
.hero-shape.shape-2 {
    width: 380px; height: 380px;
    background: rgba(27, 62, 124, .25);
    bottom: -100px; left: -60px;
    --dur: 8s;
    animation-delay: -3s;
}
.hero-shape.shape-3 {
    width: 180px; height: 180px;
    background: rgba(244, 169, 28, .08);
    top: 35%; right: 12%;
    --dur: 6s;
    animation-delay: -1.5s;
}

/* Badge "ao vivo" */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(244, 169, 28, .12);
    border: 1px solid rgba(244, 169, 28, .35);
    color: var(--refin-dourado);
    padding: .4rem 1.2rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.badge-live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #EF4444;
    border-radius: 50%;
    flex-shrink: 0;
    animation: piscar 1.4s ease-in-out infinite;
}

/* Tipografia hero */
.hero-titulo {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.5px;
}
.hero-subtitulo {
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    color: rgba(255, 255, 255, .82);
    font-weight: 300;
}
.hero-slogan {
    font-size: .95rem;
    color: rgba(255, 255, 255, .45);
    font-style: italic;
}

/* Contador regressivo */
.texto-contagem {
    font-size: .75rem;
    color: rgba(255, 255, 255, .45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}
.countdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.countdown-item { text-align: center; }
.countdown-numero {
    display: block;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: .5rem 1.1rem;
    min-width: 72px;
    backdrop-filter: blur(4px);
    font-variant-numeric: tabular-nums;
}
.countdown-label {
    display: block;
    font-size: .7rem;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: .35rem;
}
.countdown-sep {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, .3);
    font-weight: 300;
    line-height: 1;
    margin-top: -.4rem;
}

/* Botão CTA dourado */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    background: var(--refin-dourado);
    color: var(--refin-azul-escuro) !important;
    border: none;
    padding: .85rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, background .2s;
    animation: pulsar-btn 2.5s ease-in-out infinite;
    white-space: nowrap;
}
.btn-hero::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}
.btn-hero:hover {
    transform: translateY(-3px);
    background: #f6b830;
    animation: none;
    box-shadow: 0 8px 36px rgba(244, 169, 28, .55);
}
.btn-hero-lg {
    padding: 1.1rem 2.8rem;
    font-size: 1.1rem;
}

/* Botão primário azul */
.btn-refin-primario {
    background: var(--refin-azul);
    color: #fff !important;
    border: none;
    padding: .75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-refin-primario:hover {
    background: var(--refin-azul-claro);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 62, 124, .3);
    color: #fff !important;
}

/* Prova social no hero */
.hero-prova-social {
    color: rgba(255, 255, 255, .45);
    font-size: .88rem;
    margin: 0;
}

/* Seta de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    animation: quicar 1.8s ease-in-out infinite;
}
.scroll-arrow {
    width: 22px; height: 22px;
    border-right: 2px solid rgba(255,255,255,.35);
    border-bottom: 2px solid rgba(255,255,255,.35);
    transform: rotate(45deg);
}


/* ── 7. TICKER ───────────────────────────────────────────────── */
.ticker-strip {
    background: var(--refin-azul-escuro);
    padding: .7rem 0;
    overflow: hidden;
    border-top:    1px solid rgba(244, 169, 28, .2);
    border-bottom: 1px solid rgba(244, 169, 28, .2);
}
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 50s linear infinite;
    color: rgba(255, 255, 255, .55);
    font-size: .82rem;
    letter-spacing: .4px;
}


/* ── 8. SEÇÕES — TÍTULOS E BADGES ────────────────────────────── */
.badge-secao {
    display: inline-block;
    background: rgba(27, 62, 124, .08);
    color: var(--refin-azul);
    border: 1px solid rgba(27, 62, 124, .18);
    padding: .3rem 1.1rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.secao-titulo {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--refin-azul);
    line-height: 1.2;
}
.secao-subtitulo {
    color: #6B7280;
    font-size: 1.05rem;
    max-width: 580px;
    margin: .75rem auto 0;
}


/* ── 9. BENEFÍCIOS ───────────────────────────────────────────── */
.refin-card-beneficio {
    background: #fff;
    border: 1px solid var(--refin-borda);
    border-radius: var(--raio-card);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.refin-card-beneficio:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-card-hover);
}
.card-beneficio-icone {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--refin-azul), var(--refin-azul-claro));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}
.card-beneficio-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--refin-azul);
    margin-bottom: .75rem;
}


/* ── 10. COMO FUNCIONA ───────────────────────────────────────── */
.refin-step { padding: 1.5rem 1rem; }
.refin-step-numero {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--refin-dourado);
    color: var(--refin-azul-escuro);
    font-weight: 900;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(244, 169, 28, .4);
}
.refin-step-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--refin-azul);
    margin-bottom: .6rem;
}


/* ── 11. PRODUTOS ────────────────────────────────────────────── */
.refin-card-produto {
    background: #fff;
    border-radius: var(--raio-card);
    overflow: hidden;
    box-shadow: var(--sombra-card);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.refin-card-produto:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-card-hover);
}
.card-produto-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.card-produto-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    display: block;
}
.refin-card-produto:hover .card-produto-img-wrap img {
    transform: scale(1.08);
}
.card-produto-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%);
}
.card-produto-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    padding: .25rem .75rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    z-index: 1;
}
.badge-ativo { background: rgba(22, 163, 74, .9); color: #fff; }
.badge-breve { background: rgba(234, 179, 8, .9);  color: #1a1a1a; }

.card-produto-corpo {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-produto-icone {
    font-size: 1.6rem;
    margin-bottom: .5rem;
}
.card-produto-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--refin-azul);
    margin-bottom: .6rem;
}
.card-produto-corpo p {
    color: #6B7280;
    font-size: .9rem;
    line-height: 1.6;
    flex: 1;
}


/* ── 12. NÚMEROS / STATS ─────────────────────────────────────── */
.secao-numeros {
    background: linear-gradient(140deg, var(--refin-azul-escuro) 0%, var(--refin-azul) 60%, #091628 100%);
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
}
.secao-numeros-grade {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.stat-numero {
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--refin-dourado);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    color: rgba(255, 255, 255, .65);
    font-size: .95rem;
    margin-top: .5rem;
}


/* ── 13. MOMENTOS / EVENTOS ──────────────────────────────────── */
.refin-card-evento {
    border-radius: var(--raio-card);
    overflow: hidden;
    position: relative;
    height: 340px;
    cursor: pointer;
}
.refin-card-evento img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.refin-card-evento:hover img { transform: scale(1.1); }
.card-evento-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(9, 20, 36, .97) 0%, rgba(9, 20, 36, .6) 60%, transparent 100%);
    padding: 3rem 1.5rem 1.5rem;
    color: #fff;
    transition: padding-bottom .3s ease;
}
.refin-card-evento:hover .card-evento-overlay { padding-bottom: 2rem; }
.evento-tag {
    display: inline-block;
    background: var(--refin-dourado);
    color: var(--refin-azul-escuro);
    padding: .2rem .75rem;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: .6rem;
}
.evento-titulo {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.evento-desc {
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    line-height: 1.5;
    margin: 0;
}


/* ── 14. DEPOIMENTOS ─────────────────────────────────────────── */
.card-depoimento {
    background: #fff;
    border-radius: var(--raio-card);
    padding: 2.5rem 2rem;
    box-shadow: var(--sombra-card);
    border: 1px solid var(--refin-borda);
    max-width: 560px;
    margin: 0 auto;
}
.depoimento-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--refin-dourado);
    margin-bottom: 1rem;
}
.depoimento-estrelas {
    font-size: 1.1rem;
    margin-bottom: .75rem;
    letter-spacing: 2px;
}
.depoimento-texto {
    font-size: 1.05rem;
    color: var(--refin-texto);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.depoimento-nome {
    display: block;
    font-size: 1rem;
    color: var(--refin-azul);
    font-weight: 700;
}
.depoimento-local {
    font-size: .85rem;
    color: #9CA3AF;
    margin-top: .2rem;
    display: block;
}
.btn-carousel {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--refin-azul);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.btn-carousel:hover { background: var(--refin-azul-claro); }


/* ── 15. FAQ ─────────────────────────────────────────────────── */
.refin-accordion-item {
    border: 1px solid var(--refin-borda) !important;
    border-radius: var(--raio-card) !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.refin-accordion .accordion-button {
    font-weight: 600;
    color: var(--refin-azul);
    background: #fff;
    font-size: 1rem;
}
.refin-accordion .accordion-button:not(.collapsed) {
    background: var(--refin-azul);
    color: #fff;
    box-shadow: none;
}
.refin-accordion .accordion-button:not(.collapsed)::after { filter: invert(1); }
.refin-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(27,62,124,.15); }
.refin-accordion .accordion-body { background: #fff; }


/* ── 16. CTA FINAL ───────────────────────────────────────────── */
.secao-cta-final {
    background: linear-gradient(140deg, var(--refin-azul) 0%, var(--refin-azul-escuro) 100%);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}
.secao-cta-grade {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}


/* ── 17. FOOTER ──────────────────────────────────────────────── */
.footer-refin {
    background: var(--refin-azul-escuro);
    color: rgba(255, 255, 255, .65);
    padding: 4rem 0 2rem;
}
.footer-titulo-col {
    color: rgba(255, 255, 255, .9);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-links { margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--refin-dourado); }
.footer-divider { border-color: rgba(255, 255, 255, .1); }


/* ── 18. MODAL ───────────────────────────────────────────────── */
.modal-cadastro .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.modal-cadastro .modal-header {
    background: linear-gradient(135deg, var(--refin-azul-escuro), var(--refin-azul));
    padding: 1.5rem 2rem;
    border-bottom: none;
    border-radius: 18px 18px 0 0;
}
.modal-cadastro .form-control:focus {
    border-color: var(--refin-azul);
    box-shadow: 0 0 0 .2rem rgba(27, 62, 124, .15);
}
.modal-cadastro .form-label { color: var(--refin-azul); }


/* ── 19. RESPONSIVIDADE ──────────────────────────────────────── */
@media (max-width: 767px) {
    .py-landing { padding-top: 4rem; padding-bottom: 4rem; }
    .secao-cta-final { padding: 5rem 0; }
    .secao-numeros { padding: 4rem 0; }
    .refin-card-evento { height: 280px; }
    .card-depoimento { padding: 2rem 1.5rem; }
    .countdown-numero { min-width: 58px; font-size: 1.8rem; padding: .4rem .8rem; }
    .countdown-sep { font-size: 1.8rem; }
}

@media (min-width: 992px) {
    .refin-card-evento { height: 360px; }
}
