/* Importar tema central - EDITE theme.css PARA MUDAR AS CORES */
@import url('theme.css');

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Compatibilidade com variáveis antigas */
:root {
    --primary-color: var(--brand-primary);
    --secondary-color: var(--brand-secondary);
    --accent-color: var(--brand-accent);
    --dark-color: var(--dark);
    --light-color: var(--gray-50);
    --text-color: var(--gray-700);
    --border-radius: var(--radius);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navegação */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(0.9rem, 1.7vw, 2rem);
    align-items: center;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.logo img {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 12px;
    mix-blend-mode: multiply;
    box-shadow: none;
}

.nav-apps {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.22);
}

.nav-apps::after {
    display: none;
}

.nav-apps:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 25px rgba(124, 58, 237, 0.32);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Seção Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding-top: 80px;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    top: -170px;
    right: -90px;
    background: rgba(255, 255, 255, 0.09);
}

.hero::after {
    width: 300px;
    height: 300px;
    bottom: -120px;
    left: -80px;
    background: rgba(245, 158, 11, 0.13);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 920px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.highlight {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-benefits i {
    color: #fbbf24;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.cta-button.primary {
    background: var(--gradient-cta);
    color: var(--dark-color);
    box-shadow: var(--shadow-cta);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.cta-button.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: white;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animações */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seções Gerais */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Seção de Serviços */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(124, 58, 237, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card > p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--primary-color);
}

/* Seção Sobre */
.about {
    background: var(--gradient-hero);
    color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.about-image-wrapper i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text .lead {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature i {
    font-size: 2rem;
    color: #fbbf24;
}

.about-feature h4 {
    margin-bottom: 0.5rem;
}

.about-feature p {
    opacity: 0.8;
    margin: 0;
}

/* Seção Soluções */
.solutions {
    background: var(--light-color);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.solution-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.solution-icon i {
    font-size: 2.5rem;
    color: white;
}

.solution-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.solution-item p {
    color: var(--text-color);
}

/* Seção de Plataformas */
.platforms-section {
    background: white;
    padding: 4rem 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-card {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.platform-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
}

.platform-icon i {
    font-size: 3.5rem;
    color: white;
}

.platform-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.platform-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Seção de Depoimentos */
.testimonials-section {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar i {
    font-size: 1.5rem;
    color: white;
}

.testimonial-info h4 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #fbbf24;
}

.testimonial-text {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.8;
}

/* Seção CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Seção de Contato */
.contact {
    background: var(--light-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    padding-top: 0.2rem;
}

.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-color);
    margin: 0;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Rodapé */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Ocultar elementos auxiliares */
.is-hidden:not(.chat-widget) {
    display: none !important;
}

/* Botão Chat Flutuante */
.chat-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.6);
}

.chat-float-btn.active {
    transform: scale(1.05) rotate(90deg);
}

/* Badge de Notificação */
.chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    border: 2px solid #0f0f1a;
}

/* Widget de Chat */
.chat-widget {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 380px;
    height: 550px;
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 150px);
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.chat-widget.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px) scale(0.95);
}

@keyframes slideInUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header */
.chat-widget-header {
    background: var(--gradient-primary);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.chat-widget-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-widget-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #7c3aed;
}

.chat-status-dot.online {
    background: var(--success);
}

.chat-widget-header-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.chat-widget-header-info p {
    font-size: 0.75rem;
    opacity: 0.85;
    margin: 2px 0 0 0;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close-btn:hover {
    color: white;
    transform: scale(1.1);
}

/* Corpo do Chat */
.chat-widget-body {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    background: rgba(15, 15, 26, 0.3);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.chat-widget-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Onboarding (Identificação) */
.chat-onboarding {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
}

.chat-form-group {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.chat-form-group:first-of-type {
    margin-top: 0;
}

.chat-form-group label {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.chat-form-group input,
.chat-form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 0.75rem;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.chat-form-group input:focus,
.chat-form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.chat-start-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.chat-start-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.chat-onboarding-footer {
    text-align: center;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.chat-whatsapp-alt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #25d366;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.chat-whatsapp-alt:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* Visualização de Mensagens */
.chat-messages-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.chat-messages-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.chat-messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    justify-content: flex-end;
}

.chat-message-row {
    display: flex;
    width: 100%;
    margin-bottom: 2px;
}

.chat-message-row.chat-message-right {
    justify-content: flex-end;
}

.chat-message-row.chat-message-left {
    justify-content: flex-start;
}

.chat-message-bubble {
    max-width: 78%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.chat-message-right .chat-message-bubble {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message-left .chat-message-bubble {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message-author {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.8;
}

.chat-message-right .chat-message-author {
    display: none;
}

.chat-message-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}

.chat-message-receipt {
    margin-left: 3px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85em;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
}

.chat-message-receipt.is-delivered {
    color: rgba(255, 255, 255, 0.82);
}

.chat-message-receipt.is-read {
    color: #60a5fa;
}
.chat-message-time {
    font-size: 0.65rem;
    align-self: flex-end;
    margin-top: 4px;
    opacity: 0.6;
}

.chat-message-system {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.8rem;
    margin: 0.5rem 0;
    opacity: 0.8;
}

.chat-system-ended {
    text-align: center;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.chat-system-ended i {
    font-size: 2.2rem;
    color: var(--gray-500);
}

.chat-system-ended p {
    font-size: 0.95rem;
    color: var(--gray-300);
    margin: 0;
}

.chat-new-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-top: 0.5rem;
}

.chat-new-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Footer / Entrada de Texto */
.chat-widget-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.98);
    flex-shrink: 0;
}

.chat-message-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.chat-message-form textarea {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    resize: none;
    max-height: 120px;
    padding: 6px 0;
    outline: none;
    font-family: inherit;
    line-height: 1.4;
}

.chat-message-form textarea::placeholder {
    color: var(--gray-500);
}

.chat-send-btn {
    background: transparent;
    border: none;
    color: var(--brand-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-attachment-btn{display:flex;align-items:center;justify-content:center;color:var(--brand-primary);cursor:pointer;padding:6px}.chat-attachment-btn input{display:none}.chat-attachment-preview{display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gray-500);font-size:.72rem}.chat-message-attachment{display:block;max-width:220px;max-height:240px;width:100%;object-fit:cover;border-radius:8px;margin:6px 0}.chat-message-bubble a{display:block}

.chat-send-btn:hover {
    color: var(--brand-secondary);
    transform: scale(1.1);
}

/* Responsividade Mobile - removido bloco 480px redundante (coberto pelo 767px) */


/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1002;
    min-height: 58px;
    padding: 0 1.25rem 0 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #128c4a);
    color: white;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(18, 140, 74, 0.34);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.65rem;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 35px rgba(18, 140, 74, 0.45);
}

.whatsapp-float:focus-visible,
.nav-link:focus-visible,
.cta-button:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(18, 140, 74, 0.34); }
    50% { box-shadow: 0 12px 35px rgba(18, 140, 74, 0.58); }
}

.whatsapp-float {
    animation: whatsappPulse 2.8s ease-in-out infinite;
}

/* Contador de Visitas */
.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
    box-shadow: 0 4px 12px var(--purple-glow);
    transition: var(--transition);
}

.visitor-counter i {
    font-size: 1rem;
}

.visitor-counter strong {
    font-weight: 700;
    font-size: 1rem;
}

.visitor-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 47, 171, 0.4);
}

/* Animação do contador */
@keyframes countUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1.25rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        min-height: 92vh;
        padding-top: 100px;
    }

    .hero-eyebrow {
        font-size: 0.78rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-benefits {
        flex-direction: column;
        align-items: center;
        gap: 0.55rem;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 58px;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-float span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .whatsapp-float i {
        background: transparent;
    }

    .back-to-top {
        left: 16px;
        bottom: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ============================== */
/* CHAT WIDGET - LAYOUT MOBILE    */
/* ============================== */
@media (max-width: 767px) {
    /* O widget ocupa toda a tela visível, bloqueia qualquer scroll da página */
    .chat-widget {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        touch-action: none !important;
        overscroll-behavior: none !important;
    }

    /* Header: fixo no topo, nunca encolhe */
    .chat-widget-header {
        flex-shrink: 0 !important;
        padding: 0.5rem 0.85rem !important;
        z-index: 10;
        touch-action: none !important;
    }

    .chat-widget-header-info h3 {
        font-size: 0.95rem !important;
    }

    .chat-widget-header-info p {
        font-size: 0.72rem !important;
    }

    .chat-widget-avatar {
        width: 32px !important;
        height: 32px !important;
    }

    .chat-widget-avatar i {
        font-size: 0.9rem !important;
    }

    /* Body: ocupa todo o espaço restante entre header e footer */
    .chat-widget-body {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    /* Container de mensagens: preenche o body e rola internamente */
    .chat-messages-container {
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
        padding: 0.75rem !important;
    }

    /* Onboarding: preenche e rola se necessário */
    .chat-onboarding {
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
        padding: 0.75rem !important;
    }

    /* Footer: fixo na base, nunca encolhe */
    .chat-widget-footer {
        flex-shrink: 0 !important;
        padding: 0.5rem 0.75rem !important;
        z-index: 10;
        touch-action: none !important;
    }

    .chat-close-btn {
        font-size: 1.4rem;
        padding: 8px;
    }

    .chat-float-btn {
        bottom: 20px !important;
        right: 20px !important;
    }
}

/* Ocultar elementos da página externa quando o chat estiver aberto no mobile */
.chat-hidden-element {
    display: none !important;
}
