{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "features-diagonal-flow",
  "type": "registry:component",
  "title": "Features Diagonal Flow",
  "description": "Three steps staggered down a diagonal, joined by a dashed curve that a glowing pulse travels along. Each card lights up as the pulse arrives, with the heading tucked into the empty top corner and stats in the opposite one.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "features",
    "features",
    "steps",
    "diagonal",
    "flow",
    "path",
    "data-sync"
  ],
  "docs": "https://hyperblur.dev/effects/features-diagonal-flow",
  "files": [
    {
      "path": "registry/hyperblur/features-diagonal-flow.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/features-diagonal-flow.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface FeaturesDiagonalFlowStep {\n  title: string;\n  body: string;\n  meta: string;\n}\n\nexport interface FeaturesDiagonalFlowProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  steps?: FeaturesDiagonalFlowStep[];\n  footnote?: { value: string; label: string }[];\n  cta?: { label: string; href: string } | null;\n  accent?: string;\n  duration?: number;\n}\n\nconst css = `\n@keyframes hb-wa4-run { from { stroke-dashoffset: .1; } to { stroke-dashoffset: -1; } }\n@keyframes hb-wa4-lit { 0%, 30% { border-color: color-mix(in srgb, var(--hb-wa4-accent) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hb-wa4-accent) 25%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--hb-wa4-accent) 45%, transparent); } 40%, 100% { border-color: rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); } }\n@keyframes hb-wa4-num { 0%, 30% { color: var(--hb-wa4-accent); -webkit-text-stroke-color: var(--hb-wa4-accent); } 40%, 100% { color: transparent; -webkit-text-stroke-color: #333; } }\n@keyframes hb-wa4-plug { 0%, 100% { transform: translateX(0); } 40%, 70% { transform: translateX(10px); } }\n@keyframes hb-wa4-spark { 0%, 38% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.2); } 60%, 100% { opacity: 0; transform: scale(1.6); } }\n@keyframes hb-wa4-map { 0%, 20% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }\n@keyframes hb-wa4-spin { to { transform: rotate(360deg); } }\n@keyframes hb-wa4-roll { 0% { transform: translateY(0); } 100% { transform: translateY(-75%); } }\n@keyframes hb-wa4-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }\n.hb-wa4 {\n  --hb-wa4-accent: #22d3ee;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-wa4 *, .hb-wa4 *::before, .hb-wa4 *::after { box-sizing: border-box; }\n.hb-wa4 em, .hb-wa4 i { font-style: normal; }\n.hb-wa4::before { content: \"\"; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, transparent 0 46px, rgba(255, 255, 255, .018) 46px 47px); mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent); }\n.hb-wa4-in { position: relative; max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8cqi, 104px) clamp(16px, 5cqi, 48px); }\n.hb-wa4-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 22px 18px; }\n.hb-wa4-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }\n.hb-wa4-path path { fill: none; vector-effect: non-scaling-stroke; }\n.hb-wa4-base { stroke: #262626; stroke-width: 1.5; stroke-dasharray: 4 6; }\n.hb-wa4-pulse { stroke: var(--hb-wa4-accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .1 .9; filter: drop-shadow(0 0 6px var(--hb-wa4-accent)); animation: hb-wa4-run var(--hb-wa4-d) linear infinite; }\n.hb-wa4-head { grid-column: 7 / 13; grid-row: 1; align-self: start; padding-top: 6px; animation: hb-wa4-rise .7s cubic-bezier(.22, 1, .36, 1) both; }\n.hb-wa4-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #a1a1a1; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; }\n.hb-wa4-eyebrow b { width: 8px; height: 8px; border-radius: 2px; background: var(--hb-wa4-accent); transform: rotate(45deg); }\n.hb-wa4-title { margin: 0; font-family: var(--font-grotesk, inherit); font-size: clamp(28px, 4.2cqi, 48px); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }\n.hb-wa4-sub { margin: 14px 0 0; max-width: 440px; color: #8f8f8f; font-size: 15px; line-height: 1.6; }\n.hb-wa4-step { position: relative; z-index: 1; padding: 20px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; background: linear-gradient(180deg, #141414, #0f0f0f); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); animation: hb-wa4-lit var(--hb-wa4-d) ease infinite, hb-wa4-rise .7s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--hb-wa4-d) * var(--i) / 3), calc(var(--i) * 120ms + 100ms); }\n.hb-wa4-step[data-i=\"0\"] { grid-column: 1 / 6; grid-row: 1; }\n.hb-wa4-step[data-i=\"1\"] { grid-column: 4 / 9; grid-row: 2; }\n.hb-wa4-step[data-i=\"2\"] { grid-column: 8 / 13; grid-row: 3; }\n.hb-wa4-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }\n.hb-wa4-num { font-family: var(--font-grotesk, inherit); font-size: 64px; font-weight: 700; line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px #333; animation: hb-wa4-num var(--hb-wa4-d) ease infinite; animation-delay: calc(var(--hb-wa4-d) * var(--i) / 3); }\n.hb-wa4-meta { padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; color: #a1a1a1; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; white-space: nowrap; }\n.hb-wa4-step h3 { margin: 16px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }\n.hb-wa4-step p { margin: 6px 0 0; color: #8f8f8f; font-size: 14px; line-height: 1.55; }\n.hb-wa4-ill { position: relative; height: 92px; margin-top: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: #0b0b0b; }\n.hb-wa4-src { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: #171717; font-size: 10px; font-weight: 700; color: #ededed; }\n.hb-wa4-plug { animation: hb-wa4-plug 3s cubic-bezier(.65, 0, .35, 1) infinite; }\n.hb-wa4-spark { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid var(--hb-wa4-accent); animation: hb-wa4-spark 3s ease-out infinite; }\n.hb-wa4-wire { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, #333 0 6px, transparent 6px 10px); }\n.hb-wa4-fields { position: absolute; inset: 10px 14px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 46px; row-gap: 6px; align-content: center; font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; }\n.hb-wa4-fields span { padding: 3px 7px; border-radius: 6px; background: #171717; color: #bdbdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.hb-wa4-fields span:nth-child(even) { color: var(--hb-wa4-accent); background: color-mix(in srgb, var(--hb-wa4-accent) 10%, #111); }\n.hb-wa4-maps { position: absolute; inset: 0; width: 100%; height: 100%; }\n.hb-wa4-maps path { fill: none; stroke: color-mix(in srgb, var(--hb-wa4-accent) 70%, #fff); stroke-width: 1.2; stroke-dasharray: 1; animation: hb-wa4-map 3.6s ease infinite; }\n.hb-wa4-sync { position: absolute; inset: 0; display: flex; align-items: center; gap: 16px; padding: 0 18px; }\n.hb-wa4-sync svg { flex: none; color: var(--hb-wa4-accent); animation: hb-wa4-spin 2.4s linear infinite; }\n.hb-wa4-count { display: grid; }\n.hb-wa4-count small { color: #6f6f6f; font-size: 11px; }\n.hb-wa4-roll { height: 28px; overflow: hidden; font-family: var(--font-grotesk, inherit); font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 28px; }\n.hb-wa4-roll > span { display: block; animation: hb-wa4-roll 4s steps(3) infinite; }\n.hb-wa4-roll > span > span { display: block; height: 28px; }\n.hb-wa4-ok { margin-left: auto; padding: 4px 8px; border-radius: 6px; background: rgba(34, 197, 94, .12); color: #4ade80; font-size: 11px; font-weight: 600; }\n.hb-wa4-foot { grid-column: 1 / 7; grid-row: 3; align-self: end; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 32px; padding-bottom: 6px; }\n.hb-wa4-foot div { display: grid; gap: 2px; }\n.hb-wa4-foot b { font-family: var(--font-grotesk, inherit); font-size: 28px; font-weight: 600; letter-spacing: -.03em; }\n.hb-wa4-foot span { color: #6f6f6f; font-size: 12.5px; }\n.hb-wa4-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #ededed; color: #0a0a0a; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .2s ease, background .2s ease; }\n.hb-wa4-cta:hover { background: #fff; transform: translate3d(0, -1px, 0); }\n.hb-wa4-cta:focus-visible { outline: 2px solid var(--hb-wa4-accent); outline-offset: 3px; }\n@container (max-width: 820px) {\n  .hb-wa4-grid { grid-template-columns: minmax(0, 1fr); padding-left: 26px; }\n  .hb-wa4-head, .hb-wa4-step[data-i], .hb-wa4-foot { grid-column: 1; grid-row: auto; }\n  .hb-wa4-head { margin-left: -26px; }\n  .hb-wa4-foot { margin-left: -26px; }\n  .hb-wa4-path { display: none; }\n  .hb-wa4-step::before { content: \"\"; position: absolute; left: -19px; top: -22px; bottom: -22px; width: 2px; background: repeating-linear-gradient(#262626 0 4px, transparent 4px 10px); }\n  .hb-wa4-step::after { content: \"\"; position: absolute; left: -23px; top: 26px; width: 10px; height: 10px; border-radius: 3px; background: var(--hb-wa4-accent); transform: rotate(45deg); }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-wa4 *, .hb-wa4 *::before, .hb-wa4 *::after { animation: none !important; transition: none !important; }\n  .hb-wa4-pulse { display: none; }\n  .hb-wa4-maps path { stroke-dashoffset: 0; }\n}\n`;\n\nconst defaultSteps: FeaturesDiagonalFlowStep[] = [\n  { title: \"Connect your sources\", body: \"Authorize Postgres, Stripe and HubSpot in a few clicks. Credentials stay encrypted in your own region.\", meta: \"~2 min\" },\n  { title: \"Map the fields once\", body: \"Tidewater suggests matches between schemas. Accept, tweak or write a transform in plain SQL.\", meta: \"38 suggestions\" },\n  { title: \"Sync on every change\", body: \"Rows stream to every destination within seconds, with retries, ordering and a full replay log.\", meta: \"p95 1.8 s\" },\n];\n\nconst defaultFootnote = [\n  { value: \"2.4B\", label: \"rows synced last month\" },\n  { value: \"140+\", label: \"connectors\" },\n];\n\nfunction IllConnect() {\n  return (\n    <div className=\"hb-wa4-ill\" aria-hidden=\"true\">\n      <i className=\"hb-wa4-wire\" style={{ left: \"64px\", right: \"64px\" }} />\n      <span className=\"hb-wa4-src hb-wa4-plug\" style={{ left: \"16px\" }}>PG</span>\n      <i className=\"hb-wa4-spark\" />\n      <span className=\"hb-wa4-src\" style={{ right: \"16px\", borderColor: \"rgba(34,211,238,.45)\" }}>TW</span>\n    </div>\n  );\n}\n\nfunction IllMap() {\n  const pairs = [[\"cust_email\", \"email\"], [\"amount_cents\", \"mrr\"], [\"created\", \"signup_at\"], [\"plan_tier\", \"segment\"]];\n  return (\n    <div className=\"hb-wa4-ill\" aria-hidden=\"true\">\n      <svg className=\"hb-wa4-maps\" viewBox=\"0 0 100 92\" preserveAspectRatio=\"none\">\n        <path d=\"M44 20 C 50 20, 50 20, 56 20\" pathLength={1} />\n        <path d=\"M44 38 C 50 38, 50 56, 56 56\" pathLength={1} style={{ animationDelay: \".3s\" }} />\n        <path d=\"M44 56 C 50 56, 50 38, 56 38\" pathLength={1} style={{ animationDelay: \".6s\" }} />\n        <path d=\"M44 74 C 50 74, 50 74, 56 74\" pathLength={1} style={{ animationDelay: \".9s\" }} />\n      </svg>\n      <div className=\"hb-wa4-fields\">\n        {pairs.map(([a, b]) => (\n          <React.Fragment key={a}>\n            <span>{a}</span>\n            <span>{b}</span>\n          </React.Fragment>\n        ))}\n      </div>\n    </div>\n  );\n}\n\nfunction IllSync() {\n  return (\n    <div className=\"hb-wa4-ill\" aria-hidden=\"true\">\n      <div className=\"hb-wa4-sync\">\n        <svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\">\n          <path d=\"M20 12a8 8 0 0 1-13.7 5.6M4 12a8 8 0 0 1 13.7-5.6\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" />\n          <path d=\"M18 3v4h-4M6 21v-4h4\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n        </svg>\n        <div className=\"hb-wa4-count\">\n          <small>rows this minute</small>\n          <div className=\"hb-wa4-roll\">\n            <span>\n              <span>18,204</span>\n              <span>18,961</span>\n              <span>19,437</span>\n              <span>18,204</span>\n            </span>\n          </div>\n        </div>\n        <span className=\"hb-wa4-ok\">Healthy</span>\n      </div>\n    </div>\n  );\n}\n\nconst ills = [IllConnect, IllMap, IllSync];\n\nexport function FeaturesDiagonalFlow({\n  eyebrow = \"Tidewater · how it works\",\n  title = \"Three moves from scattered data to one source of truth\",\n  subtitle = \"No pipelines to babysit. Set it up once over coffee and every tool your team uses stays in step.\",\n  steps = defaultSteps,\n  footnote = defaultFootnote,\n  cta = { label: \"Start a free sync\", href: \"#\" },\n  accent = \"#22d3ee\",\n  duration = 9,\n  className,\n  style,\n  ...rest\n}: FeaturesDiagonalFlowProps) {\n  const shown = steps.slice(0, 3);\n  return (\n    <section className={[\"hb-wa4\", className].filter(Boolean).join(\" \")} style={{ \"--hb-wa4-accent\": accent, \"--hb-wa4-d\": `${duration}s`, ...style } as React.CSSProperties} {...rest}>\n      <style href=\"hb-features-diagonal-flow\" precedence=\"default\">{css}</style>\n      <div className=\"hb-wa4-in\">\n        <div className=\"hb-wa4-grid\">\n          <svg className=\"hb-wa4-path\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\" aria-hidden=\"true\">\n            <path className=\"hb-wa4-base\" d=\"M22 18 C 22 34, 52 30, 54 50 C 56 70, 84 66, 84 84\" />\n            <path className=\"hb-wa4-pulse\" d=\"M22 18 C 22 34, 52 30, 54 50 C 56 70, 84 66, 84 84\" pathLength={1} />\n          </svg>\n          <div className=\"hb-wa4-head\">\n            <p className=\"hb-wa4-eyebrow\"><b />{eyebrow}</p>\n            <h2 className=\"hb-wa4-title\">{title}</h2>\n            <p className=\"hb-wa4-sub\">{subtitle}</p>\n          </div>\n          <ol style={{ display: \"contents\" }}>\n            {shown.map((s, i) => {\n              const Ill = ills[i];\n              return (\n                <li key={s.title} className=\"hb-wa4-step\" data-i={i} style={{ \"--i\": i, listStyle: \"none\" } as React.CSSProperties}>\n                  <div className=\"hb-wa4-top\">\n                    <span className=\"hb-wa4-num\" aria-hidden=\"true\">0{i + 1}</span>\n                    <span className=\"hb-wa4-meta\">{s.meta}</span>\n                  </div>\n                  <h3>{s.title}</h3>\n                  <p>{s.body}</p>\n                  <Ill />\n                </li>\n              );\n            })}\n          </ol>\n          <div className=\"hb-wa4-foot\">\n            {footnote.map((f) => (\n              <div key={f.label}>\n                <b>{f.value}</b>\n                <span>{f.label}</span>\n              </div>\n            ))}\n            {cta && <a className=\"hb-wa4-cta\" href={cta.href}>{cta.label}</a>}\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}