{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-marquee-band",
  "type": "registry:component",
  "title": "CTA Marquee Band",
  "description": "A full-bleed band where the call to action loops in three huge marquee rows, solid, outlined and dim, behind a pill button that magnetically follows the pointer.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "cta",
    "cta",
    "marquee",
    "magnetic",
    "band",
    "typography",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/cta-marquee-band",
  "files": [
    {
      "path": "registry/hyperblur/cta-marquee-band.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/cta-marquee-band.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface CtaMarqueeBandProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  phrase?: string;\n  eyebrow?: string;\n  cta?: { label: string; href: string };\n  points?: string[];\n  speed?: number;\n  strength?: number;\n  accent?: string;\n}\n\nconst css = `\n.hb-kc9 {\n  --hb-kc9-accent: #ff5a36;\n  --hb-kc9-speed: 32s;\n  container-type: inline-size;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  isolation: isolate;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kc9 *, .hb-kc9 *::before, .hb-kc9 *::after { box-sizing: border-box; }\n.hb-kc9::before {\n  content: \"\";\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  z-index: -1;\n  width: 70%;\n  height: 70%;\n  transform: translate(-50%, -50%);\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-kc9-accent) 22%, transparent), transparent);\n  pointer-events: none;\n}\n.hb-kc9-band { padding: 56px 0 48px; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); }\n.hb-kc9-top {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 10px;\n  margin: 0 16px 28px;\n  color: #8f8f8f;\n  font-size: 13px;\n  font-weight: 550;\n  letter-spacing: .08em;\n  text-align: center;\n  text-transform: uppercase;\n}\n.hb-kc9-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--hb-kc9-accent); }\n.hb-kc9-live::after {\n  content: \"\";\n  position: absolute;\n  inset: -4px;\n  border: 1px solid var(--hb-kc9-accent);\n  border-radius: 50%;\n  animation: hb-kc9-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;\n}\n.hb-kc9-stage { position: relative; }\n.hb-kc9-rows { display: grid; gap: .04em; font-size: clamp(56px, 12cqi, 156px); transform: rotate(-2.5deg) scale(1.04); }\n.hb-kc9-row { display: flex; width: max-content; }\n.hb-kc9-track { display: flex; flex: none; animation: hb-kc9-left var(--hb-kc9-speed) linear infinite; }\n.hb-kc9-row[data-dir=\"right\"] .hb-kc9-track { animation-name: hb-kc9-right; animation-duration: calc(var(--hb-kc9-speed) * 1.25); }\n.hb-kc9-row[data-slow=\"true\"] .hb-kc9-track { animation-duration: calc(var(--hb-kc9-speed) * 1.6); }\n.hb-kc9-item {\n  display: inline-flex;\n  align-items: center;\n  gap: .32em;\n  padding-right: .32em;\n  font-weight: 760;\n  line-height: 1.04;\n  letter-spacing: -.045em;\n  white-space: nowrap;\n}\n.hb-kc9-row[data-look=\"solid\"] .hb-kc9-item { color: #ededed; }\n.hb-kc9-row[data-look=\"outline\"] .hb-kc9-item { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--hb-kc9-accent) 80%, #fff); }\n.hb-kc9-row[data-look=\"dim\"] .hb-kc9-item { color: #1e1e1e; }\n.hb-kc9-star { flex: none; width: .5em; height: .5em; }\n.hb-kc9-row[data-look=\"solid\"] .hb-kc9-star { color: var(--hb-kc9-accent); }\n.hb-kc9-row[data-look=\"outline\"] .hb-kc9-star { color: rgba(255, 255, 255, .4); }\n.hb-kc9-row[data-look=\"dim\"] .hb-kc9-star { color: #262626; }\n.hb-kc9-magnet {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  z-index: 2;\n  transform: translate(-50%, -50%) translate3d(var(--hb-kc9-x, 0px), var(--hb-kc9-y, 0px), 0);\n  transition: transform .45s cubic-bezier(.2, .9, .3, 1.2);\n}\n.hb-kc9-cta {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  gap: 12px;\n  height: 64px;\n  padding: 0 14px 0 30px;\n  border-radius: 999px;\n  background: var(--hb-kc9-accent);\n  color: #fff;\n  font-size: 17px;\n  font-weight: 650;\n  letter-spacing: -.01em;\n  text-decoration: none;\n  white-space: nowrap;\n  box-shadow: 0 0 0 10px rgba(10, 10, 10, .55), 0 0 0 11px rgba(255, 255, 255, .08), 0 24px 60px -14px var(--hb-kc9-accent), inset 0 1px 0 rgba(255, 255, 255, .35);\n  transition: box-shadow .3s ease, filter .3s ease;\n}\n.hb-kc9-cta:hover { filter: brightness(1.08); box-shadow: 0 0 0 14px rgba(10, 10, 10, .6), 0 0 0 15px rgba(255, 255, 255, .12), 0 30px 70px -14px var(--hb-kc9-accent), inset 0 1px 0 rgba(255, 255, 255, .35); }\n.hb-kc9-cta:focus-visible { outline: 2px solid #fff; outline-offset: 16px; }\n.hb-kc9-label { display: inline-block; transform: translate3d(calc(var(--hb-kc9-x, 0px) * .25), calc(var(--hb-kc9-y, 0px) * .25), 0); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2); }\n.hb-kc9-arrow {\n  display: grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  border-radius: 50%;\n  background: #0a0a0a;\n  color: #fff;\n  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);\n}\n.hb-kc9-arrow svg { width: 16px; height: 16px; }\n.hb-kc9-cta:hover .hb-kc9-arrow { transform: rotate(-45deg); }\n.hb-kc9-points {\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n  gap: 8px 22px;\n  margin: 34px 16px 0;\n  padding: 0;\n  color: #8f8f8f;\n  font-size: 14px;\n  list-style: none;\n}\n.hb-kc9-points li { display: inline-flex; align-items: center; gap: 8px; }\n.hb-kc9-points svg { width: 14px; height: 14px; color: var(--hb-kc9-accent); }\n.hb-kc9-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}\n@keyframes hb-kc9-left { from { transform: translateX(0); } to { transform: translateX(-100%); } }\n@keyframes hb-kc9-right { from { transform: translateX(-100%); } to { transform: translateX(0); } }\n@keyframes hb-kc9-ping { 75%, 100% { transform: scale(2); opacity: 0; } }\n@container (min-width: 720px) {\n  .hb-kc9-band { padding: 88px 0 72px; }\n  .hb-kc9-top { margin-bottom: 40px; }\n  .hb-kc9-cta { height: 76px; padding: 0 16px 0 36px; font-size: 19px; }\n  .hb-kc9-arrow { width: 48px; height: 48px; }\n  .hb-kc9-points { margin-top: 44px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kc9-track, .hb-kc9-live::after { animation: none; }\n  .hb-kc9-magnet, .hb-kc9-label, .hb-kc9-arrow, .hb-kc9-cta { transition: none; }\n}\n`;\n\nfunction Star() {\n  return (\n    <svg className=\"hb-kc9-star\" viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n      <path d=\"M12 0c.6 6.4 5.6 11.4 12 12-6.4.6-11.4 5.6-12 12-.6-6.4-5.6-11.4-12-12C6.4 11.4 11.4 6.4 12 0z\" fill=\"currentColor\" />\n    </svg>\n  );\n}\n\nfunction Row({ phrase, look, dir, slow }: { phrase: string; look: \"solid\" | \"outline\" | \"dim\"; dir: \"left\" | \"right\"; slow?: boolean }) {\n  const group = (\n    <>\n      {[0, 1, 2].map((n) => (\n        <span key={n} className=\"hb-kc9-item\">\n          {phrase}\n          <Star />\n        </span>\n      ))}\n    </>\n  );\n  return (\n    <div className=\"hb-kc9-row\" data-look={look} data-dir={dir} data-slow={slow ? \"true\" : \"false\"}>\n      <div className=\"hb-kc9-track\">{group}</div>\n      <div className=\"hb-kc9-track\">{group}</div>\n    </div>\n  );\n}\n\nexport function CtaMarqueeBand({\n  phrase = \"Start building today\",\n  eyebrow = \"4,812 teams shipped this week\",\n  cta = { label: \"Create your workspace\", href: \"#\" },\n  points = [\"Free for 14 days\", \"No credit card\", \"Import from Notion in one click\"],\n  speed = 32,\n  strength = 0.35,\n  accent = \"#ff5a36\",\n  className = \"\",\n  style,\n  onPointerMove,\n  onPointerLeave,\n  ...rest\n}: CtaMarqueeBandProps) {\n  const magnet = React.useRef<HTMLDivElement>(null);\n  const reduced = React.useRef(false);\n\n  React.useEffect(() => {\n    const mq = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n    reduced.current = mq.matches;\n    const on = () => {\n      reduced.current = mq.matches;\n    };\n    mq.addEventListener(\"change\", on);\n    return () => mq.removeEventListener(\"change\", on);\n  }, []);\n\n  const move = (e: React.PointerEvent<HTMLElement>) => {\n    onPointerMove?.(e);\n    const el = magnet.current;\n    if (!el || reduced.current || e.pointerType === \"touch\") return;\n    const stage = el.parentElement;\n    if (!stage) return;\n    const r = stage.getBoundingClientRect();\n    const dx = e.clientX - (r.left + r.width / 2);\n    const dy = e.clientY - (r.top + r.height / 2);\n    const dist = Math.hypot(dx, dy);\n    const radius = Math.min(360, r.width * 0.45);\n    const k = dist < radius ? strength : 0;\n    const cap = 90;\n    const x = Math.max(-cap, Math.min(cap, dx * k));\n    const y = Math.max(-cap * 0.6, Math.min(cap * 0.6, dy * k));\n    el.style.setProperty(\"--hb-kc9-x\", `${x.toFixed(1)}px`);\n    el.style.setProperty(\"--hb-kc9-y\", `${y.toFixed(1)}px`);\n  };\n\n  const leave = (e: React.PointerEvent<HTMLElement>) => {\n    onPointerLeave?.(e);\n    const el = magnet.current;\n    if (!el) return;\n    el.style.setProperty(\"--hb-kc9-x\", \"0px\");\n    el.style.setProperty(\"--hb-kc9-y\", \"0px\");\n  };\n\n  const vars = { \"--hb-kc9-accent\": accent, \"--hb-kc9-speed\": `${Math.max(4, speed)}s`, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-kc9 ${className}`} style={vars} onPointerMove={move} onPointerLeave={leave} {...rest}>\n      <style href=\"hb-cta-marquee-band\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kc9-band\">\n        {eyebrow ? (\n          <p className=\"hb-kc9-top\">\n            <span className=\"hb-kc9-live\" aria-hidden=\"true\" />\n            {eyebrow}\n          </p>\n        ) : null}\n        <h2 className=\"hb-kc9-sr\">{phrase}</h2>\n        <div className=\"hb-kc9-stage\">\n          <div className=\"hb-kc9-rows\" aria-hidden=\"true\">\n            <Row phrase={phrase} look=\"solid\" dir=\"left\" />\n            <Row phrase={phrase} look=\"outline\" dir=\"right\" />\n            <Row phrase={phrase} look=\"dim\" dir=\"left\" slow />\n          </div>\n          <div ref={magnet} className=\"hb-kc9-magnet\">\n            <a className=\"hb-kc9-cta\" href={cta.href}>\n              <span className=\"hb-kc9-label\">{cta.label}</span>\n              <span className=\"hb-kc9-arrow\" aria-hidden=\"true\">\n                <svg viewBox=\"0 0 16 16\">\n                  <path d=\"M3 8h9.5M8.5 4l4 4-4 4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                </svg>\n              </span>\n            </a>\n          </div>\n        </div>\n        {points.length ? (\n          <ul className=\"hb-kc9-points\">\n            {points.map((p) => (\n              <li key={p}>\n                <svg viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n                  <path d=\"M2.5 7.3l2.7 2.7 6.3-6.5\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                </svg>\n                {p}\n              </li>\n            ))}\n          </ul>\n        ) : null}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}