import type { Metadata } from "next";
import { Inter, Space_Grotesk } from "next/font/google";
import "./globals.css";
import { Navbar } from "@/components/Navbar";
import { Footer } from "@/components/Footer";
import { NoiseOverlay } from "@/components/NoiseOverlay";

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

const spaceGrotesk = Space_Grotesk({
  variable: "--font-space-grotesk",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "KOBIL | The Digital Trust Platform",
  description:
    "One platform for identity, communication, signatures, and payments. Trusted by governments and enterprises in 50+ countries for 25+ years.",
  keywords: [
    "digital trust",
    "cybersecurity",
    "identity verification",
    "digital signatures",
    "secure communication",
    "AI agents",
    "KOBIL",
  ],
  openGraph: {
    title: "KOBIL | The Digital Trust Platform",
    description:
      "One platform for identity, communication, signatures, and payments.",
    type: "website",
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" className="dark">
      <body
        className={`${inter.variable} ${spaceGrotesk.variable} font-sans antialiased bg-navy text-white`}
      >
        <NoiseOverlay />
        {/* Cinematic fixed lighting — persists across all pages */}
        <div className="fixed top-[-10%] right-[0%] w-[800px] h-[800px] bg-cyan-500/15 blur-[180px] rounded-full pointer-events-none z-0" />
        <div className="fixed bottom-0 left-[-10%] w-[600px] h-[600px] bg-indigo-600/10 blur-[150px] rounded-full pointer-events-none z-0" />
        <Navbar />
        <main className="relative z-[1]">{children}</main>
        <Footer />
      </body>
    </html>
  );
}
