/* Hero "On-Chain Ecosystem Flow" (2026-11-23): pipeline + step story + transaction inspector. */
.wf { --wf-green: #00e676; --wf-cyan: #22d3ee; --wf-line: #232840; --wf-muted: oklch(0.78 0.018 262); --wf-faint: oklch(0.68 0.02 262);
  position: relative; width: 100%; padding: clamp(16px, 2.2vw, 24px); border-radius: 24px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 80% 0%, rgba(0, 230, 118, .08), transparent 60%), linear-gradient(180deg, #0c1020, #090c17);
  border: 1px solid var(--wf-line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04); }
.wf::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(0, 230, 118, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 230, 118, .05) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }

/* Header */
.wf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.wf-title { display: inline-flex; align-items: center; gap: 10px; font: 700 clamp(13px, 1.1vw, 15px)/1.2 var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.wf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wf-green); box-shadow: 0 0 12px var(--wf-green); }
.wf-head-r { display: flex; align-items: center; gap: 8px; }
.wf-block { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; font: 600 12px/1 var(--font-mono, monospace);
  color: var(--wf-muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--wf-line); font-variant-numeric: tabular-nums; }
.wf-block i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: wfPulse 1.6s infinite; }
.wf-play { min-height: 44px; padding: 0 16px; border-radius: 999px; font: 700 12px/1 var(--font-mono, monospace); cursor: pointer;
  color: var(--wf-green); background: rgba(0, 230, 118, .1); border: 1px solid rgba(0, 230, 118, .3); }
.wf-play:hover { background: rgba(0, 230, 118, .18); }

/* Pipeline */
.wf-pipe { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 22px 0 6px; }
.wf-rail { position: absolute; left: 8.333%; right: 8.333%; top: 30px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, #26304a 0 8px, transparent 8px 14px); }
.wf-rail i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 3px; background: linear-gradient(90deg, var(--wf-cyan), var(--wf-green));
  box-shadow: 0 0 12px rgba(0, 230, 118, .6); transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.wf-packet { position: absolute; top: 25px; left: calc(8.333% + var(--p) * 83.333%); width: 14px; height: 14px; margin-left: -7px; border-radius: 4px; transform: rotate(45deg);
  background: #fff; box-shadow: 0 0 0 3px rgba(0, 230, 118, .35), 0 0 18px var(--wf-green); transition: left .9s cubic-bezier(.2, .7, .2, 1); z-index: 0; }  /* travels on the rail, hides under the node it reaches */
.wf-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 4px 6px; background: none; border: 0; cursor: pointer; color: var(--wf-muted); min-height: 44px; }
.wf-hex { width: 60px; height: 60px; display: grid; place-items: center; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  background: linear-gradient(160deg, #1a2238, #0e1424); transition: background .3s, transform .3s; position: relative; }
.wf-hex::after { content: ""; position: absolute; inset: 2px; clip-path: inherit; background: #0d1222; z-index: -1; }
.wf-node .wf-ico { width: 24px; height: 24px; color: #8ea0c4; transition: color .3s; }
.wf-node.is-done .wf-hex { background: linear-gradient(160deg, rgba(0, 230, 118, .55), rgba(34, 211, 238, .35)); }
.wf-node.is-done .wf-ico { color: #7ff5b5; }
.wf-node.is-active .wf-hex { background: linear-gradient(160deg, #00ff87, #00b359); transform: scale(1.08); filter: drop-shadow(0 0 14px rgba(0, 230, 118, .6)); }
.wf-node.is-active .wf-hex::after { background: linear-gradient(160deg, #052e1a, #03160d); }
.wf-node.is-active .wf-ico { color: #00ff87; }
.wf-node-l { display: flex; flex-direction: column; align-items: center; gap: 3px; font: 600 13px/1.25 var(--font-sans, sans-serif); text-align: center; }
.wf-node-l b { font: 700 12px/1 var(--font-mono, monospace); color: var(--wf-faint); }
.wf-node.is-active .wf-node-l { color: #fff; }
.wf-node.is-active .wf-node-l b { color: var(--wf-green); }
.wf-node:focus-visible { outline: 2px solid var(--wf-green); outline-offset: 4px; border-radius: 12px; }

/* Body: story + inspector */
.wf-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
@media (min-width: 640px) { .wf-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wf-story, .wf-tx { border-radius: 18px; padding: 16px 18px; background: rgba(13, 17, 32, .85); border: 1px solid var(--wf-line); min-width: 0; animation: wfIn .45s ease-out; }
.wf-step { margin: 0; font: 600 12px/1 var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--wf-green); }
.wf-h { margin: 8px 0 0; font: 700 clamp(17px, 1.6vw, 20px)/1.25 var(--font-display, sans-serif); color: #fff; letter-spacing: -.01em; }
.wf-lead { margin: 6px 0 0; font: 400 14px/1.5 var(--font-sans, sans-serif); color: var(--wf-muted); }
.wf-sub { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.wf-sub li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font: 400 14px/1.5 var(--font-sans, sans-serif); color: #e5e7eb;
  opacity: 0; transform: translateY(6px); animation: wfIn .4s ease-out forwards; animation-delay: var(--d); }
.wf-check { width: 18px; height: 18px; margin-top: 2px; color: var(--wf-green); }
.wf-tx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed #2a3350;
  font: 700 12px/1.2 var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--wf-muted); }
.wf-tx-head span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.wf-tx-head svg { width: 15px; height: 15px; color: var(--wf-cyan); }
.wf-status { padding: 5px 9px; border-radius: 999px; color: var(--wf-green); background: rgba(0, 230, 118, .1); border: 1px solid rgba(0, 230, 118, .35); letter-spacing: .04em; }
.wf-tx dl { margin: 6px 0 0; }
.wf-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(35, 40, 64, .6); align-items: baseline; }
.wf-row:last-child { border-bottom: 0; }
.wf-row dt { font: 500 12px/1.4 var(--font-mono, monospace); color: var(--wf-faint); text-transform: uppercase; letter-spacing: .04em; }
.wf-row dd { margin: 0; font: 600 13px/1.45 var(--font-mono, monospace); color: #fff; overflow-wrap: anywhere; }
.wf-row dd code { font: inherit; color: var(--wf-cyan); }
.wf-note { margin: 10px 0 0; font: 400 12px/1.45 var(--font-sans, sans-serif); color: var(--wf-faint); }

@keyframes wfIn { to { opacity: 1; transform: none; } from { opacity: 0; transform: translateY(6px); } }
@keyframes wfPulse { 50% { opacity: .35; } }

@media (max-width: 479.98px) {
  .wf-hex { width: 48px; height: 48px; }
  .wf-node .wf-ico { width: 20px; height: 20px; }
  .wf-rail { top: 24px; } .wf-packet { top: 19px; }
  .wf-node-l { font-size: 12px; }
  .wf-row { grid-template-columns: 78px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .wf-rail i, .wf-packet, .wf-hex { transition: none; }
  .wf-sub li, .wf-story, .wf-tx { animation: none; opacity: 1; transform: none; }
  .wf-block i { animation: none; }
}

/* Validator band */
.wf-vals { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: rgba(13, 17, 32, .85); border: 1px solid var(--wf-line); }
.wf-vals-t { display: flex; align-items: center; gap: 8px; color: #fff; font: 700 13px/1.2 var(--font-sans, sans-serif); }
.wf-vals-t svg { width: 16px; height: 16px; color: var(--wf-green); flex: none; }
.wf-vals-grid { display: grid; grid-template-columns: repeat(15, 12px); gap: 5px; justify-content: start; }
.wf-vals-grid i { width: 12px; height: 12px; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); background: #1b2236; }
.wf-vals-grid i.on { background: var(--wf-green); box-shadow: 0 0 8px rgba(0, 230, 118, .6); animation: wfPulse 2.4s infinite; }
.wf-vals-l { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wf-vals-l li { padding: 5px 10px; border-radius: 999px; font: 600 12px/1.3 var(--font-mono, monospace); color: var(--wf-muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--wf-line); }
.wf-vals-l li:first-child { color: var(--wf-green); border-color: rgba(0, 230, 118, .35); }
@media (min-width: 900px) { .wf-vals { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 18px; } .wf-vals-l { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .wf-node-l { font-size: 12px; } .wf-hex { width: 44px; height: 44px; } .wf-rail { top: 22px; } .wf-packet { top: 17px; } }
@media (prefers-reduced-motion: reduce) { .wf-vals-grid i.on { animation: none; } }

@media (max-width: 419.98px) { .wf-hex { width: 40px; height: 40px; } .wf-node .wf-ico { width: 18px; height: 18px; } .wf-rail { top: 20px; } .wf-packet { top: 15px; } .wf-node-l { font-size: 12px; letter-spacing: -.01em; } .wf-node { padding: 0 1px 6px; } }
