import type { Metadata } from "next";
import "./globals.css";

const siteOrigin = new URL("https://linekerpandi.com/smartcut64/");
const socialImage = new URL("og.png", siteOrigin).toString();
const description = "Frame-accurate cuts, modern codecs and validated smart rendering in a native 64-bit Windows editor.";

// vinext currently omits request-dependent generateMetadata output. Keep this
// static so every deployed route receives complete social and search metadata.
export const metadata: Metadata = {
  title: {
    default: "SmartCut64 — fast, frame-accurate Windows video editing",
    template: "%s | SmartCut64",
  },
  description,
  icons: {
    icon: "/favicon.svg",
    shortcut: "/favicon.svg",
  },
  metadataBase: siteOrigin,
  openGraph: {
    title: "SmartCut64",
    description,
    type: "website",
    images: [{ url: socialImage, width: 1729, height: 910, alt: "SmartCut64 precision film-cutting artwork" }],
  },
  twitter: {
    card: "summary_large_image",
    title: "SmartCut64",
    description,
    images: [socialImage],
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body>{children}</body>
    </html>
  );
}
