/* =========================
   Variáveis principais
   ========================= */
:root {
    --cf-green: #93cf0f;
    --cf-black: #0f0f0f;
    --cf-black-2: #111111;

    --cf-gray-dark: #222222;
    --cf-gray-medium: #444444;
    --cf-gray-light: #f5f5f5;

    --cf-red: #f60404;
    --cf-yellow: #ffbf00;
}

/* =========================
   Reset básico / base
   ========================= */
html,
body {
    min-height: 100%;
}

body {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* SAFETY: neutraliza qualquer fill transparente perdido */
body * {
    -webkit-text-fill-color: initial;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cf-black);
}

::-webkit-scrollbar-thumb {
    background-color: var(--cf-green);
    border-radius: 4px;
}

/* =========================
   Degradê global
   ========================= */
.bg-gradient-dark {
    background: linear-gradient(180deg, var(--cf-black) 0%, var(--cf-black-2) 50%, var(--cf-black) 100%);
    background-attachment: fixed;
}

@media (min-width:768px) {
    .bg-gradient-dark {
        background:
            radial-gradient(1200px 600px at 50% -10%, rgba(147, 207, 15, 0.10), transparent 60%),
            linear-gradient(180deg, var(--cf-black) 0%, var(--cf-black-2) 50%, var(--cf-black) 100%);
        background-attachment: fixed;
    }
}

/* Painel translúcido para seções */
.bg-panel {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: saturate(120%) blur(2px);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 1rem;
    padding: 2rem;
}

/* =========================
   Efeitos e utilitários
   ========================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.border-line {
    border-bottom: 1px solid var(--cf-gray-medium);
    transition: border-color .3s ease;
}

.card-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, .2);
}

main {
    overflow: visible;
}

/* =========================
   Títulos
   ========================= */
.title-cf {
    color: var(--cf-green);
}

/* Gradiente seguro (com fallback legível) */
.text-gradient-cf,
.title-gradient {
    background-image: linear-gradient(to right, #ffffff, var(--cf-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: #e8ffe0;
    /* fallback visível */
    display: inline-block;
    /* evita clipping em alguns navegadores */
}

@supports (-webkit-background-clip: text) or (background-clip: text) {

    .text-gradient-cf,
    .title-gradient {
        -webkit-text-fill-color: transparent;
        /* só aqui */
        color: transparent;
    }
}

/* Subtítulo de seção */
.section-sub {
    color: #cfcfcf;
    max-width: 60ch;
    margin-inline: auto;
}

/* =========================
   Botões
   ========================= */
.btn-primary {
    background: var(--cf-green);
    color: #000;
    padding: .7rem 1.2rem;
    border-radius: .8rem;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(147, 207, 15, .25);
    background: #a7e21f;
}

.btn-secondary {
    background: #1a1a1a;
    color: #fff;
    padding: .7rem 1.2rem;
    border-radius: .8rem;
    border: 1px solid rgba(255, 255, 255, .18);
    font-weight: 700;
    transition: transform .15s ease, border-color .2s ease, background .2s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: var(--cf-green);
    background: #242424;
}

/* Mini botão usado nos cards */
.btn-cf-mini {
    align-self: center;
    margin-top: auto;
    font-weight: 600;
    font-size: .875rem;
    padding: .5rem 1rem;
    border-radius: 9999px;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    background: #111;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
}

.btn-cf-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .08) inset;
}

/* Botão comprar (variação) */
.btn-cf-buy {
    background: var(--cf-green);
    color: #000;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, .06);
}

.btn-cf-buy:hover {
    background: #9ee41a;
    color: #000;
}

/* Botão WhatsApp */
.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--cf-green);
    color: #000;
    font-weight: 600;
    padding: .7rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform .2s ease, background-color .3s ease;
}

.btn-wa:hover {
    transform: scale(1.05);
}

.btn-wa svg {
    width: 20px;
    height: 20px;
    fill: #000;
}

.btn-wa .wa-dot {
    fill: #000;
}

/* Botão Any */
.btn-any {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #000;
    color: #fff;
    font-weight: 600;
    padding: .7rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform .2s ease, background-color .3s ease;
}

.btn-any:hover {
    transform: scale(1.05);
}

.btn-any svg {
    width: 20px;
    height: 20px;
    fill: #000;
}

.btn-any .wa-dot {
    fill: #000;
}

/* Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    z-index: 9999;
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

/* =========================
   Cards / KPIs
   ========================= */
.kpi-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.kpi-value {
    font-weight: 800;
    font-size: 1.25rem;
}

/* Cards de módulos */
.totem-card {
    background: #1a1a1a;
    border: 1px solid rgba(147, 207, 15, .35);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.totem-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
    border-color: var(--cf-green);
}

.totem-card h3 {
    color: var(--cf-green);
    font-weight: 800;
    margin-bottom: .5rem;
}

.totem-card p {
    color: #cfcfcf;
}

/* Garante altura igual para grid de cards e botão no rodapé */
.grid>div {
    display: flex;
    flex-direction: column;
}

.grid>div .mt-auto {
    margin-top: auto;
}

/* =========================
   Ícones (stroke na cor da marca)
   ========================= */
.icon-svg {
    stroke: var(--cf-green);
    stroke-width: 1.5;
    transition: stroke .3s ease;
}

/* TOTEM hero ? reforços locais */
#totem-hero .title-gradient {
    font-size: clamp(2.75rem, 10vw, 6.5rem);
    line-height: 1.05;
    display: inline-block;
}

#totem-hero .hero-badge {
    margin-bottom: .25rem;
}

/* Força o gradiente (se houver CSS antigo brigando) */
#totem-hero .title-gradient {
    background-image: linear-gradient(to right, #fff, var(--cf-green)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    #totem-hero .title-gradient {
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
    }
}

/* Centraliza textos que podem ultrapassar a largura do container */
.center-wide {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    white-space: nowrap;
    /* evita quebra no "TOTEM" */
}

/* Opcional: tamanho do H1 do TOTEM */
#totem-hero .title-gradient {
    font-size: clamp(3rem, 12vw, 7rem);
    line-height: 1.05;
}

/* Fundo com grade sutil + brilho no topo */
.hero-grid {
    position: relative;
    isolation: isolate;
}

.hero-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: .08;
    pointer-events: none;
    z-index: -1;
}

.hero-grid::after {
    content: "";
    position: absolute;
    inset: -10% 0 0;
    background: radial-gradient(700px 300px at 50% 0, rgba(147, 207, 15, .18), transparent 65%);
    pointer-events: none;
    z-index: -1;
}

/* Badge do topo */
#totem-hero .hero-badge {
    display: inline-block;
    padding: .35rem .9rem;
    border-radius: 9999px;
    background: rgba(147, 207, 15, .12);
    border: 1px solid rgba(147, 207, 15, .35);
    box-shadow: 0 0 0 2px rgba(147, 207, 15, .08) inset;
    font-weight: 600;
}

/* Título TOTEM sólido/gradiente suave e bem centralizado */
.title-totem {
    font-size: clamp(2.75rem, 9vw, 6rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: .01em;
    display: inline-block;
    background: linear-gradient(180deg, #dfffb7 0%, #b9f14b 45%, #93cf0f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #dfffb7;
    /* fallback */
    text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .title-totem {
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

/* Parágrafo mais estreito e legível */
#totem-hero .section-sub {
    max-width: 70ch;
    margin-inline: auto;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    opacity: .95;
}

/* Centralização verdadeira, mesmo quando o conteúdo é mais largo que o container */
.center-abs {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
}

/* (opcional) garante que TOTEM não quebre */
.title-totem {
    white-space: nowrap;
}

/* Centraliza badge + H1 no mesmo eixo, sem "escapar" pra direita */
.hero-center {
    display: grid;
    justify-items: center;
    /* alinha o centro geométrico dos filhos */
}

/* Garante que o título não quebre e fique blocado */
.title-totem {
    white-space: nowrap;
    display: block;
    margin-inline: auto;
    /* centro padrão quando couber */
    font-size: clamp(2.75rem, 9vw, 6.5rem);
    /* ajuste fino opcional */
}

/* ===== Carrossel de Logos ===== */
.logo-carousel {
    position: relative;
    overflow: hidden;
}

.logo-rail {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: logos-scroll 28s linear infinite;
}

.logo-carousel:hover .logo-rail {
    animation-play-state: paused;
}

.logo-row {
    display: flex;
    gap: 1.25rem;
    /* espaço entre logos */
}

/* Cartões de logo (contrastam melhor no dark) */
.logo-item {
    min-width: 160px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .28);
}

/* Imagens: cabem sem distorcer + efeito sutil */
.logo-item img {
    max-height: 60px;
    /* ajuste se precisar */
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .85;
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.03);
}

/* Animação contínua: a rail tem duas listas idênticas; -50% = largura de uma delas */
@keyframes logos-scroll {
    from {
        transform: translateX(0);
    }

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

/* Fades nas bordas para estética */
.logo-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8rem;
    pointer-events: none;
    z-index: 2;
}

.logo-fade.left {
    left: 0;
    background: linear-gradient(90deg, var(--cf-black), transparent);
}

.logo-fade.right {
    right: 0;
    background: linear-gradient(270deg, var(--cf-black), transparent);
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    .logo-rail {
        animation: none;
    }
}

/* Abre o drawer quando ganhar a classe .open */
.open {
    grid-template-rows: 1fr !important;
    /* sobrepõe grid-rows-[0fr] do Tailwind */
}

/* opcional: anima o conteúdo dentro (só estética) */
.open .min-h-0>div {
    animation: drawerFade .25s ease-out both;
}

@keyframes drawerFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grecaptcha-badge {
    visibility: collapse !important;
}