{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-aurora",
  "type": "registry:component",
  "title": "Hero Aurora",
  "description": "A dark, centered hero with drifting aurora ribbons, a shining pill badge and a headline that sharpens in word by word over a fading grid.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hero",
    "hero",
    "aurora",
    "landing",
    "headline",
    "blur reveal",
    "marketing"
  ],
  "docs": "https://hyperblur.dev/effects/hero-aurora",
  "files": [
    {
      "path": "registry/hyperblur/hero-aurora.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hero-aurora.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HeroAuroraAction {\n  label: string;\n  href: string;\n}\n\nexport interface HeroAuroraBadge {\n  tag?: string;\n  label: string;\n  href?: string;\n}\n\nexport interface HeroAuroraProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  title?: string;\n  highlight?: string;\n  subtitle?: string;\n  badge?: HeroAuroraBadge | null;\n  primaryCta?: HeroAuroraAction | null;\n  secondaryCta?: HeroAuroraAction | null;\n  proof?: string;\n  accent?: string;\n  headingAs?: \"h1\" | \"h2\";\n}\n\nconst css = `\n.hb-hra {\n  --hb-hra-accent: #2f7bff;\n  --hb-hra-c1: color-mix(in srgb, var(--hb-hra-accent) 70%, #22d3ee);\n  --hb-hra-c2: color-mix(in srgb, var(--hb-hra-accent) 55%, #a855f7);\n  --hb-hra-c3: color-mix(in srgb, var(--hb-hra-accent) 40%, #34d399);\n  position: relative;\n  box-sizing: border-box;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n  min-height: 600px;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #050607;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-hra *, .hb-hra *::before, .hb-hra *::after { box-sizing: border-box; }\n.hb-hra-sky {\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  overflow: hidden;\n  pointer-events: none;\n}\n.hb-hra-sky::before {\n  content: \"\";\n  position: absolute;\n  left: 50%;\n  top: 18%;\n  width: 70%;\n  height: 60%;\n  transform: translateX(-50%);\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-hra-accent) 22%, transparent), transparent);\n}\n.hb-hra-ribbon {\n  position: absolute;\n  left: -25%;\n  width: 150%;\n  height: 36%;\n  border-radius: 50%;\n  background:\n    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, .06) 18px 20px),\n    linear-gradient(90deg, transparent 8%, var(--hb-hra-ra) 32%, var(--hb-hra-rb) 58%, transparent 90%);\n  -webkit-mask-image: radial-gradient(closest-side, #000 18%, transparent 100%);\n  mask-image: radial-gradient(closest-side, #000 18%, transparent 100%);\n  opacity: .5;\n  mix-blend-mode: screen;\n  transform: rotate(var(--hb-hra-rot)) skewX(-24deg);\n  animation: hb-hra-drift var(--hb-hra-dur) ease-in-out infinite alternate;\n  animation-delay: var(--hb-hra-delay);\n  will-change: transform;\n}\n.hb-hra-ribbon:nth-child(1) { top: -4%; --hb-hra-ra: var(--hb-hra-c1); --hb-hra-rb: var(--hb-hra-accent); --hb-hra-rot: -10deg; --hb-hra-dur: 16s; --hb-hra-delay: -3s; }\n.hb-hra-ribbon:nth-child(2) { top: 10%; --hb-hra-ra: var(--hb-hra-c2); --hb-hra-rb: var(--hb-hra-c1); --hb-hra-rot: 8deg; --hb-hra-dur: 21s; --hb-hra-delay: -9s; opacity: .42; }\n.hb-hra-ribbon:nth-child(3) { top: 24%; --hb-hra-ra: var(--hb-hra-c3); --hb-hra-rb: var(--hb-hra-c2); --hb-hra-rot: -4deg; --hb-hra-dur: 25s; --hb-hra-delay: -14s; opacity: .32; }\n.hb-hra-ribbon:nth-child(4) { top: -16%; --hb-hra-ra: var(--hb-hra-accent); --hb-hra-rb: var(--hb-hra-c3); --hb-hra-rot: 16deg; --hb-hra-dur: 19s; --hb-hra-delay: -6s; opacity: .3; }\n@keyframes hb-hra-drift {\n  0% { transform: translate3d(-6%, 0, 0) rotate(var(--hb-hra-rot)) skewX(-24deg) scaleY(1); }\n  50% { transform: translate3d(2%, -5%, 0) rotate(calc(var(--hb-hra-rot) + 4deg)) skewX(-12deg) scaleY(1.25); }\n  100% { transform: translate3d(7%, 4%, 0) rotate(calc(var(--hb-hra-rot) - 3deg)) skewX(-30deg) scaleY(.85); }\n}\n.hb-hra-star {\n  position: absolute;\n  width: 2px;\n  height: 2px;\n  border-radius: 50%;\n  background: #ffffff;\n  animation: hb-hra-twinkle 4s ease-in-out infinite;\n}\n@keyframes hb-hra-twinkle {\n  0%, 100% { opacity: var(--hb-hra-o); }\n  50% { opacity: .05; }\n}\n.hb-hra-grid {\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  height: 48%;\n  background-image:\n    linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px),\n    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px);\n  background-size: 56px 56px;\n  background-position: center bottom;\n  -webkit-mask-image: radial-gradient(60% 100% at 50% 100%, #000 0%, transparent 75%);\n  mask-image: radial-gradient(60% 100% at 50% 100%, #000 0%, transparent 75%);\n}\n.hb-hra-sky::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(180deg, rgba(5, 6, 7, 0) 40%, rgba(5, 6, 7, .55) 100%);\n}\n.hb-hra-inner {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  width: 100%;\n  max-width: 1040px;\n  padding: clamp(64px, 9cqi, 96px) clamp(20px, 5cqi, 48px) clamp(72px, 9cqi, 100px);\n  text-align: center;\n}\n.hb-hra-in {\n  animation: hb-hra-up .8s cubic-bezier(.2, .7, .2, 1) both;\n  animation-delay: var(--hb-hra-i, 0ms);\n}\n@keyframes hb-hra-up {\n  from { opacity: 0; transform: translate3d(0, 14px, 0); }\n  to { opacity: 1; transform: none; }\n}\n.hb-hra-badge {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  max-width: 100%;\n  padding: 4px 14px 4px 4px;\n  overflow: hidden;\n  border: 1px solid transparent;\n  border-radius: 999px;\n  background:\n    linear-gradient(#0b0c10, #0b0c10) padding-box,\n    linear-gradient(120deg, rgba(255, 255, 255, .3), color-mix(in srgb, var(--hb-hra-accent) 70%, transparent), rgba(255, 255, 255, .08)) border-box;\n  color: rgba(237, 237, 237, .86);\n  font-size: 13px;\n  line-height: 1.2;\n  text-decoration: none;\n  transition: transform .25s ease;\n}\n.hb-hra-badge::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .2) 50%, transparent 65%);\n  transform: translateX(-110%);\n  animation: hb-hra-shine 4.5s ease-in-out infinite 1.4s;\n  pointer-events: none;\n}\n@keyframes hb-hra-shine {\n  0% { transform: translateX(-110%); }\n  35%, 100% { transform: translateX(110%); }\n}\na.hb-hra-badge:hover { transform: translate3d(0, -1px, 0); }\na.hb-hra-badge:focus-visible { outline: 2px solid var(--hb-hra-accent); outline-offset: 3px; }\n.hb-hra-tag {\n  flex: none;\n  padding: 4px 9px;\n  border-radius: 999px;\n  background: var(--hb-hra-accent);\n  color: #ffffff;\n  font-size: 11.5px;\n  font-weight: 600;\n  letter-spacing: .01em;\n}\n.hb-hra-badge-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }\n.hb-hra-badge svg { flex: none; opacity: .7; transition: transform .25s ease; }\na.hb-hra-badge:hover svg { transform: translateX(2px); }\n.hb-hra-title {\n  max-width: 1000px;\n  margin: 26px 0 0;\n  color: #f4f4f5;\n  font-size: clamp(38px, 7.4cqi, 78px);\n  font-weight: 650;\n  line-height: 1.02;\n  letter-spacing: -.045em;\n  text-wrap: balance;\n}\n.hb-hra-word {\n  display: inline-block;\n  animation: hb-hra-word .95s cubic-bezier(.2, .7, .2, 1) both;\n  animation-delay: calc(220ms + var(--hb-hra-w) * 85ms);\n}\n@keyframes hb-hra-word {\n  from { opacity: 0; filter: blur(14px); transform: translate3d(0, .3em, 0); }\n  to { opacity: 1; filter: blur(0); transform: none; }\n}\n.hb-hra-word[data-hl] {\n  --hb-hra-h0: color-mix(in srgb, var(--hb-hra-c1) 55%, #ffffff);\n  --hb-hra-h1: color-mix(in srgb, var(--hb-hra-c2) 85%, #ffffff);\n  padding-bottom: .06em;\n  background: linear-gradient(100deg, color-mix(in srgb, var(--hb-hra-h1) var(--hb-hra-p0), var(--hb-hra-h0)), color-mix(in srgb, var(--hb-hra-h1) var(--hb-hra-p1), var(--hb-hra-h0)));\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n}\n.hb-hra-sub {\n  max-width: 580px;\n  margin: 22px 0 0;\n  color: rgba(237, 237, 237, .62);\n  font-size: clamp(15px, 2cqi, 18px);\n  line-height: 1.55;\n  text-wrap: pretty;\n}\n.hb-hra-actions {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: center;\n  gap: 12px;\n  margin-top: 32px;\n}\n.hb-hra-btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 9px;\n  min-height: 46px;\n  padding: 0 22px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, .045);\n  color: #ededed;\n  font: inherit;\n  font-size: 15px;\n  font-weight: 550;\n  line-height: 1;\n  text-decoration: none;\n  white-space: nowrap;\n  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;\n}\n.hb-hra-btn:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); transform: translate3d(0, -1px, 0); }\n.hb-hra-btn:active { transform: translate3d(0, 0, 0) scale(.98); }\n.hb-hra-btn:focus-visible { outline: 2px solid var(--hb-hra-accent); outline-offset: 3px; }\n.hb-hra-btn[data-primary] {\n  border-color: transparent;\n  background: #f4f4f5;\n  color: #0a0a0a;\n  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 40px -10px var(--hb-hra-accent);\n}\n.hb-hra-btn[data-primary]:hover { background: #ffffff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 14px 48px -8px var(--hb-hra-accent); }\n.hb-hra-btn svg { flex: none; transition: transform .2s ease; }\n.hb-hra-btn[data-primary]:hover svg { transform: translateX(2px); }\n.hb-hra-play {\n  display: grid;\n  place-items: center;\n  width: 22px;\n  height: 22px;\n  border-radius: 50%;\n  background: rgba(255, 255, 255, .12);\n}\n.hb-hra-proof {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: center;\n  gap: 10px 14px;\n  margin-top: 30px;\n  color: rgba(237, 237, 237, .55);\n  font-size: 13px;\n}\n.hb-hra-faces { display: flex; }\n.hb-hra-face {\n  display: grid;\n  place-items: center;\n  width: 28px;\n  height: 28px;\n  margin-left: -8px;\n  border: 2px solid #050607;\n  border-radius: 50%;\n  color: #ffffff;\n  font-size: 10.5px;\n  font-weight: 650;\n}\n.hb-hra-face:first-child { margin-left: 0; }\n.hb-hra-stars { display: inline-flex; gap: 2px; color: #fbbf24; }\n.hb-hra-proof-text { display: inline-flex; align-items: center; gap: 8px; }\n.hb-hra-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip: rect(0 0 0 0);\n  white-space: nowrap;\n}\n@container (max-width: 560px) {\n  .hb-hra-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }\n  .hb-hra-btn { width: 100%; }\n  .hb-hra-ribbon { height: 30%; }\n  .hb-hra-grid { background-size: 40px 40px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-hra-ribbon, .hb-hra-star, .hb-hra-badge::after, .hb-hra-in, .hb-hra-word { animation: none; }\n  .hb-hra-word { filter: none; }\n  .hb-hra-btn, .hb-hra-badge, .hb-hra-btn svg, .hb-hra-badge svg { transition: none; }\n}\n`;\n\nfunction hash(n: number) {\n  let x = Math.imul(n + 1, 374761393);\n  x = Math.imul(x ^ (x >>> 13), 1274126177);\n  x ^= x >>> 16;\n  return (x >>> 0) / 4294967296;\n}\n\nconst stars = Array.from({ length: 38 }, (_, i) => ({\n  left: `${(hash(i * 3) * 100).toFixed(2)}%`,\n  top: `${(hash(i * 3 + 1) * 58).toFixed(2)}%`,\n  opacity: (0.25 + hash(i * 3 + 2) * 0.55).toFixed(2),\n  delay: `${(-hash(i * 7 + 5) * 4).toFixed(2)}s`,\n  scale: hash(i * 11 + 3) > 0.82 ? 1.5 : 1,\n}));\n\nconst faces = [\n  { initials: \"MR\", color: \"#6d5efc\" },\n  { initials: \"AK\", color: \"#0ea5e9\" },\n  { initials: \"JL\", color: \"#f97316\" },\n  { initials: \"SD\", color: \"#10b981\" },\n];\n\nconst defaultBadge: HeroAuroraBadge = { tag: \"New\", label: \"Session replays are here\", href: \"#\" };\nconst defaultPrimary: HeroAuroraAction = { label: \"Start for free\", href: \"#\" };\nconst defaultSecondary: HeroAuroraAction = { label: \"Watch the demo\", href: \"#\" };\n\nfunction delay(ms: number) {\n  return { \"--hb-hra-i\": `${ms}ms` } as React.CSSProperties;\n}\n\nexport function HeroAurora({\n  title = \"Build products your customers can't stop using\",\n  highlight = \"can't stop using\",\n  subtitle = \"Lumen turns raw product events into answers in seconds. Funnels, retention and live dashboards, without writing a single line of SQL.\",\n  badge = defaultBadge,\n  primaryCta = defaultPrimary,\n  secondaryCta = defaultSecondary,\n  proof = \"Loved by 12,400+ product teams\",\n  accent = \"#2f7bff\",\n  headingAs = \"h1\",\n  className = \"\",\n  style,\n  ...rest\n}: HeroAuroraProps) {\n  const Heading = headingAs;\n  const vars = { \"--hb-hra-accent\": accent, ...style } as React.CSSProperties;\n  const words = title.split(/\\s+/).filter(Boolean);\n  const marks = highlight ? highlight.split(/\\s+/).filter(Boolean) : [];\n  let start = -1;\n  if (marks.length) {\n    for (let i = 0; i + marks.length <= words.length; i += 1) {\n      if (marks.every((word, j) => words[i + j] === word)) {\n        start = i;\n        break;\n      }\n    }\n  }\n  const base = 220 + words.length * 85;\n\n  const badgeBody = badge ? (\n    <>\n      {badge.tag ? <span className=\"hb-hra-tag\">{badge.tag}</span> : null}\n      <span className=\"hb-hra-badge-label\">{badge.label}</span>\n      {badge.href ? (\n        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n          <path d=\"M9 6l6 6-6 6\" />\n        </svg>\n      ) : null}\n    </>\n  ) : null;\n\n  return (\n    <section className={`hb-hra ${className}`} style={vars} {...rest}>\n      <style href=\"hb-hero-aurora\" precedence=\"default\">{css}</style>\n      <div className=\"hb-hra-sky\" aria-hidden=\"true\">\n        <span className=\"hb-hra-ribbon\" />\n        <span className=\"hb-hra-ribbon\" />\n        <span className=\"hb-hra-ribbon\" />\n        <span className=\"hb-hra-ribbon\" />\n        {stars.map((star, i) => (\n          <span\n            key={i}\n            className=\"hb-hra-star\"\n            style={{ left: star.left, top: star.top, animationDelay: star.delay, transform: `scale(${star.scale})`, \"--hb-hra-o\": star.opacity } as React.CSSProperties}\n          />\n        ))}\n        <span className=\"hb-hra-grid\" />\n      </div>\n      <div className=\"hb-hra-inner\">\n        {badge ? (\n          badge.href ? (\n            <a className=\"hb-hra-badge hb-hra-in\" href={badge.href} style={delay(0)}>\n              {badgeBody}\n            </a>\n          ) : (\n            <p className=\"hb-hra-badge hb-hra-in\" style={{ ...delay(0), margin: 0 }}>\n              {badgeBody}\n            </p>\n          )\n        ) : null}\n        <Heading className=\"hb-hra-title\">\n          <span className=\"hb-hra-sr\">{title}</span>\n          <span aria-hidden=\"true\">\n            {words.map((word, i) => {\n              const marked = start >= 0 && i >= start && i < start + marks.length;\n              return (\n                <React.Fragment key={i}>\n                  {i > 0 ? \" \" : null}\n                  <span\n                    className=\"hb-hra-word\"\n                    data-hl={marked ? \"\" : undefined}\n                    style={\n                      {\n                        \"--hb-hra-w\": i,\n                        \"--hb-hra-p0\": marked ? `${(((i - start) / marks.length) * 100).toFixed(1)}%` : undefined,\n                        \"--hb-hra-p1\": marked ? `${(((i - start + 1) / marks.length) * 100).toFixed(1)}%` : undefined,\n                      } as React.CSSProperties\n                    }\n                  >\n                    {word}\n                  </span>\n                </React.Fragment>\n              );\n            })}\n          </span>\n        </Heading>\n        {subtitle ? (\n          <p className=\"hb-hra-sub hb-hra-in\" style={delay(base)}>\n            {subtitle}\n          </p>\n        ) : null}\n        {primaryCta || secondaryCta ? (\n          <div className=\"hb-hra-actions hb-hra-in\" style={delay(base + 120)}>\n            {primaryCta ? (\n              <a className=\"hb-hra-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-hra-btn\" href={secondaryCta.href}>\n                <span className=\"hb-hra-play\" aria-hidden=\"true\">\n                  <svg width=\"9\" height=\"9\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n                    <path d=\"M7 4.5v15l13-7.5z\" />\n                  </svg>\n                </span>\n                {secondaryCta.label}\n              </a>\n            ) : null}\n          </div>\n        ) : null}\n        {proof ? (\n          <div className=\"hb-hra-proof hb-hra-in\" style={delay(base + 240)}>\n            <span className=\"hb-hra-faces\" aria-hidden=\"true\">\n              {faces.map((face) => (\n                <span key={face.initials} className=\"hb-hra-face\" style={{ background: face.color }}>\n                  {face.initials}\n                </span>\n              ))}\n            </span>\n            <span className=\"hb-hra-proof-text\">\n              <span className=\"hb-hra-stars\" role=\"img\" aria-label=\"Rated 5 out of 5\">\n                {[0, 1, 2, 3, 4].map((i) => (\n                  <svg key={i} width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n                    <path d=\"M12 2.8l2.8 5.8 6.4.9-4.6 4.5 1.1 6.3L12 17.3l-5.7 3 1.1-6.3-4.6-4.5 6.4-.9z\" />\n                  </svg>\n                ))}\n              </span>\n              {proof}\n            </span>\n          </div>\n        ) : null}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}