/**
 * ELOSCOPE DESIGN SYSTEM
 * Arquivo CSS compartilhado com todos os componentes, estilos e animações
 * Baseado no design do site.html para garantir consistência visual
 */

/* ===== VARIÁVEIS CSS ===== */
:root {
    --cyan: #00ffff;
    --purple: #8b5cf6;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --gradient-primary: linear-gradient(135deg, var(--cyan), var(--purple));
    --gradient-mesh: radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
                     radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                     radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ===== BACKGROUNDS ===== */
.mesh-gradient-bg {
    background: var(--dark-bg);
    background-image: var(--gradient-mesh);
    min-height: 100vh;
}

.grid-bg {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ===== GRADIENTES ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.gradient-border {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: var(--gradient-primary);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

/* ===== BOTÕES ===== */
.btn-gradient {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header-scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== SEÇÕES ===== */
.section-spacing {
    padding: 80px 0;
}

.section-spacing-xl {
    padding: 120px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-title-lg {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ===== CARDS ===== */
.card-base {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card-base:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-problem {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card-problem:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08));
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.1);
}

/* ===== PILARES ===== */
.pillar-section {
    position: relative;
    overflow: hidden;
}

.pillar-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.pillar-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.pillar-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.15);
}

/* ===== TIMELINE (PROCESSO M.E.T.A.) ===== */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
    margin-bottom: 40px;
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -12px;
    top: 24px;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 3px solid var(--dark-bg);
    z-index: 2;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--dark-bg);
    border-radius: 50%;
}

.meta-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-left: 40px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.meta-card:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateX(8px);
}

.meta-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--dark-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.meta-letter {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

/* ===== DASHBOARD WIDGETS ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.dashboard-widget {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dashboard-widget:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-4px);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.widget-visual {
    margin: 20px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== ANIMAÇÕES ESPECÍFICAS ===== */
.response-chart {
    width: 60px;
    height: 40px;
    background: linear-gradient(45deg, var(--cyan), var(--purple));
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.response-chart::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.conversion-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.status-circle {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.status-circle::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.satisfaction-meter {
    width: 60px;
    height: 30px;
    position: relative;
}

.meter-arc {
    width: 60px;
    height: 30px;
    border: 3px solid var(--border);
    border-bottom: none;
    border-radius: 60px 60px 0 0;
    position: relative;
}

.meter-arc::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    border: 3px solid var(--cyan);
    border-bottom: none;
    border-radius: 60px 60px 0 0;
    animation: fillMeter 3s ease-in-out infinite;
}

.meter-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 25px;
    background: var(--cyan);
    transform-origin: bottom;
    transform: translateX(-50%) rotate(25deg);
    animation: swingNeedle 3s ease-in-out infinite;
}

.meter-value {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cyan);
}

.cost-reduction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cost-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--cyan);
}

.dollar-sign {
    animation: bounceDown 2s ease-in-out infinite;
}

.arrow-down {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--cyan);
    animation: bounceDown 2s ease-in-out infinite 0.5s;
}

.reduction-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cyan);
    animation: countDown 3s ease-in-out infinite;
}

/* ===== FAQ ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    space-y: 16px;
}

.faq-item {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.faq-item:hover {
    border-color: rgba(0, 255, 255, 0.3);
}

.faq-item.active {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(0, 255, 255, 0.4);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--cyan);
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: var(--cyan);
    transition: all 0.3s ease;
}

.faq-icon::before {
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== ANIMAÇÕES KEYFRAMES ===== */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes fillMeter {
    0%, 100% { width: 70%; }
    50% { width: 90%; }
}

@keyframes swingNeedle {
    0%, 100% { transform: translateX(-50%) rotate(25deg); }
    50% { transform: translateX(-50%) rotate(45deg); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes countDown {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    }
}

/* ===== AOS ANIMATIONS ===== */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .section-spacing {
        padding: 60px 0;
    }
    
    .section-spacing-xl {
        padding: 80px 0;
    }
    
    .section-container {
        padding: 0 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pillar-card {
        padding: 24px;
    }
    
    .meta-card {
        margin-left: 20px;
        padding: 20px;
    }
    
    .timeline-marker {
        left: -8px;
        width: 16px;
        height: 16px;
    }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pillar-item {
        opacity: 1;
        transform: none;
    }
    
    [data-aos] {
        opacity: 1;
        transform: none;
    }
}

/* ===== UTILITÁRIOS ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 1px solid;
    border-image: var(--gradient-primary) 1;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.section-divider {
    height: 1px;
    background: var(--gradient-primary);
    margin: 80px 0;
    opacity: 0.3;
}

.logo-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== FOOTER ===== */
.footer-section {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.02), rgba(139, 92, 246, 0.02));
    border-top: 1px solid var(--border);
}

/* ===== HERO ESPECÍFICO ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* ===== COMPANIES SECTION ===== */
.companies-section {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.02), rgba(139, 92, 246, 0.02));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 32px;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.companies-grid:hover {
    opacity: 1;
}

.company-logo {
    height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.3s ease;
}

.company-logo:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}