import React, { useEffect } from "react"; import { Button } from "@/components/ui/button"; import { ArrowRight, TrendingUp, Shield, Zap, CheckCircle2, MessageSquare, Users, BarChart3, Clock, Globe, Lock, Sparkles } from "lucide-react"; import Navigation from "../components/landing/Navigation"; import Hero from "../components/landing/Hero"; import MetricsSection from "../components/landing/MetricsSection"; import DemoSection from "../components/landing/DemoSection"; import HowItWorks from "../components/landing/HowItWorks"; import Integrations from "../components/landing/Integrations"; import ContactForm from "../components/landing/ContactForm"; import WhyAlgoNew from "../components/landing/WhyAlgoNew"; import FAQSection from "../components/landing/FAQSection"; import FinalCTA from "../components/landing/FinalCTA"; import Footer from "../components/landing/Footer"; export default function ChatbotBancaFintech() { useEffect(() => { // Track page view if (window.dataLayer) { window.dataLayer.push({ event: 'view_hero' }); } // Smooth scroll for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { const href = this.getAttribute('href'); if (href !== '#') { e.preventDefault(); const target = document.querySelector(href); if (target) { target.scrollIntoView({ behavior: 'smooth', block: 'start' }); } } }); }); // Scroll tracking let scrolled50 = false; let scrolled100 = false; const handleScroll = () => { const scrollPercentage = (window.scrollY / (document.documentElement.scrollHeight - window.innerHeight)) * 100; if (scrollPercentage > 50 && !scrolled50) { scrolled50 = true; if (window.dataLayer) window.dataLayer.push({ event: 'scroll_50' }); } if (scrollPercentage > 95 && !scrolled100) { scrolled100 = true; if (window.dataLayer) window.dataLayer.push({ event: 'scroll_100' }); } }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); return ( <> {/* JSON-LD Structured Data */}
); }