import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";



export const metadata: Metadata = {
  title: 'GOAT\'S INVENTOR AI: AI App Builder for Developers',
  description: 'Instantly build, launch, and improve apps with GOAT\'S INVENTOR AI. Go from plain language to running, editable code with human dev support and unlock your full potential.',
  keywords: ["AI app builder, code generation, AI coding assistant, HyperDev, pilot today, software engineering, web development, machine learning, SaaS, developer tools, AI innovation, full stack, coding bootcamp"],
  openGraph: {
    "title": "GOAT'S INVENTOR AI: AI App Builder for Developers",
    "description": "Instantly build, launch, and improve apps with GOAT'S INVENTOR AI. Go from plain language to running, editable code with human dev support and unlock your full potential.",
    "url": "https://goatsinventorai.com",
    "siteName": "GOAT'S INVENTOR AI",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/luxurious-boardroom-space-within-multinational-company-used-meetings_482257-124520.jpg",
        "alt": "AI Code Generation Interface"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "GOAT'S INVENTOR AI: AI App Builder for Developers",
    "description": "Instantly build, launch, and improve apps with GOAT'S INVENTOR AI. Go from plain language to running, editable code with human dev support and unlock your full potential.",
    "images": [
      "http://img.b2bpic.net/free-photo/luxurious-boardroom-space-within-multinational-company-used-meetings_482257-124520.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
