{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-section",
  "type": "registry:component",
  "title": "Hero Section",
  "description": "A full landing hero: eyebrow pill, headline with a highlighted word, subtitle, two pill buttons, trust items and a framed panel for a screenshot or demo.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hero",
    "hero",
    "landing",
    "header",
    "cta",
    "section",
    "marketing"
  ],
  "docs": "https://hyperblur.dev/effects/hero-section",
  "files": [
    {
      "path": "registry/hyperblur/hero-section.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hero-section.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface HeroSectionAction {\n  label: string;\n  href: string;\n}\n\nexport interface HeroSectionProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  highlight?: string;\n  subtitle?: string;\n  primary?: HeroSectionAction | null;\n  secondary?: HeroSectionAction | null;\n  trust?: string[];\n  accent?: string;\n  align?: \"left\" | \"center\";\n  children?: React.ReactNode;\n}\n\nconst css = `\n@keyframes hb-hs-up {\n  from { opacity: 0; transform: translate3d(0, 18px, 0); }\n  to { opacity: 1; transform: translate3d(0, 0, 0); }\n}\n.hb-hs {\n  --hb-accent: #2f7bff;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  padding: 96px 24px 80px;\n  background: #0a0a0a;\n  color: #f2f2f5;\n  font-family: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-hs *, .hb-hs *::before, .hb-hs *::after { box-sizing: border-box; }\n.hb-hs::before {\n  content: \"\";\n  position: absolute;\n  top: -240px;\n  left: 50%;\n  width: 900px;\n  height: 520px;\n  transform: translateX(-50%);\n  pointer-events: none;\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-accent) 28%, transparent), transparent);\n  opacity: .7;\n}\n.hb-hs-inner {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  max-width: 1080px;\n  margin: 0 auto;\n  text-align: center;\n}\n.hb-hs[data-align=\"left\"] .hb-hs-inner { align-items: stretch; text-align: left; }\n.hb-hs-a {\n  animation: hb-hs-up .7s cubic-bezier(.22, .8, .24, 1) both;\n  animation-delay: calc(var(--hb-i, 0) * 90ms);\n}\n.hb-hs-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  align-self: center;\n  margin: 0 0 24px;\n  padding: 6px 14px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, .04);\n  color: rgba(255, 255, 255, .75);\n  font-size: 13px;\n  line-height: 1.2;\n}\n.hb-hs[data-align=\"left\"] .hb-hs-eyebrow { align-self: flex-start; }\n.hb-hs-eyebrow::before {\n  content: \"\";\n  width: 6px;\n  height: 6px;\n  border-radius: 50%;\n  background: var(--hb-accent);\n  box-shadow: 0 0 10px var(--hb-accent);\n}\n.hb-hs-title {\n  max-width: 820px;\n  margin: 0;\n  font-size: clamp(36px, 6.2vw, 68px);\n  font-weight: 700;\n  line-height: 1.06;\n  letter-spacing: -.035em;\n  text-wrap: balance;\n}\n.hb-hs-mark {\n  background: linear-gradient(100deg, var(--hb-accent), color-mix(in srgb, var(--hb-accent) 55%, #ffffff));\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n}\n.hb-hs-sub {\n  max-width: 600px;\n  margin: 22px 0 0;\n  color: rgba(255, 255, 255, .62);\n  font-size: clamp(16px, 2vw, 19px);\n  line-height: 1.55;\n  text-wrap: pretty;\n}\n.hb-hs-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-hs[data-align=\"left\"] .hb-hs-actions { justify-content: flex-start; }\n.hb-hs-btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  min-height: 46px;\n  padding: 0 24px;\n  border: 1px solid rgba(255, 255, 255, .2);\n  border-radius: 999px;\n  background: transparent;\n  color: #f2f2f5;\n  font: inherit;\n  font-size: 15px;\n  font-weight: 600;\n  line-height: 1;\n  text-decoration: none;\n  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;\n}\n.hb-hs-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); transform: translate3d(0, -1px, 0); }\n.hb-hs-btn:focus-visible { outline: 2px solid var(--hb-accent); outline-offset: 3px; }\n.hb-hs-btn[data-primary=\"true\"] {\n  border-color: var(--hb-accent);\n  background: var(--hb-accent);\n  color: #fff;\n  box-shadow: 0 8px 28px -8px var(--hb-accent);\n}\n.hb-hs-btn[data-primary=\"true\"]:hover { background: color-mix(in srgb, var(--hb-accent) 82%, #ffffff); border-color: transparent; }\n.hb-hs-trust {\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n  gap: 8px 22px;\n  margin: 24px 0 0;\n  padding: 0;\n  list-style: none;\n  color: rgba(255, 255, 255, .55);\n  font-size: 13px;\n}\n.hb-hs[data-align=\"left\"] .hb-hs-trust { justify-content: flex-start; }\n.hb-hs-trust li { display: inline-flex; align-items: center; gap: 7px; }\n.hb-hs-trust svg { flex: none; color: var(--hb-accent); }\n.hb-hs-panel {\n  position: relative;\n  width: 100%;\n  max-width: 960px;\n  aspect-ratio: 16 / 9;\n  margin: 64px auto 0;\n  overflow: hidden;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 20px;\n  background:\n    radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--hb-accent) 16%, transparent), transparent 70%),\n    #0e0e11;\n  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;\n}\n.hb-hs[data-align=\"left\"] .hb-hs-panel { margin-left: 0; margin-right: 0; max-width: none; }\n.hb-hs-panel::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background-image:\n    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),\n    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);\n  background-size: 40px 40px;\n  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);\n  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);\n}\n.hb-hs-bar {\n  position: relative;\n  z-index: 1;\n  display: flex;\n  gap: 7px;\n  padding: 14px 16px;\n}\n.hb-hs-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }\n.hb-hs-content {\n  position: absolute;\n  inset: 0;\n  z-index: 2;\n  overflow: hidden;\n}\n.hb-hs-content > img,\n.hb-hs-content > video {\n  display: block;\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n}\n@media (max-width: 767px) {\n  .hb-hs { padding: 64px 20px 56px; }\n  .hb-hs::before { width: 560px; height: 360px; top: -180px; }\n  .hb-hs-actions { flex-direction: column; align-items: stretch; width: 100%; }\n  .hb-hs-btn { width: 100%; }\n  .hb-hs-panel { aspect-ratio: 4 / 3; margin-top: 44px; border-radius: 14px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-hs-a { animation: none; }\n  .hb-hs-btn { transition: none; }\n  .hb-hs-btn:hover { transform: none; }\n}\n`;\n\nconst defaultPrimary: HeroSectionAction = { label: \"Start building\", href: \"#\" };\nconst defaultSecondary: HeroSectionAction = { label: \"Book a demo\", href: \"#\" };\nconst defaultTrust = [\"No credit card\", \"Cancel anytime\", \"Free for 14 days\"];\n\nfunction delay(index: number) {\n  return { \"--hb-i\": index } as React.CSSProperties;\n}\n\nexport function HeroSection({\n  eyebrow = \"Now in public beta\",\n  title = \"Ship interfaces that feel alive\",\n  highlight = \"alive\",\n  subtitle = \"A fast, opinionated toolkit for designing, building and shipping polished product experiences, without the busywork.\",\n  primary = defaultPrimary,\n  secondary = defaultSecondary,\n  trust = defaultTrust,\n  accent = \"#2f7bff\",\n  align = \"center\",\n  children,\n  className = \"\",\n  style,\n  ...rest\n}: HeroSectionProps) {\n  const vars = { \"--hb-accent\": accent, ...style } as React.CSSProperties;\n  const at = highlight ? title.indexOf(highlight) : -1;\n\n  return (\n    <section className={`hb-hs ${className}`} data-align={align === \"left\" ? \"left\" : \"center\"} style={vars} {...rest}>\n      <style href=\"hb-hero-section\" precedence=\"default\">{css}</style>\n      <div className=\"hb-hs-inner\">\n        {eyebrow ? (\n          <p className=\"hb-hs-eyebrow hb-hs-a\" style={delay(0)}>\n            {eyebrow}\n          </p>\n        ) : null}\n        <h2 className=\"hb-hs-title hb-hs-a\" style={delay(1)}>\n          {at >= 0 ? (\n            <>\n              {title.slice(0, at)}\n              <span className=\"hb-hs-mark\">{highlight}</span>\n              {title.slice(at + highlight.length)}\n            </>\n          ) : (\n            title\n          )}\n        </h2>\n        {subtitle ? (\n          <p className=\"hb-hs-sub hb-hs-a\" style={delay(2)}>\n            {subtitle}\n          </p>\n        ) : null}\n        {primary || secondary ? (\n          <div className=\"hb-hs-actions hb-hs-a\" style={delay(3)}>\n            {primary ? (\n              <a className=\"hb-hs-btn\" data-primary=\"true\" href={primary.href}>\n                {primary.label}\n              </a>\n            ) : null}\n            {secondary ? (\n              <a className=\"hb-hs-btn\" href={secondary.href}>\n                {secondary.label}\n              </a>\n            ) : null}\n          </div>\n        ) : null}\n        {trust.length > 0 ? (\n          <ul className=\"hb-hs-trust hb-hs-a\" style={delay(4)}>\n            {trust.map((item) => (\n              <li key={item}>\n                <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"3\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                  <path d=\"M5 12.5l4.5 4.5L19 7.5\" />\n                </svg>\n                {item}\n              </li>\n            ))}\n          </ul>\n        ) : null}\n        <div className=\"hb-hs-panel hb-hs-a\" style={delay(5)}>\n          <div className=\"hb-hs-bar\" aria-hidden=\"true\">\n            <i />\n            <i />\n            <i />\n          </div>\n          {children != null ? <div className=\"hb-hs-content\">{children}</div> : null}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}