<?php include("head.php"); ?>

<!-- ══ SECTION HTML ══ -->
<div class="mt-section" id="mt-miletruth">

  <!-- Stats Banner -->
  <div class="mt-banner">
    <div class="mt-stat">
      <span class="mt-stat-num" data-target="4" data-suffix="-6hrs">0</span>
      <span class="mt-stat-label">Advance Warning</span>
    </div>
    <div class="mt-stat">
      <span class="mt-stat-num" data-target="98" data-suffix="%">0</span>
      <span class="mt-stat-label">ETA Accuracy</span>
    </div>
    <div class="mt-stat">
      <span class="mt-stat-num" data-target="50" data-suffix="+">0</span>
      <span class="mt-stat-label">Data Variables</span>
    </div>
    <div class="mt-stat">
      <span class="mt-stat-num" data-target="30" data-suffix="%">0</span>
      <span class="mt-stat-label">Exception Reduction</span>
    </div>
  </div>

  <!-- Body -->
  <div class="mt-body">

    <!-- Header -->
    <div class="mt-header">
      <div class="mt-eyebrow">AI Intelligence</div>
      <h2 class="mt-title">Why <em>MileTruth</em><sup>™</sup> is Different</h2>
      <p class="mt-desc">Unlike generic AI tools, MileTruth™ is trained exclusively on logistics data — millions of deliveries, routes, exceptions, and outcomes. It thinks like a logistics expert because it was built to be one.</p>
    </div>

    <!-- Feature Cards -->
    <div class="mt-grid">

      <!-- 1 -->
      <div class="mt-card">
        <div class="mt-card-icon">
          <svg viewBox="0 0 24 24">
            <path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"/>
            <line x1="12" y1="9" x2="12" y2="13"/>
            <line x1="12" y1="17" x2="12.01" y2="17"/>
          </svg>
        </div>
        <h5 class="mt-card-name">Predictive Delay Detection</h5>
        <p class="mt-card-desc">AI analyses 50+ variables to predict delays 4–6 hours before they occur, giving you time to act.</p>
        <div class="mt-card-tag">Learn More</div>
      </div>

      <!-- 2 -->
      <div class="mt-card">
        <div class="mt-card-icon">
          <svg viewBox="0 0 24 24">
            <circle cx="12" cy="12" r="3"/>
            <path d="M19.07 4.93a10 10 0 010 14.14M4.93 4.93a10 10 0 000 14.14"/>
            <path d="M15.54 8.46a5 5 0 010 7.07M8.46 8.46a5 5 0 000 7.07"/>
          </svg>
        </div>
        <h5 class="mt-card-name">Smart Route Optimisation</h5>
        <p class="mt-card-desc">Real-time traffic, weather, and capacity data feed into dynamic routing that adapts on the fly.</p>
        <div class="mt-card-tag">Learn More</div>
      </div>

      <!-- 3 -->
      <div class="mt-card">
        <div class="mt-card-icon">
          <svg viewBox="0 0 24 24">
            <circle cx="12" cy="12" r="10"/>
            <polyline points="12 6 12 12 16 14"/>
          </svg>
        </div>
        <h5 class="mt-card-name">Accurate ETA Predictions</h5>
        <p class="mt-card-desc">Machine learning models trained on millions of deliveries provide 98% accurate arrival times.</p>
        <div class="mt-card-tag">Learn More</div>
      </div>

      <!-- 4 -->
      <div class="mt-card">
        <div class="mt-card-icon">
          <svg viewBox="0 0 24 24">
            <polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>
          </svg>
        </div>
        <h5 class="mt-card-name">Exception Management</h5>
        <p class="mt-card-desc">Automatic escalation protocols trigger when deliveries deviate from expected patterns.</p>
        <div class="mt-card-tag">Learn More</div>
      </div>

      <!-- 5 -->
      <div class="mt-card">
        <div class="mt-card-icon">
          <svg viewBox="0 0 24 24">
            <line x1="18" y1="20" x2="18" y2="10"/>
            <line x1="12" y1="20" x2="12" y2="4"/>
            <line x1="6" y1="20" x2="6" y2="14"/>
          </svg>
        </div>
        <h5 class="mt-card-name">Performance Analytics</h5>
        <p class="mt-card-desc">Deep insights into carrier performance, route efficiency, and cost optimisation opportunities.</p>
        <div class="mt-card-tag">Learn More</div>
      </div>

      <!-- 6 -->
      <div class="mt-card">
        <div class="mt-card-icon">
          <svg viewBox="0 0 24 24">
            <polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>
          </svg>
        </div>
        <h5 class="mt-card-name">Automated Recommendations</h5>
        <p class="mt-card-desc">AI suggests carrier selection, consolidation opportunities, and capacity planning adjustments.</p>
        <div class="mt-card-tag">Learn More</div>
      </div>

    </div><!-- /mt-grid -->

  </div><!-- /mt-body -->
</div><!-- /mt-section -->

<script>
(function () {
  var section = document.getElementById('mt-miletruth');
  if (!section) return;

  var fired = false;

  function activate() {
    if (fired) return;
    fired = true;
    section.classList.add('mt-live');
    animateCounters();
  }

  /* ── counter animation ── */
  function animateCounters() {
    section.querySelectorAll('.mt-stat-num[data-target]').forEach(function (el) {
      var target  = parseInt(el.dataset.target, 10);
      var suffix  = el.dataset.suffix || '';
      var start   = performance.now();
      var dur     = 1600;

      function tick(now) {
        var p    = Math.min((now - start) / dur, 1);
        var ease = 1 - Math.pow(2, -10 * p);
        var val  = Math.round(ease * target);
        el.textContent = val + suffix;
        if (p < 1) requestAnimationFrame(tick);
      }
      requestAnimationFrame(tick);
    });
  }

  if ('IntersectionObserver' in window) {
    var io = new IntersectionObserver(function (entries) {
      entries.forEach(function (e) { if (e.isIntersecting) { activate(); io.unobserve(e.target); } });
    }, { threshold: 0.1 });
    io.observe(section);
  }

  setTimeout(activate, 380);
})();
</script>