/* Reset & Variáveis Base */
:root {
    --bg-main: #000000;
    --bg-secondary: #111111;
    --neon-green: #D9FF0F;
    --neon-green-glow: rgba(217, 255, 15, 0.4);
    --magenta: #FD7EC2;
    --magenta-glow: rgba(253, 126, 194, 0.4);
    --text-primary: #FFFFFF;
    --text-muted: #A0A0A0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilitários e Tipografia */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.mb-50 {
    margin-bottom: 50px;
}

.mt-50 {
    margin-top: 50px;
}

.mt-100 {
    margin-top: 100px;
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.justify-center {
    justify-content: center;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.section-title.font-small {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.text-gradient {
    background: linear-gradient(135deg, var(--neon-green), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-danger {
    color: #ff4d4d;
}

.text-magenta {
    color: var(--magenta);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 24px;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
}

/* Botoes e CTA */
.cta-primary {
    display: inline-block;
    background-color: var(--neon-green);
    color: #000;
    font-weight: 800;
    font-size: 1.125rem;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--neon-green-glow);
    position: relative;
    z-index: 10;
}

.cta-large {
    font-size: 1.25rem;
    padding: 24px 48px;
}

.cta-floating {
    position: fixed;
    top: 24px;
    right: 24px;
    background-color: var(--neon-green);
    color: #000;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    z-index: 999;
    box-shadow: 0 0 15px var(--neon-green-glow);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-floating.visible {
    transform: translateY(0);
}

/* Efeito Glow a cada 3s via CSS */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px var(--neon-green-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--neon-green);
    }

    100% {
        box-shadow: 0 0 20px var(--neon-green-glow);
    }
}

.cta-primary {
    animation: pulseGlow 3s infinite;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Background glow abstrato no Hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--neon-green-glow) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--magenta-glow) 0%, transparent 60%);
    filter: blur(120px);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 40px;
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.trust-signals-hero {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.icon-small {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    filter: invert(1);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(217, 255, 15, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(217, 255, 15, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(217, 255, 15, 0);
    }
}

.lottie-container {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Adicionando transição suave para o efeito parallax do JS */
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Social Proof Bar */
.social-proof-bar {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    padding: 30px 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 24px;
}

.proof-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.proof-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    transition: transform 0.3s ease;
    opacity: 0;
    /* Começa invisível para o GSAP fadeIn */
    transform: translateY(40px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.feature-icon.icon-magenta {
    color: var(--magenta);
}

.feature-icon.icon-neon {
    color: var(--neon-green);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Chat Simulation */
.chat-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.chat-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-green), var(--magenta));
    position: relative;
}

.chat-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid #000;
}

.chat-info h4 {
    margin: 0;
    font-size: 1rem;
}

.online-status {
    font-size: 0.8rem;
    color: #4ade80;
}

.chat-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 85%;
    padding: 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.user-message {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-message {
    background: rgba(253, 126, 194, 0.1);
    border: 1px solid rgba(253, 126, 194, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Typing Indicator Animation */
.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    margin-right: 4px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes typing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.ai-response {
    display: none;
}

/* Oculto inicialmente para animação via JS */

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 24px 0;
    cursor: pointer;
    font-family: var(--font-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--neon-green);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
    color: var(--magenta);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    opacity: 0;
}

.faq-answer.active {
    opacity: 1;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--text-muted);
}

/* Footer */
.footer-section {
    background: var(--bg-secondary);
    padding: 100px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.copyright {
    margin-top: 60px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-cta-wrapper {
        align-items: center;
    }

    .hero-section::before,
    .hero-section::after {
        display: none;
        /* Melhora performance no mobile */
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .proof-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lottie-container {
        height: 350px;
    }
}

/* Brain Section Utilities */
.text-neon {
    color: var(--neon-green);
}

/* Brain Universe Wrapper */
.brain-universe-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Data Lines SVG */
.data-lines-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 500px;
    z-index: 1;
    pointer-events: none;
}

/* Databases / ERP Nodes */
.server-node {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    padding: 20px;
}

.node-left {
    left: 5%;
}

.node-right {
    right: 5%;
}

.server-icon {
    width: 40px;
    height: 40px;
}

.server-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.server-node span {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.check-mark {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #000;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    padding: 5px;
    opacity: 0;
    /* Animated with GSAP */
    transform: scale(0.5);
    /* Animated with GSAP */
}

.check-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Orbit Area and AI Core */
.orbit-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 5;
}

.ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 10;
}

.core-inner {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(217, 255, 15, 0.2), inset 0 0 20px rgba(253, 126, 194, 0.2);
    position: relative;
    transition: box-shadow 0.3s ease;
}

.core-inner.is-processing {
    box-shadow: 0 0 80px rgba(217, 255, 15, 0.6), inset 0 0 40px rgba(253, 126, 194, 0.6);
}

.core-icon {
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    z-index: 2;
}

.core-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.core-pulse-1,
.core-pulse-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--neon-green);
    opacity: 0;
}

.core-pulse-1 {
    width: 100%;
    height: 100%;
    animation: corePulse 3s infinite;
}

.core-pulse-2 {
    width: 100%;
    height: 100%;
    animation: corePulse 3s infinite 1.5s;
    border-color: var(--magenta);
}

@keyframes corePulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
    }
}

/* Chat Bubbles */
.ai-chat-bubble {
    position: absolute;
    padding: 12px 16px;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    min-width: 180px;
    max-width: 250px;
    z-index: 5;
    opacity: 0;
    /* GSAP will animate */
}

.bubble-1 {
    top: 10%;
    left: -30%;
}

.bubble-2 {
    top: 70%;
    left: 50%;
    margin-left: -90px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 4px;
}

.bubble-3 {
    top: 20%;
    right: -25%;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 4px;
}

.msg-question {
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
    line-height: 1.3;
}

.msg-answer {
    font-size: 0.85rem;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 16px;
    right: 16px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: normal;
    text-align: center;
}

.ai-chat-bubble.answered {
    border-color: var(--neon-green);
    background: rgba(217, 255, 15, 0.05);
}

.ai-chat-bubble.answered .msg-question {
    opacity: 0;
}

.ai-chat-bubble.answered .msg-answer {
    opacity: 1;
}

@media (max-width: 991px) {
    .brain-universe-wrapper {
        height: auto;
        flex-direction: column;
        gap: 60px;
        margin: 40px 0;
    }

    .data-lines-svg {
        display: none;
    }

    .orbit-area {
        position: relative;
        transform: none;
        top: 0;
        left: 0;
        width: 100%;
        height: 350px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .ai-core {
        position: relative;
        transform: none;
        top: 0;
        left: 0;
    }

    .server-node {
        position: relative;
        transform: none;
        top: 0;
        left: 0;
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    .check-mark {
        top: auto;
        right: auto;
        left: 10px;
    }

    .bubble-1,
    .bubble-2,
    .bubble-3 {
        position: absolute;
    }

    .bubble-1 {
        top: 0%;
        left: 5%;
        width: 200px;
    }

    .bubble-2 {
        top: auto;
        bottom: 0;
        left: 50%;
        margin-left: -100px;
        width: 200px;
    }

    .bubble-3 {
        top: 15%;
        right: 5%;
        left: auto;
        width: 200px;
    }
}