{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-section-12",
  "type": "registry:block",
  "title": "Hero Section 12",
  "description": "Electric-blue hero with oversized display type, a highlighter sweep, cursor spotlight and an animated bento of stats, chart and terminal.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "app/preview/hero-section/twelve/page.tsx",
      "content": "'use client'\n\nimport { useEffect, useRef, useState } from 'react'\nimport Link from 'next/link'\nimport { Syne } from 'next/font/google'\nimport { animate, motion, useInView, useReducedMotion, type Variants } from 'motion/react'\nimport { ArrowRight, ArrowUpRight, Sparkle } from 'lucide-react'\nimport { cn } from '@/lib/utils'\n\nconst display = Syne({ subsets: ['latin'], weight: ['700', '800'] })\n\nconst ease = [0.22, 1, 0.36, 1] as const\n\nconst tile: Variants = {\n    hidden: { opacity: 0, y: 40, scale: 0.96 },\n    show: (i: number) => ({ opacity: 1, y: 0, scale: 1, transition: { delay: 0.5 + i * 0.1, duration: 0.8, ease } }),\n}\n\nconst lines = ['Ship the', 'ideas that', 'move fast.']\n\nexport default function HeroSection() {\n    const ref = useRef<HTMLElement>(null)\n    const reduce = useReducedMotion()\n\n    // Cursor spotlight: write pointer position into CSS vars, no re-renders.\n    const onMove = (e: React.PointerEvent<HTMLElement>) => {\n        const el = ref.current\n        if (!el || reduce) return\n        const r = el.getBoundingClientRect()\n        el.style.setProperty('--x', `${e.clientX - r.left}px`)\n        el.style.setProperty('--y', `${e.clientY - r.top}px`)\n    }\n\n    return (\n        <section\n            ref={ref}\n            onPointerMove={onMove}\n            className=\"relative isolate overflow-hidden bg-[#1f3bff] text-white [--x:70%] [--y:20%]\">\n            <div\n                aria-hidden\n                className=\"absolute inset-0 -z-10\">\n                <div className=\"absolute inset-0 bg-[radial-gradient(600px_circle_at_var(--x)_var(--y),rgb(212_255_63/0.22),transparent_60%)] transition-[background] duration-200\" />\n                <div className=\"absolute inset-0 bg-[linear-gradient(to_right,rgb(255_255_255/0.08)_1px,transparent_1px),linear-gradient(to_bottom,rgb(255_255_255/0.08)_1px,transparent_1px)] bg-[size:64px_64px] [mask-image:linear-gradient(to_bottom,#000,transparent_85%)]\" />\n            </div>\n\n            <div className=\"mx-auto max-w-7xl px-6 pb-16 pt-24 md:pt-28\">\n                <div className=\"flex flex-wrap items-end justify-between gap-10\">\n                    <h1 className={cn(display.className, 'text-[clamp(3rem,9vw,7.5rem)] font-extrabold uppercase leading-[0.9] tracking-[-0.03em]')}>\n                        {lines.map((line, i) => (\n                            <span\n                                key={line}\n                                className=\"block overflow-hidden pb-[0.06em]\">\n                                <motion.span\n                                    className=\"relative inline-block\"\n                                    initial={{ y: '110%' }}\n                                    animate={{ y: 0 }}\n                                    transition={{ delay: i * 0.12, duration: 0.9, ease }}>\n                                    {i === 2 ? (\n                                        <span className=\"relative inline-block px-[0.08em]\">\n                                            {/* Highlighter sweep behind the last line */}\n                                            <motion.span\n                                                aria-hidden\n                                                className=\"absolute inset-x-0 bottom-[0.08em] top-[0.12em] -z-10 origin-left -skew-x-6 rounded-sm bg-[#d4ff3f]\"\n                                                initial={{ scaleX: 0 }}\n                                                animate={{ scaleX: 1 }}\n                                                transition={{ delay: 0.7, duration: 0.7, ease }}\n                                            />\n                                            <span className=\"text-[#1f3bff]\">{line}</span>\n                                        </span>\n                                    ) : (\n                                        line\n                                    )}\n                                </motion.span>\n                            </span>\n                        ))}\n                    </h1>\n\n                    <motion.div\n                        initial={{ opacity: 0, y: 20 }}\n                        animate={{ opacity: 1, y: 0 }}\n                        transition={{ delay: 0.5, duration: 0.8, ease }}\n                        className=\"max-w-sm pb-3\">\n                        <p className=\"text-lg text-white/80\">The launch platform for product teams. Plan, build and release from one bold, ridiculously fast workspace.</p>\n                        <div className=\"mt-7 flex flex-wrap gap-3\">\n                            <Link\n                                href=\"#\"\n                                className=\"group inline-flex h-12 items-center gap-2 rounded-full bg-[#d4ff3f] px-6 font-semibold text-[#0b1033] transition-transform hover:-translate-y-0.5\">\n                                Get started\n                                <span className=\"flex size-6 items-center justify-center rounded-full bg-[#0b1033] text-[#d4ff3f] transition-transform group-hover:rotate-[-45deg]\">\n                                    <ArrowRight className=\"size-3.5\" />\n                                </span>\n                            </Link>\n                            <Link\n                                href=\"#\"\n                                className=\"inline-flex h-12 items-center rounded-full border border-white/30 px-6 font-medium transition-colors hover:bg-white hover:text-[#1f3bff]\">\n                                Talk to sales\n                            </Link>\n                        </div>\n                    </motion.div>\n                </div>\n\n                {/* Bento */}\n                <div className=\"mt-16 grid gap-4 sm:grid-cols-2 lg:grid-cols-12\">\n                    <motion.div\n                        variants={tile}\n                        custom={0}\n                        initial=\"hidden\"\n                        animate=\"show\"\n                        className=\"relative overflow-hidden rounded-3xl bg-[#d4ff3f] p-6 text-[#0b1033] lg:col-span-3\">\n                        <p className=\"text-sm font-medium\">Faster releases</p>\n                        <p className={cn(display.className, 'mt-8 text-6xl font-extrabold tracking-tight')}>\n                            <CountUp to={3.4} decimals={1} />×\n                        </p>\n                        <p className=\"mt-2 text-sm opacity-70\">median across 2,000 teams</p>\n                    </motion.div>\n\n                    <motion.div\n                        variants={tile}\n                        custom={1}\n                        initial=\"hidden\"\n                        animate=\"show\"\n                        className=\"rounded-3xl bg-white p-6 text-[#0b1033] lg:col-span-5\">\n                        <div className=\"flex items-center justify-between text-sm\">\n                            <p className=\"font-medium\">Deploys this week</p>\n                            <span className=\"rounded-full bg-[#1f3bff]/10 px-2.5 py-0.5 font-medium text-[#1f3bff]\">Live</span>\n                        </div>\n                        <svg\n                            viewBox=\"0 0 400 120\"\n                            className=\"mt-6 h-28 w-full\"\n                            aria-hidden>\n                            {[0, 40, 80].map((y) => (\n                                <line\n                                    key={y}\n                                    x1=\"0\"\n                                    x2=\"400\"\n                                    y1={y + 20}\n                                    y2={y + 20}\n                                    stroke=\"#0b1033\"\n                                    strokeOpacity=\".08\"\n                                />\n                            ))}\n                            <motion.path\n                                d=\"M0 100 L50 86 L100 92 L150 60 L200 70 L250 40 L300 48 L350 18 L400 26\"\n                                fill=\"none\"\n                                stroke=\"#1f3bff\"\n                                strokeWidth=\"4\"\n                                strokeLinejoin=\"round\"\n                                strokeLinecap=\"round\"\n                                initial={{ pathLength: 0 }}\n                                animate={{ pathLength: 1 }}\n                                transition={{ delay: 0.9, duration: 1.6, ease: 'easeInOut' }}\n                            />\n                            <motion.circle\n                                cx=\"350\"\n                                cy=\"18\"\n                                r=\"7\"\n                                fill=\"#d4ff3f\"\n                                stroke=\"#1f3bff\"\n                                strokeWidth=\"3\"\n                                initial={{ scale: 0 }}\n                                animate={{ scale: 1 }}\n                                transition={{ delay: 2.3, type: 'spring', stiffness: 300 }}\n                            />\n                        </svg>\n                    </motion.div>\n\n                    <motion.div\n                        variants={tile}\n                        custom={2}\n                        initial=\"hidden\"\n                        animate=\"show\"\n                        className=\"rounded-3xl bg-[#0b1033] p-6 font-mono text-sm lg:col-span-4\">\n                        <div className=\"flex gap-1.5\">\n                            <span className=\"size-2.5 rounded-full bg-[#ff5f57]\" />\n                            <span className=\"size-2.5 rounded-full bg-[#febc2e]\" />\n                            <span className=\"size-2.5 rounded-full bg-[#28c840]\" />\n                        </div>\n                        <Typed\n                            className=\"mt-5 block text-white/90\"\n                            text=\"$ launch deploy --prod\"\n                        />\n                        <motion.p\n                            initial={{ opacity: 0 }}\n                            animate={{ opacity: 1 }}\n                            transition={{ delay: 2.4 }}\n                            className=\"mt-2 text-white/50\">\n                            Building 42 routes… done in 3.1s\n                        </motion.p>\n                        <motion.p\n                            initial={{ opacity: 0 }}\n                            animate={{ opacity: 1 }}\n                            transition={{ delay: 2.8 }}\n                            className=\"mt-1 text-[#d4ff3f]\">\n                            ✓ Live at launch.app\n                        </motion.p>\n                    </motion.div>\n\n                    <motion.div\n                        variants={tile}\n                        custom={3}\n                        initial=\"hidden\"\n                        animate=\"show\"\n                        className=\"flex items-center justify-between gap-6 rounded-3xl border border-white/20 bg-white/10 p-6 backdrop-blur sm:col-span-2 lg:col-span-12\">\n                        <p className=\"max-w-md text-white/80\">\n                            <Sparkle className=\"mr-2 inline size-4 fill-[#d4ff3f] text-[#d4ff3f]\" />\n                            Trusted by product teams at fast-growing startups and Fortune 500s alike.\n                        </p>\n                        <Link\n                            href=\"#\"\n                            aria-label=\"Explore customer stories\"\n                            className=\"group relative flex size-24 shrink-0 items-center justify-center\">\n                            <svg\n                                viewBox=\"0 0 100 100\"\n                                className=\"absolute inset-0 size-full motion-safe:animate-[spin_12s_linear_infinite]\"\n                                aria-hidden>\n                                <defs>\n                                    <path\n                                        id=\"hero12-circle\"\n                                        d=\"M50 50 m-38 0 a38 38 0 1 1 76 0 a38 38 0 1 1 -76 0\"\n                                    />\n                                </defs>\n                                <text className=\"fill-white text-[10.5px] font-semibold uppercase tracking-[0.2em]\">\n                                    <textPath href=\"#hero12-circle\">Customer stories • Explore •</textPath>\n                                </text>\n                            </svg>\n                            <span className=\"flex size-10 items-center justify-center rounded-full bg-[#d4ff3f] text-[#0b1033] transition-transform group-hover:scale-110\">\n                                <ArrowUpRight className=\"size-4\" />\n                            </span>\n                        </Link>\n                    </motion.div>\n                </div>\n            </div>\n        </section>\n    )\n}\n\nfunction CountUp({ to, decimals = 0 }: { to: number; decimals?: number }) {\n    const ref = useRef<HTMLSpanElement>(null)\n    const inView = useInView(ref, { once: true })\n\n    useEffect(() => {\n        if (!inView || !ref.current) return\n        const node = ref.current\n        const controls = animate(0, to, {\n            duration: 1.4,\n            delay: 0.7,\n            ease: 'easeOut',\n            onUpdate: (v) => (node.textContent = v.toFixed(decimals)),\n        })\n        return () => controls.stop()\n    }, [inView, to, decimals])\n\n    return (\n        <span\n            ref={ref}\n            className=\"tabular-nums\">\n            {(0).toFixed(decimals)}\n        </span>\n    )\n}\n\nfunction Typed({ text, className }: { text: string; className?: string }) {\n    const reduce = useReducedMotion()\n    const [count, setCount] = useState(0)\n\n    useEffect(() => {\n        if (reduce) return\n        let i = 0\n        let timer: ReturnType<typeof setTimeout>\n        const tick = () => {\n            i += 1\n            setCount(i)\n            if (i < text.length) timer = setTimeout(tick, 45)\n        }\n        timer = setTimeout(tick, 1000)\n        return () => clearTimeout(timer)\n    }, [text, reduce])\n\n    const shown = reduce ? text : text.slice(0, count)\n\n    return (\n        <span className={className}>\n            <span className=\"sr-only\">{text}</span>\n            <span aria-hidden>\n                {shown}\n                <span className=\"ml-0.5 inline-block h-4 w-2 translate-y-0.5 bg-[#d4ff3f] motion-safe:animate-pulse\" />\n            </span>\n        </span>\n    )\n}\n",
      "type": "registry:component",
      "target": "components/hero-section-12.tsx"
    }
  ]
}