// Multilingual Translations const translations = { en: { 'hero-subtitle': 'Your AI business co-pilot. One workspace. Infinite possibilities.', 'hero-description': 'Eliminate tool chaos. Automate workflows. Scale your solo empire with intelligent AI that understands your business.', 'cta-trial': 'Start Free Trial', 'cta-features': 'See Features', 'no-card': 'No credit card required • 14-day trial', 'painpoints-title': 'Solopreneurs Are Drowning in Tool Chaos', 'painpoint-1-title': 'Tool Sprawl & Fragmentation', 'painpoint-1-desc': 'Juggling 15+ apps, losing data between tabs, paying $300+/month for disconnected tools.', 'solution-1-title': 'Unified AI Command Center', 'solution-1-desc': 'One intelligent workspace where every tool talks to each other, powered by your AI assistant.', 'painpoint-2-title': 'Context Switching Hell', 'painpoint-2-desc': 'Constantly switching between project boards, CRM, finance apps—losing 2+ hours daily.', 'solution-2-title': 'Flow State Preserved', 'solution-2-desc': 'Stay in one environment. AI handles the cross-tool busywork while you focus on growth.', 'painpoint-3-title': 'Steep Learning Curves', 'painpoint-3-desc': 'Every new tool demands weeks of tutorials. You\'re a business owner, not a software expert.', 'solution-3-title': 'Conversational Control', 'solution-3-desc': 'Just tell the AI what you need: "Create a project," "Follow up with leads," "Show my revenue."', 'benefits-title': 'Why Solopreneurs Choose SoloFlowAi', 'benefits-subtitle': 'Built for the relentless. Designed for the ambitious. Engineered for scale.', 'features-title': 'Everything You Need. Nothing You Don\'t.', 'features-subtitle': '9 powerful modules. 1 unified AI brain. Infinite possibilities.', 'explore-features': 'Explore All Features', 'testimonials-title': 'Join 10,000+ Thriving Solopreneurs', 'affiliate-title': 'Curated AI Tools We Love', 'affiliate-subtitle': 'Handpicked productivity boosters that integrate seamlessly with SoloFlowAi', 'view-all-tools': 'View All Tools', 'cta-title': 'Ready to 10x Your Productivity?', 'cta-subtitle': 'Join the solopreneur revolution. Start your free trial today.', 'cta-trial-2': 'Start Free Trial', 'watch-demo': 'Watch Demo', 'instant-setup': 'Instant setup • Cancel anytime • 24/7 support', 'nav-products': 'Products', 'nav-affiliate': 'Affiliate Hub', 'nav-blog': 'Resources', 'nav-about': 'About', 'nav-contact': 'Contact', 'footer-tagline': 'AI-powered productivity for the unstoppable solopreneur.', 'footer-links': 'Quick Links', 'footer-legal': 'Legal', 'footer-language': 'Language', 'footer-copyright': '© 2024 Orgafinity. All rights reserved. Built with 🤘 for solopreneurs.', 'feature-save-time': 'Save 15+ Hours/Week', 'feature-save-cost': 'Cut Tool Costs 70%', 'feature-ai-understands': 'AI That Understands', 'feature-scale': 'Scale Without Hiring', 'feature-security': 'Enterprise-Grade Security', 'feature-community': 'Solopreneur Community', 'feature-chatbot': 'AI Chatbot Agent', 'feature-project': 'Project Management', 'feature-crm': 'Smart CRM', 'feature-sales': 'Sales Pipeline', 'feature-marketing': 'Digital Marketing', 'feature-social': 'Social Media Manager', 'feature-finance': 'Finance Suite', 'feature-knowledge': 'Knowledge Base', 'feature-content': 'Content Library', 'lang-en': 'English', 'lang-fr': 'Français', 'lang-es': 'Español' }, fr: { 'hero-subtitle': 'Votre co-pilote IA d\'affaires. Un espace de travail. Des possibilités infinies.', 'hero-description': 'Éliminez le chaos des outils. Automatisez les flux de travail. Développez votre empire solo avec une IA intelligente qui comprend votre entreprise.', 'cta-trial': 'Essai Gratuit', 'cta-features': 'Voir les Fonctionnalités', 'no-card': 'Pas de carte bancaire requise • Essai de 14 jours', 'painpoints-title': 'Les Solopreneurs Noyés dans le Chaos des Outils', 'painpoint-1-title': 'Dispersion des Outils', 'painpoint-1-desc': 'Gestion de 15+ applications, perte de données entre les onglets, paiement de 300€+/mois pour des outils déconnectés.', 'solution-1-title': 'Centre de Commande IA Unifié', 'solution-1-desc': 'Un espace de travail intelligent où chaque outil communique, propulsé par votre assistant IA.', 'painpoint-2-title': 'Enfer du Multitâche', 'painpoint-2-desc': 'Basculer constamment entre tableaux de bord, CRM, finances—perdre 2+ heures par jour.', 'solution-2-title': 'Flux Préservé', 'solution-2-desc': 'Restez dans un seul environnement. L\'IA gère les tâches transversales pendant que vous vous concentrez sur la croissance.', 'painpoint-3-title': 'Courbes d\'Apprentissage Raides', 'painpoint-3-desc': 'Chaque nouvel outil demande des semaines de tutoriels. Vous êtes un chef d\'entreprise, pas un expert en logiciels.', 'solution-3-title': 'Contrôle Conversationnel', 'solution-3-desc': 'Dites simplement à l\'IA ce dont vous avez besoin : "Créer un projet", "Relancer les leads", "Montrer mon revenu."', 'benefits-title': 'Pourquoi les Solopreneurs Choisissent SoloFlowAi', 'benefits-subtitle': 'Construit pour les inarrêtables. Conçu pour les ambitieux. Ingénierie pour l\'échelle.', 'features-title': 'Tout Ce Dont Vous Avez Besoin. Rien de Superflu.', 'features-subtitle': '9 modules puissants. 1 cerveau IA unifié. Des possibilités infinies.', 'explore-features': 'Explorer Toutes les Fonctionnalités', 'testimonials-title': 'Rejoignez 10 000+ Solopreneurs Prospères', 'affiliate-title': 'Outils IA Sélectionnés', 'affiliate-subtitle': 'Des boosters de productivité choisis à la main qui s\'intègrent parfaitement à SoloFlowAi', 'view-all-tools': 'Voir Tous les Outils', 'cta-title': 'Prêt à Décupler Votre Productivité ?', 'cta-subtitle': 'Rejoignez la révolution des solopreneurs. Commencez votre essai gratuit.', 'cta-trial-2': 'Essai Gratuit', 'watch-demo': 'Voir la Démo', 'instant-setup': 'Configuration instantanée • Annulation à tout moment • Support 24/7', 'nav-products': 'Produits', 'nav-affiliate': 'Partenaires', 'nav-blog': 'Ressources', 'nav-about': 'À Propos', 'nav-contact': 'Contact', 'footer-tagline': 'Productivité IA pour le solopreneur inarrêtable.', 'footer-links': 'Liens Rapides', 'footer-legal': 'Légal', 'footer-language': 'Langue', 'footer-copyright': '© 2024 Orgafinity. Tous droits réservés. Construit avec 🤘 pour les solopreneurs.', 'feature-save-time': 'Gagnez 15+ Heures/Semaine', 'feature-save-cost': 'Réduisez les Coûts de 70%', 'feature-ai-understands': 'IA Compréhensive', 'feature-scale': 'Scalabilité Sans Embauche', 'feature-security': 'Sécurité Entreprise', 'feature-community': 'Communauté Solopreneur', 'feature-chatbot': 'Agent IA Conversationnel', 'feature-project': 'Gestion de Projets', 'feature-crm': 'CRM Intelligent', 'feature-sales': 'Pipeline Commercial', 'feature-marketing': 'Marketing Digital', 'feature-social': 'Gestion Sociale', 'feature-finance': 'Suite Financière', 'feature-knowledge': 'Base de Connaissances', 'feature-content': 'Bibliothèque de Contenu', 'lang-en': 'Anglais', 'lang-fr': 'Français', 'lang-es': 'Espagnol' }, es: { 'hero-subtitle': 'Tu copiloto de negocios IA. Un espacio de trabajo. Posibilidades infinitas.', 'hero-description': 'Elimina el caos de herramientas. Automatiza flujos de trabajo. Escala tu imperio solo con IA inteligente que comprende tu negocio.', 'cta-trial': 'Prueba Gratis', 'cta-features': 'Ver Características', 'no-card': 'No se requiere tarjeta • Prueba de 14 días', 'painpoints-title': 'Los Emprendedores Individuales se Ahogan en el Caos de Herramientas', 'painpoint-1-title': 'Dispersión de Herramientas', 'painpoint-1-desc': 'Manejando 15+ aplicaciones, perdiendo datos entre pestañas, pagando $300+/mes por herramientas desconectadas.', 'solution-1-title': 'Centro de Comando IA Unificado', 'solution-1-desc': 'Un espacio de trabajo inteligente donde cada herramienta se comunica, impulsado por tu asistente IA.', 'painpoint-2-title': 'Multitarea Constante', 'painpoint-2-desc': 'Cambiando constantemente entre proyectos, CRM, finanzas—perdiendo 2+ horas diarias.', 'solution-2-title': 'Flujo Preservado', 'solution-2-desc': 'Mantente en un entorno. La IA maneja el trabajo cruzado mientras te enfocas en el crecimiento.', 'painpoint-3-title': 'Curvas de Aprendizaje', 'painpoint-3-desc': 'Cada herramienta nueva demanda semanas de tutoriales. Eres dueño de negocio, no experto en software.', 'solution-3-title': 'Control Conversacional', 'solution-3-desc': 'Simplemente dile a la IA lo que necesitas: "Crear proyecto", "Seguir leads", "Mostrar ingresos."', 'benefits-title': 'Por Qué los Emprendedores Eligen SoloFlowAi', 'benefits-subtitle': 'Construido para los imparables. Diseñado para los ambiciosos. Ingeniería para escalar.', 'features-title': 'Todo lo que Necesitas. Nada de lo que No.', 'features-subtitle': '9 módulos poderosos. 1 cerebro IA unificado. Posibilidades infinitas.', 'explore-features': 'Explorar Todas las Características', 'testimonials-title': 'Únete a 10 000+ Emprendedores Prosperando', 'affiliate-title': 'Herramientas IA Cuidadosamente Seleccionadas', 'affiliate-subtitle': 'Potenciadores de productividad seleccionados que se integran perfectamente con SoloFlowAi', 'view-all-tools': 'Ver Todas las Herramientas', 'cta-title': '¿Listo para Multiplicar tu Productividad?', 'cta-subtitle': 'Únete a la revolución de emprendedores individuales. Comienza tu prueba gratuita.', 'cta-trial-2': 'Prueba Gratis', 'watch-demo': 'Ver Demo', 'instant-setup': 'Configuración instantánea • Cancela cuando quieras • Soporte 24/7', 'nav-products': 'Productos', 'nav-affiliate': 'Afiliados', 'nav-blog': 'Recursos', 'nav-about': 'Acerca de', 'nav-contact': 'Contacto', 'footer-tagline': 'Productividad con IA para el emprendedor imparable.', 'footer-links': 'Enlaces Rápidos', 'footer-legal': 'Legal', 'footer-language': 'Idioma', 'footer-copyright': '© 2024 Orgafinity. Todos los derechos reservados. Construido con 🤘 para emprendedores.', 'feature-save-time': 'Ahorra 15+ Horas/Semana', 'feature-save-cost': 'Corta Costos de Herramientas 70%', 'feature-ai-understands': 'IA Comprensiva', 'feature-scale': 'Escala Sin Contratar', 'feature-security': 'Seguridad Empresarial', 'feature-community': 'Comunidad de Emprendedores', 'feature-chatbot': 'Agente IA Chatbot', 'feature-project': 'Gestión de Proyectos', 'feature-crm': 'CRM Inteligente', 'feature-sales': 'Pipeline de Ventas', 'feature-marketing': 'Marketing Digital', 'feature-social': 'Gestión Social', 'feature-finance': 'Suite Financiera', 'feature-knowledge': 'Base de Conocimientos', 'feature-content': 'Biblioteca de Contenido', 'lang-en': 'Inglés', 'lang-fr': 'Francés', 'lang-es': 'Español' } }; // Language Management let currentLang = localStorage.getItem('orgafinity-lang') || 'en'; function setLanguage(lang) { currentLang = lang; localStorage.setItem('orgafinity-lang', lang); // Update all elements with data-lang attribute document.querySelectorAll('[data-lang]').forEach(element => { const key = element.getAttribute('data-lang'); if (translations[lang] && translations[lang][key]) { // Handle placeholders if (element.tagName === 'INPUT') { element.placeholder = translations[lang][key]; } else { element.textContent = translations[lang][key]; } } }); // Update lang attribute document.documentElement.setAttribute('lang', lang); // Update language selector document.querySelectorAll('.lang-option').forEach(option => { option.classList.remove('text-indigo-400', 'bg-indigo-500/20'); if (option.dataset.lang === lang) { option.classList.add('text-indigo-400', 'bg-indigo-500/20'); } }); } // Smooth scroll for anchor links document.addEventListener('click', (e) => { if (e.target.matches('a[href^="#"]')) { e.preventDefault(); const target = document.querySelector(e.target.getAttribute('href')); if (target) { target.scrollIntoView({ behavior: 'smooth', block: 'start' }); } } }); // Mobile menu toggle function toggleMobileMenu() { const menu = document.getElementById('mobile-menu'); menu.classList.toggle('hidden'); } // Initialize on DOM load document.addEventListener('DOMContentLoaded', () => { setLanguage(currentLang); // Add intersection observer for animations const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add('animate-fade-in'); } }); }, { threshold: 0.1 }); // Observe all sections document.querySelectorAll('section').forEach(section => { observer.observe(section); }); }); // Newsletter form handler function handleNewsletter(form) { const email = form.querySelector('input[type="email"]').value; alert(`🎉 Merci ! Vous êtes inscrit avec ${email}`); form.reset(); return false; } // Contact form handler function handleContact(form) { const formData = new FormData(form); alert('✅ Message envoyé ! Nous vous répondrons sous 24h.'); form.reset(); return false; }