{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-gradient-card",
  "type": "registry:component",
  "title": "CTA Gradient Card",
  "description": "A large rounded card with a flowing gradient border, floating shapes, a gradient headline and an inline email form with a success state.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "cta",
    "cta",
    "gradient",
    "email",
    "signup",
    "card",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/cta-gradient-card",
  "files": [
    {
      "path": "registry/hyperblur/cta-gradient-card.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/cta-gradient-card.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface CtaGradientCardProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\" | \"onSubmit\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  placeholder?: string;\n  buttonLabel?: string;\n  successMessage?: string;\n  note?: string;\n  onSubmit?: (email: string) => void | Promise<void>;\n  accent?: string;\n  accent2?: string;\n}\n\nconst css = `\n.hb-kc8 {\n  --hb-kc8-accent: #a855f7;\n  --hb-kc8-accent2: #f97316;\n  container-type: inline-size;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  isolation: isolate;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kc8 *, .hb-kc8 *::before, .hb-kc8 *::after { box-sizing: border-box; }\n.hb-kc8-inner { max-width: 1120px; margin: 0 auto; padding: 64px 16px; }\n.hb-kc8-border {\n  position: relative;\n  padding: 1.5px;\n  border-radius: 28px;\n  background: linear-gradient(115deg, var(--hb-kc8-accent), var(--hb-kc8-accent2), rgba(255, 255, 255, .14) 40%, rgba(255, 255, 255, .14) 60%, var(--hb-kc8-accent2), var(--hb-kc8-accent));\n  background-size: 300% 100%;\n  animation: hb-kc8-flow 8s linear infinite;\n  box-shadow: 0 40px 120px -50px color-mix(in srgb, var(--hb-kc8-accent) 70%, transparent);\n}\n.hb-kc8-border::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  border-radius: inherit;\n  background: inherit;\n  background-size: 300% 100%;\n  filter: blur(24px);\n  opacity: .35;\n  animation: hb-kc8-flow 8s linear infinite;\n}\n.hb-kc8-card {\n  position: relative;\n  overflow: hidden;\n  isolation: isolate;\n  padding: 56px 22px 48px;\n  border-radius: 27px;\n  background:\n    radial-gradient(60% 80% at 0% 0%, color-mix(in srgb, var(--hb-kc8-accent) 22%, transparent), transparent 60%),\n    radial-gradient(50% 70% at 100% 100%, color-mix(in srgb, var(--hb-kc8-accent2) 18%, transparent), transparent 60%),\n    #0c0c0e;\n  text-align: center;\n}\n.hb-kc8-card::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);\n  background-size: 22px 22px;\n  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);\n  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);\n}\n.hb-kc8-shape { position: absolute; z-index: -1; pointer-events: none; animation: hb-kc8-float var(--hb-kc8-t, 9s) ease-in-out var(--hb-kc8-d, 0s) infinite alternate; }\n.hb-kc8-ring { width: 120px; height: 120px; border: 2px solid color-mix(in srgb, var(--hb-kc8-accent) 60%, transparent); border-radius: 50%; }\n.hb-kc8-cube {\n  width: 64px;\n  height: 64px;\n  border-radius: 16px;\n  background: linear-gradient(135deg, color-mix(in srgb, var(--hb-kc8-accent2) 80%, #fff), var(--hb-kc8-accent2));\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 20px 40px -16px var(--hb-kc8-accent2);\n  opacity: .85;\n}\n.hb-kc8-pill { width: 110px; height: 36px; border-radius: 999px; background: linear-gradient(90deg, var(--hb-kc8-accent), color-mix(in srgb, var(--hb-kc8-accent) 40%, #fff)); opacity: .7; }\n.hb-kc8-orb { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--hb-kc8-accent) 60%); box-shadow: 0 0 24px var(--hb-kc8-accent); }\n.hb-kc8-plus { width: 22px; height: 22px; color: rgba(255, 255, 255, .5); }\n.hb-kc8-tri { width: 54px; height: 54px; color: color-mix(in srgb, var(--hb-kc8-accent2) 70%, transparent); }\n.hb-kc8-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  margin: 0;\n  padding: 5px 12px 5px 5px;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, .04);\n  color: #c9c9c9;\n  font-size: 13px;\n  font-weight: 550;\n}\n.hb-kc8-faces { display: inline-flex; }\n.hb-kc8-faces i {\n  display: grid;\n  place-items: center;\n  width: 22px;\n  height: 22px;\n  margin-left: -6px;\n  border: 2px solid #0c0c0e;\n  border-radius: 50%;\n  color: #fff;\n  font-size: 8.5px;\n  font-style: normal;\n  font-weight: 700;\n}\n.hb-kc8-faces i:first-child { margin-left: 0; }\n.hb-kc8-title {\n  margin: 22px auto 0;\n  max-width: 760px;\n  font-size: clamp(32px, 6cqi, 60px);\n  font-weight: 700;\n  line-height: 1.02;\n  letter-spacing: -.045em;\n  text-wrap: balance;\n}\n.hb-kc8-title span {\n  background: linear-gradient(90deg, color-mix(in srgb, var(--hb-kc8-accent) 60%, #fff), color-mix(in srgb, var(--hb-kc8-accent2) 70%, #fff));\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n}\n.hb-kc8-sub { margin: 18px auto 0; max-width: 520px; color: #9a9a9a; font-size: 16px; line-height: 1.6; text-wrap: pretty; }\n.hb-kc8-form {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n  max-width: 460px;\n  margin: 32px auto 0;\n  padding: 6px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 18px;\n  background: rgba(10, 10, 10, .7);\n  -webkit-backdrop-filter: blur(8px);\n  backdrop-filter: blur(8px);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);\n  transition: border-color .25s ease, box-shadow .25s ease;\n}\n.hb-kc8-form:focus-within { border-color: color-mix(in srgb, var(--hb-kc8-accent) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-kc8-accent) 18%, transparent); }\n.hb-kc8-input {\n  flex: 1;\n  min-width: 0;\n  height: 46px;\n  padding: 0 14px;\n  border: 0;\n  border-radius: 12px;\n  background: transparent;\n  color: #fff;\n  font: inherit;\n  font-size: 15px;\n  outline: none;\n}\n.hb-kc8-input::placeholder { color: #6a6a6a; }\n.hb-kc8-btn {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  height: 46px;\n  padding: 0 20px;\n  overflow: hidden;\n  border: 0;\n  border-radius: 12px;\n  background: #fff;\n  color: #0a0a0a;\n  font: inherit;\n  font-size: 14.5px;\n  font-weight: 650;\n  white-space: nowrap;\n  cursor: pointer;\n  transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s ease;\n}\n.hb-kc8-btn:hover { background: #f0f0f0; }\n.hb-kc8-btn:active { transform: scale(.98); }\n.hb-kc8-btn:focus-visible { outline: 2px solid var(--hb-kc8-accent); outline-offset: 2px; }\n.hb-kc8-btn:disabled { cursor: progress; opacity: .8; }\n.hb-kc8-btn svg { width: 15px; height: 15px; transition: transform .25s ease; }\n.hb-kc8-btn:hover svg { transform: translateX(3px); }\n.hb-kc8-done {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 10px;\n  max-width: 460px;\n  min-height: 60px;\n  margin: 32px auto 0;\n  padding: 0 18px;\n  border: 1px solid color-mix(in srgb, var(--hb-kc8-accent) 50%, transparent);\n  border-radius: 18px;\n  background: color-mix(in srgb, var(--hb-kc8-accent) 12%, #0c0c0e);\n  color: #fff;\n  font-size: 15px;\n  font-weight: 550;\n  animation: hb-kc8-in .5s cubic-bezier(.3, 1.4, .5, 1);\n}\n.hb-kc8-done svg { flex: none; width: 20px; height: 20px; color: color-mix(in srgb, var(--hb-kc8-accent) 50%, #fff); }\n.hb-kc8-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}\n.hb-kc8-note { margin: 14px 0 0; color: #6f6f6f; font-size: 13px; }\n@keyframes hb-kc8-flow { to { background-position: 300% 0; } }\n@keyframes hb-kc8-float {\n  from { transform: translate3d(0, 0, 0) rotate(var(--hb-kc8-r, 0deg)); }\n  to { transform: translate3d(var(--hb-kc8-x, 0px), var(--hb-kc8-y, -18px), 0) rotate(calc(var(--hb-kc8-r, 0deg) + 14deg)); }\n}\n@keyframes hb-kc8-in {\n  from { opacity: 0; transform: translateY(8px) scale(.98); }\n  to { opacity: 1; transform: none; }\n}\n@container (min-width: 640px) {\n  .hb-kc8-inner { padding: 96px 32px; }\n  .hb-kc8-card { padding: 88px 48px 72px; }\n  .hb-kc8-form { flex-direction: row; align-items: center; }\n}\n@container (max-width: 639px) {\n  .hb-kc8-shape[data-wide=\"true\"] { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kc8-border, .hb-kc8-border::before, .hb-kc8-shape, .hb-kc8-done { animation: none; }\n  .hb-kc8-form, .hb-kc8-btn, .hb-kc8-btn svg { transition: none; }\n}\n`;\n\nconst faces = [\n  { i: \"MR\", c: \"#7c5cff\" },\n  { i: \"JS\", c: \"#0ea5a4\" },\n  { i: \"AK\", c: \"#e2572b\" },\n  { i: \"LT\", c: \"#2f7bff\" },\n];\n\nfunction v(o: Record<string, string>) {\n  return o as React.CSSProperties;\n}\n\nexport function CtaGradientCard({\n  eyebrow = \"Joined by 18,000 product teams\",\n  title = \"Your roadmap, finally in one calm place\",\n  subtitle = \"Plan sprints, track releases and share progress with stakeholders without another status meeting. Free for teams up to ten.\",\n  placeholder = \"you@company.com\",\n  buttonLabel = \"Get early access\",\n  successMessage = \"You are on the list. Check your inbox for a calendar invite.\",\n  note = \"No credit card required. Unsubscribe in one click.\",\n  onSubmit,\n  accent = \"#a855f7\",\n  accent2 = \"#f97316\",\n  className = \"\",\n  style,\n  ...rest\n}: CtaGradientCardProps) {\n  const [email, setEmail] = React.useState(\"\");\n  const [state, setState] = React.useState<\"idle\" | \"busy\" | \"done\">(\"idle\");\n  const inputId = React.useId();\n\n  const submit = async (e: React.FormEvent<HTMLFormElement>) => {\n    e.preventDefault();\n    if (state !== \"idle\") return;\n    setState(\"busy\");\n    try {\n      await onSubmit?.(email.trim());\n      setState(\"done\");\n    } catch {\n      setState(\"idle\");\n    }\n  };\n\n  const words = title.split(\" \");\n  const head = words.slice(0, Math.max(1, words.length - 3)).join(\" \");\n  const tail = words.slice(Math.max(1, words.length - 3)).join(\" \");\n\n  const vars = { \"--hb-kc8-accent\": accent, \"--hb-kc8-accent2\": accent2, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-kc8 ${className}`} style={vars} {...rest}>\n      <style href=\"hb-cta-gradient-card\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kc8-inner\">\n        <div className=\"hb-kc8-border\">\n          <div className=\"hb-kc8-card\">\n            <span className=\"hb-kc8-shape hb-kc8-ring\" data-wide=\"true\" aria-hidden=\"true\" style={v({ left: \"-34px\", top: \"48px\", \"--hb-kc8-t\": \"10s\", \"--hb-kc8-y\": \"22px\", \"--hb-kc8-x\": \"10px\" })} />\n            <span className=\"hb-kc8-shape hb-kc8-cube\" aria-hidden=\"true\" style={v({ right: \"8%\", top: \"36px\", \"--hb-kc8-r\": \"18deg\", \"--hb-kc8-t\": \"8s\", \"--hb-kc8-y\": \"20px\" })} />\n            <span className=\"hb-kc8-shape hb-kc8-pill\" data-wide=\"true\" aria-hidden=\"true\" style={v({ left: \"7%\", bottom: \"54px\", \"--hb-kc8-r\": \"-16deg\", \"--hb-kc8-t\": \"11s\", \"--hb-kc8-d\": \"-3s\", \"--hb-kc8-x\": \"14px\" })} />\n            <span className=\"hb-kc8-shape hb-kc8-orb\" aria-hidden=\"true\" style={v({ left: \"16%\", top: \"26%\", \"--hb-kc8-t\": \"6s\", \"--hb-kc8-y\": \"-24px\" })} />\n            <span className=\"hb-kc8-shape hb-kc8-orb\" data-wide=\"true\" aria-hidden=\"true\" style={v({ right: \"18%\", bottom: \"26%\", \"--hb-kc8-t\": \"7s\", \"--hb-kc8-d\": \"-2s\", \"--hb-kc8-y\": \"18px\" })} />\n            <svg className=\"hb-kc8-shape hb-kc8-plus\" viewBox=\"0 0 22 22\" aria-hidden=\"true\" style={v({ right: \"26%\", top: \"18%\", \"--hb-kc8-t\": \"9s\", \"--hb-kc8-r\": \"0deg\" })}>\n              <path d=\"M11 3v16M3 11h16\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" />\n            </svg>\n            <svg className=\"hb-kc8-shape hb-kc8-plus\" viewBox=\"0 0 22 22\" aria-hidden=\"true\" style={v({ left: \"24%\", bottom: \"16%\", \"--hb-kc8-t\": \"12s\", \"--hb-kc8-d\": \"-5s\" })}>\n              <path d=\"M11 3v16M3 11h16\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" />\n            </svg>\n            <svg className=\"hb-kc8-shape hb-kc8-tri\" data-wide=\"true\" viewBox=\"0 0 54 54\" aria-hidden=\"true\" style={v({ right: \"-10px\", bottom: \"40px\", \"--hb-kc8-r\": \"12deg\", \"--hb-kc8-t\": \"10s\", \"--hb-kc8-d\": \"-4s\", \"--hb-kc8-x\": \"-12px\" })}>\n              <path d=\"M27 6l22 40H5z\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinejoin=\"round\" />\n            </svg>\n            {eyebrow ? (\n              <p className=\"hb-kc8-eyebrow\">\n                <span className=\"hb-kc8-faces\" aria-hidden=\"true\">\n                  {faces.map((f) => (\n                    <i key={f.i} style={{ background: f.c }}>{f.i}</i>\n                  ))}\n                </span>\n                {eyebrow}\n              </p>\n            ) : null}\n            <h2 className=\"hb-kc8-title\">\n              {head} <span>{tail}</span>\n            </h2>\n            {subtitle ? <p className=\"hb-kc8-sub\">{subtitle}</p> : null}\n            {state === \"done\" ? (\n              <p className=\"hb-kc8-done\" role=\"status\">\n                <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n                  <circle cx=\"10\" cy=\"10\" r=\"8.25\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" />\n                  <path d=\"M6.5 10.3l2.3 2.3 4.7-5\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                </svg>\n                {successMessage}\n              </p>\n            ) : (\n              <form className=\"hb-kc8-form\" onSubmit={submit}>\n                <label htmlFor={inputId} className=\"hb-kc8-sr\">\n                  Work email\n                </label>\n                <input\n                  id={inputId}\n                  className=\"hb-kc8-input\"\n                  type=\"email\"\n                  required\n                  autoComplete=\"email\"\n                  placeholder={placeholder}\n                  value={email}\n                  onChange={(e) => setEmail(e.target.value)}\n                />\n                <button type=\"submit\" className=\"hb-kc8-btn\" disabled={state === \"busy\"}>\n                  {state === \"busy\" ? \"Sending...\" : buttonLabel}\n                  <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                    <path d=\"M3 8h9.5M8.5 4l4 4-4 4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                  </svg>\n                </button>\n              </form>\n            )}\n            {note ? <p className=\"hb-kc8-note\">{note}</p> : null}\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}