/* Reset e Variáveis - Mantendo padrão Digital Marchi */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --ai-purple: #8B5CF6;
    --ai-purple-dark: #7C3AED;
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #128C7E;
    --bi-blue: #3B82F6;
    --bi-blue-dark: #1D4ED8;
    --black: #1A1A1A;
    --gray-dark: #2D2D2D;
    --gray: #6C757D;
    --gray-light: #F8F9FA;
    --white: #FFFFFF;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--ai-purple);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--ai-purple-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--ai-purple);
    color: var(--ai-purple);
}

.btn-outline:hover {
    background-color: var(--ai-purple);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

section {
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--black);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    background: var(--ai-purple);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header Digital Marchi */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
}

/* AI Hero Section */
.ai-hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ai-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 211, 102, 0.1) 0%, transparent 50%);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-chart {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: var(--bi-blue);
    border-radius: 10px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-robot {
    position: absolute;
    top: 60%;
    left: 5%;
    width: 40px;
    height: 40px;
    background: var(--ai-purple);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite 1s;
}

.floating-data {
    position: absolute;
    bottom: 30%;
    right: 20%;
    width: 50px;
    height: 50px;
    background: var(--whatsapp-green);
    border-radius: 10px;
    opacity: 0.1;
    animation: float 7s ease-in-out infinite 2s;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-subtitle {
    display: inline-block;
    background: var(--ai-purple);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--black);
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.feature i {
    color: var(--ai-purple);
    font-size: 1.2rem;
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-preview {
    width: 100%;
    max-width: 300px;
}

.phone-mockup {
    background: var(--white);
    border-radius: 30px;
    padding: 15px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 10px var(--gray-light);
    position: relative;
}

.phone-screen {
    background: var(--gray-light);
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
}

.whatsapp-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
}

.chat-header {
    background: var(--whatsapp-green);
    padding: 1rem;
    color: var(--white);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    display: block;
}

.contact-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message .message-content {
    background: var(--gray-light);
    border-bottom-left-radius: 4px;
}

.user-message .message-content {
    background: var(--whatsapp-green);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 0.25rem;
    align-self: flex-end;
}

.user-message .message-time {
    align-self: flex-end;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: var(--gray-light);
    border-top: 1px solid #e2e8f0;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--whatsapp-green);
    border: none;
    border-radius: 50%;
    color: var(--white);
    margin-left: 0.5rem;
    cursor: pointer;
}

/* About Section */
.ai-about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ai-purple);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.integration-flow {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flow-step {
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--ai-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 auto 0.5rem;
}

.flow-step span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
}

.flow-arrow {
    color: var(--ai-purple);
    font-weight: bold;
}

/* Features */
.ai-features {
    background-color: var(--gray-light);
}

.features-tabs {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: var(--gray-light);
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background: var(--white);
    border-bottom-color: var(--ai-purple);
    color: var(--ai-purple);
}

.tab-btn:hover:not(.active) {
    background: rgba(139, 92, 246, 0.1);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.feature-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--ai-purple);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--black);
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ai-purple);
    font-weight: bold;
}

/* Demo Section */
.ai-demo {
    background-color: var(--white);
}

.demo-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.demo-scenarios {
    display: flex;
    flex-direction: column;
}

.scenario-tabs {
    display: flex;
    background: var(--gray-light);
    border-bottom: 1px solid #e2e8f0;
}

.scenario-tab {
    flex: 1;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.scenario-tab.active {
    background: var(--white);
    border-bottom-color: var(--ai-purple);
    color: var(--ai-purple);
}

.scenario-tab:hover:not(.active) {
    background: rgba(139, 92, 246, 0.1);
}

.scenario-content {
    padding: 2rem;
    min-height: 300px;
}

.scenario-pane {
    display: none;
}

.scenario-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.scenario-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.chat-message {
    display: flex;
    max-width: 80%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 1rem 1.5rem;
    border-radius: 18px;
    line-height: 1.5;
}

.chat-message.bot .message-bubble {
    background: var(--gray-light);
    border-bottom-left-radius: 4px;
}

.chat-message.user .message-bubble {
    background: var(--whatsapp-green);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.dashboard-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Dashboard Showcase */
.dashboard-showcase {
    background-color: var(--gray-light);
}

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

.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.dashboard-preview {
    height: 200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.executive {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sales {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.financial {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.chart-row {
    display: flex;
    justify-content: space-around;
    align-items: end;
    height: 100px;
}

.chart-bar {
    width: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.kpi-metrics {
    display: flex;
    justify-content: space-around;
}

.kpi {
    text-align: center;
    color: var(--white);
}

.kpi-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.kpi-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.pie-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color) calc(var(--percentage) * 1%),
        transparent 0
    );
    margin: 0 auto;
    position: relative;
}

.chart-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.legend-item {
    font-size: 0.8rem;
    color: var(--white);
    text-align: center;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.trend-line {
    position: relative;
    height: 100px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    border-left: 2px solid rgba(255, 255, 255, 0.5);
}

.data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.data-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.trend-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: var(--white);
    font-size: 0.8rem;
}

.dashboard-info {
    padding: 1.5rem;
}

.dashboard-info h3 {
    margin-bottom: 0.5rem;
    color: var(--black);
}

.dashboard-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Testimonials */
.ai-testimonials {
    background-color: var(--white);
}

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

.testimonial-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--ai-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray);
}

/* CTA Section */
.ai-cta {
    background: linear-gradient(135deg, var(--ai-purple) 0%, var(--whatsapp-green) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--ai-purple);
}

/* Footer Digital Marchi */
.footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1.5rem;
    text-align: center;
    color: #cbd5e0;
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .integration-flow {
        flex-direction: column;
        gap: 2rem;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    /* Tabs */
    .tab-buttons {
        flex-direction: column;
    }
    
    .scenario-tabs {
        flex-direction: column;
    }
    
    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .ai-hero {
        padding: 8rem 0 3rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}