{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-section-10",
  "type": "registry:block",
  "title": "Hero Section 10",
  "description": "Aurora hero on a dark canvas with drifting gradient blobs, word-by-word reveal, a self-drawing chart and three switchable colour palettes.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "app/preview/hero-section/ten/page.tsx",
      "content": "'use client'\n\nimport { useState } from 'react'\nimport Link from 'next/link'\nimport { Instrument_Serif } from 'next/font/google'\nimport { motion, useReducedMotion, type Variants } from 'motion/react'\nimport { ArrowRight, Check, Play, TrendingUp, Users, Zap } from 'lucide-react'\nimport { cn } from '@/lib/utils'\n\nconst serif = Instrument_Serif({ subsets: ['latin'], weight: '400', style: 'italic' })\n\n/** Three colour variants. Change DEFAULT_PALETTE, or remove the switcher at the bottom to lock one in. */\nconst palettes = {\n    borealis: { name: 'Borealis', a: '#22d3a6', b: '#3b82f6', c: '#a3e635', ink: '#04130f' },\n    ember: { name: 'Ember', a: '#fb7185', b: '#f97316', c: '#facc15', ink: '#1a0805' },\n    lagoon: { name: 'Lagoon', a: '#38bdf8', b: '#818cf8', c: '#2dd4bf', ink: '#050b1a' },\n} as const\n\ntype PaletteKey = keyof typeof palettes\n\nconst DEFAULT_PALETTE: PaletteKey = 'borealis'\n\nconst grain = `url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>\")`\n\nconst headline = ['Build', 'products', 'people', 'actually']\n\nconst ease = [0.22, 1, 0.36, 1] as const\n\nconst word: Variants = {\n    hidden: { opacity: 0, y: 24, filter: 'blur(10px)' },\n    show: (i: number) => ({ opacity: 1, y: 0, filter: 'blur(0px)', transition: { delay: 0.15 + i * 0.08, duration: 0.8, ease } }),\n}\n\nconst rise: Variants = {\n    hidden: { opacity: 0, y: 20 },\n    show: (delay: number) => ({ opacity: 1, y: 0, transition: { delay, duration: 0.8, ease } }),\n}\n\nexport default function HeroSection() {\n    const [key, setKey] = useState<PaletteKey>(DEFAULT_PALETTE)\n    const p = palettes[key]\n    const reduce = useReducedMotion()\n\n    const drift = (x: number[], y: number[], duration: number) => (reduce ? {} : { animate: { x, y, scale: [1, 1.15, 1] }, transition: { duration, repeat: Infinity, ease: 'easeInOut' as const } })\n\n    return (\n        <section\n            style={{ '--a': p.a, '--b': p.b, '--c': p.c, '--ink': p.ink } as React.CSSProperties}\n            className=\"relative isolate min-h-screen overflow-hidden bg-[#05060f] text-white\">\n            {/* Aurora blobs */}\n            <div\n                aria-hidden\n                className=\"absolute inset-0 -z-10\">\n                <motion.div\n                    {...drift([0, 80, -40, 0], [0, 40, 80, 0], 18)}\n                    className=\"absolute -left-40 -top-40 size-[38rem] rounded-full bg-[var(--a)] opacity-40 blur-[120px] transition-colors duration-1000\"\n                />\n                <motion.div\n                    {...drift([0, -60, 40, 0], [0, 60, -30, 0], 22)}\n                    className=\"absolute -right-32 top-10 size-[32rem] rounded-full bg-[var(--b)] opacity-40 blur-[120px] transition-colors duration-1000\"\n                />\n                <motion.div\n                    {...drift([0, 50, -50, 0], [0, -40, 20, 0], 26)}\n                    className=\"absolute bottom-[-12rem] left-1/3 size-[30rem] rounded-full bg-[var(--c)] opacity-25 blur-[120px] transition-colors duration-1000\"\n                />\n                {/* Film grain */}\n                <div\n                    className=\"absolute inset-0 opacity-[0.18] mix-blend-overlay\"\n                    style={{ backgroundImage: grain }}\n                />\n                <div className=\"absolute inset-0 bg-[linear-gradient(to_bottom,transparent_60%,#05060f)]\" />\n            </div>\n\n            <div className=\"mx-auto flex max-w-6xl flex-col items-center px-6 pb-20 pt-28 text-center md:pt-36\">\n                <motion.div\n                    variants={rise}\n                    custom={0}\n                    initial=\"hidden\"\n                    animate=\"show\">\n                    <Link\n                        href=\"#\"\n                        className=\"group relative inline-flex items-center gap-2 rounded-full p-px\">\n                        <span\n                            aria-hidden\n                            className=\"absolute inset-0 rounded-full bg-[conic-gradient(from_var(--angle),var(--a),var(--b),var(--c),var(--a))] opacity-80 motion-safe:animate-[hero10-spin_4s_linear_infinite]\"\n                        />\n                        <span className=\"relative inline-flex items-center gap-2 rounded-full bg-[#0a0c18] px-4 py-1.5 text-sm text-white/80\">\n                            <span className=\"size-1.5 rounded-full bg-[var(--a)] shadow-[0_0_12px_var(--a)]\" />\n                            Introducing Pulse 3.0\n                            <ArrowRight className=\"size-3.5 transition-transform group-hover:translate-x-0.5\" />\n                        </span>\n                    </Link>\n                </motion.div>\n\n                <h1 className=\"mt-8 max-w-4xl text-balance text-5xl font-semibold leading-[1.02] tracking-[-0.04em] sm:text-7xl lg:text-[5.5rem]\">\n                    {headline.map((w, i) => (\n                        <motion.span\n                            key={w}\n                            variants={word}\n                            custom={i}\n                            initial=\"hidden\"\n                            animate=\"show\"\n                            className=\"mr-[0.22em] inline-block\">\n                            {w}\n                        </motion.span>\n                    ))}\n                    <motion.span\n                        variants={word}\n                        custom={headline.length}\n                        initial=\"hidden\"\n                        animate=\"show\"\n                        className={cn(serif.className, 'inline-block bg-gradient-to-r from-[var(--a)] via-[var(--b)] to-[var(--c)] bg-clip-text pr-2 font-normal tracking-normal text-transparent')}>\n                        love.\n                    </motion.span>\n                </h1>\n\n                <motion.p\n                    variants={rise}\n                    custom={0.6}\n                    initial=\"hidden\"\n                    animate=\"show\"\n                    className=\"mt-6 max-w-xl text-pretty text-lg text-white/65\">\n                    Pulse turns raw product signals into decisions. See what users do, why they churn, and what to ship next, all in one live workspace.\n                </motion.p>\n\n                <motion.div\n                    variants={rise}\n                    custom={0.75}\n                    initial=\"hidden\"\n                    animate=\"show\"\n                    className=\"mt-10 flex flex-wrap justify-center gap-3\">\n                    <Link\n                        href=\"#\"\n                        className=\"group inline-flex h-12 items-center gap-2 rounded-full bg-gradient-to-r from-[var(--a)] to-[var(--b)] px-6 font-medium text-[var(--ink)] shadow-[0_10px_40px_-10px_var(--a)] transition-[transform,box-shadow] hover:-translate-y-0.5 hover:shadow-[0_16px_50px_-10px_var(--a)]\">\n                        Start free trial\n                        <ArrowRight className=\"size-4 transition-transform group-hover:translate-x-0.5\" />\n                    </Link>\n                    <Link\n                        href=\"#\"\n                        className=\"inline-flex h-12 items-center gap-2 rounded-full border border-white/15 bg-white/5 px-6 font-medium backdrop-blur transition-colors hover:bg-white/10\">\n                        <Play className=\"size-4 fill-current\" />\n                        Watch demo\n                    </Link>\n                </motion.div>\n\n                <motion.ul\n                    variants={rise}\n                    custom={0.9}\n                    initial=\"hidden\"\n                    animate=\"show\"\n                    className=\"mt-6 flex flex-wrap justify-center gap-x-6 gap-y-2 text-sm text-white/55\">\n                    {['14-day free trial', 'No credit card', 'Cancel anytime'].map((t) => (\n                        <li\n                            key={t}\n                            className=\"flex items-center gap-1.5\">\n                            <Check className=\"size-3.5 text-[var(--a)]\" />\n                            {t}\n                        </li>\n                    ))}\n                </motion.ul>\n\n                {/* Product glass panel with floating chips */}\n                <motion.div\n                    initial={{ opacity: 0, y: 60, rotateX: 18 }}\n                    animate={{ opacity: 1, y: 0, rotateX: 0 }}\n                    transition={{ delay: 1, duration: 1.2, ease }}\n                    style={{ transformPerspective: 1200 }}\n                    className=\"relative mt-20 w-full max-w-4xl\">\n                    <div className=\"rounded-2xl border border-white/10 bg-white/[0.04] p-2 shadow-2xl shadow-black/50 backdrop-blur-xl\">\n                        <div className=\"rounded-xl border border-white/10 bg-[#0a0c18]/80 p-5 text-left sm:p-6\">\n                            <div className=\"flex items-center justify-between\">\n                                <p className=\"text-sm text-white/60\">Weekly active users</p>\n                                <span className=\"rounded-full bg-[var(--a)]/15 px-2.5 py-0.5 text-xs font-medium text-[var(--a)]\">+24.8%</span>\n                            </div>\n                            <p className=\"mt-1 text-3xl font-semibold tracking-tight\">48,291</p>\n                            <svg\n                                viewBox=\"0 0 600 140\"\n                                className=\"mt-4 h-28 w-full sm:h-36\"\n                                aria-hidden>\n                                <defs>\n                                    <linearGradient\n                                        id=\"hero10-fill\"\n                                        x1=\"0\"\n                                        x2=\"0\"\n                                        y1=\"0\"\n                                        y2=\"1\">\n                                        <stop\n                                            offset=\"0%\"\n                                            stopColor=\"var(--a)\"\n                                            stopOpacity=\".35\"\n                                        />\n                                        <stop\n                                            offset=\"100%\"\n                                            stopColor=\"var(--a)\"\n                                            stopOpacity=\"0\"\n                                        />\n                                    </linearGradient>\n                                    <linearGradient\n                                        id=\"hero10-line\"\n                                        x1=\"0\"\n                                        x2=\"1\">\n                                        <stop\n                                            offset=\"0%\"\n                                            stopColor=\"var(--b)\"\n                                        />\n                                        <stop\n                                            offset=\"100%\"\n                                            stopColor=\"var(--a)\"\n                                        />\n                                    </linearGradient>\n                                </defs>\n                                <motion.path\n                                    d=\"M0 120 C60 110 90 80 150 88 S240 40 300 60 S400 20 460 34 S560 10 600 6 L600 140 L0 140Z\"\n                                    fill=\"url(#hero10-fill)\"\n                                    initial={{ opacity: 0 }}\n                                    animate={{ opacity: 1 }}\n                                    transition={{ delay: 2, duration: 1 }}\n                                />\n                                <motion.path\n                                    d=\"M0 120 C60 110 90 80 150 88 S240 40 300 60 S400 20 460 34 S560 10 600 6\"\n                                    fill=\"none\"\n                                    stroke=\"url(#hero10-line)\"\n                                    strokeWidth=\"3\"\n                                    strokeLinecap=\"round\"\n                                    initial={{ pathLength: 0 }}\n                                    animate={{ pathLength: 1 }}\n                                    transition={{ delay: 1.4, duration: 1.6, ease: 'easeInOut' }}\n                                />\n                            </svg>\n                        </div>\n                    </div>\n\n                    <FloatingChip\n                        className=\"-left-4 top-8 hidden sm:flex lg:-left-16\"\n                        delay={1.8}\n                        icon={Users}\n                        label=\"New signups\"\n                        value=\"1,204\"\n                        reduce={reduce}\n                    />\n                    <FloatingChip\n                        className=\"-right-4 bottom-10 hidden sm:flex lg:-right-14\"\n                        delay={2}\n                        icon={TrendingUp}\n                        label=\"Retention\"\n                        value=\"92%\"\n                        reduce={reduce}\n                        offset={1.5}\n                    />\n                    <FloatingChip\n                        className=\"-top-6 right-16 hidden md:flex\"\n                        delay={2.2}\n                        icon={Zap}\n                        label=\"Events / sec\"\n                        value=\"3.2k\"\n                        reduce={reduce}\n                        offset={0.8}\n                    />\n                </motion.div>\n            </div>\n\n            {/* Palette switcher: demo of the colour variants */}\n            <div\n                role=\"radiogroup\"\n                aria-label=\"Colour palette\"\n                className=\"absolute bottom-5 right-5 flex items-center gap-1.5 rounded-full border border-white/10 bg-black/40 p-1.5 backdrop-blur\">\n                {(Object.keys(palettes) as PaletteKey[]).map((k) => (\n                    <button\n                        key={k}\n                        type=\"button\"\n                        role=\"radio\"\n                        aria-checked={k === key}\n                        aria-label={palettes[k].name}\n                        title={palettes[k].name}\n                        onClick={() => setKey(k)}\n                        style={{ background: `linear-gradient(135deg, ${palettes[k].a}, ${palettes[k].b})` }}\n                        className={cn('size-6 rounded-full ring-offset-2 ring-offset-black transition-transform hover:scale-110', k === key && 'ring-2 ring-white')}\n                    />\n                ))}\n            </div>\n\n            <style>{`\n                @property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }\n                @keyframes hero10-spin { to { --angle: 360deg; } }\n            `}</style>\n        </section>\n    )\n}\n\nfunction FloatingChip({ className, delay, icon: Icon, label, value, reduce, offset = 0 }: { className?: string; delay: number; icon: React.ElementType; label: string; value: string; reduce: boolean | null; offset?: number }) {\n    return (\n        <motion.div\n            initial={{ opacity: 0, scale: 0.8 }}\n            animate={{ opacity: 1, scale: 1 }}\n            transition={{ delay, type: 'spring', stiffness: 200, damping: 18 }}\n            className={cn('absolute items-center gap-3 rounded-2xl border border-white/10 bg-[#0d1020]/80 px-4 py-3 shadow-xl backdrop-blur-xl', className)}>\n            <motion.div\n                className=\"flex items-center gap-3\"\n                animate={reduce ? undefined : { y: [0, -8, 0] }}\n                transition={{ duration: 4, repeat: Infinity, ease: 'easeInOut', delay: offset }}>\n                <span className=\"flex size-9 items-center justify-center rounded-xl bg-gradient-to-br from-[var(--a)] to-[var(--b)] text-[var(--ink)]\">\n                    <Icon className=\"size-4\" />\n                </span>\n                <span className=\"text-left\">\n                    <span className=\"block text-xs text-white/50\">{label}</span>\n                    <span className=\"block font-semibold\">{value}</span>\n                </span>\n            </motion.div>\n        </motion.div>\n    )\n}\n",
      "type": "registry:component",
      "target": "components/hero-section-10.tsx"
    }
  ]
}