import { HeroSection } from "@/components/home/hero-section"
import { TrendingSection } from "@/components/home/trending-section"
import { UseCasesSection } from "@/components/home/use-cases-section"
import { TestimonialsSection } from "@/components/home/testimonials-section"
import { AboutSection } from "@/components/home/about-section"
import { SolutionsSection } from "@/components/home/solutions-section"
import { ProductsSection } from "@/components/home/products-section"
import { FAQSection } from "@/components/home/faq-section"
import { RecentBlogsSection } from "@/components/home/recent-blogs-section"
import { ContactSection } from "@/components/home/contact-section"
import { siteConfig } from "@/lib/data"

export default function HomePage() {
  return (
    <>
      {/* JSON-LD Schema Markup */}
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify({
            "@context": "https://schema.org",
            "@type": "Organization",
            "name": siteConfig.name,
            "url": siteConfig.url,
            "logo": `${siteConfig.url}/pwa-192x192.png`,
            "description": siteConfig.description,
            "contactPoint": {
              "@type": "ContactPoint",
              "telephone": siteConfig.contact.phone,
              "contactType": "customer service",
              "email": siteConfig.contact.email,
              "areaServed": "Worldwide",
              "availableLanguage": ["English", "Hindi"]
            },
            "address": {
              "@type": "PostalAddress",
              "streetAddress": "204, Alpha Analytics Services Pvt. Ltd. 18 High street baner pashan link road",
              "addressLocality": "Baner, Pune",
              "addressCountry": "IN",
              "postalCode": "411045"
            },
            "sameAs": [
              siteConfig.social.twitter,
              siteConfig.social.linkedin
            ]
          })
        }}
      />
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify({
            "@context": "https://schema.org",
            "@type": "SoftwareApplication",
            "name": siteConfig.name,
            "applicationCategory": "BusinessApplication",
            "operatingSystem": "Web",
            "offers": {
              "@type": "Offer",
              "price": "0",
              "priceCurrency": "USD"
            },
            "aggregateRating": {
              "@type": "AggregateRating",
              "ratingValue": "4.9",
              "reviewCount": "1000"
            },
            "description": siteConfig.description,
            "featureList": [
              "AI Mind Map Generator",
              "PDF Summarizer",
              "Video Summarizer",
              "Legal Document Analysis",
              "Zero Hallucination AI",
              "Multi-language Support"
            ]
          })
        }}
      />
      <HeroSection />
      <TrendingSection />
      <UseCasesSection />
      <ProductsSection />
      <SolutionsSection />
      <RecentBlogsSection />
      <TestimonialsSection />
      <FAQSection />
      <AboutSection />
      <ContactSection theme="light" />
    </>
  )
}
