{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-light-ribbon",
  "type": "registry:component",
  "title": "Hero Light Ribbon",
  "description": "A twisting ribbon of fine light strands sweeps from the bottom of the frame to the top corner, breathing slowly while bright pulses race along it. Copy and stats sit in the open space.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hero",
    "hero",
    "ribbon",
    "light",
    "svg",
    "fintech",
    "landing"
  ],
  "docs": "https://hyperblur.dev/effects/hero-light-ribbon",
  "files": [
    {
      "path": "registry/hyperblur/hero-light-ribbon.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hero-light-ribbon.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HeroLightRibbonAction {\n  label: string;\n  href: string;\n}\n\nexport interface HeroLightRibbonStat {\n  value: string;\n  label: string;\n}\n\nexport interface HeroLightRibbonProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  primaryCta?: HeroLightRibbonAction | null;\n  secondaryCta?: HeroLightRibbonAction | null;\n  stats?: HeroLightRibbonStat[];\n  colors?: [string, string, string];\n  strands?: number;\n  speed?: number;\n  headingAs?: \"h1\" | \"h2\";\n}\n\nconst css = `\n.hb-vb11 {\n  --hb-vb11-sp: 1;\n  --hb-vb11-a: #ff7a45;\n  --hb-vb11-b: #f43f5e;\n  --hb-vb11-c: #8b5cf6;\n  position: relative;\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  width: 100%;\n  min-height: 620px;\n  padding: 64px clamp(20px, 6cqi, 72px) 34px;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #070608;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-vb11 *, .hb-vb11 *::before, .hb-vb11 *::after { box-sizing: border-box; }\n.hb-vb11-art {\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  width: 100%;\n  height: 100%;\n  pointer-events: none;\n}\n.hb-vb11-flow {\n  transform-box: view-box;\n  transform-origin: 600px 380px;\n  animation: hb-vb11-breathe calc(12s / var(--hb-vb11-sp)) cubic-bezier(.45, 0, .55, 1) infinite alternate;\n}\n@keyframes hb-vb11-breathe {\n  from { transform: translate3d(0, 8px, 0) scaleY(.94) rotate(-.6deg); }\n  to { transform: translate3d(0, -10px, 0) scaleY(1.06) rotate(.8deg); }\n}\n.hb-vb11-pulse {\n  stroke-dasharray: 160 2200;\n  animation: hb-vb11-run calc(var(--hb-vb11-dur) / var(--hb-vb11-sp)) cubic-bezier(.6, 0, .4, 1) infinite;\n  animation-delay: var(--hb-vb11-del);\n}\n@keyframes hb-vb11-run {\n  from { stroke-dashoffset: 2360; }\n  to { stroke-dashoffset: 0; }\n}\n.hb-vb11-copy { position: relative; max-width: 560px; }\n.hb-vb11-in { animation: hb-vb11-up .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--hb-vb11-d, 0ms); }\n@keyframes hb-vb11-up {\n  from { opacity: 0; transform: translate3d(0, 14px, 0); }\n  to { opacity: 1; transform: none; }\n}\n.hb-vb11-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: rgba(237, 237, 237, .62); font-size: 13px; }\n.hb-vb11-eyebrow b {\n  padding: 3px 9px;\n  border-radius: 6px;\n  background: linear-gradient(90deg, color-mix(in srgb, var(--hb-vb11-a) 25%, transparent), color-mix(in srgb, var(--hb-vb11-c) 25%, transparent));\n  color: #fff;\n  font-size: 11.5px;\n  font-weight: 600;\n}\n.hb-vb11-title {\n  margin: 20px 0 0;\n  color: #f7f7f7;\n  font-size: clamp(38px, 6.2cqi, 68px);\n  font-weight: 640;\n  line-height: 1;\n  letter-spacing: -.05em;\n  text-wrap: balance;\n}\n.hb-vb11-title span {\n  background: linear-gradient(90deg, var(--hb-vb11-a), var(--hb-vb11-b) 50%, var(--hb-vb11-c));\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n}\n.hb-vb11-sub { max-width: 460px; margin: 18px 0 0; color: rgba(237, 237, 237, .58); font-size: clamp(14.5px, 1.7cqi, 16.5px); line-height: 1.55; }\n.hb-vb11-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }\n.hb-vb11-btn {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  min-height: 46px;\n  padding: 0 22px;\n  overflow: hidden;\n  border: 1px solid rgba(255, 255, 255, .14);\n  border-radius: 999px;\n  color: #ededed;\n  font: inherit;\n  font-size: 15px;\n  font-weight: 550;\n  text-decoration: none;\n  white-space: nowrap;\n  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s ease, border-color .25s ease;\n}\n.hb-vb11-btn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); transform: translateY(-1px); }\n.hb-vb11-btn:active { transform: scale(.98); }\n.hb-vb11-btn:focus-visible { outline: 2px solid var(--hb-vb11-a); outline-offset: 3px; }\n.hb-vb11-btn[data-primary] { border-color: transparent; background: #f7f7f7; color: #0a0a0a; }\n.hb-vb11-btn[data-primary]::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  height: 2px;\n  background: linear-gradient(90deg, var(--hb-vb11-a), var(--hb-vb11-b), var(--hb-vb11-c));\n  transform: scaleX(0);\n  transform-origin: 0 50%;\n  transition: transform .5s cubic-bezier(.16, 1, .3, 1);\n}\n.hb-vb11-btn[data-primary]:hover::after { transform: scaleX(1); }\n.hb-vb11-stats { display: grid; grid-template-columns: repeat(var(--hb-vb11-n), minmax(0, 1fr)); gap: 24px; max-width: 620px; margin: 40px 0 0; padding: 0; list-style: none; }\n.hb-vb11-stat { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .12); }\n.hb-vb11-stat b { display: block; color: #fafafa; font-family: var(--font-grotesk, inherit); font-size: clamp(20px, 2.6cqi, 26px); font-weight: 600; letter-spacing: -.03em; }\n.hb-vb11-stat span { display: block; margin-top: 4px; color: rgba(237, 237, 237, .45); font-size: 12.5px; }\n@container (max-width: 560px) {\n  .hb-vb11-stats { grid-template-columns: 1fr; gap: 12px; }\n  .hb-vb11-actions { flex-direction: column; align-items: stretch; }\n  .hb-vb11-btn { justify-content: center; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-vb11-flow, .hb-vb11-in { animation: none; }\n  .hb-vb11-pulse { display: none; }\n  .hb-vb11-btn, .hb-vb11-btn[data-primary]::after { transition: none; }\n}\n`;\n\nfunction strandPath(i: number, n: number) {\n  const k = i - (n - 1) / 2;\n  const y0 = 860 + k * 5;\n  const c1y = 800 - k * 16;\n  const c2y = 60 + k * 14;\n  const y1 = 300 - k * 4;\n  return `M -80 ${y0.toFixed(1)} C 320 ${c1y.toFixed(1)}, 720 ${c2y.toFixed(1)}, 1300 ${y1.toFixed(1)}`;\n}\n\nconst defaultStats: HeroLightRibbonStat[] = [\n  { value: \"$4.2B\", label: \"Processed every month\" },\n  { value: \"180 ms\", label: \"Median authorization\" },\n  { value: \"46\", label: \"Countries with instant payouts\" },\n];\n\nconst defaultPrimary: HeroLightRibbonAction = { label: \"Open an account\", href: \"#\" };\nconst defaultSecondary: HeroLightRibbonAction = { label: \"Read the API docs\", href: \"#\" };\n\nfunction d(ms: number) {\n  return { \"--hb-vb11-d\": `${ms}ms` } as React.CSSProperties;\n}\n\nexport function HeroLightRibbon({\n  eyebrow = \"Instant payouts are live\",\n  title = \"Money that moves at the speed of light\",\n  subtitle = \"Relay routes every payment over the fastest rail available, so your sellers get paid in seconds instead of days.\",\n  primaryCta = defaultPrimary,\n  secondaryCta = defaultSecondary,\n  stats = defaultStats,\n  colors = [\"#ff7a45\", \"#f43f5e\", \"#8b5cf6\"],\n  strands = 28,\n  speed = 1,\n  headingAs = \"h1\",\n  className = \"\",\n  style,\n  ...rest\n}: HeroLightRibbonProps) {\n  const Heading = headingAs;\n  const uid = React.useId().replace(/:/g, \"\");\n  const n = Math.max(6, Math.min(60, Math.round(strands)));\n  const vars = {\n    \"--hb-vb11-a\": colors[0],\n    \"--hb-vb11-b\": colors[1],\n    \"--hb-vb11-c\": colors[2],\n    \"--hb-vb11-sp\": Math.max(speed, 0.1),\n    \"--hb-vb11-n\": Math.max(stats.length, 1),\n    ...style,\n  } as React.CSSProperties;\n  const paths = Array.from({ length: n }, (_, i) => strandPath(i, n));\n  const pulses = [Math.floor(n * 0.3), Math.floor(n * 0.5), Math.floor(n * 0.72)];\n  const words = title.split(\" \");\n  const cut = Math.max(1, words.length - 3);\n\n  return (\n    <section className={`hb-vb11 ${className}`} style={vars} {...rest}>\n      <style href=\"hb-hero-light-ribbon\" precedence=\"default\">{css}</style>\n      <svg className=\"hb-vb11-art\" viewBox=\"0 0 1200 760\" preserveAspectRatio=\"xMidYMid slice\" aria-hidden=\"true\">\n        <defs>\n          <linearGradient id={`${uid}-g`} x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\">\n            <stop offset=\"0\" stopColor={colors[0]} stopOpacity=\"0\" />\n            <stop offset=\".25\" stopColor={colors[0]} />\n            <stop offset=\".55\" stopColor={colors[1]} />\n            <stop offset=\".85\" stopColor={colors[2]} />\n            <stop offset=\"1\" stopColor={colors[2]} stopOpacity=\"0\" />\n          </linearGradient>\n          <filter id={`${uid}-glow`} x=\"-20%\" y=\"-20%\" width=\"140%\" height=\"140%\">\n            <feGaussianBlur stdDeviation=\"6\" />\n          </filter>\n          <filter id={`${uid}-haze`} x=\"-20%\" y=\"-40%\" width=\"140%\" height=\"180%\">\n            <feGaussianBlur stdDeviation=\"28\" />\n          </filter>\n        </defs>\n        <g className=\"hb-vb11-flow\">\n          <g filter={`url(#${uid}-haze)`} opacity=\".55\">\n            {paths.filter((_, i) => i % 3 === 0).map((p, i) => (\n              <path key={i} d={p} fill=\"none\" stroke={`url(#${uid}-g)`} strokeWidth=\"18\" />\n            ))}\n          </g>\n          {paths.map((p, i) => {\n            const center = 1 - Math.abs(i - (n - 1) / 2) / ((n - 1) / 2);\n            return <path key={i} d={p} fill=\"none\" stroke={`url(#${uid}-g)`} strokeWidth={(0.6 + center * 0.9).toFixed(2)} opacity={(0.18 + center * 0.7).toFixed(2)} />;\n          })}\n          {pulses.map((index, j) => (\n            <g key={j}>\n              <path\n                className=\"hb-vb11-pulse\"\n                d={paths[index]}\n                fill=\"none\"\n                stroke=\"#ffffff\"\n                strokeWidth=\"6\"\n                strokeLinecap=\"round\"\n                filter={`url(#${uid}-glow)`}\n                style={{ \"--hb-vb11-dur\": `${5 + j * 1.6}s`, \"--hb-vb11-del\": `${-j * 1.9}s` } as React.CSSProperties}\n              />\n              <path\n                className=\"hb-vb11-pulse\"\n                d={paths[index]}\n                fill=\"none\"\n                stroke=\"#ffffff\"\n                strokeWidth=\"1.6\"\n                strokeLinecap=\"round\"\n                style={{ \"--hb-vb11-dur\": `${5 + j * 1.6}s`, \"--hb-vb11-del\": `${-j * 1.9}s` } as React.CSSProperties}\n              />\n            </g>\n          ))}\n        </g>\n      </svg>\n      <div className=\"hb-vb11-copy\">\n        {eyebrow ? (\n          <p className=\"hb-vb11-eyebrow hb-vb11-in\" style={d(40)}>\n            <b>New</b>\n            {eyebrow}\n          </p>\n        ) : null}\n        <Heading className=\"hb-vb11-title hb-vb11-in\" style={d(130)}>\n          {words.slice(0, cut).join(\" \")} <span>{words.slice(cut).join(\" \")}</span>\n        </Heading>\n        {subtitle ? (\n          <p className=\"hb-vb11-sub hb-vb11-in\" style={d(230)}>\n            {subtitle}\n          </p>\n        ) : null}\n        {primaryCta || secondaryCta ? (\n          <div className=\"hb-vb11-actions hb-vb11-in\" style={d(330)}>\n            {primaryCta ? (\n              <a className=\"hb-vb11-btn\" data-primary=\"\" href={primaryCta.href}>\n                {primaryCta.label}\n              </a>\n            ) : null}\n            {secondaryCta ? (\n              <a className=\"hb-vb11-btn\" href={secondaryCta.href}>\n                {secondaryCta.label}\n                <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                  <path d=\"M7 17L17 7M9 7h8v8\" />\n                </svg>\n              </a>\n            ) : null}\n          </div>\n        ) : null}\n      </div>\n      {stats.length ? (\n        <ul className=\"hb-vb11-stats hb-vb11-in\" style={d(450)}>\n          {stats.map((stat) => (\n            <li key={stat.label} className=\"hb-vb11-stat\">\n              <b>{stat.value}</b>\n              <span>{stat.label}</span>\n            </li>\n          ))}\n        </ul>\n      ) : null}\n    </section>\n  );\n}\n"
    }
  ]
}