{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-21",
  "dependencies": [
    "lucide-react",
    "motion"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/hero-21.tsx",
      "content": "'use client';\n\nimport LogoIcon from '@/assets/logo-icon';\nimport { ArrowRight, ChevronDown, Globe2 } from 'lucide-react';\nimport { motion, type Variants } from 'motion/react';\n\ninterface NavLink {\n  label: string;\n  href: string;\n}\n\ninterface Hero21Props {\n  brandName?: string;\n  navLinks?: NavLink[];\n  headingLine1?: string;\n  headingLine2?: string;\n  description?: string;\n  primaryCtaLabel?: string;\n  primaryCtaHref?: string;\n  languageLabel?: string;\n  loginLabel?: string;\n  loginHref?: string;\n  previewLabel?: string;\n  trustLabelLine1?: string;\n  trustLabelLine2?: string;\n  backgroundImage?: string;\n  previewImage?: string;\n}\n\nconst navLinksDefault: NavLink[] = [\n  { label: 'Journey', href: '#' },\n  { label: 'Our Story', href: '#' },\n  { label: 'What We Offer', href: '#' },\n  { label: 'Connect', href: '#' },\n];\n\n\n\nconst sectionVariants: Variants = {\n  hidden: {},\n  visible: {\n    transition: { staggerChildren: 0.13, delayChildren: 0.08 },\n  },\n};\n\n\n\nconst navWrapVariants: Variants = {\n  hidden: {},\n  visible: { transition: { staggerChildren: 0.07 } },\n};\n\nconst navItemVariants: Variants = {\n  hidden: { opacity: 0, y: -16, filter: 'blur(6px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.55, bounce: 0.2 },\n  },\n};\n\n\n\nconst bgVariants: Variants = {\n  hidden: { opacity: 0, scale: 1.1, filter: 'blur(24px)' },\n  visible: {\n    opacity: 1,\n    scale: 1,\n    filter: 'blur(0px)',\n    transition: { duration: 1.6, ease: [0.16, 1, 0.3, 1] },\n  },\n};\n\n\n\nconst glowVariants: Variants = {\n  hidden: { opacity: 0, scale: 0.4 },\n  visible: {\n    opacity: [0, 0.55, 0.35],\n    scale: [0.4, 1.15, 1],\n    transition: { duration: 1.8, ease: 'easeOut', times: [0, 0.6, 1] },\n  },\n};\n\n\nconst descVariants: Variants = {\n  hidden: { opacity: 0, y: 22, filter: 'blur(10px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.8, bounce: 0 },\n  },\n};\n\n\n\nconst ctaVariants: Variants = {\n  hidden: { opacity: 0, scale: 0.82, filter: 'blur(8px)' },\n  visible: {\n    opacity: 1,\n    scale: 1,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.7, bounce: 0.3 },\n  },\n};\n\n\n\nconst cardVariants: Variants = {\n  hidden: { opacity: 0, x: -40, rotate: -6, filter: 'blur(14px)' },\n  visible: {\n    opacity: 1,\n    x: 0,\n    rotate: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 1.1, bounce: 0.22 },\n  },\n};\n\n\n\nconst trustVariants: Variants = {\n  hidden: { opacity: 0, rotateX: 90, y: 20 },\n  visible: {\n    opacity: 1,\n    rotateX: 0,\n    y: 0,\n    transition: { type: 'spring', duration: 0.8, bounce: 0.15, delay: 0.2 },\n  },\n};\n\n\n\n\nconst charContainerVariants: Variants = {\n  hidden: {},\n  visible: { transition: { staggerChildren: 0.03, delayChildren: 0 } },\n};\n\nconst charVariants: Variants = {\n  hidden: { opacity: 0, y: 40, rotateZ: -8, filter: 'blur(8px)' },\n  visible: {\n    opacity: 1,\n    y: 0,\n    rotateZ: 0,\n    filter: 'blur(0px)',\n    transition: { type: 'spring', duration: 0.55, bounce: 0.25 },\n  },\n};\n\nfunction DropCharsLine({ text, className }: { text: string; className?: string }) {\n  return (\n    <motion.span\n      className={`block overflow-visible ${className ?? ''}`}\n      variants={charContainerVariants}\n    >\n      {text.split('').map((ch, i) => (\n        <motion.span\n          key={i}\n          className=\"inline-block will-change-transform\"\n          variants={charVariants}\n          style={{ whiteSpace: ch === ' ' ? 'pre' : undefined }}\n        >\n          {ch === ' ' ? '\\u00a0' : ch}\n        </motion.span>\n      ))}\n    </motion.span>\n  );\n}\n\n\n\n\nfunction FloatingCard({\n  previewImage,\n  previewLabel,\n  variants: v,\n}: {\n  previewImage: string;\n  previewLabel: string;\n  variants: Variants;\n}) {\n  return (\n    <motion.a\n      href=\"#\"\n      variants={v}\n      animate={{ y: [0, -10, 0] }}\n      transition={{ duration: 4, ease: 'easeInOut', repeat: Infinity, repeatType: 'loop' }}\n      className=\"group absolute bottom-8 left-7 z-20 w-[220px] rounded-md bg-emerald-950/20 p-1.5 shadow-[0_20px_50px_rgba(6,78,59,0.22),inset_0_0_0_1px_rgba(255,255,255,0.18)] backdrop-blur-md transition-[background-color,box-shadow] duration-300 ease-out hover:bg-emerald-950/30 hover:shadow-[0_28px_60px_rgba(6,78,59,0.32),inset_0_0_0_1px_rgba(255,255,255,0.26)] active:scale-[0.96] sm:left-11 lg:left-14\"\n    >\n      <img\n        src={previewImage}\n        alt=\"\"\n        className=\"h-[6.2rem] w-full rounded-sm object-cover object-center shadow-[0_0_0_1px_rgba(255,255,255,0.1)]\"\n      />\n      <span className=\"mt-2 flex min-h-7 items-center justify-between gap-3 px-1 text-sm font-normal text-white\">\n        {previewLabel}\n        <ArrowRight className=\"size-4 -rotate-45 transition-transform duration-200 ease-out group-hover:translate-x-0.5 group-hover:-translate-y-0.5\" />\n      </span>\n    </motion.a>\n  );\n}\n\n\n\n\n\nexport default function Hero21({\n  brandName = 'Watermelon',\n  navLinks = navLinksDefault,\n  headingLine1 = 'Where Nature',\n  headingLine2 = 'Feels Like Home',\n  description = \"Step away from the chaos with the calm of nature's embrace. A peaceful space where every step leads you closer to yourself.\",\n  primaryCtaLabel = 'Start Your Journey',\n  primaryCtaHref = '#',\n  languageLabel = 'EN',\n  loginLabel = 'Log In',\n  loginHref = '#',\n  previewLabel = 'Watermelon Studio',\n  trustLabelLine1 = 'Trusted by UK based',\n  trustLabelLine2 = 'SMEs, Accountants',\n  backgroundImage = 'https://assets.watermelon.sh/hero-20-bg.avif',\n  previewImage = 'https://assets.watermelon.sh/hero-20-bg.avif',\n}: Hero21Props) {\n  return (\n    <section className=\"relative isolate min-h-screen overflow-hidden bg-stone-100 font-sans text-emerald-950 antialiased\">\n      <motion.div\n        className=\"relative flex min-h-screen w-full flex-col overflow-hidden px-7 py-4 sm:px-11 lg:px-14\"\n        initial=\"hidden\"\n        whileInView=\"visible\"\n        viewport={{ once: true, amount: 0.25 }}\n        variants={sectionVariants}\n      >\n\n        <motion.img\n          variants={bgVariants}\n          src={backgroundImage}\n          alt=\"\"\n          className=\"pointer-events-none absolute inset-0 h-full w-full object-cover\"\n        />\n\n\n        <motion.div\n          variants={glowVariants}\n          aria-hidden\n          className=\"pointer-events-none absolute left-1/2 top-1/2 z-0 -translate-x-1/2 -translate-y-1/2 h-[70vmin] w-[70vmin] rounded-full bg-emerald-400/30 blur-[80px]\"\n        />\n\n        <motion.nav\n          variants={navWrapVariants}\n          className=\"relative z-20 flex min-h-10 w-full items-center justify-between\"\n        >\n          <motion.a\n            variants={navItemVariants}\n            href=\"#\"\n            className=\"inline-flex min-h-10 items-center gap-2 text-lg leading-none font-medium tracking-[-0.035em] text-emerald-950 transition-[opacity,transform] duration-200 ease-out hover:opacity-80 active:scale-[0.96]\"\n          >\n            <LogoIcon className=\"size-8 text-emerald-900/20\" />\n            {brandName}\n          </motion.a>\n\n          <div className=\"hidden items-center gap-[3.1rem] lg:flex\">\n            {navLinks.map((link) => (\n              <motion.a\n                key={link.label}\n                variants={navItemVariants}\n                href={link.href}\n                className=\"inline-flex min-h-10 items-center text-sm font-medium text-emerald-950/90 transition-[opacity,transform] duration-200 ease-out hover:opacity-90 active:scale-[0.96]\"\n              >\n                {link.label}\n              </motion.a>\n            ))}\n          </div>\n\n          <div className=\"flex items-center gap-4\">\n            <motion.button\n              variants={navItemVariants}\n              type=\"button\"\n              className=\"hidden min-h-10 items-center gap-1.5 text-sm font-medium text-emerald-950 transition-[opacity,transform] duration-200 ease-out hover:opacity-90 active:scale-[0.96] sm:inline-flex\"\n            >\n              <Globe2 className=\"size-4\" aria-hidden=\"true\" />\n              {languageLabel}\n              <ChevronDown className=\"size-4\" aria-hidden=\"true\" />\n            </motion.button>\n            <motion.a\n              variants={navItemVariants}\n              href={loginHref}\n              className=\"group inline-flex min-h-10 items-center justify-center gap-2 rounded-sm bg-emerald-900 px-5 text-sm font-medium text-amber-50 shadow-[inset_0_1px_4px_2px_rgba(255,255,255,0.2),inset_0_-1px_4px_2px_rgba(0,0,0,0.2)] transition-[background-color,transform,box-shadow] duration-200 ease-out hover:bg-emerald-950 active:scale-[0.96]\"\n            >\n              {loginLabel}\n              <ArrowRight className=\"size-4 transition-transform duration-200 ease-out group-hover:translate-x-0.5\" />\n            </motion.a>\n          </div>\n        </motion.nav>\n\n\n        <div className=\"relative z-10 flex flex-1 flex-col justify-center pt-16 pb-32 sm:pt-20 md:pb-36 lg:pt-10\">\n          <div className=\"max-w-5xl\">\n\n            <h1 className=\"max-w-5xl text-[clamp(3.25rem,5.4vw,5.15rem)] leading-[0.94] font-normal tracking-[-0.065em] text-emerald-900\">\n              <DropCharsLine text={headingLine1} />\n              <DropCharsLine text={headingLine2} />\n            </h1>\n\n            <motion.p\n              variants={descVariants}\n              className=\"mt-5 max-w-lg text-sm leading-[1.12] font-medium text-pretty text-emerald-950\"\n            >\n              {description}\n            </motion.p>\n\n\n            <motion.a\n              variants={ctaVariants}\n              href={primaryCtaHref}\n              className=\"group mt-5 inline-flex min-h-10 items-center border-b border-emerald-950 pb-1 text-md font-medium tracking-[-0.035em] text-emerald-950 transition-[opacity,transform] duration-200 ease-out hover:opacity-75 active:scale-[0.96]\"\n            >\n              {primaryCtaLabel}\n              <ArrowRight className=\"ml-1 size-4 -rotate-45 transition-transform duration-200 ease-out group-hover:translate-x-0.5 group-hover:-translate-y-0.5\" />\n            </motion.a>\n          </div>\n        </div>\n\n\n        <FloatingCard\n          previewImage={previewImage}\n          previewLabel={previewLabel}\n          variants={cardVariants}\n        />\n\n        <motion.p\n          variants={trustVariants}\n          style={{ perspective: 600 }}\n          className=\"absolute right-7 bottom-9 z-20 hidden max-w-[12rem] text-left text-sm leading-wide font-normal text-white drop-shadow-[0_2px_12px_rgba(6,78,59,0.3)] sm:block sm:right-11 md:text-right lg:right-14\"\n        >\n          {trustLabelLine1}\n          <br />\n          {trustLabelLine2}\n        </motion.p>\n      </motion.div>\n    </section>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/hero-21.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"
}
