<!doctype html>
<html lang="en">
  <head>
    <link rel="stylesheet" href="/cesium/Widgets/widgets.css">
    <script src="/cesium/Cesium.js"></script>

    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/favicon.ico" />
    <meta name="theme-color" content="#000000" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="WINDO Digital Platform" />
    <title>WINDO Digital Platform</title>
    
    <!-- Tenant detection script - sets title and description immediately to prevent flash -->
    <script>
      (function() {
        var hostname = window.location.hostname;
        var title = 'WINDO Digital Platform'; // default from environment variable
        var description = 'Digital Platform '; // default
        
        // Find tenant by domain
        if (hostname.includes('dronecleaningcompany.io') || hostname.includes('dcc')) {
          title = 'WINDO Digital Platform';
          description = 'Drone Cleaning Company Portal';
        } else if (hostname.includes('windocleaning.com') || hostname.includes('windo')) {
          title = 'WINDO';
          description = 'WINDO Digital Platform';
        }
        
        document.title = title;
        
        // Update or create description meta tag
        var metaDescription = document.querySelector('meta[name="description"]');
        if (!metaDescription) {
          metaDescription = document.createElement('meta');
          metaDescription.name = 'description';
          document.head.appendChild(metaDescription);
        }
        metaDescription.content = description;
      })();
    </script>
    
    <!-- Cesium CSS from CDN -->
    <link rel="stylesheet" href="https://cesium.com/downloads/cesiumjs/releases/1.104/Build/Cesium/Widgets/widgets.css" />
    <script type="module" crossorigin src="/assets/index-Dt7nxmC9.js"></script>
    <link rel="stylesheet" crossorigin href="/assets/index-BUgaUbVE.css">
  </head>

  <body>
    <div id="root"></div>
    <!-- Cesium is now imported via ES6 modules (npm) -->
  </body>
</html>
