{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-31",
  "dependencies": [
    "lucide-react",
    "motion"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/hero-31.tsx",
      "content": "\nimport { motion, AnimatePresence, type Variants } from 'motion/react';\nimport { ArrowRight, Blocks, Command, Sparkles, Workflow, Zap } from 'lucide-react';\nimport LogoIcon from '@/assets/logo-icon';\n\ninterface Hero31Props {\n    logoText?: string;\n    navItems?: string[];\n    signUpText?: string;\n    title?: string;\n    subtitle?: string;\n    ctaText?: string;\n    trustedByText?: string;\n    backgroundImage?: string;\n}\n\nexport default function Hero31({\n    logoText = \"Watermelon\",\n    navItems = ['Product', 'About Us', 'Features', 'FAQ', 'Contact'],\n    signUpText = \"Sign up\",\n    title = \"Innovation that Drives Impact.\",\n    subtitle = \"Watermelon empowers teams to build, scale, and transform with technology that drives real results.\",\n    ctaText = \"Request a Demo\",\n    trustedByText = \"TRUSTED BY AMBITIOUS TEAMS\",\n    backgroundImage = \"https://assets.watermelon.sh/hero-31-bg.avif\",\n}: Hero31Props) {\n    // Nav: slides down from top, soft spring\n    const navContainerVariants: Variants = {\n        hidden: { opacity: 0 },\n        show: {\n            opacity: 1,\n            transition: { staggerChildren: 0.08, delayChildren: 0.1 },\n        },\n    };\n    const navItemVariants: Variants = {\n        hidden: { opacity: 0, y: -16, filter: 'blur(6px)' },\n        show: {\n            opacity: 1, y: 0, filter: 'blur(0px)',\n            transition: { type: 'spring', damping: 22, stiffness: 120, mass: 0.8 },\n        },\n    };\n\n    // Title: word-by-word stagger, rises with a gentle overshoot\n    const titleWords = title.split(' ');\n    const wordContainerVariants: Variants = {\n        hidden: { opacity: 0 },\n        show: {\n            opacity: 1,\n            transition: { staggerChildren: 0.07, delayChildren: 0.45 },\n        },\n    };\n    const wordVariants: Variants = {\n        hidden: { opacity: 0, y: 28, rotateX: 12, filter: 'blur(5px)' },\n        show: {\n            opacity: 1, y: 0, rotateX: 0, filter: 'blur(0px)',\n            transition: { type: 'spring', damping: 18, stiffness: 130 },\n        },\n    };\n\n    // Body + CTA: fade+rise, delayed after title finishes\n    const bodyVariants: Variants = {\n        hidden: { opacity: 0 },\n        show: {\n            opacity: 1,\n            transition: { staggerChildren: 0.12, delayChildren: 0.85 },\n        },\n    };\n    const bodyItemVariants: Variants = {\n        hidden: { opacity: 0, y: 14, filter: 'blur(4px)' },\n        show: {\n            opacity: 1, y: 0, filter: 'blur(0px)',\n            transition: { type: 'spring', damping: 26, stiffness: 100, mass: 1 },\n        },\n    };\n\n    // Footer logos: scale in from below with stagger\n    const logosContainerVariants: Variants = {\n        hidden: { opacity: 0 },\n        show: {\n            opacity: 1,\n            transition: { staggerChildren: 0.06, delayChildren: 1.2 },\n        },\n    };\n    const logoItemVariants: Variants = {\n        hidden: { opacity: 0, y: 10, scale: 0.94 },\n        show: {\n            opacity: 1, y: 0, scale: 1,\n            transition: { type: 'spring', damping: 20, stiffness: 140 },\n        },\n    };\n\n    return (\n      <div className=\"relative min-h-screen w-full overflow-hidden bg-black font-sans text-white antialiased selection:bg-white/20\">\n        <div className=\"pointer-events-none absolute inset-0 z-0 select-none\">\n          <img\n            className=\"absolute inset-0 h-full w-full object-cover opacity-60\"\n            src={backgroundImage}\n            alt=\"Background\"\n          />\n        </div>\n\n        {/* Content Container */}\n        <div className=\"relative z-10 mx-auto flex h-full min-h-screen max-w-7xl flex-col px-6 py-8 md:px-12\">\n          {/* Navigation */}\n          <AnimatePresence>\n            <motion.nav\n              variants={navContainerVariants}\n              initial=\"hidden\"\n              animate=\"show\"\n              className=\"flex items-center justify-between\"\n            >\n              <motion.div variants={navItemVariants} className=\"flex items-center gap-2\">\n                <LogoIcon className=\"h-8 w-8 text-white\" />\n                <span className=\"font-serif text-2xl tracking-wide italic\">{logoText}</span>\n              </motion.div>\n\n              <motion.div variants={navItemVariants} className=\"hidden items-center gap-10 md:flex\">\n                {navItems.map((item) => (\n                  <a key={item} href=\"#\" className=\"text-sm font-medium text-white/70 transition-colors hover:text-white\">\n                    {item}\n                  </a>\n                ))}\n              </motion.div>\n\n              <motion.div variants={navItemVariants}>\n                <button className=\"group flex h-10 items-center gap-2 bg-zinc-200 px-5 text-sm font-medium text-black shadow-[inset_0_2px_0px_rgba(255,255,255,1),inset_0_-2px_0px_rgba(0,0,0,0.2)] transition-transform active:scale-[0.96]\">\n                  {signUpText}\n                  <ArrowRight className=\"h-4 w-4 transition-transform group-hover:translate-x-1\" />\n                </button>\n              </motion.div>\n            </motion.nav>\n          </AnimatePresence>\n\n          {/* Hero Main Content — title is word-by-word, body/CTA staggered after */}\n          <div className=\"mt-32 flex max-w-[42rem] flex-col gap-6 md:mt-40\" style={{ perspective: '800px' }}>\n            {/* Word-by-word title */}\n            <motion.h1\n              variants={wordContainerVariants}\n              initial=\"hidden\"\n              animate=\"show\"\n              className=\"text-5xl font-medium tracking-tight text-white md:text-5xl lg:text-7xl lg:leading-[1.1]\"\n              style={{ textWrap: 'balance' }}\n            >\n              {titleWords.map((word, i) => (\n                <motion.span key={i} variants={wordVariants} className=\"mr-[0.25em] inline-block last:mr-0\">\n                  {word}\n                </motion.span>\n              ))}\n            </motion.h1>\n\n            {/* Staggered body, subtitle, CTA */}\n            <motion.div\n              variants={bodyVariants}\n              initial=\"hidden\"\n              animate=\"show\"\n              className=\"flex flex-col gap-6\"\n            >\n              <motion.p\n                variants={bodyItemVariants}\n                className=\"text-lg leading-relaxed font-light text-white/80 md:text-xl\"\n                style={{ textWrap: 'pretty' }}\n              >\n                {subtitle}\n              </motion.p>\n              <motion.div variants={bodyItemVariants} className=\"mt-4\">\n                <button className=\"group shadow-[inset_0_2px_0px_rgba(255,255,255,1),inset_0_-2px_0px_rgba(0,0,0,0.2)] bg-zinc-300 flex h-14 items-center gap-3 px-8 text-base font-medium text-black transition-transform active:scale-[0.96]\">\n                  {ctaText}\n                  <ArrowRight className=\"h-5 w-5 transition-transform group-hover:translate-x-1\" />\n                </button>\n              </motion.div>\n            </motion.div>\n          </div>\n\n          {/* Footer Logos — scale in one by one */}\n          <motion.div\n            variants={logosContainerVariants}\n            initial=\"hidden\"\n            animate=\"show\"\n            className=\"mt-auto flex flex-col gap-8 pt-32 pb-8 md:flex-row md:items-center md:gap-12 lg:gap-16\"\n          >\n            <motion.span variants={logoItemVariants} className=\"shrink-0 text-sm font-bold tracking-wide text-white/50 tabular-nums\">\n              {trustedByText}\n            </motion.span>\n            <div className=\"flex flex-wrap items-center gap-8 md:gap-12 lg:gap-16\">\n              {[\n                { icon: Command, name: 'novo', weight: 'font-bold tracking-tighter' },\n                { icon: Workflow, name: 'Telia Cygate', weight: 'font-medium tracking-tight' },\n                { icon: Blocks, name: 'customer.io', weight: 'font-bold tracking-tight' },\n                { icon: Sparkles, name: 'Fastmail', weight: 'font-medium tracking-tight' },\n                { icon: Zap, name: 'Medtronic', weight: 'font-bold tracking-tighter' },\n              ].map(({ icon: Icon, name, weight }) => (\n                <motion.div key={name} variants={logoItemVariants} className=\"flex items-center gap-2 opacity-60 mix-blend-screen grayscale transition-all duration-300 hover:opacity-100 hover:grayscale-0\">\n                  <Icon className=\"h-6 w-6\" />\n                  <span className={`text-xl ${weight}`}>{name}</span>\n                </motion.div>\n              ))}\n            </div>\n          </motion.div>\n        </div>\n      </div>\n    );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/hero-31.tsx"
    },
    {
      "path": "src/assets/logo-icon.tsx",
      "content": "export default function LogoIcon({ className }: { className?: string }) {\n  return (\n    <svg\n      className={className}\n      width=\"785\"\n      height=\"506\"\n      viewBox=\"0 0 785 506\"\n      fill=\"currentColor\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n    >\n      <path\n        d=\"M392.688 104.141C299.504 104.141 291.288 234.316 261.147 234.316C231.007 234.316 230.996 0 121.38 0C-30.726 0 -49.9098 505.63 121.38 505.63C196.742 505.63 218.672 442.598 252.926 442.598C287.179 442.598 322.801 505.63 392.688 505.63C462.575 505.63 496.832 442.598 531.085 442.598C565.339 442.598 587.269 505.63 662.631 505.63C833.921 505.63 814.737 0 662.631 0C553.015 0 553.004 234.316 522.864 234.316C492.723 234.316 485.872 104.141 392.688 104.141Z\"\n        fill=\"currentColor\"\n      />\n      <circle cx=\"515.226\" cy=\"332.977\" r=\"46.5892\" fill=\"black\" />\n      <circle cx=\"268.575\" cy=\"332.976\" r=\"46.5892\" fill=\"black\" />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "assets/logo-icon.tsx"
    }
  ],
  "type": "registry:ui"
}
