<?php require APPROOT . '/app/Views/layouts/header.php'; ?>

<!-- HERO SECTION -->
<div class="relative bg-white dark:bg-gray-900 overflow-hidden -mt-8 pt-8">
    <div class="max-w-7xl mx-auto">
        <div class="relative z-10 pb-8 bg-white dark:bg-gray-900 sm:pb-16 md:pb-20 lg:max-w-2xl lg:w-full lg:pb-28 xl:pb-32">
            <svg class="hidden lg:block absolute right-0 inset-y-0 h-full w-48 text-white dark:text-gray-900 transform translate-x-1/2" fill="currentColor" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true">
                <polygon points="50,0 100,0 50,100 0,100"></polygon>
            </svg>

            <main class="mt-10 mx-auto max-w-7xl px-4 sm:mt-12 sm:px-6 md:mt-16 lg:mt-20 lg:px-8 xl:mt-28">
                <div class="sm:text-center lg:text-left">
                    <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-bold bg-blue-100 text-primary dark:bg-blue-900/30 dark:text-blue-400 mb-4">
                        <span class="w-2 h-2 rounded-full bg-primary mr-2 animate-pulse"></span>
                        Version 2.0 Now Live
                    </span>
                    <h1 class="text-4xl tracking-tight font-extrabold text-gray-900 dark:text-white sm:text-5xl md:text-6xl">
                        <span class="block xl:inline">Streamline your</span>
                        <span class="block text-primary">Technical Workflows</span>
                    </h1>
                    <p class="mt-3 text-base text-gray-500 dark:text-gray-400 sm:mt-5 sm:text-lg sm:max-w-xl sm:mx-auto md:mt-5 md:text-xl lg:mx-0">
                        The ultimate ERP for managing on-site technicians, secure client portals, and subcontracted partner agencies. Automate your jobcards with digital signatures and instant PDF dispatch.
                    </p>
                    <div class="mt-5 sm:mt-8 sm:flex sm:justify-center lg:justify-start">
                        <div class="rounded-md shadow">
                            <a href="<?php echo URLROOT; ?>/users/login" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-bold rounded-lg text-white bg-primary hover:bg-blue-700 focus:ring-4 focus:ring-primary/50 md:py-4 md:text-lg transition-all">
                                Access Portal
                            </a>
                        </div>
                        <div class="mt-3 sm:mt-0 sm:ml-3">
                            <a href="<?php echo URLROOT; ?>/users/register" class="w-full flex items-center justify-center px-8 py-3 border border-gray-300 dark:border-gray-700 text-base font-bold rounded-lg text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700 md:py-4 md:text-lg transition-all">
                                Register as Client
                            </a>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>
    <div class="lg:absolute lg:inset-y-0 lg:right-0 lg:w-1/2 bg-gray-50 dark:bg-gray-800 border-l border-gray-200 dark:border-gray-700/50 flex items-center justify-center p-8">
        <!-- Abstract Dashboard Graphic -->
        <div class="w-full max-w-lg bg-white dark:bg-gray-900 rounded-xl shadow-2xl overflow-hidden border border-gray-200 dark:border-gray-700">
            <div class="h-8 bg-gray-100 dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 flex items-center px-4 space-x-2">
                <div class="w-3 h-3 rounded-full bg-red-400"></div>
                <div class="w-3 h-3 rounded-full bg-yellow-400"></div>
                <div class="w-3 h-3 rounded-full bg-green-400"></div>
            </div>
            <div class="p-6 space-y-4">
                <div class="flex justify-between items-center mb-6">
                    <div class="h-6 w-1/3 bg-gray-200 dark:bg-gray-700 rounded"></div>
                    <div class="h-6 w-16 bg-primary/20 rounded"></div>
                </div>
                <div class="grid grid-cols-3 gap-4">
                    <div class="h-20 bg-gray-50 dark:bg-gray-800 rounded-lg border border-gray-100 dark:border-gray-700"></div>
                    <div class="h-20 bg-gray-50 dark:bg-gray-800 rounded-lg border border-gray-100 dark:border-gray-700"></div>
                    <div class="h-20 bg-gray-50 dark:bg-gray-800 rounded-lg border border-gray-100 dark:border-gray-700"></div>
                </div>
                <div class="h-32 bg-gray-50 dark:bg-gray-800 rounded-lg border border-gray-100 dark:border-gray-700 mt-4"></div>
            </div>
        </div>
    </div>
</div>

<!-- FEATURES SECTION -->
<div class="py-16 bg-gray-50 dark:bg-gray-800 border-t border-b border-gray-200 dark:border-gray-700/50">
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <div class="text-center">
            <h2 class="text-base font-extrabold text-primary tracking-wide uppercase">Enterprise Features</h2>
            <p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 dark:text-white sm:text-4xl">
                A better way to manage support.
            </p>
            <p class="mt-4 max-w-2xl text-xl text-gray-500 dark:text-gray-400 mx-auto">
                Built for scale, security, and absolute operational clarity.
            </p>
        </div>

        <div class="mt-16">
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
                
                <!-- Feature 1 -->
                <div class="bg-white dark:bg-gray-900 rounded-xl p-6 shadow-sm border border-gray-200 dark:border-gray-700 transition-transform hover:-translate-y-1">
                    <div class="w-12 h-12 rounded-lg bg-blue-100 dark:bg-blue-900/30 text-primary flex items-center justify-center mb-4">
                        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
                    </div>
                    <h3 class="text-lg font-bold text-gray-900 dark:text-white mb-2">Automated PDFs</h3>
                    <p class="text-sm text-gray-500 dark:text-gray-400">Instantly generate and email beautifully formatted, co-branded PDF documents upon job completion.</p>
                </div>

                <!-- Feature 2 -->
                <div class="bg-white dark:bg-gray-900 rounded-xl p-6 shadow-sm border border-gray-200 dark:border-gray-700 transition-transform hover:-translate-y-1">
                    <div class="w-12 h-12 rounded-lg bg-emerald-100 dark:bg-emerald-900/30 text-emerald-600 dark:text-emerald-400 flex items-center justify-center mb-4">
                        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>
                    </div>
                    <h3 class="text-lg font-bold text-gray-900 dark:text-white mb-2">Partner Agencies</h3>
                    <p class="text-sm text-gray-500 dark:text-gray-400">White-label your system. Subcontractors get custom jobcard sequences and logo integration.</p>
                </div>

                <!-- Feature 3 -->
                <div class="bg-white dark:bg-gray-900 rounded-xl p-6 shadow-sm border border-gray-200 dark:border-gray-700 transition-transform hover:-translate-y-1">
                    <div class="w-12 h-12 rounded-lg bg-purple-100 dark:bg-purple-900/30 text-purple-600 dark:text-purple-400 flex items-center justify-center mb-4">
                        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"></path></svg>
                    </div>
                    <h3 class="text-lg font-bold text-gray-900 dark:text-white mb-2">Digital Signatures</h3>
                    <p class="text-sm text-gray-500 dark:text-gray-400">Allow clients and technicians to sign off on completed work directly on the technician's mobile device.</p>
                </div>

                <!-- Feature 4 -->
                <div class="bg-white dark:bg-gray-900 rounded-xl p-6 shadow-sm border border-gray-200 dark:border-gray-700 transition-transform hover:-translate-y-1">
                    <div class="w-12 h-12 rounded-lg bg-yellow-100 dark:bg-yellow-900/30 text-yellow-600 dark:text-yellow-500 flex items-center justify-center mb-4">
                        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg>
                    </div>
                    <h3 class="text-lg font-bold text-gray-900 dark:text-white mb-2">Military-Grade Security</h3>
                    <p class="text-sm text-gray-500 dark:text-gray-400">Protect sensitive client data with built-in Two-Factor Authentication (2FA) and brute-force lockout protection.</p>
                </div>

            </div>
        </div>
    </div>
</div>

<!-- WORKFLOW SECTION -->
<div class="py-16 bg-white dark:bg-gray-900">
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <div class="lg:text-center mb-12">
            <h2 class="text-3xl font-extrabold text-gray-900 dark:text-white sm:text-4xl">The Perfect Workflow</h2>
            <p class="mt-4 max-w-2xl text-lg text-gray-500 dark:text-gray-400 lg:mx-auto">See how a job moves seamlessly from creation to final invoice readiness.</p>
        </div>

        <div class="relative">
            <!-- Connecting Line -->
            <div class="hidden md:block absolute top-12 left-0 w-full h-1 bg-gray-200 dark:bg-gray-700 z-0"></div>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-10 relative z-10">
                <!-- Step 1 -->
                <div class="text-center">
                    <div class="w-24 h-24 mx-auto bg-white dark:bg-gray-800 border-4 border-gray-200 dark:border-gray-700 rounded-full flex items-center justify-center mb-4 shadow-sm relative">
                        <span class="absolute -top-2 -right-2 w-8 h-8 bg-primary text-white font-bold rounded-full flex items-center justify-center text-sm border-2 border-white dark:border-gray-900">1</span>
                        <svg class="w-10 h-10 text-primary" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path></svg>
                    </div>
                    <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-2">Create & Assign</h3>
                    <p class="text-sm text-gray-500 dark:text-gray-400 px-4">Admin creates a jobcard, links it to a client, and assigns it to an available technician. An email notification is instantly queued.</p>
                </div>

                <!-- Step 2 -->
                <div class="text-center">
                    <div class="w-24 h-24 mx-auto bg-white dark:bg-gray-800 border-4 border-gray-200 dark:border-gray-700 rounded-full flex items-center justify-center mb-4 shadow-sm relative">
                        <span class="absolute -top-2 -right-2 w-8 h-8 bg-primary text-white font-bold rounded-full flex items-center justify-center text-sm border-2 border-white dark:border-gray-900">2</span>
                        <svg class="w-10 h-10 text-primary" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>
                    </div>
                    <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-2">Execute Work</h3>
                    <p class="text-sm text-gray-500 dark:text-gray-400 px-4">The technician logs in on-site, starts the time tracker, records any materials used, and details the work performed.</p>
                </div>

                <!-- Step 3 -->
                <div class="text-center">
                    <div class="w-24 h-24 mx-auto bg-white dark:bg-gray-800 border-4 border-gray-200 dark:border-gray-700 rounded-full flex items-center justify-center mb-4 shadow-sm relative">
                        <span class="absolute -top-2 -right-2 w-8 h-8 bg-green-500 text-white font-bold rounded-full flex items-center justify-center text-sm border-2 border-white dark:border-gray-900">3</span>
                        <svg class="w-10 h-10 text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
                    </div>
                    <h3 class="text-xl font-bold text-gray-900 dark:text-white mb-2">Sign & Dispatch</h3>
                    <p class="text-sm text-gray-500 dark:text-gray-400 px-4">The client signs the tablet. The system generates a co-branded PDF and automatically emails it to all parties involved.</p>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- CTA SECTION -->
<div class="bg-primary dark:bg-blue-900 rounded-2xl max-w-7xl mx-auto my-16 overflow-hidden shadow-2xl relative">
    <div class="absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xNSkiLz48L3N2Zz4=')] [mask-image:linear-gradient(to_bottom,white,transparent)]"></div>
    <div class="px-6 py-12 md:py-16 md:px-12 text-center relative z-10">
        <h2 class="text-3xl font-extrabold text-white sm:text-4xl mb-4">
            Ready to upgrade your workflow?
        </h2>
        <p class="text-blue-100 text-lg mb-8 max-w-2xl mx-auto">
            Join the platform today. Clients can register directly, or administrators can securely onboard staff and partners from the matrix.
        </p>
        <div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4">
            <a href="<?php echo URLROOT; ?>/users/login" class="inline-flex justify-center items-center px-8 py-3 border border-transparent text-base font-bold rounded-lg text-primary bg-white hover:bg-gray-50 transition-colors shadow-sm">
                Login to Workspace
            </a>
            <a href="<?php echo URLROOT; ?>/pages/contact" class="inline-flex justify-center items-center px-8 py-3 border border-blue-300 text-base font-bold rounded-lg text-white hover:bg-blue-800 transition-colors">
                Contact Support
            </a>
        </div>
    </div>
</div>

<?php require APPROOT . '/app/Views/layouts/footer.php'; ?>