import type { Metadata } from "next";
import { JsonLd } from "./lib/structured-data";
import HomepageContent from "./components/HomepageContent/HomepageContent";

export const metadata: Metadata = {
  title: {
    absolute:
      "Meliorate - AI Automation, Product Engineering & Growth Infrastructure",
  },
  description:
    "Meliorate builds AI automation, custom software, CRM systems, and growth infrastructure for ambitious teams. Explore our products and custom solutions.",
  alternates: {
    canonical: "/",
  },
  openGraph: {
    title:
      "Meliorate - AI Automation, Product Engineering & Growth Infrastructure",
    description:
      "Execution-focused studio building AI automation, custom software, and growth infrastructure for ambitious teams.",
    url: "/",
    type: "website",
  },
};

export default function HomePage() {
  return (
    <>
      <JsonLd
        data={{
          "@context": "https://schema.org",
          "@type": "ProfessionalService",
          name: "Meliorate",
          url: "https://meliorate.pro",
          description:
            "Execution-focused studio for AI automation, product engineering, and growth infrastructure.",
          serviceType: [
            "Custom Software Development",
            "AI Automation",
            "Growth Infrastructure",
            "Product Engineering",
          ],
          sameAs: [
            "https://www.instagram.com/meliorate.pro",
            "https://www.linkedin.com/company/73263460",
          ],
        }}
      />
      <JsonLd
        data={{
          "@context": "https://schema.org",
          "@type": "WebPage",
          name: "Meliorate - AI Automation, Product Engineering & Growth Infrastructure",
          url: "https://meliorate.pro",
          description:
            "Meliorate builds AI automation, custom software, CRM systems, and growth infrastructure for ambitious teams.",
          isPartOf: {
            "@type": "WebSite",
            name: "Meliorate",
            url: "https://meliorate.pro",
          },
        }}
      />
      <HomepageContent />
    </>
  );
}
