import type { Metadata } from "next"
import { fetchPageData } from "@/lib/api"
import { Navigation } from "@/components/landing/navigation"
import { AboutSection } from "@/components/landing/about-section"
import { TeamSection } from "@/components/landing/team-section"
import { CtaSection } from "@/components/landing/cta-section"
import { FooterSection } from "@/components/landing/footer-section"

export const metadata: Metadata = {
  title: "About — NxtLab",
  description:
    "NxtLab is a product studio in Hyderabad, India. A tight-knit team of designers and engineers that has delivered 60+ premium websites, mobile apps, and digital products.",
}

export default async function AboutPage() {
  const pageData = await fetchPageData()

  return (
    <main className="relative min-h-screen overflow-x-hidden bg-black">
      <Navigation settings={pageData?.settings ?? null} />
      <AboutSection />
      <TeamSection team={pageData?.team ?? null} />
      <CtaSection sections={pageData?.sections ?? null} settings={pageData?.settings ?? null} />
      <FooterSection settings={pageData?.settings ?? null} sections={pageData?.sections ?? null} />
    </main>
  )
}
