/* ===== RESET E CONFIGURAÇÕES BÁSICAS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary-purple: #8b5cf6;
    --strong-purple: #7c3aed;
    --neon-purple: #a855f7;
    --electric-blue: #06b6d4;
    --neon-blue: #0ea5e9;
    --hot-pink: #ec4899;
    --neon-green: #10b981;
    --aqua-green: #14f195;
    
    /* Cores neutras */
    --white: #ffffff;
    --light-text: #e2e8f0;
    --darker-text: #94a3b8;
    --dark-bg: #0f172a;
    --card-bg: rgba(139, 92, 246, 0.1);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--neon-purple), var(--electric-blue));
    --gradient-secondary: linear-gradient(135deg, var(--electric-blue), var(--aqua-green));
    --gradient-dark: linear-gradient(135deg, #0a0a2e 0%, #16213e 25%, #0f3460 50%, #533a7b 75%, #8b5cf6 100%);
    
    /* Sombras */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-purple: 0 10px 40px rgba(139, 92, 246, 0.4);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.5);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;
}

/* ===== CONFIGURAÇÕES GLOBAIS ===== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* Previne scroll horizontal */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--gradient-dark);
    background-attachment: fixed;
    overflow-x: hidden; /* Previne scroll horizontal */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

/* Container responsivo */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

/* ===== LOADING SCREEN ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(139, 92, 246, 0.3);
    border-left: 4px solid var(--neon-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

.loading-text {
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== BACKGROUND ELEMENTOS ===== */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.organic-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.organic-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.1));
    filter: blur(1px);
    animation: organicFloat 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 300px;
    top: 10%;
    left: -10%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 400px;
    top: 50%;
    right: -15%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(236, 72, 153, 0.12));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 7s;
}

.shape-3 {
    width: 350px;
    height: 250px;
    bottom: 20%;
    left: -5%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    animation-delay: 14s;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    box-sizing: border-box;
}

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

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
}

.hero-title .logo {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    animation: logoGlow 4s ease-in-out infinite alternate, gradientShift 8s ease-in-out infinite;
    letter-spacing: -2px;
}

.hero-tagline {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--white), var(--electric-blue), var(--aqua-green));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    animation: slideInUp 1s ease-out 0.5s both, gradientShift 6s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    color: var(--light-text);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    animation: slideInUp 1s ease-out 1s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
    animation: slideInUp 1s ease-out 1.5s both;
    width: 100%;
    max-width: 100%;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(6, 182, 212, 0.9));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-bounce);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cta-button::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.8s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.cta-button:hover::after {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-button:active {
    transform: translateY(-2px);
}

.cta-button i {
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
}

.cta-button:hover i {
    transform: translateX(3px);
}

.cta-button.secondary {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(20, 241, 149, 0.9));
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3);
}

.cta-button.secondary:hover {
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.5);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--white);
    border-bottom: 3px solid var(--white);
    transform: rotate(45deg);
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.stats-container {
    display: flex;
    gap: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
    backdrop-filter: blur(20px);
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-lg);
    animation: slideInUp 1s ease-out 2s both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-item {
    text-align: center;
    min-width: 120px;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    animation: pulse 2s ease-in-out infinite;
}

.stat-label {
    font-size: 1rem;
    color: var(--light-text);
    opacity: 0.9;
    font-weight: 600;
}

/* ===== ANIMAÇÕES ===== */
@keyframes organicFloat {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg) scale(1);
    }
    33% {
        transform: translateX(30px) translateY(-30px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translateX(-20px) translateY(20px) rotate(240deg) scale(0.9);
    }
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5)); }
    100% { filter: drop-shadow(0 0 50px rgba(139, 92, 246, 0.9)); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .floating-menu {
        right: var(--spacing-sm);
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stats-container {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-xl);
        transition: left var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: var(--spacing-2xl) var(--spacing-md);
    }
    
    .hero-content {
        padding: 0 var(--spacing-xs);
    }

    .stats-section {
        padding: var(--spacing-2xl) var(--spacing-md);
    }
    
    .stats-container {
        flex-direction: column;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
        white-space: normal;
    }
    
    /* Ajustar formas orgânicas para mobile */
    .shape-1 {
        width: 200px;
        height: 150px;
        left: -5%;
    }
    
    .shape-2 {
        width: 250px;
        height: 200px;
        right: -5%;
    }
    
    .shape-3 {
        width: 180px;
        height: 120px;
        left: -3%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero {
        padding: var(--spacing-xl) var(--spacing-sm);
    }
    
    .hero-content {
        padding: 0;
    }
    
    .stats-section {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .stats-container {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        margin: 0;
    }

    .stat-number {
        font-size: 2rem;
    }
    
    .cta-button {
        max-width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Reduzir ainda mais as formas orgânicas */
    .shape-1 {
        width: 150px;
        height: 100px;
        left: -3%;
    }
    
    .shape-2 {
        width: 180px;
        height: 140px;
        right: -3%;
    }
    
    .shape-3 {
        width: 120px;
        height: 80px;
        left: -2%;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .nav-container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-xs);
    }
    
    .stats-section {
        padding: var(--spacing-lg) var(--spacing-xs);
    }
    
    .stats-container {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Ocultar formas orgânicas em telas muito pequenas */
    .organic-shape {
        display: none;
    }
}

/* ===== LOGO IMAGES ===== */
.nav-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all var(--transition-normal);
}

.nav-logo-img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(139, 92, 246, 0.8));
}

.hero-logo-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: var(--spacing-lg);
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-logo-img {
    width: 80px;
    height: auto;
    margin-bottom: var(--spacing-lg);
    filter: brightness(0) invert(1);
    animation: logoPulse 2s ease-in-out infinite;
}

.footer-logo-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: var(--spacing-md);
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity var(--transition-normal);
}

.footer-logo-img:hover {
    opacity: 1;
}

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

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .nav-logo-img {
        height: 35px;
    }
    
    .hero-logo-img {
        max-width: 300px;
    }
    
    .loading-logo-img {
        width: 60px;
    }
    
    .footer-logo-img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .nav-logo-img {
        height: 30px;
    }
    
    .hero-logo-img {
        max-width: 250px;
    }
    
    .loading-logo-img {
        width: 50px;
    }
    
    .footer-logo-img {
        max-width: 120px;
    }
}
