"use client"; import React, { useEffect, useRef, useState } from "react"; import Image from "next/image"; import gsap from "gsap"; import { ScrollTrigger } from "gsap/ScrollTrigger"; import { motion, AnimatePresence, useInView, useMotionValue, useTransform, useSpring, animate, useReducedMotion, useScroll } from "framer-motion"; import { ScrollReveal, CountUp } from "@/animations/Reveal"; import QuantumStage from "./QuantumStage"; import MileTruthNetwork from "./MileTruthNetwork"; import ConnectedLogistics from "./ConnectedLogistics"; import ConnectedLogisticsSection from "./ConnectedLogisticsSection"; if (typeof window !== "undefined") { gsap.registerPlugin(ScrollTrigger); } /* ============================================================ Doormile Solutions — premium storytelling redesign (v2). Visual system: seven distinct ground textures (Dark Grey, Charcoal, Mesh Gradient, Soft Graph Texture, Radial Red Glow, Blueprint, Logistics Grid) so no two sections read as "black on black". Width matches the Hero/Footer near-edge-to-edge convention (calc(100% - 40px), no narrow content cap) with true split layouts for two sections. Every section carries a distinct layout identity and a motion sequence that explains what's happening, not just a fade-up. ============================================================ */ /* --------------------------------------------------------------- Icon primitives --------------------------------------------------------------- */ function Svg({ children }: { children: React.ReactNode }) { return ( {children} ); } const IconBag = ; const IconDriver = ; const IconRoute = ; const IconPin = ; const IconBoxCheck = ; const IconBox = ; const IconShieldCheck = ; const IconTruck = ; const IconLayers = ; const IconDatabase = ; const IconCpu = ; const IconBulb = ; const IconTrendUp = ; const IconTrendDown = ; const IconAlert = ; const IconTarget = ; const IconClock = ; const IconZap = ; const IconGlobe = ; const IconCheck = ; const IconX = ; const IconLock = ; /* --------------------------------------------------------------- Shared shell: backgrounds, section rhythm, floating cards --------------------------------------------------------------- */ type BgVariant = "grey" | "charcoal" | "graph" | "mesh" | "redglow" | "engine" | "logisticsgrid" | "white"; function Bg({ variant }: { variant: BgVariant }) { return