/* ============================
   VARS & RESET
   ============================ */
:root {
    --primary: #00e676;
    --primary-dark: #00c853;
    --accent: #69f0ae;
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 25, 0.6);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glow: 0 0 20px rgba(0, 230, 118, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* O segredo para não rolar pro lado */
    position: relative;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
}

/* ============================
   BACKGROUND GRID & BLOBS
   ============================ */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
    animation: pulseBlob 10s infinite alternate;
}

.hero-blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--primary-dark), transparent 70%);
    top: -200px; left: -100px;
}

.hero-blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #0066ff, transparent 70%);
    bottom: 0; right: -100px;
    opacity: 0.2;
}

@keyframes pulseBlob {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* ============================
   HERO SECTION (CORREÇÃO AQUI)
   ============================ */
.home-hero {
    padding: 80px 20px 60px; 
    position: relative;
    /* Garante que o conteúdo fique centralizado verticalmente em telas altas */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .home-hero {
        padding-top: 110px;
    }
}

.home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

/* Tipografia */
.hero-badge {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 2.5rem;
}

/* Botões */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 230, 118, 0.4);
    background: var(--accent);
}

.btn-ghost {
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    font-weight: 600;
    transition: 0.3s;
}

.btn-ghost:hover {
    border-color: var(--primary);
    background: rgba(0, 230, 118, 0.05);
}

/* Stats Cards (Mini) */
.hero-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.stat-icon { font-size: 1.5rem; }
.stat-value { font-weight: 700; font-size: 1.1rem; color: #fff; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* ============================
   VISUAL 3D (IMAGEM HERO)
   ============================ */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-img-3d {
    width: 100%;
    max-width: 480px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    transition: transform 0.1s ease-out;
}

.visual-circle {
    position: absolute;
    width: 400px; height: 400px;
    border: 2px solid rgba(0, 230, 118, 0.1);
    border-radius: 50%;
    z-index: 1;
    animation: spin 20s linear infinite;
}
.visual-circle::before {
    content: ''; position: absolute; top: -5px; left: 50%;
    width: 10px; height: 10px; background: var(--primary);
    border-radius: 50%; box-shadow: 0 0 15px var(--primary);
}

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

.float-card {
    position: absolute;
    background: rgba(20, 20, 25, 0.9);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #fff;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: floatY 4s ease-in-out infinite;
}

.card-1 { top: 20%; right: 10%; animation-delay: 0s; }
.card-2 { bottom: 20%; left: 5%; animation-delay: 2s; }

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

/* ============================
   FEATURES (GRID 3D)
   ============================ */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.feature-card:hover {
    border-color: rgba(0, 230, 118, 0.3);
}

.card-content { transform: translateZ(20px); }

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 230, 118, 0.1);
    width: 70px; height: 70px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}

.feature-card p { color: var(--text-muted); }

.card-glow {
    position: absolute;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(0,230,118,0.2), transparent 70%);
    top: -50px; left: -50px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.feature-card:hover .card-glow { opacity: 1; }

/* ============================
   CTA BANNER
   ============================ */
.cta-banner {
    background: linear-gradient(135deg, #0a0f0c, #001a0f);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content { position: relative; z-index: 2; }

.cta-bg-anim {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0,230,118,0.15), transparent 70%);
    z-index: 1;
    animation: pulseGlow 4s infinite;
}

/* ============================
   FOOTER
   ============================ */
.footer-simple {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 1rem;
    background: #020203;
    text-align: center;
    color: #666;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary); }

/* ============================
   RESPONSIVIDADE (CORREÇÃO AQUI)
   ============================ */
@media (max-width: 968px) {
    .home-hero {
        /* NO MOBILE: Aumentamos o padding para 130px.
           Isso impede que o topo do conteúdo entre embaixo da navbar mobile */
        padding-top: 130px; 
        padding-bottom: 40px;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    
    .hero-stats { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        justify-items: center;
    }
    .stat-card:last-child { grid-column: span 2; }
    
    .hero-visual { margin-top: 2rem; }
    .float-card { display: none; }
}

@media (max-width: 480px) {
    .home-hero {
        /* Telas muito pequenas: ajuste fino */
        padding-top: 120px;
    }
    .hero-title { font-size: 2.2rem; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
    .feature-card { padding: 1.5rem; }
}
