{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-stage-light",
  "type": "registry:component",
  "title": "Hero Stage Light",
  "description": "A product launch stage: a single fixture sweeps a cone of warm light with drifting dust across a dark room, the pool of light follows on the floor and a sheen glides over the product. Specs sit on a ruled base line.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hero",
    "hero",
    "spotlight",
    "product",
    "launch",
    "stage",
    "hardware"
  ],
  "docs": "https://hyperblur.dev/effects/hero-stage-light",
  "files": [
    {
      "path": "registry/hyperblur/hero-stage-light.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hero-stage-light.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HeroStageLightAction {\n  label: string;\n  href: string;\n}\n\nexport interface HeroStageLightSpec {\n  value: string;\n  label: string;\n}\n\nexport interface HeroStageLightProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  primaryCta?: HeroStageLightAction | null;\n  secondaryCta?: HeroStageLightAction | null;\n  specs?: HeroStageLightSpec[];\n  productName?: string;\n  lightColor?: string;\n  speed?: number;\n  headingAs?: \"h1\" | \"h2\";\n}\n\nconst css = `\n.hb-vb3 {\n  --hb-vb3-light: #fff4dc;\n  --hb-vb3-dur: 9s;\n  position: relative;\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  width: 100%;\n  min-height: 660px;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #050505;\n  color: #ededed;\n  font-family: inherit;\n  text-align: center;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-vb3 *, .hb-vb3 *::before, .hb-vb3 *::after { box-sizing: border-box; }\n.hb-vb3-rig {\n  position: absolute;\n  left: 50%;\n  top: -6px;\n  z-index: 3;\n  width: 74px;\n  height: 18px;\n  transform: translateX(-50%);\n  border-radius: 0 0 14px 14px;\n  background: linear-gradient(180deg, #1d1d1f, #0b0b0c);\n  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12), 0 6px 18px rgba(0, 0, 0, .8);\n}\n.hb-vb3-rig::after {\n  content: \"\";\n  position: absolute;\n  left: 50%;\n  bottom: -3px;\n  width: 26px;\n  height: 4px;\n  transform: translateX(-50%);\n  border-radius: 4px;\n  background: var(--hb-vb3-light);\n  box-shadow: 0 0 14px 4px color-mix(in srgb, var(--hb-vb3-light) 70%, transparent);\n}\n.hb-vb3-cone {\n  position: absolute;\n  left: 50%;\n  top: 8px;\n  z-index: 1;\n  width: 120%;\n  height: 112%;\n  margin-left: -60%;\n  transform-origin: 50% 0;\n  pointer-events: none;\n  animation: hb-vb3-sweep var(--hb-vb3-dur) cubic-bezier(.45, 0, .55, 1) infinite alternate;\n}\n.hb-vb3-beam {\n  position: absolute;\n  inset: 0;\n  clip-path: polygon(49% 0, 51% 0, 72% 100%, 28% 100%);\n  background:\n    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--hb-vb3-light) 34%, transparent), transparent 72%),\n    linear-gradient(180deg, color-mix(in srgb, var(--hb-vb3-light) 22%, transparent), transparent 85%);\n  filter: blur(6px);\n  mix-blend-mode: screen;\n}\n.hb-vb3-core {\n  position: absolute;\n  inset: 0;\n  clip-path: polygon(49.6% 0, 50.4% 0, 58% 100%, 42% 100%);\n  background: linear-gradient(180deg, color-mix(in srgb, var(--hb-vb3-light) 24%, transparent), transparent 70%);\n  filter: blur(10px);\n  mix-blend-mode: screen;\n}\n.hb-vb3-mote {\n  position: absolute;\n  width: 2px;\n  height: 2px;\n  border-radius: 50%;\n  background: var(--hb-vb3-light);\n  opacity: 0;\n  animation: hb-vb3-mote var(--hb-vb3-md) linear infinite;\n  animation-delay: var(--hb-vb3-mdl);\n}\n@keyframes hb-vb3-mote {\n  0% { opacity: 0; transform: translate3d(0, 0, 0); }\n  20% { opacity: var(--hb-vb3-mo); }\n  80% { opacity: var(--hb-vb3-mo); }\n  100% { opacity: 0; transform: translate3d(var(--hb-vb3-mx), -60px, 0); }\n}\n@keyframes hb-vb3-sweep {\n  from { transform: rotate(16deg); }\n  to { transform: rotate(-16deg); }\n}\n.hb-vb3-pool {\n  position: absolute;\n  left: 50%;\n  bottom: -34px;\n  z-index: -1;\n  width: 460px;\n  height: 80px;\n  margin-left: -230px;\n  border-radius: 50%;\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-vb3-light) 30%, transparent), transparent);\n  filter: blur(6px);\n  animation: hb-vb3-pool var(--hb-vb3-dur) cubic-bezier(.45, 0, .55, 1) infinite alternate;\n}\n@keyframes hb-vb3-pool {\n  from { transform: translateX(-26%) scaleX(1.15); opacity: .7; }\n  50% { opacity: 1; transform: translateX(0) scaleX(1); }\n  to { transform: translateX(26%) scaleX(1.15); opacity: .7; }\n}\n.hb-vb3-floor {\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  z-index: -1;\n  height: 190px;\n  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .015));\n  border-top: 1px solid rgba(255, 255, 255, .04);\n}\n.hb-vb3-copy {\n  position: relative;\n  z-index: 4;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  max-width: 820px;\n  padding: 56px clamp(20px, 5cqi, 48px) 0;\n}\n.hb-vb3-in { animation: hb-vb3-up 1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--hb-vb3-d, 0ms); }\n@keyframes hb-vb3-up {\n  from { opacity: 0; transform: translate3d(0, 14px, 0); }\n  to { opacity: 1; transform: none; }\n}\n.hb-vb3-eyebrow {\n  margin: 0;\n  color: color-mix(in srgb, var(--hb-vb3-light) 80%, #a1a1a1);\n  font-family: var(--font-mono, ui-monospace, monospace);\n  font-size: 12px;\n  letter-spacing: .22em;\n  text-transform: uppercase;\n}\n.hb-vb3-title {\n  margin: 16px 0 0;\n  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, .55));\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n  font-size: clamp(36px, 6.4cqi, 66px);\n  font-weight: 620;\n  line-height: 1.02;\n  letter-spacing: -.045em;\n  text-wrap: balance;\n}\n.hb-vb3-sub {\n  max-width: 520px;\n  margin: 16px 0 0;\n  color: rgba(237, 237, 237, .55);\n  font-size: clamp(14.5px, 1.7cqi, 16.5px);\n  line-height: 1.55;\n}\n.hb-vb3-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }\n.hb-vb3-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  min-height: 44px;\n  padding: 0 20px;\n  border: 1px solid rgba(255, 255, 255, .14);\n  border-radius: 999px;\n  background: transparent;\n  color: #ededed;\n  font: inherit;\n  font-size: 14.5px;\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-vb3-btn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); transform: translateY(-1px); }\n.hb-vb3-btn:active { transform: scale(.98); }\n.hb-vb3-btn:focus-visible { outline: 2px solid var(--hb-vb3-light); outline-offset: 3px; }\n.hb-vb3-btn[data-primary] { border-color: transparent; background: #f5f5f5; color: #0a0a0a; }\n.hb-vb3-btn[data-primary]:hover { background: #ffffff; box-shadow: 0 0 34px -6px color-mix(in srgb, var(--hb-vb3-light) 60%, transparent); }\n.hb-vb3-product {\n  position: relative;\n  z-index: 2;\n  width: 150px;\n  margin-top: 28px;\n}\n.hb-vb3-product svg { display: block; width: 100%; height: auto; overflow: visible; }\n.hb-vb3-sheen {\n  animation: hb-vb3-sheen var(--hb-vb3-dur) cubic-bezier(.45, 0, .55, 1) infinite alternate;\n}\n@keyframes hb-vb3-sheen {\n  from { transform: translateX(-46px); }\n  to { transform: translateX(46px); }\n}\n.hb-vb3-name {\n  position: absolute;\n  left: 50%;\n  bottom: -30px;\n  transform: translateX(-50%);\n  color: rgba(237, 237, 237, .4);\n  font-family: var(--font-grotesk, inherit);\n  font-size: 11px;\n  letter-spacing: .3em;\n  text-transform: uppercase;\n  white-space: nowrap;\n}\n.hb-vb3-specs {\n  position: relative;\n  z-index: 4;\n  display: grid;\n  grid-template-columns: repeat(var(--hb-vb3-n), minmax(0, 1fr));\n  width: 100%;\n  max-width: 760px;\n  margin: auto 0 0;\n  padding: 40px clamp(20px, 5cqi, 48px) 22px;\n  list-style: none;\n}\n.hb-vb3-spec { padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }\n.hb-vb3-spec + .hb-vb3-spec { border-left: 1px solid rgba(255, 255, 255, .05); }\n.hb-vb3-spec b { display: block; color: #f5f5f5; font-family: var(--font-grotesk, inherit); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }\n.hb-vb3-spec span { display: block; margin-top: 3px; color: rgba(237, 237, 237, .45); font-size: 12px; }\n@container (max-width: 560px) {\n  .hb-vb3-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }\n  .hb-vb3-btn { justify-content: center; }\n  .hb-vb3-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }\n  .hb-vb3-spec + .hb-vb3-spec { border-left: 0; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-vb3-cone, .hb-vb3-pool, .hb-vb3-sheen, .hb-vb3-mote, .hb-vb3-in { animation: none; }\n  .hb-vb3-mote { opacity: 0; }\n  .hb-vb3-btn { transition: none; }\n}\n`;\n\nfunction hash(n: number) {\n  let x = Math.imul(n + 7, 2654435761);\n  x = Math.imul(x ^ (x >>> 15), 2246822519);\n  x ^= x >>> 13;\n  return (x >>> 0) / 4294967296;\n}\n\nconst motes = Array.from({ length: 26 }, (_, i) => ({\n  left: `${(38 + hash(i * 3) * 24).toFixed(2)}%`,\n  top: `${(18 + hash(i * 3 + 1) * 70).toFixed(2)}%`,\n  dur: `${(5 + hash(i * 5) * 6).toFixed(2)}s`,\n  delay: `${(-hash(i * 9 + 2) * 10).toFixed(2)}s`,\n  drift: `${((hash(i * 13) - 0.5) * 30).toFixed(1)}px`,\n  op: (0.25 + hash(i * 17) * 0.55).toFixed(2),\n}));\n\nconst grille = Array.from({ length: 9 * 13 }, (_, i) => {\n  const row = Math.floor(i / 9);\n  const col = i % 9;\n  return { cx: (62 + col * 9.5 + (row % 2 ? 4.75 : 0)).toFixed(2), cy: (98 + row * 8.5).toFixed(2) };\n}).filter((dot) => Number(dot.cx) < 142);\n\nconst defaultSpecs: HeroStageLightSpec[] = [\n  { value: \"40 h\", label: \"Battery life\" },\n  { value: \"360°\", label: \"Spatial sound\" },\n  { value: \"1.2 kg\", label: \"Machined aluminium\" },\n  { value: \"IP67\", label: \"Dust and water\" },\n];\n\nconst defaultPrimary: HeroStageLightAction = { label: \"Pre-order for $349\", href: \"#\" };\nconst defaultSecondary: HeroStageLightAction = { label: \"Hear it\", href: \"#\" };\n\nfunction d(ms: number) {\n  return { \"--hb-vb3-d\": `${ms}ms` } as React.CSSProperties;\n}\n\nexport function HeroStageLight({\n  eyebrow = \"Introducing\",\n  title = \"Sound that fills the room, not the shelf\",\n  subtitle = \"Aero One turns any corner into a listening room, tuning itself to the space in under a second.\",\n  primaryCta = defaultPrimary,\n  secondaryCta = defaultSecondary,\n  specs = defaultSpecs,\n  productName = \"Aero One\",\n  lightColor = \"#fff4dc\",\n  speed = 1,\n  headingAs = \"h1\",\n  className = \"\",\n  style,\n  ...rest\n}: HeroStageLightProps) {\n  const Heading = headingAs;\n  const uid = React.useId().replace(/:/g, \"\");\n  const vars = {\n    \"--hb-vb3-light\": lightColor,\n    \"--hb-vb3-dur\": `${(9 / Math.max(speed, 0.1)).toFixed(2)}s`,\n    \"--hb-vb3-n\": Math.max(specs.length, 1),\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <section className={`hb-vb3 ${className}`} style={vars} {...rest}>\n      <style href=\"hb-hero-stage-light\" precedence=\"default\">{css}</style>\n      <span className=\"hb-vb3-rig\" aria-hidden=\"true\" />\n      <div className=\"hb-vb3-cone\" aria-hidden=\"true\">\n        <span className=\"hb-vb3-beam\" />\n        <span className=\"hb-vb3-core\" />\n        {motes.map((mote, i) => (\n          <span\n            key={i}\n            className=\"hb-vb3-mote\"\n            style={\n              {\n                left: mote.left,\n                top: mote.top,\n                \"--hb-vb3-md\": mote.dur,\n                \"--hb-vb3-mdl\": mote.delay,\n                \"--hb-vb3-mx\": mote.drift,\n                \"--hb-vb3-mo\": mote.op,\n              } as React.CSSProperties\n            }\n          />\n        ))}\n      </div>\n      <span className=\"hb-vb3-floor\" aria-hidden=\"true\" />\n      <div className=\"hb-vb3-copy\">\n        {eyebrow ? (\n          <p className=\"hb-vb3-eyebrow hb-vb3-in\" style={d(100)}>\n            {eyebrow}\n          </p>\n        ) : null}\n        <Heading className=\"hb-vb3-title hb-vb3-in\" style={d(200)}>\n          {title}\n        </Heading>\n        {subtitle ? (\n          <p className=\"hb-vb3-sub hb-vb3-in\" style={d(320)}>\n            {subtitle}\n          </p>\n        ) : null}\n        {primaryCta || secondaryCta ? (\n          <div className=\"hb-vb3-actions hb-vb3-in\" style={d(440)}>\n            {primaryCta ? (\n              <a className=\"hb-vb3-btn\" data-primary=\"\" href={primaryCta.href}>\n                {primaryCta.label}\n              </a>\n            ) : null}\n            {secondaryCta ? (\n              <a className=\"hb-vb3-btn\" href={secondaryCta.href}>\n                <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" aria-hidden=\"true\">\n                  <path d=\"M4 10v4M8 7v10M12 4v16M16 8v8M20 11v2\" />\n                </svg>\n                {secondaryCta.label}\n              </a>\n            ) : null}\n          </div>\n        ) : null}\n      </div>\n      <div className=\"hb-vb3-product hb-vb3-in\" style={d(520)} role=\"img\" aria-label={productName}>\n        <span className=\"hb-vb3-pool\" aria-hidden=\"true\" />\n        <svg viewBox=\"0 0 204 232\" aria-hidden=\"true\">\n          <defs>\n            <linearGradient id={`${uid}-body`} x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\">\n              <stop offset=\"0\" stopColor=\"#0d0d0f\" />\n              <stop offset=\".35\" stopColor=\"#2a2a2e\" />\n              <stop offset=\".55\" stopColor=\"#3a3a3f\" />\n              <stop offset=\"1\" stopColor=\"#0a0a0b\" />\n            </linearGradient>\n            <linearGradient id={`${uid}-top`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n              <stop offset=\"0\" stopColor=\"#5a5a60\" />\n              <stop offset=\"1\" stopColor=\"#1b1b1e\" />\n            </linearGradient>\n            <linearGradient id={`${uid}-sheen`} x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\">\n              <stop offset=\"0\" stopColor=\"#fff\" stopOpacity=\"0\" />\n              <stop offset=\".5\" stopColor=\"#fff\" stopOpacity=\".28\" />\n              <stop offset=\"1\" stopColor=\"#fff\" stopOpacity=\"0\" />\n            </linearGradient>\n            <clipPath id={`${uid}-clip`}>\n              <path d=\"M30 40 Q30 28 102 28 Q174 28 174 40 L174 206 Q174 220 102 220 Q30 220 30 206 Z\" />\n            </clipPath>\n            <radialGradient id={`${uid}-ring`} cx=\".5\" cy=\".5\" r=\".5\">\n              <stop offset=\".7\" stopColor=\"var(--hb-vb3-light)\" stopOpacity=\"0\" />\n              <stop offset=\".92\" stopColor=\"var(--hb-vb3-light)\" stopOpacity=\".9\" />\n              <stop offset=\"1\" stopColor=\"var(--hb-vb3-light)\" stopOpacity=\"0\" />\n            </radialGradient>\n          </defs>\n          <path d=\"M30 40 Q30 28 102 28 Q174 28 174 40 L174 206 Q174 220 102 220 Q30 220 30 206 Z\" fill={`url(#${uid}-body)`} />\n          <g clipPath={`url(#${uid}-clip)`}>\n            {grille.map((dot, i) => (\n              <circle key={i} cx={dot.cx} cy={dot.cy} r=\"1.6\" fill=\"#000\" opacity=\".75\" />\n            ))}\n            <rect className=\"hb-vb3-sheen\" x=\"72\" y=\"20\" width=\"60\" height=\"210\" fill={`url(#${uid}-sheen)`} />\n          </g>\n          <ellipse cx=\"102\" cy=\"36\" rx=\"72\" ry=\"11\" fill={`url(#${uid}-top)`} />\n          <ellipse cx=\"102\" cy=\"36\" rx=\"44\" ry=\"6.5\" fill={`url(#${uid}-ring)`} />\n          <ellipse cx=\"102\" cy=\"36\" rx=\"20\" ry=\"3\" fill=\"#0c0c0e\" />\n          <ellipse cx=\"102\" cy=\"226\" rx=\"86\" ry=\"5\" fill=\"#000\" opacity=\".8\" />\n        </svg>\n        <span className=\"hb-vb3-name\" aria-hidden=\"true\">\n          {productName}\n        </span>\n      </div>\n      {specs.length ? (\n        <ul className=\"hb-vb3-specs hb-vb3-in\" style={d(700)}>\n          {specs.map((spec) => (\n            <li key={spec.label} className=\"hb-vb3-spec\">\n              <b>{spec.value}</b>\n              <span>{spec.label}</span>\n            </li>\n          ))}\n        </ul>\n      ) : null}\n    </section>\n  );\n}\n"
    }
  ]
}