import { Component, onMount } from 'solid-js';
import { initAnalytics, trackPageView } from '../hooks/useAnalytics';
import HeroSection from '../components/HeroSection';
import FeaturesSection from '../components/FeaturesSection';
import TierComparison from '../components/TierComparison';
import BlogPreview from '../components/BlogPreview';
import Footer from '../components/Footer';

const LandingPage: Component = () => {
  onMount(() => {
    initAnalytics();
    trackPageView('/', 'ShieldAI — AI-Powered Identity Protection');
  });

  return (
    <main>
      <HeroSection />
      <FeaturesSection />
      <TierComparison />
      <BlogPreview />
      <Footer />
    </main>
  );
};

export default LandingPage;
