/* Custom CSS for QuiroIA Landing Page */

:root {
    /* Cores baseadas na logo QuiroIA */
    --primary-color: #194696;        /* Azul escuro da logo */
    --primary-light: #e6f2ff;
    --secondary-color: #32BEB4;      /* Teal vibrante da logo */
    --secondary-light: #e8f8f7;
    --accent-color: #1E968C;        /* Teal mais escuro da logo */
    --success-color: #28a745;
    --success-light: #e8f5e8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #32BEB4 0%, #194696 100%);
    --gradient-hero: linear-gradient(135deg, #194696 0%, #32BEB4 50%, #1E968C 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --shadow-soft: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Utility Classes */
.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-secondary-light {
    background-color: var(--secondary-light) !important;
}

.bg-success-light {
    background-color: var(--success-light) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    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 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-stats .stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.hero-cta .btn {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    background: var(--gradient-primary);
    border: none;
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(25, 70, 150, 0.3);
}

/* Phone Mockup */
.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

.phone-screen {
    background: #000;
    border-radius: 25px;
    padding: 20px 15px;
    box-shadow: var(--shadow-medium);
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.chat-interface {
    background: #fff;
    border-radius: 15px;
    height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.status.online {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-left: auto;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

.message {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 15px;
    word-wrap: break-word;
    color: #333333; /* Garantir contraste em qualquer fundo */
    font-weight: 500; /* Melhor legibilidade */
}

.message.user {
    background: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 5px;
    color: #0d47a1; /* Azul escuro para contraste */
    border: 1px solid #2196F3;
}

.message.bot {
    background: #f5f5f5;
    border-bottom-left-radius: 5px;
    color: #424242; /* Cinza escuro para contraste */
    border: 1px solid #e0e0e0;
}

.message.bot.response {
    background: #e8f5e9;
    border: 2px solid #4CAF50;
    color: #1b5e20; /* Verde escuro para contraste */
    font-weight: 600; /* Destacar resposta principal */
}

.typing-indicator {
    display: flex;
    gap: 3px;
    align-items: center;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Problem Cards */
.problem-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.problem-icon i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-stat span {
    font-size: 2rem;
}

/* Solution Demo */
.demo-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-medium);
}

.flow-step {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 10px 0;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.flow-step:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.flow-arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 10px 0;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.feature-icon {
    background: var(--primary-light);
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Ícones menores para lista de features */
.feature-item .feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 0;
    flex-shrink: 0; /* Garantir que o ícone não diminua */
}

/* Garantir visibilidade de todos os ícones */
.feature-icon i {
    display: block;
    width: 100%;
    text-align: center;
    opacity: 1;
    visibility: visible;
}

/* Cores específicas para cada tipo de ícone */
.feature-icon .text-warning {
    color: #f39c12 !important; /* Laranja mais visível */
}

.feature-icon .text-primary {
    color: var(--primary-color) !important;
}

.feature-icon .text-success {
    color: #28a745 !important;
}

.feature-icon .text-info {
    color: #17a2b8 !important;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 5px 0;
    color: #666;
}

.feature-list li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Result Cards */
.result-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.result-icon i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.result-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.result-label {
    font-weight: 600;
    margin-top: 10px;
    color: #333;
}

/* Benefits Showcase */
.benefit-showcase {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-medium);
}

.benefit-item-large {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item-large:hover {
    background: var(--light-color);
    transform: translateX(5px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--light-color);
}

.benefit-connector {
    width: 2px;
    height: 20px;
    background: #ddd;
    margin: 0 auto;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin: 15px 0;
}

.pricing-header .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.pricing-header .period {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.pricing-features ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-features ul li:last-child {
    border-bottom: none;
}

/* CTA Form */
.cta-form .form-control {
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.cta-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.cta-form .form-control:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.25);
    background: rgba(255,255,255,0.2);
}

/* Guarantee Box */
.guarantee-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--success-color);
}

/* Accordion */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    color: #333;
    padding: 20px 25px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 20px 25px;
    background: #fafafa;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-cta .btn-primary {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 2rem;
    }
    
    .phone-mockup {
        max-width: 250px;
    }
    
    .chat-messages {
        font-size: 0.85rem; /* Aumentado para melhor legibilidade em mobile */
    }
    
    /* Melhor contraste para mobile */
    .message {
        font-weight: 600; /* Mais peso em telas pequenas */
        text-shadow: 0 1px 2px rgba(255,255,255,0.8); /* Sombra sutil para legibilidade */
    }
    
    .message.user {
        color: #0d47a1;
        background: #e3f2fd;
        border: 2px solid #2196F3; /* Borda mais forte em mobile */
    }
    
    .message.bot {
        color: #424242;
        background: #f8f9fa; /* Fundo mais claro em mobile */
        border: 2px solid #dee2e6;
    }
    
    .message.bot.response {
        color: #1b5e20;
        background: #e8f5e9;
        border: 2px solid #4CAF50;
    }
    
    .pricing-header .price {
        font-size: 2.5rem;
    }
    
    .result-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }
    
    .problem-card,
    .feature-card,
    .result-card {
        margin-bottom: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* Background Patterns */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 200, 255, 0.3) 0%, transparent 50%);
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: scale(1.02);
}

/* Form Styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Badge Styling */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

/* Dark Mode Support para melhor contraste */
@media (prefers-color-scheme: dark) {
    .chat-interface {
        background: #1e1e1e; /* Fundo escuro para dark mode */
        border: 1px solid #333;
    }
    
    .message {
        color: #ffffff; /* Texto branco para dark mode */
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    .message.user {
        background: #1976d2; /* Azul mais escuro */
        color: #ffffff;
        border: 1px solid #42a5f5;
    }
    
    .message.bot {
        background: #424242; /* Cinza escuro */
        color: #ffffff;
        border: 1px solid #616161;
    }
    
    .message.bot.response {
        background: #2e7d32; /* Verde escuro */
        color: #ffffff;
        border: 2px solid #66bb6a;
    }
    
    .chat-header {
        background: #1976d2;
        color: #ffffff;
    }
}

/* Force High Contrast - Garantir legibilidade em qualquer situação */
@media (prefers-contrast: high) {
    .message {
        font-weight: 700 !important;
        border-width: 3px !important;
    }
    
    .message.user {
        background: #ffffff !important;
        color: #000000 !important;
        border: 3px solid #000000 !important;
    }
    
    .message.bot {
        background: #f0f0f0 !important;
        color: #000000 !important;
        border: 3px solid #000000 !important;
    }
    
    .message.bot.response {
        background: #ffffff !important;
        color: #000000 !important;
        border: 3px solid #008000 !important;
    }
}

/* Melhorias visuais com as cores da logo */
.hero-section .badge {
    backdrop-filter: blur(10px);
    border-radius: 25px;
}

.hero-stats .stat-item {
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Melhorar contraste do texto */
.hero-content h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Smart Chat Button System */
.smart-chat-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: block; /* Garantir que sempre seja visível */
}

.smart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

/* Botões controlados por JavaScript - não forçar visibilidade */

.whatsapp-btn {
    background: #25D366;
    animation: pulse 2s infinite;
    display: none; /* Iniciar oculto - controlado por JavaScript */
}

.ai-btn {
    background: var(--gradient-primary);
    display: none; /* Iniciar oculto - controlado por JavaScript */
}

.smart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.smart-btn:active {
    transform: scale(0.95);
}

.btn-text {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smart-btn:hover .btn-text {
    opacity: 1;
}

/* Animação de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Chat Modal */
.chat-modal {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px 15px 0 0;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.bot-message {
    background: #f1f3f4;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: var(--gradient-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.chat-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chat-input button:hover {
    transform: scale(1.1);
}

/* Responsividade do Chat */
@media (max-width: 768px) {
    .smart-chat-float {
        bottom: 15px;
        right: 15px;
    }
    
    .smart-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    .chat-modal {
        bottom: 80px;
        right: 15px;
        left: 15px;
        width: auto;
        height: 400px;
    }
}
