{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bento-terminal",
  "type": "registry:component",
  "title": "Bento Terminal",
  "description": "A developer bento with a terminal that types a deploy command, a code diff, a rollout status card, a git graph and a per-region latency heat strip.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "bento",
    "bento",
    "developer",
    "terminal",
    "deploy",
    "git",
    "latency"
  ],
  "docs": "https://hyperblur.dev/effects/bento-terminal",
  "files": [
    {
      "path": "registry/hyperblur/bento-terminal.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/bento-terminal.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface BentoTerminalLink {\n  label: string;\n  href: string;\n}\n\nexport interface BentoTerminalLine {\n  text: string;\n  meta?: string;\n  tone?: \"default\" | \"success\" | \"muted\";\n}\n\nexport interface BentoTerminalCommit {\n  message: string;\n  sha: string;\n  lane: 0 | 1 | 2;\n  tag?: string;\n}\n\nexport interface BentoTerminalProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  primaryCta?: BentoTerminalLink | null;\n  secondaryCta?: BentoTerminalLink | null;\n  command?: string;\n  lines?: BentoTerminalLine[];\n  commits?: BentoTerminalCommit[];\n  regions?: string[];\n  accent?: string;\n}\n\nconst css = `\n@keyframes hb-kb4-rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }\n@keyframes hb-kb4-type { from { width: 0; } }\n@keyframes hb-kb4-show { from { opacity: 0; transform: translate3d(-6px, 0, 0); } to { opacity: 1; transform: none; } }\n@keyframes hb-kb4-caret { 50% { opacity: 0; } }\n@keyframes hb-kb4-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }\n@keyframes hb-kb4-in { from { opacity: 0; } to { opacity: 1; } }\n@keyframes hb-kb4-out { from { opacity: 1; } to { opacity: 0; } }\n@keyframes hb-kb4-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }\n@keyframes hb-kb4-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }\n@keyframes hb-kb4-pop { from { transform: scale(0); } to { transform: scale(1); } }\n.hb-kb4 {\n  --hb-kb4-accent: #f59e0b;\n  --hb-kb4-mono: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\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-kb4 *, .hb-kb4 *::before, .hb-kb4 *::after { box-sizing: border-box; }\n.hb-kb4::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background: radial-gradient(45% 35% at 85% 0%, color-mix(in srgb, var(--hb-kb4-accent) 11%, transparent), transparent 70%);\n}\n.hb-kb4-in { position: relative; max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8cqi, 104px) clamp(16px, 5cqi, 48px); }\n.hb-kb4-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(28px, 4cqi, 44px); animation: hb-kb4-rise .7s cubic-bezier(.2, .8, .2, 1) backwards; }\n.hb-kb4-head > div:first-child { max-width: 620px; }\n.hb-kb4-eyebrow { margin: 0 0 14px; color: #8f8f8f; font-family: var(--hb-kb4-mono); font-size: 12.5px; }\n.hb-kb4-eyebrow b { color: var(--hb-kb4-accent); font-weight: 500; }\n.hb-kb4-title { margin: 0; font-size: clamp(28px, 4.2cqi, 46px); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }\n.hb-kb4-sub { margin: 14px 0 0; color: #8f8f8f; font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }\n.hb-kb4-ctas { display: flex; flex: none; flex-wrap: wrap; gap: 10px; }\n.hb-kb4-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; color: #ededed; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s ease, transform .2s ease, border-color .2s ease; }\n.hb-kb4-btn:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .2); }\n.hb-kb4-btn[data-primary=\"true\"] { border-color: transparent; background: var(--hb-kb4-accent); color: #140d00; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -12px var(--hb-kb4-accent); }\n.hb-kb4-btn[data-primary=\"true\"]:hover { transform: translate3d(0, -1px, 0); filter: brightness(1.06); }\n.hb-kb4-btn:focus-visible { outline: 2px solid var(--hb-kb4-accent); outline-offset: 3px; }\n.hb-kb4-grid {\n  display: grid;\n  grid-template-columns: repeat(4, minmax(0, 1fr));\n  grid-template-areas: \"term term diff diff\" \"term term deploy git\" \"heat heat heat git\";\n  gap: 12px;\n}\n.hb-kb4-cell {\n  position: relative;\n  min-width: 0;\n  overflow: hidden;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 16px;\n  background: #0f0f0f;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);\n  animation: hb-kb4-rise .7s cubic-bezier(.2, .8, .2, 1) backwards;\n  animation-delay: calc(var(--hb-kb4-i, 0) * 70ms + 120ms);\n  transition: border-color .25s ease;\n}\n.hb-kb4-cell:hover { border-color: rgba(255, 255, 255, .16); }\n.hb-kb4-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .015); color: #8f8f8f; font-family: var(--hb-kb4-mono); font-size: 11.5px; }\n.hb-kb4-bar b { margin-left: auto; color: #6f6f6f; font-weight: 400; }\n.hb-kb4-dots { display: flex; gap: 6px; }\n.hb-kb4-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }\n.hb-kb4-cell:hover .hb-kb4-dots i:nth-child(1) { background: #ff5f57; }\n.hb-kb4-cell:hover .hb-kb4-dots i:nth-child(2) { background: #febc2e; }\n.hb-kb4-cell:hover .hb-kb4-dots i:nth-child(3) { background: #28c840; }\n.hb-kb4-body { padding: 16px; }\n.hb-kb4-cap { padding: 14px 16px 16px; }\n.hb-kb4-cap h3 { margin: 0; font-size: 14px; font-weight: 600; }\n.hb-kb4-cap p { margin: 3px 0 0; color: #8f8f8f; font-size: 12.5px; line-height: 1.5; }\n.hb-kb4-term { grid-area: term; display: flex; flex-direction: column; background: #0b0b0b; }\n.hb-kb4-term .hb-kb4-body { flex: 1; font-family: var(--hb-kb4-mono); font-size: 12.5px; line-height: 1.95; }\n.hb-kb4-cmd { display: flex; align-items: center; white-space: nowrap; }\n.hb-kb4-cmd > span:first-child { color: var(--hb-kb4-accent); margin-right: 1ch; }\n.hb-kb4-typed { display: inline-block; overflow: hidden; width: calc(var(--hb-kb4-n) * 1ch); animation: hb-kb4-type 1.2s steps(var(--hb-kb4-n)) .6s both; }\n.hb-kb4-line { display: flex; justify-content: space-between; gap: 12px; color: #a1a1a1; white-space: nowrap; animation: hb-kb4-show .35s ease both; animation-delay: calc(var(--hb-kb4-j) * 420ms + 2s); }\n.hb-kb4-line span { overflow: hidden; text-overflow: ellipsis; }\n.hb-kb4-line small { flex: none; color: #5f5f5f; font-size: 12px; }\n.hb-kb4-line[data-tone=\"success\"] { color: #4ade80; }\n.hb-kb4-line[data-tone=\"success\"] small { color: #4ade80; }\n.hb-kb4-line[data-tone=\"muted\"] { color: #6f6f6f; }\n.hb-kb4-caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 1ch; background: #ededed; vertical-align: -3px; animation: hb-kb4-caret 1s steps(1) infinite; }\n.hb-kb4-last { animation: hb-kb4-show .35s ease both; animation-delay: calc(var(--hb-kb4-j) * 420ms + 2s); }\n.hb-kb4-last > span:first-child { color: var(--hb-kb4-accent); }\n.hb-kb4-diff { grid-area: diff; }\n.hb-kb4-stat { display: inline-flex; gap: 8px; }\n.hb-kb4-stat em { font-style: normal; color: #4ade80; }\n.hb-kb4-stat i { font-style: normal; color: #fb7185; }\n.hb-kb4-code { padding: 8px 0; font-family: var(--hb-kb4-mono); font-size: 11.5px; line-height: 1.85; }\n.hb-kb4-dl { display: grid; grid-template-columns: 34px 14px minmax(0, 1fr); padding-right: 12px; white-space: pre; animation: hb-kb4-show .4s ease both; animation-delay: calc(var(--hb-kb4-j) * 70ms + 500ms); }\n.hb-kb4-dl > span { overflow: hidden; text-overflow: ellipsis; }\n.hb-kb4-dl b { color: #4a4a4a; font-weight: 400; text-align: right; padding-right: 10px; }\n.hb-kb4-dl i { color: #5f5f5f; font-style: normal; }\n.hb-kb4-dl[data-k=\"add\"] { background: linear-gradient(90deg, rgba(34, 197, 94, .14) 50%, transparent 50%) 0 0 / 200% 100% no-repeat; animation: hb-kb4-show .4s ease both, hb-kb4-sweep .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--hb-kb4-j) * 70ms + 500ms), calc(var(--hb-kb4-j) * 70ms + 700ms); color: #bbf7d0; }\n.hb-kb4-dl[data-k=\"add\"] i { color: #4ade80; }\n.hb-kb4-dl[data-k=\"del\"] { background: rgba(244, 63, 94, .1); color: #fecdd3; text-decoration: line-through; text-decoration-color: rgba(244, 63, 94, .4); }\n.hb-kb4-dl[data-k=\"del\"] i { color: #fb7185; }\n.hb-kb4-dl[data-k=\"ctx\"] { color: #8f8f8f; }\n.hb-kb4-deploy { grid-area: deploy; display: flex; flex-direction: column; }\n.hb-kb4-steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }\n.hb-kb4-steps li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; }\n.hb-kb4-steps li > span:nth-child(2) { color: #d4d4d4; }\n.hb-kb4-steps small { color: #5f5f5f; font-family: var(--hb-kb4-mono); font-size: 11px; }\n.hb-kb4-ok { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(34, 197, 94, .16); color: #4ade80; }\n.hb-kb4-run { position: relative; display: grid; place-items: center; width: 16px; height: 16px; }\n.hb-kb4-run > * { grid-area: 1 / 1; }\n.hb-kb4-run svg:first-child { animation: hb-kb4-out .2s ease 4.2s both; }\n.hb-kb4-run .hb-kb4-ok { animation: hb-kb4-pop .35s cubic-bezier(.34, 1.56, .64, 1) 4.2s both; }\n.hb-kb4-prog { height: 4px; margin: 12px 0 4px; overflow: hidden; border-radius: 4px; background: #1d1d1d; }\n.hb-kb4-prog i { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--hb-kb4-accent) 50%, #111), var(--hb-kb4-accent)); transform-origin: left; animation: hb-kb4-fill 3.2s cubic-bezier(.4, 0, .2, 1) 1s both; }\n.hb-kb4-state { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 12px; }\n.hb-kb4-state > span { display: grid; }\n.hb-kb4-state > span > * { grid-area: 1 / 1; }\n.hb-kb4-building { color: var(--hb-kb4-accent); animation: hb-kb4-out .2s ease 4.2s both; }\n.hb-kb4-ready { display: inline-flex; align-items: center; gap: 6px; color: #4ade80; font-weight: 600; animation: hb-kb4-in .3s ease 4.2s both; }\n.hb-kb4-ready::before { content: \"\"; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }\n.hb-kb4-regions { display: flex; gap: 4px; }\n.hb-kb4-regions span { padding: 2px 6px; border-radius: 5px; background: #171717; color: #8f8f8f; font-family: var(--hb-kb4-mono); font-size: 10.5px; animation: hb-kb4-in .3s ease both; animation-delay: calc(var(--hb-kb4-j) * 150ms + 4.3s); }\n.hb-kb4-git { grid-area: git; display: flex; flex-direction: column; }\n.hb-kb4-graph { position: relative; display: flex; gap: 6px; padding: 14px 14px 0; }\n.hb-kb4-graph svg { flex: none; overflow: visible; }\n.hb-kb4-gline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; animation: hb-kb4-draw 1s cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(var(--hb-kb4-j) * 200ms + 400ms); }\n.hb-kb4-gdot { transform-box: fill-box; transform-origin: center; animation: hb-kb4-pop .35s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--hb-kb4-j) * 90ms + 700ms); }\n.hb-kb4-commits { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }\n.hb-kb4-commits li { display: flex; flex-direction: column; justify-content: center; height: 40px; min-width: 0; padding: 0 6px; border-radius: 8px; transition: background .15s ease; }\n.hb-kb4-commits li:hover { background: rgba(255, 255, 255, .04); }\n.hb-kb4-commits span { overflow: hidden; color: #d4d4d4; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }\n.hb-kb4-commits small { display: flex; gap: 6px; color: #5f5f5f; font-family: var(--hb-kb4-mono); font-size: 10.5px; }\n.hb-kb4-commits em { padding: 0 5px; border-radius: 4px; background: color-mix(in srgb, var(--hb-kb4-accent) 18%, transparent); color: var(--hb-kb4-accent); font-style: normal; }\n.hb-kb4-heat { grid-area: heat; }\n.hb-kb4-hgrid { display: grid; gap: 4px; padding: 14px 16px 0; }\n.hb-kb4-hrow { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 8px; }\n.hb-kb4-hrow > span { color: #6f6f6f; font-family: var(--hb-kb4-mono); font-size: 10.5px; }\n.hb-kb4-hcells { display: grid; grid-template-columns: repeat(36, minmax(0, 1fr)); gap: 3px; }\n.hb-kb4-hcells i { position: relative; height: 16px; border-radius: 3px; background: var(--c); animation: hb-kb4-in .4s ease both; animation-delay: calc(var(--hb-kb4-j) * 22ms + 600ms); transition: transform .15s ease, filter .15s ease; }\n.hb-kb4-hcells i:hover { z-index: 2; transform: scale(1.35); filter: brightness(1.3); }\n.hb-kb4-hcells i::after { content: attr(data-ms); position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; background: #1a1a1a; color: #ededed; font-family: var(--hb-kb4-mono); font-size: 9px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .12s ease; }\n.hb-kb4-hcells i:hover::after { opacity: 1; }\n.hb-kb4-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px 0; color: #6f6f6f; font-family: var(--hb-kb4-mono); font-size: 11px; }\n.hb-kb4-legend b { color: #ededed; font-weight: 500; }\n.hb-kb4-scale { display: inline-flex; align-items: center; gap: 3px; }\n.hb-kb4-scale i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }\n@container (max-width: 860px) {\n  .hb-kb4-head { flex-direction: column; align-items: flex-start; }\n  .hb-kb4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: \"term term\" \"diff diff\" \"deploy git\" \"heat heat\"; }\n}\n@container (max-width: 540px) {\n  .hb-kb4-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: \"term\" \"diff\" \"deploy\" \"git\" \"heat\"; }\n  .hb-kb4-hcells { grid-template-columns: repeat(18, minmax(0, 1fr)); }\n  .hb-kb4-hcells i:nth-child(n + 19) { display: none; }\n  .hb-kb4-term .hb-kb4-body { font-size: 11.5px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kb4 *, .hb-kb4 *::before, .hb-kb4 *::after { animation: none !important; transition: none !important; }\n  .hb-kb4-run svg:first-child, .hb-kb4-building { visibility: hidden; }\n}\n`;\n\nconst defaultLines: BentoTerminalLine[] = [\n  { text: \"Linking acme/web on main at 4f2a91c\", tone: \"muted\" },\n  { text: \"Installing dependencies\", meta: \"1.8s\" },\n  { text: \"Building 214 routes\", meta: \"4.2s\" },\n  { text: \"Running 1,206 checks\", meta: \"6.9s\" },\n  { text: \"Uploading 3.1 MB to 4 regions\", meta: \"0.6s\" },\n  { text: \"✓ Live at acme.app\", meta: \"38s\", tone: \"success\" },\n];\n\nconst defaultCommits: BentoTerminalCommit[] = [\n  { message: \"feat: cache user lookups at the edge\", sha: \"4f2a91c\", lane: 0, tag: \"prod\" },\n  { message: \"Merge pull request #482\", sha: \"b81e03d\", lane: 0 },\n  { message: \"fix: guard empty carts on checkout\", sha: \"7c9d4aa\", lane: 1 },\n  { message: \"chore: bump runtime to 26.1\", sha: \"2e6f118\", lane: 0 },\n  { message: \"feat: regional rate limits\", sha: \"91ab7f0\", lane: 2 },\n  { message: \"docs: deploy hooks guide\", sha: \"c03d5e2\", lane: 0 },\n];\n\nconst diffLines: { k: \"ctx\" | \"add\" | \"del\"; n: string; code: string }[] = [\n  { k: \"ctx\", n: \"41\", code: \"export async function getUser(id: string) {\" },\n  { k: \"del\", n: \"42\", code: \"  const user = await db.user.find(id);\" },\n  { k: \"add\", n: \"42\", code: \"  const hit = await kv.get(`user:${id}`);\" },\n  { k: \"add\", n: \"43\", code: \"  if (hit) return hit;\" },\n  { k: \"add\", n: \"44\", code: \"  const user = await db.user.find(id);\" },\n  { k: \"add\", n: \"45\", code: \"  await kv.set(`user:${id}`, user, { ex: 60 });\" },\n  { k: \"ctx\", n: \"46\", code: \"  return user;\" },\n];\n\nconst laneColors = [\"var(--hb-kb4-accent)\", \"#60a5fa\", \"#c084fc\"];\n\nfunction heatColor(ms: number) {\n  if (ms < 45) return \"#14532d\";\n  if (ms < 70) return \"#15803d\";\n  if (ms < 110) return \"#4d7c0f\";\n  if (ms < 160) return \"#b45309\";\n  return \"#b91c1c\";\n}\n\nfunction latency(row: number, col: number) {\n  let x = (row * 97 + col * 31 + 7) * 2654435761;\n  x = (x ^ (x >>> 13)) >>> 0;\n  const noise = (x % 1000) / 1000;\n  const base = [38, 52, 84, 66][row % 4];\n  const spike = col === 22 && row === 2 ? 140 : col === 23 && row === 2 ? 90 : 0;\n  return Math.round(base + noise * 40 + spike);\n}\n\nconst Check = () => (\n  <svg width=\"10\" height=\"10\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n    <path d=\"M3 8.5l3 3 7-7\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n  </svg>\n);\n\nexport function BentoTerminal({\n  eyebrow = \"acme\",\n  title = \"From commit to production in under a minute\",\n  subtitle = \"Push to main and watch it build, check and roll out to every region, with diffs, history and latency in one place.\",\n  primaryCta = { label: \"Start deploying\", href: \"#\" },\n  secondaryCta = { label: \"Read the CLI docs\", href: \"#\" },\n  command = \"hb deploy --prod\",\n  lines = defaultLines,\n  commits = defaultCommits,\n  regions = [\"iad1\", \"fra1\", \"gru1\", \"hnd1\"],\n  accent = \"#f59e0b\",\n  className,\n  style,\n  ...rest\n}: BentoTerminalProps) {\n  const rowH = 40;\n  const laneX = [10, 26, 42];\n  const shown = commits.slice(0, 6);\n  const graphH = shown.length * rowH;\n  const y = (i: number) => i * rowH + rowH / 2;\n  const branchPaths: { d: string; lane: number }[] = [];\n  shown.forEach((c, i) => {\n    if (c.lane === 0) return;\n    const top = Math.max(0, i - 1);\n    const bottom = Math.min(shown.length - 1, i + 1);\n    const x = laneX[c.lane];\n    branchPaths.push({\n      lane: c.lane,\n      d: `M${laneX[0]} ${y(top)} C${laneX[0]} ${y(top) + 16} ${x} ${y(i) - 20} ${x} ${y(i)} C${x} ${y(i) + 20} ${laneX[0]} ${y(bottom) - 16} ${laneX[0]} ${y(bottom)}`,\n    });\n  });\n\n  return (\n    <section\n      className={[\"hb-kb4\", className].filter(Boolean).join(\" \")}\n      style={{ \"--hb-kb4-accent\": accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-bento-terminal\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kb4-in\">\n        <header className=\"hb-kb4-head\">\n          <div>\n            {eyebrow ? (\n              <p className=\"hb-kb4-eyebrow\">\n                ~/{eyebrow} <b>$</b> {command}\n              </p>\n            ) : null}\n            <h2 className=\"hb-kb4-title\">{title}</h2>\n            {subtitle ? <p className=\"hb-kb4-sub\">{subtitle}</p> : null}\n          </div>\n          {primaryCta || secondaryCta ? (\n            <div className=\"hb-kb4-ctas\">\n              {primaryCta ? (\n                <a className=\"hb-kb4-btn\" data-primary=\"true\" href={primaryCta.href}>\n                  {primaryCta.label}\n                </a>\n              ) : null}\n              {secondaryCta ? (\n                <a className=\"hb-kb4-btn\" href={secondaryCta.href}>\n                  {secondaryCta.label}\n                </a>\n              ) : null}\n            </div>\n          ) : null}\n        </header>\n\n        <div className=\"hb-kb4-grid\">\n          <article className=\"hb-kb4-cell hb-kb4-term\" style={{ \"--hb-kb4-i\": 0 } as React.CSSProperties}>\n            <div className=\"hb-kb4-bar\">\n              <span className=\"hb-kb4-dots\" aria-hidden=\"true\">\n                <i />\n                <i />\n                <i />\n              </span>\n              zsh · {eyebrow}-web\n              <b>⌥ main</b>\n            </div>\n            <div className=\"hb-kb4-body\" role=\"log\" aria-label=\"Deploy output\">\n              <div className=\"hb-kb4-cmd\">\n                <span>$</span>\n                <span className=\"hb-kb4-typed\" style={{ \"--hb-kb4-n\": command.length } as React.CSSProperties}>\n                  {command}\n                </span>\n              </div>\n              {lines.map((l, j) => (\n                <div key={l.text} className=\"hb-kb4-line\" data-tone={l.tone ?? \"default\"} style={{ \"--hb-kb4-j\": j } as React.CSSProperties}>\n                  <span>\n                    {l.tone === \"success\" ? \"\" : \"› \"}\n                    {l.text}\n                  </span>\n                  {l.meta ? <small>{l.meta}</small> : null}\n                </div>\n              ))}\n              <div className=\"hb-kb4-last\" style={{ \"--hb-kb4-j\": lines.length } as React.CSSProperties}>\n                <span>$</span>\n                <span className=\"hb-kb4-caret\" aria-hidden=\"true\" />\n              </div>\n            </div>\n            <div className=\"hb-kb4-cap\">\n              <h3>One command, every region</h3>\n              <p>Builds are cached per route, so most deploys finish before your coffee does.</p>\n            </div>\n          </article>\n\n          <article className=\"hb-kb4-cell hb-kb4-diff\" style={{ \"--hb-kb4-i\": 1 } as React.CSSProperties}>\n            <div className=\"hb-kb4-bar\">\n              src/lib/users.ts\n              <b className=\"hb-kb4-stat\">\n                <em>+4</em>\n                <i>−1</i>\n              </b>\n            </div>\n            <div className=\"hb-kb4-code\" aria-label=\"Code diff\">\n              {diffLines.map((l, j) => (\n                <div key={`${l.k}-${l.n}-${j}`} className=\"hb-kb4-dl\" data-k={l.k} style={{ \"--hb-kb4-j\": j } as React.CSSProperties}>\n                  <b>{l.n}</b>\n                  <i>{l.k === \"add\" ? \"+\" : l.k === \"del\" ? \"−\" : \" \"}</i>\n                  <span>{l.code}</span>\n                </div>\n              ))}\n            </div>\n          </article>\n\n          <article className=\"hb-kb4-cell hb-kb4-deploy\" style={{ \"--hb-kb4-i\": 2 } as React.CSSProperties}>\n            <div className=\"hb-kb4-body\" style={{ display: \"flex\", flexDirection: \"column\", flex: 1 }}>\n              <ul className=\"hb-kb4-steps\">\n                <li>\n                  <span className=\"hb-kb4-ok\">\n                    <Check />\n                  </span>\n                  <span>Build</span>\n                  <small>12s</small>\n                </li>\n                <li>\n                  <span className=\"hb-kb4-ok\">\n                    <Check />\n                  </span>\n                  <span>Checks</span>\n                  <small>8s</small>\n                </li>\n                <li>\n                  <span className=\"hb-kb4-run\">\n                    <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n                      <circle cx=\"8\" cy=\"8\" r=\"6\" stroke={accent} strokeOpacity=\".3\" strokeWidth=\"2\" />\n                      <path d=\"M8 2a6 6 0 016 6\" stroke={accent} strokeWidth=\"2\" strokeLinecap=\"round\">\n                        <animateTransform attributeName=\"transform\" type=\"rotate\" from=\"0 8 8\" to=\"360 8 8\" dur=\"0.9s\" repeatCount=\"indefinite\" />\n                      </path>\n                    </svg>\n                    <span className=\"hb-kb4-ok\">\n                      <Check />\n                    </span>\n                  </span>\n                  <span>Promote</span>\n                  <small>18s</small>\n                </li>\n              </ul>\n              <div className=\"hb-kb4-prog\" aria-hidden=\"true\">\n                <i />\n              </div>\n              <div className=\"hb-kb4-state\">\n                <span>\n                  <span className=\"hb-kb4-building\">Rolling out…</span>\n                  <span className=\"hb-kb4-ready\">Ready</span>\n                </span>\n                <span className=\"hb-kb4-regions\">\n                  {regions.slice(0, 4).map((r, j) => (\n                    <span key={r} style={{ \"--hb-kb4-j\": j } as React.CSSProperties}>\n                      {r}\n                    </span>\n                  ))}\n                </span>\n              </div>\n            </div>\n          </article>\n\n          <article className=\"hb-kb4-cell hb-kb4-git\" style={{ \"--hb-kb4-i\": 3 } as React.CSSProperties}>\n            <div className=\"hb-kb4-graph\">\n              <svg width=\"52\" height={graphH} viewBox={`0 0 52 ${graphH}`} aria-hidden=\"true\">\n                <path className=\"hb-kb4-gline\" d={`M${laneX[0]} ${y(0)} L${laneX[0]} ${y(shown.length - 1)}`} pathLength={1} stroke={laneColors[0]} style={{ \"--hb-kb4-j\": 0 } as React.CSSProperties} />\n                {branchPaths.map((b, j) => (\n                  <path key={j} className=\"hb-kb4-gline\" d={b.d} pathLength={1} stroke={laneColors[b.lane]} style={{ \"--hb-kb4-j\": j + 1 } as React.CSSProperties} />\n                ))}\n                {shown.map((c, i) => (\n                  <circle\n                    key={c.sha}\n                    className=\"hb-kb4-gdot\"\n                    cx={laneX[c.lane]}\n                    cy={y(i)}\n                    r={i === 0 ? 5.5 : 4.5}\n                    fill={i === 0 ? laneColors[c.lane] : \"#0f0f0f\"}\n                    stroke={laneColors[c.lane]}\n                    strokeWidth=\"2\"\n                    style={{ \"--hb-kb4-j\": i } as React.CSSProperties}\n                  />\n                ))}\n              </svg>\n              <ul className=\"hb-kb4-commits\">\n                {shown.map((c) => (\n                  <li key={c.sha}>\n                    <span>{c.message}</span>\n                    <small>\n                      {c.sha}\n                      {c.tag ? <em>{c.tag}</em> : null}\n                    </small>\n                  </li>\n                ))}\n              </ul>\n            </div>\n            <div className=\"hb-kb4-cap\" style={{ marginTop: \"auto\" }}>\n              <h3>History you can read</h3>\n              <p>Every deploy maps to a commit you can roll back in one click.</p>\n            </div>\n          </article>\n\n          <article className=\"hb-kb4-cell hb-kb4-heat\" style={{ \"--hb-kb4-i\": 4 } as React.CSSProperties}>\n            <div className=\"hb-kb4-hgrid\" aria-hidden=\"true\">\n              {regions.slice(0, 4).map((r, row) => (\n                <div key={r} className=\"hb-kb4-hrow\">\n                  <span>{r}</span>\n                  <div className=\"hb-kb4-hcells\">\n                    {Array.from({ length: 36 }, (_, col) => {\n                      const ms = latency(row, col);\n                      return <i key={col} data-ms={`${ms} ms`} style={{ \"--c\": heatColor(ms), \"--hb-kb4-j\": col } as React.CSSProperties} />;\n                    })}\n                  </div>\n                </div>\n              ))}\n            </div>\n            <div className=\"hb-kb4-legend\">\n              <span>\n                p50 <b>58 ms</b> · p99 <b>184 ms</b> · last 36 hours\n              </span>\n              <span className=\"hb-kb4-scale\">\n                fast\n                {[30, 60, 90, 130, 200].map((m) => (\n                  <i key={m} style={{ \"--c\": heatColor(m) } as React.CSSProperties} />\n                ))}\n                slow\n              </span>\n            </div>\n            <div className=\"hb-kb4-cap\">\n              <h3>Latency, region by region</h3>\n            </div>\n          </article>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}