/**
 * TeleFlow AI - Premium Landing Page Styles
 * Versão 2.0 - Design Premium com Animações Avançadas
 */

/* Força esconder float cards em dispositivos móveis */
@media only screen and (max-width: 1024px) {
    .float-card,
    .float-card-1,
    .float-card-2,
    .float-card-3 {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ===================================
   Smooth Scroll Behavior
   =================================== */
html {
    scroll-behavior: smooth;
}

@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* Suavização adicional para navegadores com Lenis */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ===================================
   CSS Variables & Design Tokens
   =================================== */
:root {
    /* Cores Principais - Tema Escuro Premium */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-elevated: #232330;
    
    /* Cores de Destaque */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a78bfa;
    --accent-glow: rgba(99, 102, 241, 0.5);
    
    /* Texto */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;
    
    /* Estados */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(99, 102, 241, 0.4);
    
    /* Bordas */
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
    
    /* Tipografia */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Espaçamento */
    --section-padding: 120px;
    --container-max: 1280px;
    --container-padding: 24px;
    
    /* Animações */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Cursor */
    --cursor-size: 20px;
    --cursor-hover-size: 60px;
}

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--text-primary);
}

/* ===================================
   Custom Cursor
   =================================== */
.cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor.hover .cursor-outline {
    width: 80px;
    height: 80px;
    border-color: var(--accent-primary);
}

@media (pointer: coarse) {
    .cursor {
        display: none;
    }
}

/* ===================================
   Grain Overlay - DESABILITADO (causava lag no scroll)
   =================================== */
.grain-overlay {
    display: none;
    /* position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); */
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    /* content-visibility: auto; - REMOVIDO: pode causar travamentos */
    /* contain-intrinsic-size: 0 500px; */
    /* contain: layout style paint; */
}

.hero {
    padding-top: 120px !important; /* Compensação da navbar fixa */
    padding-bottom: 120px !important; /* Espaço extra antes da logo cloud */
    margin-bottom: 60px !important;
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.95);
    /* backdrop-filter: blur(20px); - REMOVIDO: causa lag no scroll */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, transparent 100%);
    pointer-events: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.menu-toggle.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu.active .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .menu-link:nth-child(5) { transition-delay: 0.3s; }

.menu-cta {
    margin-top: 16px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    font-size: 1.125rem;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Magnetic Button Effect */
.magnetic-button {
    transition: transform 0.3s var(--ease-out-expo);
    /* will-change: transform; - REMOVIDO: uso excessivo de GPU */
}

/* ===================================
   Floating Cards
   =================================== */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(26, 26, 37, 0.95);
    /* backdrop-filter: blur(10px); - REMOVIDO: causa lag no scroll */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float-card 6s ease-in-out infinite;
    /* will-change: transform; - REMOVIDO: uso excessivo de GPU */
}

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

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px); /* Reduzido de 80px para performance */
    opacity: 0.35; /* Ajustado para compensar */
    animation: float 20s ease-in-out infinite;
    transform: translateZ(0); /* Força aceleração GPU */
    /* will-change: transform; - REMOVIDO: uso excessivo de GPU */
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 32px;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    /* opacity: 0; - REMOVIDO: elementos devem ser visíveis por padrão */
    /* transform: translateY(30px); */
}

.title-line.gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 0 0 2px rgba(99, 102, 241, 0.3),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(99, 102, 241, 0.2);
    position: relative;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s var(--ease-out-expo);
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: var(--bg-primary);
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.chat-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
}

.chat-info {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

.message {
    max-width: 85%;
}

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

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

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

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

.message.bot .message-bubble {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message.bot .message-bubble p {
    margin: 0 0 8px 0;
}

.message.bot .message-bubble p:last-child {
    margin-bottom: 0;
}

.message.bot .message-bubble a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    background: #10b981;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.message.bot .message-bubble a:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

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

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.phone-reflection {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    filter: blur(20px);
}

/* Floating Cards */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(26, 26, 37, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float-card 6s ease-in-out infinite;
}

.float-card-1 {
    top: 10%;
    right: -60px;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 25%;
    left: -80px;
    animation-delay: -2s;
}

.float-card-3 {
    bottom: 5%;
    right: -40px;
    animation-delay: -4s;
}

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

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateZ(0); /* Força GPU */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.6;
    animation: bounce 2s infinite;
    will-change: transform; /* Otimização GPU */
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    position: relative;
}

.wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===================================
   Logo Cloud
   =================================== */
.logo-cloud {
    padding: 80px 0 120px 0 !important; /* Mais espaço embaixo */
    margin-top: 60px !important;
    margin-bottom: 100px !important; /* Espaço adicional abaixo */
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.cloud-title {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.logo-track {
    display: flex;
    gap: 48px;
    animation: scroll-logos 30s linear infinite;
    will-change: transform; /* Otimização GPU */
    transform: translateZ(0); /* Força aceleração GPU */
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-item svg {
    width: 24px;
    height: 24px;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    margin-bottom: 64px;
}

.section-header.centered {
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
}

.section-header.centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Problem Section
   =================================== */
.problem-section {
    background: var(--bg-secondary);
    margin-top: 80px !important; /* Espaço adicional acima */
    padding-top: 60px !important;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.problem-card {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.problem-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.problem-card:hover .card-glow {
    opacity: 1;
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
}

.card-icon-large {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon-large svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.problem-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-description strong {
    color: var(--text-primary);
}

/* ===================================
   Solution Section
   =================================== */
.solution-section {
    background: var(--bg-primary);
    margin-top: 80px !important; /* Espaço adicional acima */
    padding-top: 60px !important;
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

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

.feature-icon-wrap {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-lg);
    position: relative;
}

.feature-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

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

.feature-icon-wrap svg {
    width: 80px;
    height: 80px;
    color: white;
}

.feature-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.feature-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.feature-list li svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* ===================================
   Dashboard Section
   =================================== */
.dashboard-section {
    background: var(--bg-secondary);
    margin-top: 80px !important; /* Espaço adicional acima */
    padding-top: 60px !important;
}

.dashboard-preview {
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-frame {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-controls span:nth-child(1) { background: #ef4444; }
.window-controls span:nth-child(2) { background: #f59e0b; }
.window-controls span:nth-child(3) { background: #10b981; }

.dashboard-nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item.active,
.nav-item:hover {
    color: var(--text-primary);
}

.dashboard-content {
    padding: 32px;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dash-stat {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
}

.stat-label-dash {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value-dash {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--success);
}

.dash-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    height: 200px;
    padding: 24px;
    background: var(--bg-elevated);
    border-radius: var(--border-radius);
}

.chart-bar {
    flex: 1;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px 4px 0 0;
    transition: all 0.4s ease;
}

.chart-bar.active {
    background: var(--gradient-primary);
}

.chart-bar:hover {
    background: var(--accent-primary);
}

/* ===================================
   Tech Section
   =================================== */
.tech-section {
    background: var(--bg-primary);
    margin-top: 80px !important; /* Espaço adicional acima */
    padding-top: 60px !important;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tech-category {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    transition: all 0.4s var(--ease-out-expo);
}

.tech-category:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.category-header svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.category-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: help;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: var(--bg-secondary);
    padding: 120px 0 !important; /* Aumentado para mais espaço */
    margin-top: 80px !important; /* Espaço adicional acima */
}

.cta-card {
    position: relative;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    padding: 80px;
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.decoration-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.decoration-circle:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -150px;
}

.decoration-circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-primary);
    padding: 120px 0 40px !important; /* Mais espaço no topo */
    margin-top: 80px !important; /* Espaço adicional acima */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-description {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

.footer-bottom strong {
    color: var(--text-primary);
}

.footer-credits {
    margin-top: 8px;
    font-size: 0.875rem;
}

/* ===================================
   Reveal Animations
   =================================== */
[data-reveal] {
    /* opacity: 0; - REMOVIDO: elementos devem ser visíveis por padrão */
}

[data-reveal="up"] {
    /* transform: translateY(30px); */
}

[data-reveal="left"] {
    /* transform: translateX(-30px); */
}

[data-reveal="right"] {
    /* transform: translateX(30px); */
}

[data-reveal="scale"] {
    /* transform: scale(0.95); */
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0) scale(1);
    transition: all 0.8s var(--ease-out-expo);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .phone-frame {
        transform: none;
    }
    
    .float-card {
        display: none;
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-block {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .feature-block.reverse {
        direction: ltr;
    }
    
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --container-padding: 20px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
    }

    /* Esconde float cards no mobile */
    .float-card {
        display: none !important;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .dash-stats {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .phone-frame {
        width: 260px;
        height: 520px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ===================================
   Demo Instructions Section
   =================================== */
.demo-instructions {
    max-width: 800px;
    margin: 80px auto 0;
    padding: 48px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--bg-elevated);
    border-radius: var(--border-radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.demo-instructions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.instruction-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.instruction-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
}

.instruction-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.instruction-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.instruction-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.step-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.step-link:hover {
    color: var(--accent-secondary);
    border-bottom-color: var(--accent-secondary);
}

.step-description code {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--accent-primary);
}

.instruction-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.note-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .demo-instructions {
        padding: 32px 24px;
        margin-top: 60px;
    }
    
    .instruction-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .instruction-title {
        font-size: 1.5rem;
    }
    
    .instruction-step {
        padding: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .instruction-note {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Fallback Visibility - Garante elementos visíveis
   =================================== */
/* Se JavaScript falhar ou demorar, elementos ficam visíveis após 2s */
@media (prefers-reduced-motion: no-preference) {
    .title-line,
    [data-reveal] {
        animation: force-visible 0.01s 2s forwards;
    }
    
    @keyframes force-visible {
        to {
            opacity: 1 !important;
            transform: none !important;
        }
    }
}
