"use client";
import React from "react";
import EVSection, { EVStat, EVBadge, EVFeature, EVCardsTheme } from "./EVSection";
import WorkflowScene from "./WorkflowScene";
/* Cyan / Teal — matches the Optimization Engine scene palette. */
const THEME: EVCardsTheme = {
accent: "#00E5FF",
accent2: "#14B8A6",
glow: "rgba(0,229,255,0.18)",
};
/**
* Workflow 1 — Performance (hybrid split-screen).
*
* • Left — the PRODUCTION Optimization Engine Three.js scene (depot, trucks,
* route optimization, shaders, particles).
* • Right — a COMPACT DASHBOARD: a quick KPI row over short feature cards,
* sitting on the animated network backdrop (cyan/teal). Surfaces the
* key metrics fast, keeps copy short and reads well on mobile.
*/
const METRICS: EVStat[] = [
{ value: 42, suffix: "%", label: "Distance Saved" },
{ value: 28, suffix: "%", label: "Faster Routes" },
{ value: 31, suffix: "%", label: "Lower Cost" },
{ value: 99.9, decimals: 1, suffix: "%", label: "On-Time" },
];
const ico = (path: React.ReactNode) => (
);
const FEATURES: EVFeature[] = [
{
icon: ico(),
title: "Route Optimization",
desc: "AI selects the most efficient path across every zone.",
},
{
icon: ico(
<>
>,
),
title: "Distance Reduction",
desc: "Same volume delivered with a leaner, better-used fleet.",
},
{
icon: ico(
<>
>,
),
title: "Fleet Efficiency",
desc: "Higher utilisation and lower operating cost.",
},
{
icon: ico(
<>
>,
),
title: "SLA Performance",
desc: "Real-time correction keeps deliveries on time.",
},
];
const BADGES: EVBadge[] = [
{ value: "-42%", label: "DISTANCE SAVED" },
{ value: "-37%", label: "FEWER VEHICLES" },
];
export default function Workflow1() {
return (
}
metrics={METRICS}
features={FEATURES}
cardsHeading="Performance Insight"
cardsTheme={THEME}
badges={BADGES}
/>
);
}