/* 
 * CDI Manhuaçu - Modern Design System 
 * Version: 1.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: rgba(14, 165, 233, 0.1);
    --secondary: #0f172a;
    --accent: #22d3ee;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Glow & Tech Effects */
    --glow: 0 0 20px rgba(14, 165, 233, 0.3);
    --tech-gradient: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 1.5rem;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Layout Components */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--space-xl) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(2, 132, 199, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.23);
}

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

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

/* Dark Mode Support */
body.dark-mode {
    --background: #020617;
    --surface: #0f172a;
    --surface-light: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

body.dark-mode .glass-nav {
    background: rgba(2, 6, 23, 0.85);
}

body.dark-mode .tech-card, 
body.dark-mode .glass-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%) !important;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
    color: white;
}

body.dark-mode .desktop-nav ul li a {
    color: var(--text-main);
}

/* AI Section Animations */
.ai-orb {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.4;
    position: absolute;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

.tech-card {
    position: relative;
    overflow: hidden;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary), transparent 30%);
    animation: rotate 10s linear infinite;
    opacity: 0.1;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* --- Otimização Responsiva Pro --- */

@media (max-width: 1024px) {
    .desktop-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--surface);
        backdrop-filter: blur(20px);
        z-index: 2000;
        padding: 6rem 2rem;
        transition: var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        display: block;
    }
    
    .desktop-nav.active {
        right: 0;
    }
    
    .desktop-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .desktop-nav ul li a {
        font-size: 1.2rem;
        color: var(--secondary);
        display: block;
        padding: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: var(--primary-light);
        color: var(--primary);
        border-radius: 12px;
        z-index: 2001;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto !important;
        min-height: 80vh !important;
        padding: 120px 0 80px !important;
        text-align: center;
    }
    
    .hero div[style*="max-width: 650px"] {
        max-width: 100% !important;
    }
    
    .hero h1 {
        font-size: 2.8rem !important;
    }
    
    .hero p {
        font-size: 1.1rem !important;
    }
    
    .hero div[style*="display: flex"] {
        flex-direction: column;
        gap: 1rem;
    }
    
    .actions .btn {
        display: none !important;
    }
    
    .actions .mobile-menu-btn {
        display: flex !important;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    h2 {
        font-size: 2rem !important;
    }

    /* Grid Adjustments */
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Stats Adjustment */
    div[style*="margin-top: -5rem"] {
        margin-top: 0 !important;
        padding-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem !important;
    }
    
    .glass-card {
        padding: 1.5rem !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Botão Flutuante de Avaliação */
.float-feedback {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
    text-decoration: none;
    transition: var(--transition);
    animation: float-pulse 3s infinite ease-in-out;
}

.float-feedback:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--primary-dark);
    color: white;
}

@keyframes float-pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

@media (max-width: 768px) {
    .float-feedback span { display: none; }
    .float-feedback { padding: 15px; border-radius: 50%; bottom: 20px; left: 20px; }
}

/* Visibility Utilities */
.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: block;
    }
}
