/* ==========================================================================
   ELOMEGA ULTIMATE FRAMEWORK (v5.0 - Masterpiece)
   CONCEITO: Luminous Tech, Absolute Trust & Seamless Glass
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;600;700;900&display=swap');

:root {
    /* Paleta Luminous */
    --brand-primary: #000c1d;    /* Azul Profundo (Autoridade) */
    --brand-accent: #0066FF;     /* Azul Elétrico (Tecnologia) */
    --brand-gradient: linear-gradient(135deg, #0066FF 0%, #00d1ff 100%);
    
    /* Escala de Cinzas (Apple-Style) */
    --text-rich: #1d1d1f;
    --text-body: #424245;
    --text-dim: #86868b;
    --bg-pure: #ffffff;
    --bg-soft: #f5f5f7;
    
    /* Design System de Alta Performance */
    --glass: rgba(255, 255, 255, 0.85);
    --border-thin: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 20px 50px rgba(0, 102, 255, 0.12);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-pure);
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* CRÍTICO: Impede que o site balance para os lados no celular */
    min-width: 320px;
}

html { scroll-behavior: smooth; }

/* --- UTILITÁRIOS GERAIS --- */
.section {
    padding: clamp(72px, 8vw, 120px) clamp(20px, 8vw, 8%);
    position: relative;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.badge {
    display: inline-block; 
    padding: 8px 18px; 
    border-radius: 50px;
    background: rgba(0, 102, 255, 0.06); 
    color: var(--brand-accent);
    font-weight: 800; 
    font-size: 0.75rem; 
    letter-spacing: 2px;
    text-transform: uppercase; 
    margin-bottom: 20px;
}

/* --- NAVEGAÇÃO PRESTIGE --- */
nav {
    position: fixed; 
    top: 0; 
    width: 100%;
    padding: 18px clamp(18px, 8vw, 8%);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999; 
    border-bottom: 1px solid var(--border-thin);
    transition: var(--transition-smooth);
}

nav .logo img { height: 35px; }

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 35px; 
    align-items: center; 
}

nav ul li a {
    text-decoration: none; 
    color: var(--text-rich);
    font-size: 0.9rem; 
    font-weight: 600; 
    transition: var(--transition-smooth);
}

nav ul li a:hover { color: var(--brand-accent); }
.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.system-login-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: var(--brand-primary) !important;
    color: #fff !important;
    padding: 12px 18px !important;
    border-radius: 999px;
    font-weight: 800 !important;
    box-shadow: 0 10px 24px rgba(0, 12, 29, 0.16);
}

.system-login-link:hover {
    background: var(--brand-accent) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

main,
section,
header,
footer,
nav {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
a,
span,
strong,
label,
button,
input,
select,
textarea {
    overflow-wrap: anywhere;
}

.nav-cta {
    background: var(--brand-primary); 
    color: white !important;
    padding: 12px 28px; 
    border-radius: 100px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.nav-cta:hover {
    background: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    overflow: hidden; 
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 209, 255, 0.24), transparent 28%),
        radial-gradient(circle at 84% 22%, rgba(0, 102, 255, 0.28), transparent 30%),
        linear-gradient(135deg, #000c1d 0%, #06283d 52%, #0066ff 120%);
}


.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: 0.75;
    pointer-events: none;
}
.hero-overlay {
    position: absolute; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,12,29,0.2) 0%, rgba(0,12,29,0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative; 
    z-index: 10; 
    text-align: center; 
    max-width: 900px;
    padding: 90px 20px 40px;
}

.hero-title {
    font-family: 'Outfit', sans-serif; 
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    color: white; 
    line-height: 1.05; 
    letter-spacing: -0.03em; 
    margin-bottom: 25px;
}

/* --- CARDS & BENTO GRID --- */
.card-feature {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 255, 0.06);
    padding: 50px 45px;
    border-radius: 28px;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-feature:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 102, 255, 0.3);
}

.card-feature.highlight {
    background: var(--brand-primary);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0, 12, 29, 0.3);
}

.card-feature.highlight:hover {
    box-shadow: 0 30px 60px rgba(0, 102, 255, 0.2);
    border-color: rgba(0, 102, 255, 0.4);
}

.card-icon-box {
    width: 75px;
    height: 75px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 35px;
    transition: var(--transition-smooth);
}

.card-feature:hover .card-icon-box {
    transform: rotate(-8deg) scale(1.1);
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.tag-group span {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 8px 16px;
    background: var(--bg-soft);
    color: var(--brand-accent);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-feature.highlight .tag-group span {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* --- BOTÕES --- */
.btn-main {
    padding: 20px 45px; 
    border-radius: 100px; 
    font-weight: 700;
    text-decoration: none; 
    display: inline-block;
    transition: var(--transition-smooth);
    background: var(--brand-accent); 
    color: white;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.25);
    font-size: 0.95rem;
    max-width: 100%;
    text-align: center;
}

.btn-main:hover {
    transform: translateY(-4px) scale(1.02); 
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.4);
}

.btn-text {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    transition: var(--transition-smooth);
}

.btn-text:hover { gap: 15px; }

/* --- ANIMAÇÕES DE ENTRADA --- */
.reveal {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SEGURANÇA MOBILE (Só atua em telas menores e corrige sem quebrar o Desktop)
   ========================================================================== */

/* Garante que imagens e vídeos nunca ultrapassem a tela do celular */
img, video { max-width: 100%; height: auto; display: block; }

.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    z-index: 999;
}

@media (max-width: 992px) {
    nav {
        align-items: flex-start;
        gap: 16px;
        padding-block: 14px;
    }

    nav .logo {
        flex: 0 0 auto;
    }

    nav ul {
        display: flex;
        gap: 10px;
        max-width: calc(100vw - 150px);
        overflow-x: auto;
        padding: 0 2px 8px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    nav ul li {
        flex: 0 0 auto;
    }

    nav ul li a {
        display: block;
        padding: 9px 12px;
        border-radius: 999px;
        background: rgba(0, 102, 255, 0.06);
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .nav-cta {
        padding: 9px 14px;
    }

    .section {
        padding: 76px 24px;
    }

    .hero-title {
        font-size: clamp(2.3rem, 8vw, 3.4rem);
    }

    [style*="minmax(350px"],
    [style*="minmax(320px"],
    [style*="minmax(300px"] {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
    }

    [style*="min-width: 350px"],
    [style*="min-width:350px"],
    [style*="min-width: 300px"],
    [style*="min-width:300px"] {
        min-width: min(100%, 280px) !important;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    .section {
        padding: 64px 18px;
    }

    header.section {
        padding-top: 112px !important;
        padding-bottom: 56px !important;
    }

    .hero {
        min-height: 100svh;
        height: auto;
    }

    .hero-content {
        padding-top: 150px;
    }

    h1,
    h2,
    h3 {
        letter-spacing: 0 !important;
    }

    /* 1. Transforma layouts lado a lado em coluna no celular */
    section [style*="display: flex"],
    header [style*="display: flex"],
    footer [style*="display: flex"] {
        flex-direction: column !important;
        gap: 30px !important;
    }

    section [style*="display: flex"] > *,
    header [style*="display: flex"] > *,
    footer [style*="display: flex"] > * {
        max-width: 100% !important;
    }

    /* 2. Anula larguras minimas que quebram a tela */
    section [style*="min-width"],
    header [style*="min-width"],
    footer [style*="min-width"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* 3. Coloca os cartões "flutuantes" (position: absolute) de volta no eixo */
    section [style*="position: absolute"]:not(.hero-overlay) {
        position: relative !important;
        inset: 0 !important;
        margin-top: 20px !important;
        transform: none !important;
    }

    /* 4. Ajustes de espaçamento em telas menores */
    .hero-title {
        font-size: clamp(2rem, 12vw, 2.8rem) !important;
    }

    .badge {
        letter-spacing: 1px;
        line-height: 1.35;
    }

    .card-feature,
    .card-news,
    .coming-soon-card {
        padding: 28px 22px !important;
        border-radius: 22px !important;
        margin-bottom: 20px;
    }

    .card-icon-box {
        margin-bottom: 25px;
    }

    .btn-main {
        width: 100%;
        padding: 16px 22px;
        white-space: normal;
    }

    /* 5. Corrige o botão do WhatsApp flutuante */
    .wa-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    nav .logo img {
        height: 30px !important;
    }

    nav ul li a {
        font-size: 0.72rem;
        padding: 8px 10px;
    }

    .section {
        padding-inline: 16px;
    }

    .hero-content {
        padding-inline: 16px;
    }

    p {
        font-size: 0.98rem !important;
    }

    footer {
        padding: 56px 18px !important;
    }
}


