"use client"; import React from "react"; import EVSection, { EVStat, EVBadge, EVFeature, EVCardsTheme } from "./EVSection"; import WorkflowScene from "./WorkflowScene"; /* Red / Crimson — matches the Routing Engine (logistics brain) scene. */ const THEME: EVCardsTheme = { accent: "#E2354A", accent2: "#C01227", glow: "rgba(226,53,74,0.2)", }; /** * Workflow 2 — Innovation (hybrid split-screen). * * • Left — the PRODUCTION Routing Engine Three.js scene (city nodes, * buildings, multi-route generation, constraint evaluation). * • Right — a COMPACT DASHBOARD: a quick KPI row over short feature cards, * sitting on the animated network backdrop (red/crimson). Surfaces * the key metrics fast and keeps the section tight on mobile. */ const METRICS: EVStat[] = [ { value: 45, suffix: "ms", label: "Inference" }, { value: 12, suffix: "+", label: "Strategies" }, { value: 99.9, decimals: 1, suffix: "%", label: "SLA Met" }, { value: 24, suffix: "/7", label: "Adaptive" }, ]; const ico = (path: React.ReactNode) => ( {path} ); const FEATURES: EVFeature[] = [ { icon: ico( <> , ), title: "Generate Routes", desc: "Many strategies explored per dispatch window.", }, { icon: ico( <> , ), title: "Check Constraints", desc: "Battery, capacity, distance and time validated.", }, { icon: ico( <> , ), title: "Score & Compare", desc: "Plans ranked by total cost in parallel.", }, { icon: ico(), title: "Select Best Plan", desc: "SLA-first plan locked in and dispatched.", }, ]; const BADGES: EVBadge[] = [ { value: "45ms", label: "INFERENCE" }, { value: "100%", label: "SLA-FIRST" }, ]; export default function Workflow2() { return ( } metrics={METRICS} features={FEATURES} cardsHeading="AI Decision Engine" cardsTheme={THEME} badges={BADGES} /> ); }