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: 'CatalystIQ: Understand Your Investments',
  description: 'Unlock true investment conviction with CatalystIQ, the platform designed to help you finally understand what you\'re investing in through guided DCF, catalyst tracking, and scenario analysis.',
  keywords: ["investing, investment platform, DCF, discounted cash flow, stock analysis, financial modeling, catalyst tracking, scenario analysis, valuation, retail investors, finance education, stock market, CatalystIQ"],
  openGraph: {
    "title": "CatalystIQ: Understand Your Investments",
    "description": "Unlock true investment conviction with CatalystIQ, the platform designed to help you finally understand what you're investing in.",
    "url": "https://www.catalystiq.com",
    "siteName": "CatalystIQ",
    "images": [
      {
        "url": "asset://hero-dashboard",
        "alt": "CatalystIQ Dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "CatalystIQ: Understand Your Investments",
    "description": "Unlock true investment conviction with CatalystIQ, the platform designed to help you finally understand what you're investing in.",
    "images": [
      "asset://hero-dashboard"
    ]
  },
  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>
  );
}
