/* OpenHero source by Cristian Olivera Chávez. MIT License Copyright (c) 2026 Cristian Olivera Chávez Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ "use client"; import { useEffect, useRef, useState } from "react"; import { Icon } from "@iconify/react"; const navItems = [ { label: "Dual-Stream", href: "#dual" }, { label: "Telemetry", href: "#telemetry" }, { label: "Ledger", href: "#ledger" }, ]; const dualRows = [ ["01", "Invoice ingestion", "8 ms"], ["02", "Entity mapping", "12 ms"], ["03", "Liquidity sweep", "19 ms"], ["04", "Settlement route", "41 ms"], ]; const telemetryCards = [ { span: "tile wide tall reveal", tag: "Cash flow", code: "Q1 / LIVE", title: "Real-time liquidity telemetry", text: "Watch available cash shift across operating units as treasury logic reconciles every movement in near real time.", path1: "M0 56 L80 54 L136 58 L192 44 L248 48 L304 28 L360 36 L416 20 L472 26 L528 14 L584 24 L640 16 L704 20 L800 10", path2: "M0 72 L80 70 L136 74 L192 64 L248 66 L304 50 L360 56 L416 42 L472 46 L528 34 L584 40 L640 32 L704 36 L800 28", wide: true, }, { tag: "Approvals", code: "N-01", title: "Control tower routing", text: "Payment decisions are scored and routed with strict policy alignment and deterministic thresholds.", path1: "M0 62 L84 52 L172 58 L248 30 L332 38 L404 22 L520 18", }, { tag: "Compliance", code: "S-04", title: "Policy boundary checks", text: "Every rule is explicit, observable, and ready for audit without sacrificing operational speed.", path1: "M0 58 L70 58 L112 46 L168 46 L220 34 L292 34 L350 22 L420 22 L520 18", }, { span: "tile wide reveal", tag: "Entity consolidation", code: "M-09", title: "Multi-entity operating view", text: "One plane for subsidiaries, regions, and bank accounts, all condensed into a single financial instrument.", path1: "M0 62 L88 66 L146 50 L210 56 L282 32 L348 42 L420 22 L492 28 L574 16 L660 26 L800 14", wide: true, }, { tag: "Automation", code: "R-14", title: "Asynchronous ledger processing", text: "Queue depth remains visible while entries settle in the background with zero interface stutter.", path1: "M0 62 L96 62 L156 48 L220 48 L286 28 L352 28 L430 16 L520 16", }, { tag: "Routing", code: "R-21", title: "Global settlement lanes", text: "Transfer paths adapt to region, currency, and account structure while remaining traceable from start to finish.", path1: "M0 66 L66 58 L124 62 L186 40 L244 44 L310 24 L372 30 L440 16 L520 10", }, ]; export default function Page() { const heroVideoRef = useRef(null); const heroRef = useRef(null); const featuresRef = useRef(null); const [scrolled, setScrolled] = useState(false); useEffect(() => { const updateHero = () => { const progress = Math.min(window.scrollY / (window.innerHeight * 1.2), 1); const scale = 1.06 + progress * 0.12; const translate = progress * 18; if (heroVideoRef.current) { heroVideoRef.current.style.transform = `scale(${scale}) translateY(${translate}px)`; } }; const onScroll = () => { const scrollY = window.scrollY; setScrolled(scrollY > 50); if (heroRef.current) { heroRef.current.style.transform = `translateY(${scrollY * 0.4}px)`; heroRef.current.style.opacity = `${Math.max(0, 1 - scrollY / 600)}`; } if (featuresRef.current) { featuresRef.current.style.transform = `translateY(-${scrollY * 0.15}px)`; } updateHero(); }; const animateCount = (el: HTMLElement) => { const target = parseFloat(el.dataset.count || "0"); const duration = 1300; const start = performance.now(); const step = (now: number) => { const p = Math.min((now - start) / duration, 1); const eased = 1 - Math.pow(1 - p, 3); const value = target * eased; el.textContent = target >= 10 ? Math.round(value).toLocaleString() : value.toFixed(1); if (p < 1) requestAnimationFrame(step); }; requestAnimationFrame(step); }; const revealObserver = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.classList.add("in"); const countEls = entry.target.querySelectorAll("[data-count]"); countEls.forEach((el) => animateCount(el as HTMLElement)); } }); }, { threshold: 0.18 } ); document.querySelectorAll(".reveal, .tile").forEach((el) => revealObserver.observe(el)); const lines = document.querySelectorAll(".hero-title .line span"); const baseDelay = 110; lines.forEach((node, i) => { const el = node as HTMLElement; const text = el.dataset.text || el.textContent || ""; el.textContent = ""; const chars = text.split(""); chars.forEach((ch, index) => { setTimeout(() => { el.textContent += ch; el.classList.add("typed"); }, baseDelay + i * 180 + index * 18); }); }); updateHero(); onScroll(); window.addEventListener("scroll", onScroll, { passive: true }); return () => { window.removeEventListener("scroll", onScroll); revealObserver.disconnect(); }; }, []); const handleLiquidMove = (e: React.MouseEvent) => { const target = e.currentTarget; const rect = target.getBoundingClientRect(); const x = e.clientX - rect.left; const y = e.clientY - rect.top; target.style.setProperty("--x", `${x}px`); target.style.setProperty("--y", `${y}px`); }; return (
Flux Capital
Real-Time Financial Intelligence
Asynchronous ledger processing · fiscal-neural mapping

Flux Capital Real-Time Financial Intelligence

A precision-built B2B banking and invoice platform for multi-entity consolidation, liquidity telemetry, and fast-moving financial operations.

Clinical White Slate Blue Graphite Grey
{[ { label: "Liquidity", value: 428, small: "Real-time liquidity telemetry across all operating entities.", mode: "LIVE" }, { label: "Invoices", value: 12.8, small: "Asynchronous ledger processing with automated reconciliation.", mode: "SYNC" }, { label: "AUM", value: 94.2, small: "Global asset overlays projected from the dual-monitor workstation.", mode: "UTC" }, ].map((item) => (
{item.label} {item.mode}
0
{item.small}
))}
The Dual-Stream

Two operational streams, one financial surface.

Technical data sits on the left while monitored outcomes and invoice activity populate the right, like mirrored workstations inside a compliance cockpit.

System ledger

Every entity, invoice, and payment thread stays aligned.

Flux Capital manages multi-entity consolidation through a clean audit layer, visible state transitions, and deterministic control over cash movement.

{dualRows.map(([index, title, time]) => (
{index} {title} {time}
))}
Invoice stream A1
Pending approval
0
High-confidence invoice queue with controlled routing and automatic validation.
Disputed
0
Approved
0
Paid
0
Banking output B2
Global transfer volume
0
High-frequency movement tracked with subtle blue-laser clarity and locked audit trail integrity.
Telemetry Grid

Thin neon lines, dense state, no decorative noise.

Live charts and operational modules update like a high-frequency trading surface, with each tile reporting a different layer of system health.

{telemetryCards.map((card) => (
{card.tag} {card.code}

{card.title}

{card.text}

))}
{[ ["Latency", "11.2"], ["Uptime", "99.98"], ["Entities", "48"], ].map(([name, value]) => (
{name}
0
))}
The Ledger Footer

Capabilities rendered like a machine-readable settlement log.

The final layer presents the platform as code, with immutable clarity, compact syntax, and no ornamental framing.

{`01  invoice.ingest()
02  entity.consolidate()
03  balance.reconcile()
04  liquidity.telemetry()
05  payouts.route()
06  exceptions.flag()
07  approvals.sync()
08  settlement.commit()`}
              
{[ "async-ledger-processor | multi-entity sync | invoice capture | payment routing", "real-time treasury view | AML controls | ledger traceability | settlement queues", "corporate banking APIs | liquidity thresholds | reconciliation engine | audit export", "cross-border operations | role-based access | approval chains | deterministic logging", ].map((item) => (
{item}
))}
Flux Capital
Clinical White · Slate Blue · Graphite Grey
Real-Time Financial Intelligence
); }