{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-glass-orbs",
  "type": "registry:component",
  "title": "Hero Glass Orbs",
  "description": "Clear glass spheres float beside the copy and bend the grid behind them, each with a mirrored lens image, chromatic rim, caustic and a tinted shadow. The orbs drift in depth with the pointer.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hero",
    "hero",
    "glass",
    "refraction",
    "orbs",
    "parallax",
    "landing"
  ],
  "docs": "https://hyperblur.dev/effects/hero-glass-orbs",
  "files": [
    {
      "path": "registry/hyperblur/hero-glass-orbs.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hero-glass-orbs.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HeroGlassOrbsAction {\n  label: string;\n  href: string;\n}\n\nexport interface HeroGlassOrbsProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  primaryCta?: HeroGlassOrbsAction | null;\n  secondaryCta?: HeroGlassOrbsAction | null;\n  points?: string[];\n  accent?: string;\n  interactive?: boolean;\n  headingAs?: \"h1\" | \"h2\";\n}\n\nconst css = `\n.hb-vb2 {\n  --hb-vb2-accent: #2f7bff;\n  --hb-vb2-x: 0;\n  --hb-vb2-y: 0;\n  position: relative;\n  box-sizing: border-box;\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n  align-items: center;\n  gap: 24px;\n  width: 100%;\n  min-height: 620px;\n  padding: 64px clamp(20px, 6cqi, 72px);\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #070708;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-vb2 *, .hb-vb2 *::before, .hb-vb2 *::after { box-sizing: border-box; }\n.hb-vb2-field {\n  position: absolute;\n  inset: 0;\n  z-index: -2;\n  pointer-events: none;\n  background:\n    repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 28px),\n    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 28px);\n  -webkit-mask-image: radial-gradient(70% 90% at 72% 50%, #000 20%, transparent 85%);\n  mask-image: radial-gradient(70% 90% at 72% 50%, #000 20%, transparent 85%);\n}\n.hb-vb2-band {\n  position: absolute;\n  right: -10%;\n  top: 22%;\n  z-index: -2;\n  width: 80%;\n  height: 56%;\n  border-radius: 50%;\n  background: conic-gradient(from 200deg at 50% 50%, color-mix(in srgb, var(--hb-vb2-accent) 80%, #22d3ee), #a855f7, #f472b6, color-mix(in srgb, var(--hb-vb2-accent) 80%, #22d3ee));\n  filter: blur(70px);\n  opacity: .32;\n  transform: rotate(-12deg);\n  pointer-events: none;\n  animation: hb-vb2-hue 18s linear infinite;\n}\n@keyframes hb-vb2-hue {\n  to { transform: rotate(348deg); }\n}\n.hb-vb2-word {\n  position: absolute;\n  right: -2%;\n  top: 50%;\n  z-index: -1;\n  margin: 0;\n  color: transparent;\n  font-family: var(--font-grotesk, inherit);\n  font-size: clamp(120px, 26cqi, 280px);\n  font-weight: 700;\n  letter-spacing: -.06em;\n  line-height: .8;\n  -webkit-text-stroke: 1px rgba(255, 255, 255, .1);\n  transform: translateY(-50%);\n  pointer-events: none;\n  user-select: none;\n}\n.hb-vb2-copy { position: relative; z-index: 2; max-width: 520px; }\n.hb-vb2-in { animation: hb-vb2-up .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--hb-vb2-d, 0ms); }\n@keyframes hb-vb2-up {\n  from { opacity: 0; transform: translate3d(0, 14px, 0); }\n  to { opacity: 1; transform: none; }\n}\n.hb-vb2-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  margin: 0;\n  padding: 6px 12px 6px 8px;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, .04);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);\n  color: rgba(237, 237, 237, .78);\n  font-size: 12.5px;\n}\n.hb-vb2-dot {\n  width: 14px;\n  height: 14px;\n  border-radius: 50%;\n  background: radial-gradient(circle at 35% 30%, #ffffff, color-mix(in srgb, var(--hb-vb2-accent) 70%, #ffffff) 40%, var(--hb-vb2-accent) 75%);\n  box-shadow: 0 0 10px color-mix(in srgb, var(--hb-vb2-accent) 70%, transparent);\n}\n.hb-vb2-title {\n  margin: 22px 0 0;\n  color: #f5f5f5;\n  font-size: clamp(36px, 5.6cqi, 62px);\n  font-weight: 640;\n  line-height: 1.02;\n  letter-spacing: -.045em;\n  text-wrap: balance;\n}\n.hb-vb2-sub {\n  margin: 18px 0 0;\n  color: rgba(237, 237, 237, .6);\n  font-size: clamp(15px, 1.7cqi, 17px);\n  line-height: 1.55;\n  text-wrap: pretty;\n}\n.hb-vb2-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }\n.hb-vb2-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 9px;\n  min-height: 46px;\n  padding: 0 22px;\n  border: 1px solid rgba(255, 255, 255, .14);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, .04);\n  color: #ededed;\n  font: inherit;\n  font-size: 15px;\n  font-weight: 550;\n  text-decoration: none;\n  white-space: nowrap;\n  backdrop-filter: blur(10px);\n  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s ease, border-color .25s ease;\n}\n.hb-vb2-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .26); transform: translateY(-1px); }\n.hb-vb2-btn:active { transform: scale(.98); }\n.hb-vb2-btn:focus-visible { outline: 2px solid var(--hb-vb2-accent); outline-offset: 3px; }\n.hb-vb2-btn[data-primary] {\n  border-color: rgba(255, 255, 255, .5);\n  background: linear-gradient(180deg, #ffffff, #dfe6f2);\n  color: #08090b;\n  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08), 0 14px 34px -14px color-mix(in srgb, var(--hb-vb2-accent) 90%, transparent);\n}\n.hb-vb2-btn[data-primary]:hover { background: linear-gradient(180deg, #ffffff, #eef2f8); }\n.hb-vb2-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; }\n.hb-vb2-points li { display: inline-flex; align-items: center; gap: 8px; color: rgba(237, 237, 237, .55); font-size: 13px; }\n.hb-vb2-points svg { color: color-mix(in srgb, var(--hb-vb2-accent) 60%, #ffffff); }\n.hb-vb2-stage {\n  position: relative;\n  width: 100%;\n  aspect-ratio: 1 / 1;\n  max-width: 480px;\n  justify-self: center;\n  pointer-events: none;\n}\n.hb-vb2-float {\n  position: absolute;\n  left: var(--hb-vb2-l);\n  top: var(--hb-vb2-t);\n  width: var(--hb-vb2-s);\n  aspect-ratio: 1;\n  transform: translate3d(calc(var(--hb-vb2-x) * var(--hb-vb2-z) * 1px), calc(var(--hb-vb2-y) * var(--hb-vb2-z) * 1px), 0);\n  transition: transform 1s cubic-bezier(.16, 1, .3, 1);\n}\n.hb-vb2-orb {\n  position: absolute;\n  inset: 0;\n  overflow: hidden;\n  border-radius: 50%;\n  background:\n    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .85) 0 3%, rgba(255, 255, 255, .25) 9%, transparent 22%),\n    radial-gradient(circle at 70% 82%, color-mix(in srgb, var(--hb-vb2-tint) 60%, transparent) 0, transparent 40%),\n    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, .14) 72%, rgba(255, 255, 255, .02) 100%);\n  box-shadow:\n    inset 0 0 0 1px rgba(255, 255, 255, .22),\n    inset 6px 8px 18px rgba(255, 255, 255, .16),\n    inset -10px -14px 30px color-mix(in srgb, var(--hb-vb2-tint) 40%, transparent),\n    inset 2px 0 0 rgba(255, 90, 120, .35),\n    inset -2px 0 0 rgba(80, 200, 255, .35),\n    0 30px 60px -20px rgba(0, 0, 0, .8);\n  backdrop-filter: blur(3px) saturate(1.8) brightness(1.15);\n  -webkit-backdrop-filter: blur(3px) saturate(1.8) brightness(1.15);\n  animation: hb-vb2-bob var(--hb-vb2-dur) cubic-bezier(.45, 0, .55, 1) infinite alternate;\n  animation-delay: var(--hb-vb2-del);\n}\n.hb-vb2-lens {\n  position: absolute;\n  inset: -30%;\n  border-radius: 50%;\n  background:\n    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 46px),\n    repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 46px);\n  transform: scale(-1, 1) rotate(4deg);\n  -webkit-mask-image: radial-gradient(circle, #000 0 28%, transparent 46%);\n  mask-image: radial-gradient(circle, #000 0 28%, transparent 46%);\n  opacity: .8;\n}\n.hb-vb2-caustic {\n  position: absolute;\n  left: 18%;\n  bottom: 8%;\n  width: 64%;\n  height: 22%;\n  border-radius: 50%;\n  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent);\n  filter: blur(4px);\n  opacity: .5;\n}\n.hb-vb2-shadow {\n  position: absolute;\n  left: 15%;\n  right: 15%;\n  bottom: -18%;\n  height: 10%;\n  border-radius: 50%;\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-vb2-tint) 45%, transparent), transparent);\n  filter: blur(8px);\n  animation: hb-vb2-shade var(--hb-vb2-dur) cubic-bezier(.45, 0, .55, 1) infinite alternate;\n  animation-delay: var(--hb-vb2-del);\n}\n@keyframes hb-vb2-bob {\n  from { transform: translate3d(0, -4%, 0) rotate(-4deg); }\n  to { transform: translate3d(0, 5%, 0) rotate(6deg); }\n}\n@keyframes hb-vb2-shade {\n  from { transform: scale(.8); opacity: .5; }\n  to { transform: scale(1.05); opacity: .9; }\n}\n.hb-vb2-label {\n  position: absolute;\n  left: 58%;\n  top: 6%;\n  padding: 7px 11px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 10px;\n  background: rgba(16, 17, 20, .6);\n  backdrop-filter: blur(12px);\n  color: rgba(237, 237, 237, .85);\n  font-family: var(--font-mono, ui-monospace, monospace);\n  font-size: 11px;\n  white-space: nowrap;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);\n}\n.hb-vb2-label b { color: color-mix(in srgb, var(--hb-vb2-accent) 55%, #ffffff); font-weight: 500; }\n@container (max-width: 760px) {\n  .hb-vb2 { grid-template-columns: 1fr; padding-top: 48px; }\n  .hb-vb2-stage { order: -1; max-width: 300px; }\n  .hb-vb2-copy { max-width: none; }\n}\n@container (max-width: 480px) {\n  .hb-vb2-actions { flex-direction: column; align-items: stretch; }\n  .hb-vb2-btn { justify-content: center; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-vb2-band, .hb-vb2-orb, .hb-vb2-shadow, .hb-vb2-in { animation: none; }\n  .hb-vb2-float, .hb-vb2-btn { transition: none; }\n}\n`;\n\nconst orbs = [\n  { l: \"22%\", t: \"18%\", s: \"56%\", z: 26, tint: \"#4f8cff\", dur: \"7s\", del: \"-1s\" },\n  { l: \"4%\", t: \"56%\", s: \"28%\", z: 44, tint: \"#c084fc\", dur: \"6s\", del: \"-3s\" },\n  { l: \"70%\", t: \"58%\", s: \"22%\", z: 60, tint: \"#22d3ee\", dur: \"5.2s\", del: \"-2s\" },\n  { l: \"62%\", t: \"8%\", s: \"15%\", z: 70, tint: \"#f472b6\", dur: \"4.6s\", del: \"-.5s\" },\n  { l: \"42%\", t: \"80%\", s: \"11%\", z: 84, tint: \"#a3e635\", dur: \"4s\", del: \"-1.6s\" },\n];\n\nconst defaultPrimary: HeroGlassOrbsAction = { label: \"Start tracing free\", href: \"#\" };\nconst defaultSecondary: HeroGlassOrbsAction = { label: \"Book a walkthrough\", href: \"#\" };\nconst defaultPoints = [\"OpenTelemetry native\", \"14-day retention free\", \"EU and US regions\"];\n\nfunction d(ms: number) {\n  return { \"--hb-vb2-d\": `${ms}ms` } as React.CSSProperties;\n}\n\nexport function HeroGlassOrbs({\n  eyebrow = \"Lens 2.4 · Trace maps now render in 3D\",\n  title = \"See through every layer of your stack\",\n  subtitle = \"Lens follows a request from the browser to the database and back, so you can spot the slow hop before your customers do.\",\n  primaryCta = defaultPrimary,\n  secondaryCta = defaultSecondary,\n  points = defaultPoints,\n  accent = \"#2f7bff\",\n  interactive = true,\n  headingAs = \"h1\",\n  className = \"\",\n  style,\n  onPointerMove,\n  onPointerLeave,\n  ...rest\n}: HeroGlassOrbsProps) {\n  const Heading = headingAs;\n  const root = React.useRef<HTMLElement>(null);\n  const vars = { \"--hb-vb2-accent\": accent, ...style } as React.CSSProperties;\n\n  const move = (event: React.PointerEvent<HTMLElement>) => {\n    onPointerMove?.(event);\n    if (!interactive || !root.current) return;\n    const box = root.current.getBoundingClientRect();\n    root.current.style.setProperty(\"--hb-vb2-x\", (((event.clientX - box.left) / box.width - 0.5) * 0.6).toFixed(3));\n    root.current.style.setProperty(\"--hb-vb2-y\", (((event.clientY - box.top) / box.height - 0.5) * 0.6).toFixed(3));\n  };\n  const leave = (event: React.PointerEvent<HTMLElement>) => {\n    onPointerLeave?.(event);\n    root.current?.style.setProperty(\"--hb-vb2-x\", \"0\");\n    root.current?.style.setProperty(\"--hb-vb2-y\", \"0\");\n  };\n\n  return (\n    <section ref={root} className={`hb-vb2 ${className}`} style={vars} onPointerMove={move} onPointerLeave={leave} {...rest}>\n      <style href=\"hb-hero-glass-orbs\" precedence=\"default\">{css}</style>\n      <div className=\"hb-vb2-field\" aria-hidden=\"true\" />\n      <div className=\"hb-vb2-band\" aria-hidden=\"true\" />\n      <p className=\"hb-vb2-word\" aria-hidden=\"true\">lens</p>\n      <div className=\"hb-vb2-copy\">\n        {eyebrow ? (\n          <p className=\"hb-vb2-eyebrow hb-vb2-in\" style={d(60)}>\n            <span className=\"hb-vb2-dot\" aria-hidden=\"true\" />\n            {eyebrow}\n          </p>\n        ) : null}\n        <Heading className=\"hb-vb2-title hb-vb2-in\" style={d(150)}>\n          {title}\n        </Heading>\n        {subtitle ? (\n          <p className=\"hb-vb2-sub hb-vb2-in\" style={d(260)}>\n            {subtitle}\n          </p>\n        ) : null}\n        {primaryCta || secondaryCta ? (\n          <div className=\"hb-vb2-actions hb-vb2-in\" style={d(360)}>\n            {primaryCta ? (\n              <a className=\"hb-vb2-btn\" data-primary=\"\" href={primaryCta.href}>\n                {primaryCta.label}\n                <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                  <path d=\"M5 12h14M13 6l6 6-6 6\" />\n                </svg>\n              </a>\n            ) : null}\n            {secondaryCta ? (\n              <a className=\"hb-vb2-btn\" href={secondaryCta.href}>\n                {secondaryCta.label}\n              </a>\n            ) : null}\n          </div>\n        ) : null}\n        {points.length ? (\n          <ul className=\"hb-vb2-points hb-vb2-in\" style={d(460)}>\n            {points.map((point) => (\n              <li key={point}>\n                <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                  <path d=\"M5 12.5l4.5 4.5L19 7.5\" />\n                </svg>\n                {point}\n              </li>\n            ))}\n          </ul>\n        ) : null}\n      </div>\n      <div className=\"hb-vb2-stage\" aria-hidden=\"true\">\n        {orbs.map((orb, i) => (\n          <div\n            key={i}\n            className=\"hb-vb2-float\"\n            style={\n              {\n                \"--hb-vb2-l\": orb.l,\n                \"--hb-vb2-t\": orb.t,\n                \"--hb-vb2-s\": orb.s,\n                \"--hb-vb2-z\": orb.z,\n                \"--hb-vb2-tint\": orb.tint,\n                \"--hb-vb2-dur\": orb.dur,\n                \"--hb-vb2-del\": orb.del,\n              } as React.CSSProperties\n            }\n          >\n            <span className=\"hb-vb2-shadow\" />\n            <span className=\"hb-vb2-orb\">\n              <span className=\"hb-vb2-lens\" />\n              <span className=\"hb-vb2-caustic\" />\n            </span>\n          </div>\n        ))}\n        <span className=\"hb-vb2-label\">\n          p95 <b>182 ms</b> · checkout-api\n        </span>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}