{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-banner-section",
  "title": "CTA Banner Section",
  "description": "A call-to-action banner: a rounded card with a light that travels around its border, a soft glow that follows the pointer over a faded grid, a headline, two buttons, a small note and a check list, centred or split into two columns.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/cta-banner-section/cta-banner-section.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { motion, useMotionTemplate, useMotionValue, useReducedMotion, useSpring } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport interface CtaAction {\n  label: string;\n  href?: string;\n  onClick?: () => void;\n}\n\nexport interface CtaBannerSectionProps {\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  primaryAction?: CtaAction | null;\n  secondaryAction?: CtaAction | null;\n  /** Short reassurance points shown as a check list. Pass [] to hide them. */\n  points?: string[];\n  /** Small line under the buttons, e.g. \"No card required\". */\n  note?: string;\n  /** centered: everything in the middle. split: text on the left, buttons and points on the right. */\n  layout?: \"centered\" | \"split\";\n  /** Colour of the light that travels around the border and of the pointer glow. */\n  accent?: string;\n  /** Light that travels around the card border. */\n  beam?: boolean;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: {\n    bg: \"#0A0A0A\",\n    card: \"#0F0F10\",\n    text: \"#F5F4F1\",\n    muted: \"rgba(245,244,241,0.62)\",\n    faint: \"rgba(245,244,241,0.4)\",\n    border: \"rgba(255,255,255,0.1)\",\n    grid: \"rgba(255,255,255,0.05)\",\n    primary: \"#F5F4F1\",\n    onPrimary: \"#0A0A0A\",\n    secondary: \"rgba(255,255,255,0.06)\",\n    ok: \"#4ADE80\",\n    ring: \"rgba(245,244,241,0.6)\",\n  },\n  light: {\n    bg: \"#FAFAF8\",\n    card: \"#FFFFFF\",\n    text: \"#0A0A0A\",\n    muted: \"rgba(10,10,10,0.62)\",\n    faint: \"rgba(10,10,10,0.42)\",\n    border: \"rgba(10,10,10,0.1)\",\n    grid: \"rgba(10,10,10,0.05)\",\n    primary: \"#0A0A0A\",\n    onPrimary: \"#FAFAF8\",\n    secondary: \"rgba(10,10,10,0.05)\",\n    ok: \"#16A34A\",\n    ring: \"rgba(10,10,10,0.5)\",\n  },\n};\n\nfunction Button({ action, primary, p }: { action: CtaAction; primary?: boolean; p: (typeof PALETTES)[\"dark\"] }) {\n  const cls = \"inline-flex h-12 items-center justify-center gap-2 rounded-full px-6 text-[15px] font-medium no-underline transition-[transform,opacity] duration-150 hover:opacity-90 active:scale-[0.98] outline-none focus-visible:ring-2 focus-visible:ring-offset-2\";\n  const style: React.CSSProperties = {\n    background: primary ? p.primary : p.secondary,\n    color: primary ? p.onPrimary : p.text,\n    border: primary ? \"none\" : `1px solid ${p.border}`,\n    [\"--tw-ring-color\" as string]: p.ring,\n    [\"--tw-ring-offset-color\" as string]: p.card,\n  };\n  const inner = (\n    <>\n      {action.label}\n      {primary && (\n        <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n          <path d=\"M3 8h10M9 4l4 4-4 4\" />\n        </svg>\n      )}\n    </>\n  );\n  return action.href ? (\n    <a href={action.href} onClick={action.onClick} className={cls} style={style}>\n      {inner}\n    </a>\n  ) : (\n    <button type=\"button\" onClick={action.onClick} className={cn(cls, \"cursor-pointer\")} style={style}>\n      {inner}\n    </button>\n  );\n}\n\nexport function CtaBannerSection({\n  eyebrow = \"Get started\",\n  title = \"Your next quarter starts with one plan\",\n  description = \"Bring your backlog, invite your team and have a roadmap people can read by Friday.\",\n  primaryAction = { label: \"Start for free\", href: \"#\" },\n  secondaryAction = { label: \"Talk to sales\", href: \"#\" },\n  points = [\"Free for up to 10 people\", \"Import from your current tool\", \"Cancel any time\"],\n  note = \"No credit card required.\",\n  layout = \"centered\",\n  accent = \"#7C8CFF\",\n  beam = true,\n  theme = \"dark\",\n  className,\n}: CtaBannerSectionProps) {\n  const p = PALETTES[theme];\n  const reduce = !!useReducedMotion();\n  const mx = useMotionValue(50);\n  const my = useMotionValue(40);\n  const sx = useSpring(mx, { stiffness: 120, damping: 22 });\n  const sy = useSpring(my, { stiffness: 120, damping: 22 });\n  const spot = useMotionTemplate`radial-gradient(420px circle at ${sx}% ${sy}%, ${accent}26, transparent 65%)`;\n  const split = layout === \"split\";\n\n  const Points = points.length > 0 && (\n    <ul className={cn(\"m-0 flex list-none flex-wrap gap-x-5 gap-y-2 p-0\", !split && \"justify-center\")}>\n      {points.map((pt) => (\n        <li key={pt} className=\"flex items-center gap-2 text-[14px]\" style={{ color: p.muted }}>\n          <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" stroke={p.ok} strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n            <path d=\"m3 8.5 3 3 7-7\" />\n          </svg>\n          {pt}\n        </li>\n      ))}\n    </ul>\n  );\n\n  return (\n    <section className={cn(\"@container w-full\", className)} style={{ background: p.bg, color: p.text }}>\n      <div className=\"mx-auto max-w-6xl px-6 py-16 @[640px]:py-24\">\n        <motion.div\n          initial={reduce ? false : { opacity: 0, y: 24 }}\n          whileInView={{ opacity: 1, y: 0 }}\n          viewport={{ once: true, amount: 0.3 }}\n          transition={{ duration: 0.6, ease: [0.2, 0.7, 0.2, 1] }}\n          onPointerMove={(e) => {\n            if (reduce) return;\n            const r = e.currentTarget.getBoundingClientRect();\n            mx.set(((e.clientX - r.left) / r.width) * 100);\n            my.set(((e.clientY - r.top) / r.height) * 100);\n          }}\n          className=\"relative isolate overflow-hidden rounded-[28px] p-px\"\n        >\n          {/* The border: a soft line, plus a bright arc that travels around it. */}\n          <div aria-hidden=\"true\" className=\"absolute inset-0 -z-10 rounded-[28px]\" style={{ background: p.border }} />\n          {beam && !reduce && (\n            <motion.div\n              aria-hidden=\"true\"\n              className=\"absolute top-1/2 left-1/2 -z-10 aspect-square w-[160%] -translate-x-1/2 -translate-y-1/2\"\n              style={{ background: `conic-gradient(from 0deg, transparent 0deg, transparent 250deg, ${accent} 335deg, ${accent} 350deg, transparent 360deg)` }}\n              animate={{ rotate: 360 }}\n              transition={{ duration: 6, ease: \"linear\", repeat: Infinity }}\n            />\n          )}\n          <div className=\"relative overflow-hidden rounded-[27px]\" style={{ background: p.card }}>\n            <div\n              aria-hidden=\"true\"\n              className=\"pointer-events-none absolute inset-0\"\n              style={{\n                backgroundImage: `linear-gradient(${p.grid} 1px, transparent 1px), linear-gradient(90deg, ${p.grid} 1px, transparent 1px)`,\n                backgroundSize: \"44px 44px\",\n                maskImage: \"radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%)\",\n                WebkitMaskImage: \"radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%)\",\n              }}\n            />\n            <motion.div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\" style={{ background: reduce ? `radial-gradient(420px circle at 50% 30%, ${accent}22, transparent 65%)` : spot }} />\n            <div className={cn(\"relative grid gap-8 px-6 py-12 @[640px]:px-12 @[640px]:py-16\", split ? \"@[860px]:grid-cols-[1.3fr_1fr] @[860px]:items-center @[860px]:gap-12\" : \"justify-items-center text-center\")}>\n              <div>\n                {eyebrow && (\n                  <p className=\"m-0 inline-flex items-center gap-2 text-[13px] font-medium tracking-[0.12em] uppercase\" style={{ color: p.faint }}>\n                    <span className=\"h-1.5 w-1.5 rounded-full\" style={{ background: accent }} aria-hidden=\"true\" />\n                    {eyebrow}\n                  </p>\n                )}\n                <h2 className={cn(\"mt-3 mb-0 text-[32px] leading-[1.08] font-semibold tracking-[-0.03em] @[640px]:text-[48px]\", split ? \"max-w-[16ch]\" : \"mx-auto max-w-[18ch]\")}>{title}</h2>\n                {description && (\n                  <p className={cn(\"mt-4 mb-0 max-w-[520px] text-[16px] leading-[1.6] @[640px]:text-[17px]\", !split && \"mx-auto\")} style={{ color: p.muted }}>\n                    {description}\n                  </p>\n                )}\n                {split && Points && <div className=\"mt-6\">{Points}</div>}\n              </div>\n              <div className={cn(\"flex flex-col gap-4\", split ? \"@[860px]:items-end\" : \"items-center\")}>\n                {(primaryAction || secondaryAction) && (\n                  <div className={cn(\"flex flex-wrap gap-3\", !split && \"justify-center\")}>\n                    {primaryAction && <Button action={primaryAction} primary p={p} />}\n                    {secondaryAction && <Button action={secondaryAction} p={p} />}\n                  </div>\n                )}\n                {note && (\n                  <p className=\"m-0 text-[13px]\" style={{ color: p.faint }}>\n                    {note}\n                  </p>\n                )}\n                {!split && Points && <div className=\"mt-2\">{Points}</div>}\n              </div>\n            </div>\n          </div>\n        </motion.div>\n      </div>\n    </section>\n  );\n}\n\nexport default CtaBannerSection;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}