import Navbar from '@/components/Navbar'
import Hero from '@/components/Hero'
import Ticker from '@/components/Ticker'
import Features from '@/components/Features'
import BrownLeaf from '@/components/BrownLeaf'
import Intelligence from '@/components/Intelligence'
import HowItWorks from '@/components/HowItWorks'
import FAQ from '@/components/FAQ'
import CTA from '@/components/CTA'
import Footer from '@/components/Footer'

const faqSchema = {
  '@context': 'https://schema.org',
  '@type': 'FAQPage',
  mainEntity: [
    {
      '@type': 'Question',
      name: 'How does GreenLens identify a plant?',
      acceptedAnswer: {
        '@type': 'Answer',
        text: 'GreenLens analyzes the plant photo and combines that with app-side care guidance so you can move from scan to next steps faster.',
      },
    },
    {
      '@type': 'Question',
      name: 'Is GreenLens free to use?',
      acceptedAnswer: {
        '@type': 'Answer',
        text: 'GreenLens includes free functionality plus paid options such as subscriptions and credit top-ups for advanced AI features.',
      },
    },
    {
      '@type': 'Question',
      name: 'Can I use GreenLens offline?',
      acceptedAnswer: {
        '@type': 'Answer',
        text: 'Some experiences may require a connection, especially for scan-related features. Saved information inside the app can remain available afterward.',
      },
    },
    {
      '@type': 'Question',
      name: 'What kind of plants can I use GreenLens for?',
      acceptedAnswer: {
        '@type': 'Answer',
        text: 'GreenLens is built for everyday plant owners who want help with houseplants, garden plants, and general care questions.',
      },
    },
    {
      '@type': 'Question',
      name: 'How do I start my plant collection in GreenLens?',
      acceptedAnswer: {
        '@type': 'Answer',
        text: 'Start with a scan, review the result, and save the plant to your collection to keep notes, reminders, and follow-up care in one place.',
      },
    },
  ],
}

export default function Home() {
  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(faqSchema) }}
      />
      <Navbar />
      <main>
        <Hero />
        <Ticker />
        <Features />
        <BrownLeaf />
        <Intelligence />
        <HowItWorks />
        <FAQ />
        <CTA />
      </main>
      <Footer />
    </>
  )
}
