File size: 13,857 Bytes
64ebb44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
// 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;
}