"use client";

import React, { useState, useEffect, useRef } from "react";
import Link from "next/link";
import { useDispatch } from "react-redux";
import { setDemo } from "@/store/slices/uiSlice";
import { TestimonialsSection } from "@/components/testimonials";
import HomeTrusted from "@/components/sections/home/HomeTrusted";
import HomeAskAi from "@/components/sections/home/HomeAskAi";


// Shared Data
const CLIENTS = [
  "Apex Retail",
  "NovaBank",
  "MediCare+",
  "ShopKart",
  "EduPrime",
  "SwiftLogix",
  "FinEdge",
  "CareWell",
  "UrbanMart",
  "BlueOrbit",
  "PayNest",
  "GreenLeaf",
  "TechVault",
  "Zenith Pay",
  "CityHealth",
  "RetailOne",
  "Hexa Tours",
  "Brightline",
  "SafeFin",
  "QuickServe",
];

const FAQS = [
  {
    q: "How can WhatsApp API improve customer communication in logistics?",
    a: "WhatsApp API turns tracking into a conversation. Textspeed sends booking confirmations, pickup alerts, live tracking links, rider ETAs and delivery OTPs on WhatsApp API, and a chatbot answers 'where is my order?', address changes, reschedules and return requests instantly — which typically removes a large share of WISMO calls from your support queue.",
  },
  {
    q: "What is RCS and how does it benefit the logistics industry?",
    a: "RCS adds rich media to the default Android inbox. Shipment updates carry your logo, a verified blue tick, parcel images, maps and one-tap buttons like Track, Reschedule or Change Address. You can also share invoices, PODs and e-way bills directly, and because the sender is verified, customers are far less likely to fall for tracking-link phishing.",
  },
  {
    q: "How does SMS help logistics operations?",
    a: "SMS is the channel that always lands — on any handset, on any network, in any pin code. Textspeed uses it for delivery and return OTPs, secure 2FA on refunds, domestic and international shipment status alerts, and post-delivery feedback surveys. Transactional logistics alerts reach even DND numbers.",
  },
  {
    q: "How do voice and IVR solutions help in logistics?",
    a: "Voice saves the delivery. An IVR line lets consignees call and hear live shipment status; automated press-1 calls confirm COD orders and reschedule failed deliveries; and number masking lets riders and customers speak without exposing personal numbers. Voice reminders also work in 22+ Indian languages via text-to-speech.",
  },
  {
    q: "How does Textspeed reduce RTO and failed deliveries?",
    a: "Two ways. Before dispatch, every COD consignment gets a press-1 confirmation call plus a digital payment link, so unconfirmed orders never leave the hub. After a failed attempt, an NDR sequence fires automatically — WhatsApp API, then SMS, then a voice call — asking the customer to pick a new slot or correct the address, and pushes the reattempt straight back into your TMS.",
  },
  {
    q: "Can Textspeed integrate with our TMS, WMS or logistics management system?",
    a: "Yes. Textspeed connects to transport management systems, warehouse management systems, ERPs, courier aggregators, fleet/GPS platforms, e-commerce stores and CRMs through REST APIs and webhooks. Booking, scan, out-for-delivery, NDR and POD events trigger the right message automatically, in real time.",
  },
  {
    q: "Do you offer custom API development for logistics businesses?",
    a: "Yes. Our REST APIs, SMPP binds and delivery callbacks are built for high-throughput logistics traffic, and our team builds custom workflows around your scan codes, exception types and escalation rules — whether you run a single hub or a national network.",
  },
  {
    q: "Can the platform handle festive-season and sale-day volume spikes?",
    a: "Yes. High-TPS SMPP connectivity, multi-operator smart routing and automatic failover are built for burst traffic, backed by a 99.9% uptime SLA — so tracking alerts and delivery OTPs keep flowing on your busiest days.",
  },
  {
    q: "What happens if a tracking alert or delivery OTP cannot be delivered?",
    a: "Smart fallback takes over. The message cascades automatically from WhatsApp API to RCS, then SMS, then a voice call, then email, through a single API call with retry windows you control. You are billed only for the channels actually attempted, and every hop appears in one unified delivery log.",
  },
  {
    q: "Are your logistics messaging solutions secure and compliant?",
    a: "Yes. Textspeed is DLT-registered and TRAI-compliant, data is encrypted in transit and at rest, delivery OTPs and 2FA run on a secure priority route, and verified sender identities on WhatsApp API and RCS protect your customers from parcel-scam phishing. Every message is logged with a full audit trail.",
  },
];

const AI = [
  {
    name: "ChatGPT",
    desc: "Ask OpenAI's ChatGPT about Textspeed.",
    href: "https://chatgpt.com/?q=",
    icon: <circle cx="12" cy="12" r="9" stroke="#1868fb" strokeWidth="2" />,
  },
  {
    name: "Claude",
    desc: "Ask Anthropic's Claude about Textspeed.",
    href: "https://claude.ai/new?q=",
    icon: (
      <path
        d="M5 16l4-9 4 9M6.5 13h5M14 7h3.5a2.5 2.5 0 010 5H14v4"
        stroke="#1868fb"
        strokeWidth="2"
        strokeLinecap="round"
        strokeLinejoin="round"
      />
    ),
  },
  {
    name: "Gemini",
    desc: "Ask Google's Gemini about Textspeed.",
    href: "https://gemini.google.com/app",
    icon: (
      <path
        d="M12 3c1 5 4 8 9 9-5 1-8 4-9 9-1-5-4-8-9-9 5-1 8-4 9-9z"
        stroke="#1868fb"
        strokeWidth="2"
        strokeLinejoin="round"
      />
    ),
  },
  {
    name: "Perplexity",
    desc: "Ask Perplexity about Textspeed.",
    href: "https://www.perplexity.ai/search?q=",
    icon: (
      <g>
        <circle cx="11" cy="11" r="7" stroke="#1868fb" strokeWidth="2" />
        <path
          d="M20 20l-3-3"
          stroke="#1868fb"
          strokeWidth="2"
          strokeLinecap="round"
        />
      </g>
    ),
  },
  {
    name: "Grok",
    desc: "Ask xAI's Grok about Textspeed.",
    href: "https://grok.com/?q=",
    icon: (
      <path
        d="M5 19L19 5M9 5h10v10"
        stroke="#1868fb"
        strokeWidth="2"
        strokeLinecap="round"
        strokeLinejoin="round"
      />
    ),
  },
];

const AI_Q =
  "Is Textspeed a good messaging platform for logistics and courier companies in India — shipment tracking alerts, delivery OTP SMS, WhatsApp API updates, NDR automation, COD confirmation IVR and TMS integration?";

export default function LogisticsPage() {
  const dispatch = useDispatch();

  // 1. Live Consignment Tracker (Hero Section)
  const [trackerStep, setTrackerStep] = useState(0);
  const heroStepsRef = useRef(null);
  const trackerMsgs = [
    {
      c: "WhatsApp API",
      t: "Booking confirmed ✅ AWB <b>7841 2290 5518</b> · pickup scheduled today between 11 AM – 2 PM.",
    },
    {
      c: "SMS",
      t: "Your parcel has been <b>picked up</b> from Ambattur. Track live: tsp.in/t/78412290",
    },
    {
      c: "RCS",
      t: "In transit 🚚 Your shipment reached the <b>Bengaluru sorting centre</b>. Expected delivery: tomorrow by 6 PM.",
    },
    {
      c: "WhatsApp API + Voice",
      t: "Out for delivery 📦 Rider <b>Suresh K</b> will arrive by 2 PM. Share OTP <b>4821</b> at handover.",
    },
    {
      c: "SMS + Email",
      t: "Delivered ✅ OTP verified at 14:32. Proof of delivery emailed. How was the experience? ⭐",
    },
  ];

  useEffect(() => {
    let timer = null;
    const tick = () => {
      setTrackerStep((prev) => (prev + 1) % 5);
    };

    if ("IntersectionObserver" in window && heroStepsRef.current) {
      const observer = new IntersectionObserver(
        (entries) => {
          entries.forEach((e) => {
            if (e.isIntersecting) {
              if (!timer) timer = setInterval(tick, 2600);
            } else {
              if (timer) {
                clearInterval(timer);
                timer = null;
              }
            }
          });
        },
        { threshold: 0.2 },
      );
      observer.observe(heroStepsRef.current);
      return () => {
        observer.disconnect();
        if (timer) clearInterval(timer);
      };
    } else {
      timer = setInterval(tick, 2600);
      return () => clearInterval(timer);
    }
  }, []);

  // 2. Consignment Journey Timeline (Horizontal Rail)
  const [journeyStep, setJourneyStep] = useState(0);
  const journeyRailRef = useRef(null);
  const [journeyPaused, setJourneyPaused] = useState(false);

  const J = [
    {
      n: "Booking",
      ic: (
        <path
          d="M6 4h12v16l-6-3-6 3z"
          stroke="currentColor"
          strokeWidth="2"
          strokeLinejoin="round"
        />
      ),
      h: "Order booked & pickup scheduled",
      p: "The moment a shipment is created in your TMS, the consignee gets an AWB, a pickup window and a live tracking link — before a single call is made.",
      ch: "WhatsApp API",
      tm: "09:12",
      m: "Booking confirmed ✅ AWB <b>7841 2290 5518</b><br/>Pickup: today, 11 AM – 2 PM. Track your parcel anytime.",
      b: ["Track Shipment", "Reschedule"],
      k: ["Zero manual confirmation calls", "Tracking link from minute one"],
    },
    {
      n: "Pickup",
      ic: (
        <g>
          <path
            d="M12 3l8 4v10l-8 4-8-4V7z"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinejoin="round"
          />
          <path
            d="M4 7l8 4 8-4M12 11v10"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinejoin="round"
          />
        </g>
      ),
      h: "Picked up & scanned in",
      p: "A pickup scan fires an instant alert to the shipper and the consignee. Sellers see their stock move; customers see their order is real.",
      ch: "SMS",
      tm: "11:40",
      m: "Your parcel has been <b>picked up</b> from Ambattur, Chennai.<br/>Track live: tsp.in/t/78412290",
      b: [],
      k: ["Instant shipper confirmation", "Works on every handset"],
    },
    {
      n: "In transit",
      ic: (
        <g>
          <path
            d="M2 8h13v9H2zM15 11h4l3 3v3h-7z"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinejoin="round"
          />
          <circle cx="6" cy="19" r="1.7" fill="currentColor" />
          <circle cx="18" cy="19" r="1.7" fill="currentColor" />
        </g>
      ),
      h: "Hub scans & transit updates",
      p: "Every hub scan becomes a rich, verified update — with your logo, the current location and an ETA the customer can trust instead of calling to ask.",
      ch: "RCS",
      tm: "04:25",
      m: "In transit 🚚 Your shipment reached the <b>Bengaluru sorting centre</b>.<br/>Expected delivery: tomorrow by 6 PM.",
      b: ["Live Map", "Change Address"],
      k: ["Up to 45% fewer WISMO calls", "Verified branded sender"],
    },
    {
      n: "Out for delivery",
      ic: (
        <path
          d="M12 21s-7-4.6-9-9a5 5 0 019-3 5 5 0 019 3c-2 4.4-9 9-9 9z"
          stroke="currentColor"
          strokeWidth="2"
          strokeLinejoin="round"
        />
      ),
      h: "Rider assigned & on the way",
      p: "The consignee gets the rider's name, a live ETA and the delivery OTP — and a voice call goes out if they haven't opened the message, so nobody misses the doorbell.",
      ch: "WhatsApp API + Voice",
      tm: "08:05",
      m: "Out for delivery 📦 Rider <b>Suresh K</b> arrives by 2 PM.<br/>Share OTP <b>4821</b> at handover.",
      b: ["Track Rider", "Not Available"],
      k: ["Fewer missed doorsteps", "Number masking protects both sides"],
    },
    {
      n: "COD collection",
      ic: (
        <g>
          <rect
            x="2"
            y="6"
            width="20"
            height="13"
            rx="3"
            stroke="currentColor"
            strokeWidth="2"
          />
          <path d="M2 10h20" stroke="currentColor" strokeWidth="2" />
          <path
            d="M6 15h4"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinecap="round"
          />
        </g>
      ),
      h: "COD confirmed before dispatch",
      p: "Every cash-on-delivery consignment gets a press-1 confirmation call and a digital payment link. Orders nobody confirms never leave the hub — and never become an RTO.",
      ch: "Voice IVR + Payment link",
      tm: "07:30",
      m: '"To confirm your COD order of <b>₹2,499</b>, press 1. To pay online instead, press 2. To cancel, press 3."',
      b: ["Pay ₹2,499 Online"],
      k: ["Up to 32% lower RTO", "Cash converted to prepaid"],
    },
    {
      n: "NDR / reattempt",
      ic: (
        <g>
          <path
            d="M3 12a9 9 0 109-9"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinecap="round"
          />
          <path
            d="M3 4v4h4"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinecap="round"
            strokeLinejoin="round"
          />
        </g>
      ),
      h: "Failed delivery, saved automatically",
      p: "An NDR scan triggers an instant loop: ask why, offer a new slot, confirm the address, and push the reattempt back into the TMS — all before the parcel would have been marked for return.",
      ch: "WhatsApp API → SMS → Voice",
      tm: "16:10",
      m: "We missed you 😔 Your parcel couldn't be delivered.<br/>Pick a new slot and we'll reattempt tomorrow.",
      b: ["Reschedule", "Update Address"],
      k: ["Returns converted to reattempts", "Escalates channel by channel"],
    },
    {
      n: "Delivered & POD",
      ic: (
        <g>
          <path
            d="M12 3l7 3v6c0 4-3 7-7 9-4-2-7-5-7-9V6z"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinejoin="round"
          />
          <path
            d="M9 12l2 2 4-4"
            stroke="currentColor"
            strokeLinecap="round"
            strokeLinejoin="round"
          />
        </g>
      ),
      h: "Delivered, POD sent, feedback captured",
      p: "OTP verified at the door, proof of delivery emailed to the shipper, and a one-tap feedback survey sent to the customer while the handover is still fresh.",
      ch: "SMS + Email",
      tm: "14:32",
      m: "Delivered ✅ OTP verified at 14:32 by <b>Suresh K</b>.<br/>POD emailed to the shipper. Rate your delivery ⭐",
      b: ["Rate Delivery", "Download POD"],
      k: ["Automatic POD archive", "Real delivery NPS data"],
    },
  ];

  useEffect(() => {
    let timer = null;
    const tick = () => {
      if (!journeyPaused) {
        setJourneyStep((prev) => (prev + 1) % J.length);
      }
    };

    if ("IntersectionObserver" in window && journeyRailRef.current) {
      const observer = new IntersectionObserver(
        (entries) => {
          entries.forEach((e) => {
            if (e.isIntersecting) {
              if (!timer) timer = setInterval(tick, 4600);
            } else {
              if (timer) {
                clearInterval(timer);
                timer = null;
              }
            }
          });
        },
        { threshold: 0.15 },
      );
      observer.observe(journeyRailRef.current);
      return () => {
        observer.disconnect();
        if (timer) clearInterval(timer);
      };
    } else {
      timer = setInterval(tick, 4600);
      return () => clearInterval(timer);
    }
  }, [journeyPaused]);

  // 3. Testimonials Slider
  const testiRailRef = useRef(null);
  const handleTestiScroll = (dir) => {
    if (testiRailRef.current) {
      const card = testiRailRef.current.querySelector(".testi-card");
      if (card) {
        testiRailRef.current.scrollBy({
          left: dir * (card.offsetWidth + 22),
          behavior: "smooth",
        });
      }
    }
  };

  useEffect(() => {
    let testiAuto = setInterval(() => {
      if (testiRailRef.current) {
        const { scrollLeft, clientWidth, scrollWidth } = testiRailRef.current;
        if (scrollLeft + clientWidth >= scrollWidth - 10) {
          testiRailRef.current.scrollTo({ left: 0, behavior: "smooth" });
        } else {
          handleTestiScroll(1);
        }
      }
    }, 5000);

    const handleMouseEnter = () => clearInterval(testiAuto);
    const handleMouseLeave = () => {
      testiAuto = setInterval(() => {
        if (testiRailRef.current) {
          const { scrollLeft, clientWidth, scrollWidth } = testiRailRef.current;
          if (scrollLeft + clientWidth >= scrollWidth - 10) {
            testiRailRef.current.scrollTo({ left: 0, behavior: "smooth" });
          } else {
            handleTestiScroll(1);
          }
        }
      }, 5000);
    };

    const rail = testiRailRef.current;
    if (rail) {
      rail.addEventListener("mouseenter", handleMouseEnter);
      rail.addEventListener("mouseleave", handleMouseLeave);
    }

    return () => {
      if (rail) {
        rail.removeEventListener("mouseenter", handleMouseEnter);
        rail.removeEventListener("mouseleave", handleMouseLeave);
      }
      clearInterval(testiAuto);
    };
  }, []);

  // 4. FAQ Accordion State
  const [faqOpenIdx, setFaqOpenIdx] = useState(null);
  const toggleFaq = (idx) => {
    setFaqOpenIdx((prev) => (prev === idx ? null : idx));
  };

  // Render Marquee Chips
  const chipMarkup = (name, index) => (
    <div className="logo-chip" key={name + "-" + index}>
      <span className="d">{name[0]}</span>
      {name}
    </div>
  );

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify({
            "@context": "https://schema.org",
            "@type": "Service",
            serviceType: "Logistics & Supply Chain Communication Solutions",
            name: "Logistics Solutions",
            description:
              "Enterprise logistics communication software. Automate shipment tracking alerts, delivery OTPs, NDR reattempts, COD confirmations, and CRM/TMS integrations across SMS, WhatsApp, RCS, and Voice.",
            provider: {
              "@type": "Organization",
              name: "Textspeed Technology Private Limited",
              url: "https://textspeed.in",
            },
            areaServed: "IN",
            url: "https://textspeed.in/solutions/industry/logistics",
          }),
        }}
      />
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify({
            "@context": "https://schema.org",
            "@type": "BreadcrumbList",
            itemListElement: [
              {
                "@type": "ListItem",
                position: 1,
                name: "Home",
                item: "https://www.textspeed.in/",
              },
              {
                "@type": "ListItem",
                position: 2,
                name: "Solutions",
                item: "https://www.textspeed.in/solutions",
              },
              {
                "@type": "ListItem",
                position: 3,
                name: "Logistics",
                item: "https://www.textspeed.in/solutions/industry/logistics",
              },
            ],
          }),
        }}
      />
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify({
            "@context": "https://schema.org",
            "@type": "FAQPage",
            mainEntity: [
              {
                "@type": "Question",
                name: "How can WhatsApp API improve customer communication in logistics?",
                acceptedAnswer: {
                  "@type": "Answer",
                  text: "WhatsApp API turns tracking into a conversation. Textspeed sends booking confirmations, pickup alerts, live tracking links, rider ETAs and delivery OTPs on WhatsApp API, and a chatbot answers 'where is my order?', address changes, reschedules and return requests instantly — which typically removes a large share of WISMO calls from your support queue.",
                },
              },
              {
                "@type": "Question",
                name: "What is RCS and how does it benefit the logistics industry?",
                acceptedAnswer: {
                  "@type": "Answer",
                  text: "RCS adds rich media to the default Android inbox. Shipment updates carry your logo, a verified blue tick, parcel images, maps and one-tap buttons like Track, Reschedule or Change Address. You can also share invoices, PODs and e-way bills directly, and because the sender is verified, customers are far less likely to fall for tracking-link phishing.",
                },
              },
              {
                "@type": "Question",
                name: "How does SMS help logistics operations?",
                acceptedAnswer: {
                  "@type": "Answer",
                  text: "SMS is the channel that always lands — on any handset, on any network, in any pin code. Textspeed uses it for delivery and return OTPs, secure 2FA on refunds, domestic and international shipment status alerts, and post-delivery feedback surveys. Transactional logistics alerts reach even DND numbers.",
                },
              },
              {
                "@type": "Question",
                name: "How do voice and IVR solutions help in logistics?",
                acceptedAnswer: {
                  "@type": "Answer",
                  text: "Voice saves the delivery. An IVR line lets consignees call and hear live shipment status; automated press-1 calls confirm COD orders and reschedule failed deliveries; and number masking lets riders and customers speak without exposing personal numbers. Voice reminders also work in 22+ Indian languages via text-to-speech.",
                },
              },
              {
                "@type": "Question",
                name: "How does Textspeed reduce RTO and failed deliveries?",
                acceptedAnswer: {
                  "@type": "Answer",
                  text: "Two ways. Before dispatch, every COD consignment gets a press-1 confirmation call plus a digital payment link, so unconfirmed orders never leave the hub. After a failed attempt, an NDR sequence fires automatically — WhatsApp API, then SMS, then a voice call — asking the customer to pick a new slot or correct the address, and pushes the reattempt straight back into your TMS.",
                },
              },
            ],
          }),
        }}
      />
      <style
        dangerouslySetInnerHTML={{
          __html: `
        /* ===================== LOGISTICS PAGE ===================== */
        @keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
        @keyframes lgDash{to{stroke-dashoffset:-100}}

        /* ----- HERO ----- */
        .lghero{position:relative;padding:calc(var(--h-head) + 46px) 0 58px;background:#fff;overflow:hidden}
        .lghero .hero-mesh .h1b{top:-220px;right:-40px}.lghero .hero-mesh .h2b{bottom:-180px;left:-70px}
        .lgh-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.02fr .98fr;gap:44px;align-items:center}
        .lgh-copy .eyebrow{margin-bottom:14px}
        .lgh-copy h1{font-size:clamp(2rem,4.2vw,3.1rem);line-height:1.09;letter-spacing:-.02em;margin-bottom:16px}
        .lgh-copy h1 .grad {
          background: linear-gradient(110deg,var(--blue),var(--blue-deep));
          -webkit-background-clip: text;
          background-clip: text;
          color: transparent;
        }
        .lgh-copy .sub{color:var(--slate);font-size:1.05rem;max-width:530px;margin-bottom:20px}
        .lgh-ticks{display:flex;flex-direction:column;gap:9px;margin-bottom:24px;list-style:none;padding-left:0}
        .lgh-ticks li{display:flex;gap:10px;align-items:center;font-size:.92rem;font-weight:600;color:var(--ink)}
        .lgh-ticks svg{width:17px;height:17px;color:var(--blue);flex:0 0 auto}
        .lgh-cta{display:flex;gap:13px;flex-wrap:wrap}

        /* live tracking card (hero visual) */
        .lg-track{position:relative;background:#fff;border:1px solid var(--blue-12);border-radius:22px;box-shadow:0 28px 66px rgba(24,104,251,.17);overflow:hidden}
        .lg-track::before{content:"";position:absolute;inset:-18px;border-radius:32px;background:radial-gradient(closest-side,var(--blue-12),transparent);z-index:-1;filter:blur(12px)}
        .lg-th{display:flex;align-items:center;gap:11px;padding:15px 18px;background:var(--navy);color:#fff}
        .lg-th .bx{width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.12);display:grid;place-items:center;flex:0 0 auto}
        .lg-th .bx svg{width:18px;height:18px;color:#8fb2ff}
        .lg-th b{display:block;font-family:var(--font-head);font-size:.9rem;line-height:1.2}
        .lg-th span{display:block;font-size:.7rem;color:#8fa9d6;font-family:var(--font-mono);letter-spacing:.05em}
        .lg-th .live{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:.66rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6ee7a0}
        .lg-th .live i{width:7px;height:7px;border-radius:50%;background:#22c55e;animation:bfP 1.6s infinite;font-style:normal}
        @keyframes bfP{0%{box-shadow:0 0 0 0 rgba(34,197,94,.5)}70%{box-shadow:0 0 0 7px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
        .lg-tb{padding:20px 18px}
        .lg-steps{position:relative;padding-left:26px}
        .lg-steps::before{content:"";position:absolute;left:9px;top:8px;bottom:8px;width:2px;background:var(--line)}
        .lg-fill{position:absolute;left:9px;top:8px;width:2px;background:var(--blue);height:0;transition:height .8s ease;border-radius:2px}
        .lg-st{position:relative;padding:9px 0;transition:.3s;opacity:.45}
        .lg-st::before{content:"";position:absolute;left:-22px;top:14px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--line);transition:.3s}
        .lg-st.on{opacity:1}
        .lg-st.on::before{border-color:var(--blue);background:var(--blue);box-shadow:0 0 0 4px var(--blue-12)}
        .lg-st.done::before{border-color:var(--ok);background:var(--ok)}
        .lg-st b{display:block;font-size:.86rem;color:var(--ink)}
        .lg-st span{display:block;font-size:.72rem;color:var(--slate);font-family:var(--font-mono)}
        .lg-msg{margin-top:14px;background:var(--bg-tint);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:.8rem;color:var(--ink);line-height:1.55;min-height:74px;transition:.3s}
        .lg-msg .ch{display:inline-flex;align-items:center;gap:5px;font-size:.6rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);background:var(--blue-08);border-radius:999px;padding:3px 8px;margin-bottom:6px}
        .lg-badge{position:absolute;z-index:4;background:#fff;border:1px solid var(--blue-12);border-radius:13px;padding:9px 13px;box-shadow:var(--shadow-blue);display:flex;align-items:center;gap:9px;animation:floaty 5s ease-in-out infinite}
        .lg-badge .bi{width:30px;height:30px;border-radius:999px;background:var(--blue-08);color:var(--blue);display:grid;place-items:center;flex:0 0 auto}
        .lg-badge .bi svg{width:16px;height:16px}
        .lg-badge b{font-family:var(--font-head);font-size:.92rem;display:block;line-height:1}
        .lg-badge span{font-size:.66rem;color:var(--slate)}

        /* ----- STAT BAR ----- */
        .lg-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:0;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-soft);overflow:hidden}
        .lg-s{text-align:center;padding:26px 14px;border-right:1px solid var(--line)}
        .lg-s:last-child{border-right:none}
        .lg-s .num{font-family:var(--font-head);font-weight:800;font-size:1.8rem;color:var(--blue);line-height:1}
        .lg-s .lbl{font-size:.78rem;color:var(--slate);margin-top:6px}

        /* ----- SEGMENTS ----- */
        .lg-seg{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
        .lg-sg{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 18px;transition:.26s;overflow:hidden}
        .lg-sg::after{content:"";position:absolute;left:0;bottom:0;height:3px;width:0;background:var(--blue);transition:.3s}
        .lg-sg:hover{transform:translateY(-5px);box-shadow:var(--shadow-blue);border-color:var(--blue-18)}
        .lg-sg:hover::after{width:100%}
        .lg-sg .ic{width:42px;height:42px;border-radius:12px;background:var(--blue-08);color:var(--blue);display:grid;place-items:center;margin-bottom:12px}
        .lg-sg .ic svg{width:21px;height:21px}
        .lg-sg b{display:block;font-size:.94rem;margin-bottom:5px}
        .lg-sg p{font-size:.79rem;color:var(--slate);line-height:1.55}

        /* ----- WAYBILL SERVICE CARDS (6) ----- */
        .lg-way{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
        .lg-w{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;transition:.28s}
        .lg-w:hover{transform:translateY(-6px);box-shadow:var(--shadow-blue);border-color:var(--blue-18)}
        .lg-wh{display:flex;align-items:center;gap:10px;padding:14px 18px;background:var(--bg-tint);border-bottom:1px dashed var(--line)}
        .lg-wh .ic{width:38px;height:38px;border-radius:11px;background:var(--blue);color:#fff;display:grid;place-items:center;flex:0 0 auto;box-shadow:var(--shadow-blue)}
        .lg-wh .ic svg{width:19px;height:19px}
        .lg-wh .cd{margin-left:auto;font-family:var(--font-mono);font-size:.64rem;letter-spacing:.1em;color:var(--slate-light);text-transform:uppercase}
        .lg-wh b{font-family:var(--font-head);font-size:1rem}
        .lg-wb{padding:20px 18px;flex:1;display:flex;flex-direction:column}
        .lg-wb>p{font-size:.85rem;color:var(--slate);margin-bottom:14px}
        .lg-wb ul{list-style:none;display:flex;flex-direction:column;gap:10px;flex:1;margin-bottom:14px;padding-left:0}
        .lg-wb li{display:flex;gap:9px;align-items:flex-start;font-size:.83rem;color:var(--slate);line-height:1.5}
        .lg-wb li svg{width:15px;height:15px;color:var(--blue);flex:0 0 auto;margin-top:3px}
        .lg-wb li b{color:var(--ink);font-weight:700}
        .lg-wb a{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:700;color:var(--blue);text-decoration:none;align-self:flex-start}
        .lg-wb a svg{width:14px;height:14px;transition:.2s}
        .lg-wb a:hover svg{transform:translateX(3px)}
        .lg-bar{display:flex;gap:2px;padding:0 18px 16px}
        .lg-bar i{display:block;height:22px;background:var(--ink);opacity:.13;border-radius:1px}
        .lg-bar i:nth-child(3n){width:3px}.lg-bar i:nth-child(3n+1){width:1px}.lg-bar i:nth-child(3n+2){width:2px}
        .lg-bar i:nth-child(5n){width:4px}
        .lg-w:hover .lg-bar i{opacity:.22}

        /* ----- CONSIGNMENT TIMELINE (horizontal) ----- */
        .lg-jr{background:var(--navy);color:#fff}
        .lg-jr .section-head h2,.lg-jr .section-head p{color:#fff}
        .lg-jr .section-head p{color:#ffffff !important}
        .lg-jr .eyebrow{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#9dc0ff}
        .lg-rail{position:relative;display:grid;grid-template-columns:repeat(7,1fr);gap:0;margin-bottom:28px}
        .lg-rail::before{content:"";position:absolute;left:6%;right:6%;top:22px;height:2px;background:rgba(255,255,255,.14)}
        .lg-rprog{position:absolute;left:6%;top:22px;height:2px;background:#7fb0ff;width:0;transition:width .6s ease;box-shadow:0 0 10px rgba(127,176,255,.6)}
        .lg-n{position:relative;z-index:2;background:none;border:none;cursor:pointer;font-family:var(--font-body);text-align:center;padding:0 4px;display:flex;flex-direction:column;align-items:center;gap:9px}
        .lg-n .dot{width:44px;height:44px;border-radius:13px;background:#0e1c42;border:1px solid rgba(255,255,255,.16);color:#8fa9d6;display:grid;place-items:center;transition:.3s}
        .lg-n .dot svg{width:20px;height:20px}
        .lg-n b{font-size:.76rem;font-weight:700;color:#8fa9d6;transition:.25s;line-height:1.35}
        .lg-n.on .dot{background:#1868FB;border-color:#1868FB;color:#fff;box-shadow:0 0 0 6px rgba(24,104,251,.2)}
        .lg-n.on b{color:#fff}
        .lg-n.past .dot{background:rgba(34,197,94,.18);border-color:rgba(34,197,94,.4);color:#6ee7a0}
        .lg-detail{display:grid;grid-template-columns:1fr 1fr;gap:24px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:26px;animation:bfFade2 .45s ease}
        @keyframes bfFade2{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
        .lg-dl h3{color:#fff;font-size:1.2rem;margin-bottom:8px}
        .lg-dl>p{color:#ffffff !important;font-size:.9rem;margin-bottom:14px}
        .lg-dl .kpis{display:flex;gap:8px;flex-wrap:wrap}
        .lg-dl .kpis span{font-size:.74rem;font-weight:700;color:#6ee7a0;background:rgba(34,197,94,.14);border-radius:999px;padding:5px 11px}
        .lg-dm{background:#fff;border-radius:14px;padding:16px;color:var(--ink);width:100%}
        .lg-dm .hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
        .lg-dm .hd .ch{font-size:.62rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);background:var(--blue-08);border-radius:999px;padding:4px 9px}
        .lg-dm .hd .tm{font-size:.68rem;color:var(--slate-light);font-family:var(--font-mono)}
        .lg-dm .bod{font-size:.86rem;line-height:1.6;color:var(--ink);text-align:left}
        .lg-dm .bod b{color:var(--ink)}
        .lg-dm .btns{display:flex;gap:7px;margin-top:11px}
        .lg-dm .btns span{flex:1;text-align:center;font-size:.72rem;font-weight:700;color:var(--blue);border:1px solid var(--blue-25);border-radius:8px;padding:7px}
        .lg-dm .btns span.solid{background:var(--blue);color:#fff;border-color:var(--blue)}

        /* ----- INTEGRATIONS ----- */
        .lg-int{display:grid;grid-template-columns:.9fr 1.1fr;gap:44px;align-items:center}
        .lg-int h2{font-size:clamp(1.6rem,3.1vw,2.3rem);margin-bottom:14px}
        .lg-int p{color:var(--slate);font-size:1rem;margin-bottom:16px}
        .lg-plat{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
        .lg-p{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 10px;text-align:center;transition:.25s}
        .lg-p:hover{transform:translateY(-4px);box-shadow:var(--shadow-blue);border-color:var(--blue-18)}
        .lg-p .pi{width:40px;height:40px;border-radius:11px;background:var(--blue-08);color:var(--blue);display:grid;place-items:center;margin:0 auto 9px}
        .lg-p .pi svg{width:20px;height:20px}
        .lg-p b{font-size:.82rem;display:block}
        .lg-p span{font-size:.67rem;color:var(--slate-light)}

        /* ----- WHY ----- */
        .lg-why{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
        .lg-y{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:26px;transition:.28s}
        .lg-y:hover{transform:translateY(-5px);box-shadow:var(--shadow-blue);border-color:var(--blue-18)}
        .lg-y .ic{width:48px;height:48px;border-radius:13px;background:var(--blue-08);color:var(--blue);display:grid;place-items:center;margin-bottom:14px}
        .lg-y .ic svg{width:24px;height:24px}
        .lg-y h4{font-size:1.02rem;margin-bottom:7px}
        .lg-y p{font-size:.87rem;color:var(--slate)}

        /* ----- responsive ----- */
        @media(max-width:1024px){
          .lgh-grid{grid-template-columns:1fr;gap:32px}
          .lg-stats{grid-template-columns:repeat(2,1fr)}
          .lg-s{border-bottom:1px solid var(--line)}
          .lg-s:nth-child(2n){border-right:none}
          .lg-seg{grid-template-columns:repeat(2,1fr)}
          .lg-way{grid-template-columns:1fr}
          .lg-rail{grid-template-columns:repeat(4,1fr);gap:18px 0}
          .lg-rail::before,.lg-rprog{display:none}
          .lg-detail{grid-template-columns:1fr}
          .lg-int{grid-template-columns:1fr;gap:26px}
          .lg-plat{grid-template-columns:repeat(3,1fr)}
          .lg-why{grid-template-columns:repeat(2,1fr)}
        }
        @media(max-width:640px){
          .lg-seg{grid-template-columns:1fr}
          .lg-why{grid-template-columns:1fr}
          .lg-plat{grid-template-columns:repeat(2,1fr)}
          .lg-rail{grid-template-columns:repeat(3,1fr)}
          .lgh-cta .btn{width:100%;justify-content:center}
          .lg-badge{display:none}
        }
      `,
        }}
      />

      {/* HERO SECTION */}
      <section className="lghero" id="top">
        <div className="hero-mesh">
          <span className="blob h1b"></span>
          <span className="blob h2b"></span>
        </div>
        <div className="hero-gridbg"></div>
        <div className="wrap lgh-grid">
          <div className="lgh-copy reveal">
            <span className="eyebrow">
              Solutions · Logistics, Courier &amp; Supply Chain
            </span>
            <h1>
              Messaging Solutions for the
              <br />
              <span className="grad">Logistics &amp; Delivery Industry</span>
            </h1>
            <p className="sub">
              Automate shipment tracking, delivery OTPs, NDR follow-ups, COD
              confirmations and driver coordination — across WhatsApp API, RCS,
              SMS, Voice, Email and smart fallback, from one platform that plugs
              straight into your TMS or WMS.
            </p>
            <ul className="lgh-ticks">
              <li>
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M6 12l4 4 8-9"
                    stroke="currentColor"
                    strokeWidth="2.4"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                </svg>
                Real-time shipment status notifications
              </li>
              <li>
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M6 12l4 4 8-9"
                    stroke="currentColor"
                    strokeWidth="2.4"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                </svg>
                Automated tracking links &amp; delivery OTPs
              </li>
              <li>
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M6 12l4 4 8-9"
                    stroke="currentColor"
                    strokeWidth="2.4"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                </svg>
                Cut RTO and failed deliveries with NDR automation
              </li>
              <li>
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M6 12l4 4 8-9"
                    stroke="currentColor"
                    strokeWidth="2.4"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                </svg>
                Collect delivery feedback automatically
              </li>
            </ul>
            <div className="lgh-cta">
              <button
                className="btn btn-primary"
                onClick={() => dispatch(setDemo(true))}
              >
                Schedule a Free Demo
                <svg viewBox="0 0 24 24" width="17" height="17" fill="none">
                  <path
                    d="M5 12h14M13 6l6 6-6 6"
                    stroke="currentColor"
                    strokeWidth="2.2"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                </svg>
              </button>
              <a className="btn btn-ghost" href="#services">
                Explore Our 6 Services
              </a>
            </div>
          </div>
          <div className="reveal d1" style={{ position: "relative" }}>
            <div className="lg-badge" style={{ top: "-4%", left: "-5%" }}>
              <span className="bi">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M3 12a9 9 0 109-9"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinecap="round"
                  />
                  <path
                    d="M3 4v4h4"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                </svg>
              </span>
              <span>
                <b>-32%</b>
                <span>RTO &amp; failed deliveries</span>
              </span>
            </div>
            <div
              className="lg-badge"
              style={{ bottom: "-4%", right: "-5%", animationDelay: "1.2s" }}
            >
              <span className="bi">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M13 2L4 14h7l-1 8 9-12h-7z"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                </svg>
              </span>
              <span>
                <b>-45%</b>
                <span>WISMO support calls</span>
              </span>
            </div>
            <div className="lg-track" ref={heroStepsRef}>
              <div className="lg-th">
                <span className="bx">
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M12 3l8 4v10l-8 4-8-4V7z"
                      stroke="currentColor"
                      strokeWidth="2"
                      strokeLinejoin="round"
                    />
                    <path
                      d="M4 7l8 4 8-4M12 11v10"
                      stroke="currentColor"
                      strokeWidth="2"
                      strokeLinejoin="round"
                    />
                  </svg>
                </span>
                <span>
                  <b>Consignment tracking</b>
                  <span>AWB 7841 2290 5518</span>
                </span>
                <span className="live">
                  <i></i>Live
                </span>
              </div>
              <div className="lg-tb">
                <div className="lg-steps" id="lgSteps">
                  <span
                    className="lg-fill"
                    id="lgFill"
                    style={{ height: `${trackerStep * 25}%` }}
                  ></span>
                  <div
                    className={`lg-st ${trackerStep >= 0 ? "on" : ""} ${trackerStep > 0 ? "done" : ""}`}
                    data-s="0"
                  >
                    <b>Order booked</b>
                    <span>Chennai Hub · 09:12</span>
                  </div>
                  <div
                    className={`lg-st ${trackerStep >= 1 ? "on" : ""} ${trackerStep > 1 ? "done" : ""}`}
                    data-s="1"
                  >
                    <b>Picked up</b>
                    <span>Ambattur · 11:40</span>
                  </div>
                  <div
                    className={`lg-st ${trackerStep >= 2 ? "on" : ""} ${trackerStep > 2 ? "done" : ""}`}
                    data-s="2"
                  >
                    <b>In transit</b>
                    <span>Bengaluru sorting centre · 04:25</span>
                  </div>
                  <div
                    className={`lg-st ${trackerStep >= 3 ? "on" : ""} ${trackerStep > 3 ? "done" : ""}`}
                    data-s="3"
                  >
                    <b>Out for delivery</b>
                    <span>Rider: Suresh K · 08:05</span>
                  </div>
                  <div
                    className={`lg-st ${trackerStep >= 4 ? "on" : ""} ${trackerStep > 4 ? "done" : ""}`}
                    data-s="4"
                  >
                    <b>Delivered</b>
                    <span>OTP verified · 14:32</span>
                  </div>
                </div>
                <div
                  className="lg-msg"
                  id="lgMsg"
                  dangerouslySetInnerHTML={{
                    __html: `<span class="ch">${trackerMsgs[trackerStep].c}</span><br/>${trackerMsgs[trackerStep].t}`,
                  }}
                ></div>
              </div>
            </div>
          </div>
        </div>
      </section>

      {/* TRUSTED BRANDS */}
      <HomeTrusted pageKey="logistics" />

      {/* RESULTS STATS */}
      <section className="section">
        <div className="wrap">
          <div className="section-head reveal">
            <span className="eyebrow">Results</span>
            <h2>Results we've helped logistics clients achieve</h2>
            <p>
              Fewer failed deliveries, fewer "where is my order?" calls, faster
              cash collection.
            </p>
          </div>
          <div className="lg-stats reveal d1">
            <div className="lg-s">
              <div className="num" data-count="1" data-suffix="B+">
                1B+
              </div>
              <div className="lbl">Messages delivered annually</div>
            </div>
            <div className="lg-s">
              <div className="num" data-count="99.9" data-suffix="%">
                99.9%
              </div>
              <div className="lbl">Platform uptime</div>
            </div>
            <div className="lg-s">
              <div className="num" data-count="8500" data-suffix="+">
                8,500+
              </div>
              <div className="lbl">Happy customers</div>
            </div>
            <div className="lg-s">
              <div className="num" data-count="70" data-suffix="%">
                70%
              </div>
              <div className="lbl">Manual follow-ups saved</div>
            </div>
            <div className="lg-s">
              <div className="num" data-count="24" data-suffix="hr">
                24 hrs
              </div>
              <div className="lbl">Onboarding &amp; go-live</div>
            </div>
          </div>
        </div>
      </section>

      {/* SEGMENTS */}
      <section className="section" style={{ background: "var(--bg-tint)" }}>
        <div className="wrap">
          <div className="section-head reveal">
            <span className="eyebrow">Who we serve</span>
            <h2>Every link in the supply chain</h2>
            <p>
              Courier companies, 3PL partners, freight operators, warehouses and
              last-mile fleets — configured for how your consignments actually
              move.
            </p>
          </div>
          <div className="lg-seg">
            <div className="lg-sg reveal">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M4 7h11v8H4zM15 10h4l1 3v2h-5z"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                  <circle cx="8" cy="17" r="1.7" fill="currentColor" />
                  <circle cx="17" cy="17" r="1.7" fill="currentColor" />
                </svg>
              </div>
              <b>Courier &amp; Express</b>
              <p>
                Pickup confirmations, tracking links, delivery OTPs and NDR
                follow-ups at parcel scale.
              </p>
            </div>
            <div className="lg-sg reveal d1">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M3 21h18M5 21V10h6v11M13 21V6h6v15"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <b>3PL &amp; Fulfilment</b>
              <p>
                Branded, white-label updates on behalf of every seller you ship
                for, from one API.
              </p>
            </div>
            <div className="lg-sg reveal d2">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <rect
                    x="3"
                    y="8"
                    width="18"
                    height="11"
                    rx="2"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <path
                    d="M8 8V5h8v3"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <b>Warehousing &amp; Inventory</b>
              <p>
                Inbound/outbound alerts, stock-dispatch notices and gate-pass
                OTPs for drivers.
              </p>
            </div>
            <div className="lg-sg reveal d3">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M2 8h13v9H2zM15 11h4l3 3v3h-7z"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                  <circle cx="6" cy="19" r="1.8" fill="currentColor" />
                  <circle cx="18" cy="19" r="1.8" fill="currentColor" />
                </svg>
              </div>
              <b>Freight &amp; Trucking</b>
              <p>
                Load assignment, e-way bill sharing, driver check-in calls and
                POD confirmations.
              </p>
            </div>
            <div className="lg-sg reveal">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M12 21s-7-4.6-9-9a5 5 0 019-3 5 5 0 019 3c-2 4.4-9 9-9 9z"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <b>Last-Mile Delivery</b>
              <p>
                Live rider ETA, address confirmation, delivery OTP and reattempt
                scheduling.
              </p>
            </div>
            <div className="lg-sg reveal d1">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M13 2L4 14h7l-1 8 9-12h-7z"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <b>Q-Commerce &amp; Hyperlocal</b>
              <p>
                Minute-level dispatch alerts, rider-on-the-way pings and instant
                delivery proof.
              </p>
            </div>
            <div className="lg-sg reveal d2">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M12 3v18M5 8l7-5 7 5"
                    stroke="currentColor"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                  <circle
                    cx="12"
                    cy="14"
                    r="4"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                </svg>
              </div>
              <b>Cold Chain &amp; Pharma</b>
              <p>
                Temperature-excursion alerts, chain-of-custody OTPs and
                time-critical escalations.
              </p>
            </div>
            <div className="lg-sg reveal d3">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <circle
                    cx="12"
                    cy="12"
                    r="9"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <path
                    d="M3 12h18M12 3a15 15 0 010 18M12 3a15 15 0 000 18"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                </svg>
              </div>
              <b>Cross-Border &amp; Shipping</b>
              <p>
                Customs-clearance updates, duty-payment reminders and
                international tracking alerts.
              </p>
            </div>
          </div>
        </div>
      </section>

      {/* 6 SERVICES */}
      <section className="section" id="services">
        <div className="wrap">
          <div className="section-head reveal">
            <span className="eyebrow">Our six services</span>
            <h2>Six services that move your logistics business</h2>
            <p>
              Each channel does a different job in the supply chain — and
              together they make sure no consignment, no customer and no rupee
              goes untracked.
            </p>
          </div>
          <div className="lg-way">
            {/* 1 WhatsApp API */}
            <div className="lg-w reveal">
              <div className="lg-wh">
                <span className="ic">
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M12 2a10 10 0 00-8.6 15l-1.3 4.9 5-1.3A10 10 0 1012 2z"
                      stroke="currentColor"
                      strokeWidth="2"
                      strokeLinejoin="round"
                    />
                  </svg>
                </span>
                <b>WhatsApp API</b>
                <span className="cd">SVC-01</span>
              </div>
              <div className="lg-wb">
                <p>
                  A live tracking channel your customer already has open — plus
                  a chatbot that answers "where is my order?" before it becomes
                  a ticket.
                </p>
                <ul>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Instant order confirmations</b> and status updates at
                      every hop.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Live tracking links</b> and rider location shared in
                      chat.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        stroke-width="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Self-service chatbot</b> for reschedules, address edits
                      and returns.
                    </span>
                  </li>
                </ul>
                <Link href="/platform/whatsapp/whatsapp-business-api">
                  Explore WhatsApp API{" "}
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M5 12h14M13 6l6 6-6 6"
                      stroke="currentColor"
                      strokeWidth="2.4"
                      strokeLinecap="round"
                      strokeLinejoin="round"
                    />
                  </svg>
                </Link>
              </div>
              <div className="lg-bar">
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
              </div>
            </div>

            {/* 2 RCS */}
            <div className="lg-w reveal d1">
              <div className="lg-wh">
                <span className="ic">
                  <svg viewBox="0 0 24 24" fill="none">
                    <rect
                      x="3"
                      y="3"
                      width="18"
                      height="18"
                      rx="4"
                      stroke="currentColor"
                      strokeWidth="2"
                    />
                    <path
                      d="M8 10h8M8 14h5"
                      stroke="currentColor"
                      strokeWidth="2"
                      strokeLinecap="round"
                    />
                  </svg>
                </span>
                <b>RCS Messaging</b>
                <span className="cd">SVC-02</span>
              </div>
              <div className="lg-wb">
                <p>
                  Turn a plain tracking SMS into a verified, branded card with a
                  map, a photo of the parcel and one-tap actions.
                </p>
                <ul>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Visually rich notifications</b> with images, buttons
                      and suggested replies.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Documents &amp; receipts</b> — invoices, PODs and e-way
                      bills shared directly.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        stroke-width="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Verified sender</b> — your logo and blue tick stop
                      tracking-link phishing.
                    </span>
                  </li>
                </ul>
                <Link href="/platform/rcs/rcs-messaging-service">
                  Explore RCS{" "}
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M5 12h14M13 6l6 6-6 6"
                      stroke="currentColor"
                      strokeWidth="2.4"
                      strokeLinecap="round"
                      strokeLinejoin="round"
                    />
                  </svg>
                </Link>
              </div>
              <div className="lg-bar">
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
              </div>
            </div>

            {/* 3 Bulk SMS */}
            <div className="lg-w reveal d2">
              <div className="lg-wh">
                <span className="ic">
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M4 5h16v10H8l-4 4z"
                      stroke="currentColor"
                      strokeWidth="2"
                      strokeLinejoin="round"
                    />
                    <path
                      d="M8 9h8M8 12h5"
                      stroke="currentColor"
                      strokeWidth="2"
                      strokeLinecap="round"
                    />
                  </svg>
                </span>
                <b>Bulk SMS &amp; OTP</b>
                <span className="cd">SVC-03</span>
              </div>
              <div className="lg-wb">
                <p>
                  The channel that always lands — on any handset, any network,
                  in any pin code your riders reach.
                </p>
                <ul>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Delivery &amp; return OTPs</b> — secure 2FA for
                      handover, returns and refunds.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Shipment status alerts</b> for domestic and
                      international consignments.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Feedback surveys</b> on the delivery experience, sent
                      the moment it's signed.
                    </span>
                  </li>
                </ul>
                <Link href="/platform/sms/promotional-sms">
                  Explore Bulk SMS{" "}
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M5 12h14M13 6l6 6-6 6"
                      stroke="currentColor"
                      strokeWidth="2.4"
                      strokeLinecap="round"
                      strokeLinejoin="round"
                    />
                  </svg>
                </Link>
              </div>
              <div className="lg-bar">
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
              </div>
            </div>

            {/* 4 Voice */}
            <div className="lg-w reveal">
              <div className="lg-wh">
                <span className="ic">
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M4 5c0 8 7 15 15 15l1-4-5-2-2 2a12 12 0 01-5-5l2-2-2-5z"
                      stroke="currentColor"
                      strokeWidth="2"
                      strokeLinejoin="round"
                    />
                  </svg>
                </span>
                <b>Voice &amp; IVR</b>
                <span className="cd">SVC-04</span>
              </div>
              <div className="lg-wb">
                <p>
                  The channel that saves the delivery. When a parcel is at the
                  door and nobody answers the app, a call still gets through.
                </p>
                <ul>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>IVR for live shipment updates</b> — customers call and
                      hear the latest status.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>COD &amp; NDR press-1 calls</b> — confirm the order or
                      reschedule before the reattempt.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Number masking</b> — riders and customers talk without
                      sharing personal numbers.
                    </span>
                  </li>
                </ul>
                <Link href="/platform/voice/obd-voice-call">
                  Explore Voice &amp; IVR{" "}
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M5 12h14M13 6l6 6-6 6"
                      stroke="currentColor"
                      strokeWidth="2.4"
                      strokeLinecap="round"
                      strokeLinejoin="round"
                    />
                  </svg>
                </Link>
              </div>
              <div className="lg-bar">
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
              </div>
            </div>

            {/* 5 Email */}
            <div className="lg-w reveal d1">
              <div className="lg-wh">
                <span className="ic">
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M4 6h16v12H4z"
                      stroke="currentColor"
                      strokeWidth="2"
                      strokeLinejoin="round"
                    />
                    <path
                      d="M4 7l8 6 8-6"
                      stroke="currentColor"
                      strokeWidth="2"
                      strokeLinejoin="round"
                    />
                  </svg>
                </span>
                <b>Email</b>
                <span className="cd">SVC-05</span>
              </div>
              <div className="lg-wb">
                <p>
                  The paper trail. Manifests, invoices, PODs and B2B shipment
                  reports that need to be filed, not just read.
                </p>
                <ul>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Booking &amp; shipment updates</b> with tracking links
                      and delivery estimates.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Invoices, PODs &amp; e-way bills</b> delivered and
                      archived automatically.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Client reports</b> — weekly SLA, TAT and exception
                      summaries for B2B accounts.
                    </span>
                  </li>
                </ul>
                <Link href="/platform/email/email-marketing">
                  Explore Email{" "}
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M5 12h14M13 6l6 6-6 6"
                      stroke="currentColor"
                      strokeWidth="2.4"
                      strokeLinecap="round"
                      strokeLinejoin="round"
                    />
                  </svg>
                </Link>
              </div>
              <div className="lg-bar">
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
              </div>
            </div>

            {/* 6 Fallback */}
            <div className="lg-w reveal d2">
              <div className="lg-wh">
                <span className="ic">
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M4 7h11l-3-3M20 17H9l3 3"
                      stroke="currentColor"
                      strokeWidth="2"
                      strokeLinecap="round"
                      strokeLinejoin="round"
                    />
                  </svg>
                </span>
                <b>Smart Fallback</b>
                <span className="cd">SVC-06</span>
              </div>
              <div className="lg-wb">
                <p>
                  The service that makes the other five bulletproof. A failed
                  delivery alert is a failed delivery — so no message is allowed
                  to drop.
                </p>
                <ul>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Automatic cascade</b> — WhatsApp API → RCS → SMS →
                      Voice → Email in one API call.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Pay per attempt</b> — billed only for the channels
                      actually used, not the whole chain.
                    </span>
                  </li>
                  <li>
                    <svg viewBox="0 0 24 24" fill="none">
                      <path
                        d="M6 12l4 4 8-9"
                        stroke="currentColor"
                        strokeWidth="2.4"
                        strokeLinecap="round"
                        strokeLinejoin="round"
                      />
                    </svg>
                    <span>
                      <b>Unified delivery log</b> — one audit trail across every
                      hop and every channel.
                    </span>
                  </li>
                </ul>
                <Link href="/pricing">
                  See Fallback Pricing{" "}
                  <svg viewBox="0 0 24 24" fill="none">
                    <path
                      d="M5 12h14M13 6l6 6-6 6"
                      stroke="currentColor"
                      strokeWidth="2.4"
                      strokeLinecap="round"
                      strokeLinejoin="round"
                    />
                  </svg>
                </Link>
              </div>
              <div className="lg-bar">
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
                <i></i>
              </div>
            </div>
          </div>
        </div>
      </section>

      {/* CONSIGNMENT TIMELINE JOURNEY */}
      <section className="section lg-jr" id="journey">
        <div className="wrap">
          <div className="section-head reveal">
            <span className="eyebrow">The consignment journey</span>
            <h2>Every hop triggers the right message</h2>
            <p>
              From booking to proof of delivery, each event in your TMS fires a
              message on the channel most likely to be read — automatically.
            </p>
          </div>
          <div
            className="lg-rail reveal d1"
            id="lgRail"
            ref={journeyRailRef}
            onMouseEnter={() => setJourneyPaused(true)}
            onMouseLeave={() => setJourneyPaused(false)}
          >
            <span
              className="lg-rprog"
              id="lgProg"
              style={{
                width: `${(journeyStep / (J.length - 1)) * 88}%`,
                display: "block",
              }}
            ></span>
            {J.map((step, idx) => {
              const isOn = idx === journeyStep;
              const isPast = idx < journeyStep;
              return (
                <button
                  key={step.n}
                  className={`lg-n ${isOn ? "on" : ""} ${isPast ? "past" : ""}`}
                  data-i={idx}
                  onClick={() => {
                    setJourneyStep(idx);
                    setJourneyPaused(true);
                    setTimeout(() => setJourneyPaused(false), 7000);
                  }}
                >
                  <span className="dot">
                    <svg viewBox="0 0 24 24" fill="none">
                      {step.ic}
                    </svg>
                  </span>
                  <b>{step.n}</b>
                </button>
              );
            })}
          </div>
          <div className="reveal d1" id="lgDetail">
            <div className="lg-detail">
              <div className="lg-dl">
                <h3>{J[journeyStep].h}</h3>
                <p>{J[journeyStep].p}</p>
                <div className="kpis">
                  {J[journeyStep].k.map((kpi, idx) => (
                    <span key={idx}>{kpi}</span>
                  ))}
                </div>
              </div>
              <div className="lg-dm">
                <div className="hd">
                  <span className="ch">{J[journeyStep].ch}</span>
                  <span className="tm">{J[journeyStep].tm}</span>
                </div>
                <div
                  className="bod"
                  dangerouslySetInnerHTML={{ __html: J[journeyStep].m }}
                ></div>
                {J[journeyStep].b.length > 0 && (
                  <div className="btns">
                    {J[journeyStep].b.map((btn, idx) => (
                      <span key={idx} className={idx === 0 ? "solid" : ""}>
                        {btn}
                      </span>
                    ))}
                  </div>
                )}
              </div>
            </div>
          </div>
        </div>
      </section>

      {/* INTEGRATIONS */}
      <section className="section">
        <div className="wrap lg-int">
          <div className="reveal">
            <span className="eyebrow">Integrations</span>
            <h2>
              Plugs into the systems
              <br />
              that run your fleet
            </h2>
            <p>
              Connect Textspeed to your TMS, WMS, ERP, courier aggregator or
              order-management system in days, not quarters. Booking, pickup,
              scan, out-for-delivery, NDR and POD events flow in through our
              APIs and webhooks — and the right message goes out instantly, with
              no operator in the loop.
            </p>
            <p>
              Running custom in-house software? Our REST APIs, SMPP binds and
              delivery callbacks are built for high-throughput logistics
              traffic, from a single hub to a national network.
            </p>
            <button
              className="btn btn-primary"
              onClick={() => dispatch(setDemo(true))}
            >
              Talk to an Integration Expert
            </button>
          </div>
          <div className="lg-plat reveal d1">
            <div className="lg-p">
              <div className="pi">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M2 8h13v9H2zM15 11h4l3 3v3h-7z"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                  <circle cx="6" cy="19" r="1.7" fill="currentColor" />
                  <circle cx="18" cy="19" r="1.7" fill="currentColor" />
                </svg>
              </div>
              <b>TMS</b>
              <span>Transport management</span>
            </div>
            <div className="lg-p">
              <div className="pi">
                <svg viewBox="0 0 24 24" fill="none">
                  <rect
                    x="3"
                    y="8"
                    width="18"
                    height="11"
                    rx="2"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <path
                    d="M3 12h18M8 8V5h8v3"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <b>WMS</b>
              <span>Warehouse systems</span>
            </div>
            <div className="lg-p">
              <div className="pi">
                <svg viewBox="0 0 24 24" fill="none">
                  <rect
                    x="3"
                    y="3"
                    width="7"
                    height="7"
                    rx="2"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <rect
                    x="14"
                    y="3"
                    width="7"
                    height="7"
                    rx="2"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <rect
                    x="3"
                    y="14"
                    width="7"
                    height="7"
                    rx="2"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <rect
                    x="14"
                    y="14"
                    width="7"
                    height="7"
                    rx="2"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                </svg>
              </div>
              <b>ERP</b>
              <span>SAP, Oracle &amp; more</span>
            </div>
            <div className="lg-p">
              <div className="pi">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M6 6h15l-1.5 9h-12z"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                  <circle cx="9" cy="20" r="1.5" fill="currentColor" />
                  <circle cx="17" cy="20" r="1.5" fill="currentColor" />
                </svg>
              </div>
              <b>E-commerce</b>
              <span>Shopify, Woo, Magento</span>
            </div>
            <div className="lg-p">
              <div className="pi">
                <svg viewBox="0 0 24 24" fill="none">
                  <circle
                    cx="12"
                    cy="10"
                    r="3"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <path
                    d="M12 21s-7-5.5-7-11a7 7 0 0114 0c0 5.5-7 11-7 11z"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <b>Fleet &amp; GPS</b>
              <span>Live rider tracking</span>
            </div>
            <div className="lg-p">
              <div className="pi">
                <svg viewBox="0 0 24 24" fill="none">
                  <circle
                    cx="9"
                    cy="8"
                    r="3"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <path
                    d="M3 20a6 6 0 0112 0M16 6a3 3 0 010 6M19 20a6 6 0 00-3-5.2"
                    stroke="currentColor"
                    strokeWidth="2"
                    stroke-linecap="round"
                  />
                </svg>
              </div>
              <b>CRM</b>
              <span>Zoho, Salesforce</span>
            </div>
            <div className="lg-p">
              <div className="pi">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M8 6l-5 6 5 6M16 6l5 6-5 6"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <b>REST API</b>
              <span>Custom workflows</span>
            </div>
            <div className="lg-p">
              <div className="pi">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M4 12h4l2-5 4 10 2-5h4"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <b>Webhooks</b>
              <span>Real-time scan events</span>
            </div>
          </div>
        </div>
      </section>

      {/* WHY LOGISTICS CHOOSES TEXTSPEED */}
      <section className="section" style={{ background: "var(--bg-tint)" }}>
        <div className="wrap">
          <div className="section-head reveal">
            <span className="eyebrow">
              Why logistics businesses choose Textspeed
            </span>
            <h2>Built for volume, speed and exceptions</h2>
            <p>
              Logistics messaging is not a campaign — it's infrastructure. We
              treat it that way.
            </p>
          </div>
          <div className="lg-why">
            <div className="lg-y reveal">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <rect
                    x="3"
                    y="3"
                    width="7"
                    height="7"
                    rx="2"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <rect
                    x="14"
                    y="3"
                    width="7"
                    height="7"
                    rx="2"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <rect
                    x="3"
                    y="14"
                    width="7"
                    height="7"
                    rx="2"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <rect
                    x="14"
                    y="14"
                    width="7"
                    height="7"
                    rx="2"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                </svg>
              </div>
              <h4>All six services, one panel</h4>
              <p>
                WhatsApp API, RCS, SMS, Voice, Email and fallback routing — one
                login, one API, one invoice.
              </p>
            </div>
            <div className="lg-y reveal d1">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M13 2L4 14h7l-1 8 9-12h-7z"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <h4>Built for burst volume</h4>
              <p>
                Festive-season and sale-day peaks handled with high-TPS SMPP and
                multi-operator routing.
              </p>
            </div>
            <div className="lg-y reveal d2">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M3 12a9 9 0 109-9"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinecap="round"
                  />
                  <path
                    d="M3 4v4h4"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <h4>NDR &amp; RTO automation</h4>
              <p>
                Turn every failed attempt into a reschedule instead of a return
                — automatically, within minutes.
              </p>
            </div>
            <div className="lg-y reveal">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <path
                    d="M12 3l7 3v6c0 4-3 7-7 9-4-2-7-5-7-9V6z"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinejoin="round"
                  />
                  <path
                    d="M9 12l2 2 4-4"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinecap="round"
                    strokeLinejoin="round"
                  />
                </svg>
              </div>
              <h4>DLT &amp; TRAI compliant</h4>
              <p>
                Tracking alerts, OTPs and PODs are transactional — delivered
                24×7 even to DND numbers.
              </p>
            </div>
            <div className="lg-y reveal d1">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <circle
                    cx="12"
                    cy="12"
                    r="9"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <path
                    d="M12 3a15 15 0 010 18M12 3a15 15 0 000 18M3 12h18"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                </svg>
              </div>
              <h4>Speaks every delivery language</h4>
              <p>
                Tamil, Hindi, Telugu and 20+ languages — plus text-to-speech IVR
                for riders and consignees.
              </p>
            </div>
            <div className="lg-y reveal d2">
              <div className="ic">
                <svg viewBox="0 0 24 24" fill="none">
                  <circle
                    cx="9"
                    cy="8"
                    r="3"
                    stroke="currentColor"
                    strokeWidth="2"
                  />
                  <path
                    d="M3 20a6 6 0 0112 0M16 6a3 3 0 010 6M19 20a6 6 0 00-3-5.2"
                    stroke="currentColor"
                    strokeWidth="2"
                    strokeLinecap="round"
                  />
                </svg>
              </div>
              <h4>24/7 expert support</h4>
              <p>
                A named account manager plus 50+ specialists — because parcels
                don't stop at 6 PM.
              </p>
            </div>
          </div>
        </div>
      </section>

      {/* TESTIMONIALS */}
      <TestimonialsSection
        title="Trusted by growing businesses across India"
        description="See why leading brands choose Textspeed for reliable customer communication."
      />

      <HomeAskAi pageKey="logistics" />

      {/* FAQ */}
      <section className="section faq">
        <div className="wrap">
          <div className="section-head reveal">
            <span className="eyebrow">FAQ</span>
            <h2>Logistics messaging — questions answered</h2>
            <p>
              What courier, 3PL and fleet operators ask before switching to
              Textspeed.
            </p>
          </div>
          <div className="faq-list">
            {FAQS.map((faq, idx) => {
              const isOpen = faqOpenIdx === idx;
              return (
                <div className={`faq-item ${isOpen ? "open" : ""}`} key={idx}>
                  <button className="faq-q" onClick={() => toggleFaq(idx)}>
                    <span>{faq.q}</span>
                    <span className="pm">
                      <svg viewBox="0 0 24 24" fill="none">
                        <path
                          d="M12 5v14M5 12h14"
                          stroke="currentColor"
                          strokeWidth="2.4"
                          strokeLinecap="round"
                        />
                      </svg>
                    </span>
                  </button>
                  <div
                    className="faq-a"
                    style={{
                      maxHeight: isOpen ? "440px" : "0",
                      transition: "max-height 0.35s ease",
                      overflow: "hidden",
                    }}
                  >
                    <p>{faq.a}</p>
                  </div>
                </div>
              );
            })}
          </div>
        </div>
      </section>


    </>
  );
}
