<!DOCTYPE html>
<html lang="en">
<?php
$pagetitle = "Business Operating System | Run Your Entire Business From One Place | Nesvra";
include 'components/head.php';
?>

<body class="bg-white">

    <?php include 'components/navbar.php'; ?>

    <!-- ═══════════════════════════════════════ -->
    <!--  HERO                                   -->
    <!-- ═══════════════════════════════════════ -->

    <section class="relative max-h-[89dvh] h-fit w-full overflow-hidden">
        <div class="absolute inset-0 z-0">
            <div class="absolute inset-0 bg-black/40 z-10"></div>
            <img src="Asset/system-accounting.webp"
                class="w-full h-full object-cover mix-blend-luminosity opacity-90"
                style="background-attachment: fixed; background-position: center;"
                alt="Nesvra Business Operating System" />
        </div>

        <div class="relative z-20 h-full w-full max-w-8xl mx-auto px-4 md:px-16 pt-32 md:pt-44 pb-16 flex flex-col items-start text-left">

            <span class="font-mono text-[11px] font-bold tracking-[0.3em] text-brandOrange uppercase mb-4" data-aos="fade-right" data-aos-delay="100">
                Run the whole business · one platform you own
            </span>

            <h1 data-aos="fade-right" data-aos-delay="100"
                class="max-w-4xl text-4xl md:text-5xl font-[400] tracking-[-0.04em] leading-[1.08] text-white">
                Run your entire business

                <br class="hidden md:block">
                <span class="italic font-serif text-white/90">from one place</span>
            </h1>

            <p data-aos="fade-right" data-aos-delay="200"
                class="mt-4 max-w-2xl text-xs md:text-sm text-white/70 font-mono leading-relaxed mb-4">
                The management layer for growing organizations. Manage customers, sales, finances, teams, projects, operations, marketing and growth from a single platform built for modern businesses, with unlimited users and software you own.
            </p>



            <div data-aos="fade-up" data-aos-delay="300" class="flex items-center gap-4 ">
                <a href="#pricing"
                    class="inline-flex items-center gap-3 px-5 md:px-8 py-4 bg-brandOrange text-white rounded-full font-sans font-[600] text-sm tracking-tight hover:scale-[1.05] transition-all shadow-[0_15px_30px_-5px_rgba(255,138,0,0.4)]">
                    See Plans & Pricing
                    <i data-lucide="arrow-down" class="w-4 h-4 text-white"></i>
                </a>
                <a href="get-demo.php?product=systems-enterprise-os"
                    class="hidden md:inline-flex items-center gap-3 px-5 md:px-8 py-4 bg-[#111] text-white rounded-full font-sans font-[500] text-sm tracking-tight hover:scale-[1.05] transition-all border border-white/10">
                    <i class="ri-play-circle-line text-brandOrange"></i>
                    Request Demo
                </a>
            </div>


        </div>
    </section>

    <!-- ─── TRUST STRIP ─── -->
    <section class="py-6 px-[5%] bg-white border-b border-zinc-100">
        <div class="max-w-[1200px] mx-auto">
            <div class="grid grid-cols-2 md:grid-cols-4 gap-0 divide-x divide-zinc-100">
                <?php
                $trust = [
                    ["One platform",    "CRM, ERP, HR, Finance & more",    "ri-apps-2-line"],
                    ["Source code",     "Full ownership, no license fees",  "ri-code-s-slash-line"],
                    ["Unlimited users", "No per-seat pricing ever",         "ri-team-line"],
                    ["2–4 Weeks",       "Average deployment timeline",      "ri-speed-up-line"],
                ];
                foreach ($trust as [$val, $label, $icon]):
                ?>
                    <div class="flex flex-col items-center text-center px-4 py-5 group">
                        <span class="text-sm md:text-base font-medium text-royal tracking-tight flex items-center justify-center gap-2">
                            <div class="text-brandOrange text-base md:text-lg transition-transform duration-300 group-hover:scale-110 flex items-center">
                                <i class="<?= $icon ?>"></i>
                            </div>
                            <?= $val ?>
                        </span>
                        <span class="text-[9px] md:text-[10px] font-mono uppercase tracking-widest text-zinc-400 mt-1 transition-colors duration-300 group-hover:text-zinc-500">
                            <?= $label ?>
                        </span>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
    </section>


    <!-- ─── THE PROBLEM ─── -->
    <!-- ─── THE OPERATION FRAGMENTATION PROBLEM ─── -->
    <section class="py-24 px-[5%] bg-white border-b border-zinc-100" id="operational-problem">
        <div class="max-w-[1200px] mx-auto">
            <div class="grid grid-cols-1 lg:grid-cols-12 gap-12 lg:gap-16 items-start">

                <!-- Left Sticky Text Panel -->
                <div class="lg:col-span-5 lg:sticky lg:top-24 space-y-6">
                    <div>
                        <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-brandOrange block mb-2"> The Problem</span>
                        <h2 class="text-3xl md:text-4xl font-normal tracking-tight text-dark leading-[1.15]">
                            Your business is paying for <span class="italic font-serif text-soft">too many disconnected tools.</span>
                        </h2>
                    </div>

                    <div class="space-y-4 font-sans text-xs md:text-sm text-zinc-500 leading-relaxed">
                        <p>
                            A CRM subscription here, accounting there, then project software, HR software, a helpdesk, marketing tools, and a reporting add-on—none of which talk to each other. Customer information is scattered, invoices arrive from a dozen vendors, and every single integration turns into an engineering project of its own.
                        </p>
                        <p class="text-zinc-900 font-medium">
                            As you grow, the stack gets more expensive and more fragmented, data sits in rigid silos, and no one has a full picture of the business performance.
                        </p>
                    </div>

                    <div class="pt-4">
                        <div class="inline-flex items-center gap-2 px-3 py-1 rounded-lg">
                            <span class="w-1.5 h-1.5 rounded-full bg-red-500"></span>
                            <span class="font-mono text-[10px] uppercase text-red-600 tracking-wider">High systemic overhead</span>
                        </div>
                    </div>
                </div>

                <!-- Right Structured Friction Grid -->
                <div class="lg:col-span-7">
                    <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
                        <?php
                        $frictions = [
                            [
                                'title' => 'A dozen subscriptions',
                                'desc'  => 'CRM, ERP, accounting, HR, helpdesk, and fragmented third-party add-ons piling up monthly.',
                                'icon'  => 'ri-clipboard-line'
                            ],
                            [
                                'title' => 'Scattered data silos',
                                'desc'  => 'Customer files, communication logs, and vital financial records completely split across legacy tools.',
                                'icon'  => 'ri-database-2-line'
                            ],
                            [
                                'title' => 'Multiple vendor invoices',
                                'desc'  => 'A completely different bill arriving from every individual software vendor, every single month.',
                                'icon'  => 'ri-file-paper-2-line'
                            ],
                            [
                                'title' => 'Complex integrations',
                                'desc'  => 'Endless engineering work and brittle pipeline code just to make basic standalone utilities talk to each other.',
                                'icon'  => 'ri-git-merge-line'
                            ],
                            [
                                'title' => 'Poor business visibility',
                                'desc'  => 'Zero real-time unified dashboard views of how the departments and business run end-to-end.',
                                'icon'  => 'ri-eye-off-line'
                            ],
                            [
                                'title' => 'Rising software costs',
                                'desc'  => 'A ballooning recurring operational stack that grows more expensive each year without added value.',
                                'icon'  => 'ri-money-dollar-circle-line'
                            ]
                        ];
                        foreach ($frictions as $index => $item):
                        ?>
                            <div class="group bg-zinc-50/50 border border-zinc-200/60 rounded-2xl p-5 transition-all duration-300 hover:bg-white hover:border-red-200 hover:shadow-[0_15px_30px_-10px_rgba(239,68,68,0.02)]" data-aos="fade-up" data-aos-delay="<?= $index * 50 ?>">
                                <div class="flex h-8 w-8 items-center justify-center rounded-lg bg-white border border-zinc-200/60 text-zinc-400 group-hover:text-red-500 group-hover:border-red-100 transition-colors duration-300 shadow-sm mb-4">
                                    <i class="<?= $item['icon'] ?> text-sm leading-none"></i>
                                </div>

                                <h3 class="text-xs font-semibold text-zinc-900 tracking-tight mb-1.5">
                                    <?= $item['title'] ?>
                                </h3>
                                <p class="text-[11px] text-zinc-500 font-sans leading-relaxed">
                                    <?= $item['desc'] ?>
                                </p>
                            </div>
                        <?php endforeach; ?>
                    </div>
                </div>

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


    <!-- ─── TRANSFORMATION: BEFORE / AFTER ─── -->
    <section class="py-24 bg-white border-b border-zinc-100" id="outcome">
        <div class="max-w-6xl mx-auto px-6">

            <div class="max-w-2xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-brandOrange block mb-2">The outcome</span>
                <h2 class="text-3xl md:text-4xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    What changes <span class="italic font-serif text-royal">after deployment</span>
                </h2>
            </div>

            <div class="grid md:grid-cols-2 gap-6 items-stretch">

                <!-- Before -->
                <div class="border border-zinc-200/60 rounded-3xl p-8 bg-zinc-50/40 flex flex-col justify-between" data-aos="fade-right">
                    <div>
                        <div class="flex items-center gap-2 mb-6">
                            <div class="flex h-6 w-6 items-center justify-center rounded-full bg-red-50 text-red-500 text-xs font-bold">
                                <i class="ri-close-line"></i>
                            </div>
                            <div>
                                <h3 class="text-sm font-semibold text-zinc-900 tracking-tight">Before Nesvra</h3>
                                <p class="text-[11px] font-mono uppercase text-zinc-400 tracking-wider">Fragmented &amp; expensive stack</p>
                            </div>
                        </div>
                        <ul class="space-y-3 border-t border-zinc-200/50 pt-6">
                            <?php
                            $before = ['12 software subscriptions', 'Manual workflows', 'Fragmented data', 'Multiple vendors', 'Poor visibility', 'Expensive software stack'];
                            foreach ($before as $item):
                            ?>
                                <li class="flex items-start gap-3 text-xs text-zinc-500 font-sans">
                                    <span class="text-red-400/80 text-sm leading-none mt-0.5 flex-shrink-0">✕</span>
                                    <span><?= $item ?></span>
                                </li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                    <div class="mt-8 pt-6 border-t border-zinc-200/40 text-[10px] font-mono uppercase text-zinc-400 tracking-widest">
                        // Fragile multi-vendor overhead
                    </div>
                </div>

                <!-- After -->
                <div class="border-2 border-royal/40 rounded-3xl p-8 bg-white shadow-xl shadow-royal/5 flex flex-col justify-between relative overflow-hidden" data-aos="fade-left">
                    <div class="absolute -top-24 -right-24 w-48 h-48 bg-royal/5 rounded-full blur-[80px] pointer-events-none"></div>
                    <div>
                        <div class="flex items-center justify-between mb-6">
                            <div class="flex items-center gap-2">
                                <div class="flex h-6 w-6 items-center justify-center rounded-full bg-royal text-white text-xs font-bold shadow-sm">
                                    <i class="ri-check-line"></i>
                                </div>
                                <div>
                                    <h3 class="text-sm font-semibold text-royal tracking-tight">After Nesvra</h3>
                                    <p class="text-[11px] font-mono uppercase text-brandOrange tracking-wider font-semibold">One platform. Total control.</p>
                                </div>
                            </div>
                            <span class="font-mono text-[9px] uppercase tracking-widest text-royal font-bold bg-royal/5 px-2 py-0.5 rounded-md">Unified OS</span>
                        </div>
                        <ul class="space-y-3 border-t border-zinc-100 pt-6">
                            <?php
                            $after = ['One platform', 'Automated workflows', 'Unified data', 'One vendor, one invoice', 'Complete visibility', 'Reduced software costs'];
                            foreach ($after as $item):
                            ?>
                                <li class="flex items-start gap-3 text-xs text-zinc-900 font-sans font-medium transition-transform duration-300 hover:translate-x-0.5">
                                    <span class="text-brandOrange text-sm leading-none mt-0.5 flex-shrink-0 font-bold">✓</span>
                                    <span><?= $item ?></span>
                                </li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                    <div class="mt-8 pt-6 border-t border-zinc-100 text-[10px] font-mono uppercase text-zinc-400 tracking-widest">
                        // Sovereign enterprise architecture
                    </div>
                </div>

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


    <?php
    $platform_modules = [
        ['title' => 'CRM',             'icon' => 'ri-customer-service-2-line', 'category' => 'Growth'],
        ['title' => 'Sales pipeline',  'icon' => 'ri-git-commit-line',          'category' => 'Growth'],
        ['title' => 'Support',         'icon' => 'ri-ticket-2-line',            'category' => 'Growth'],
        ['title' => 'Accounting',      'icon' => 'ri-calculator-line',          'category' => 'Finance'],
        ['title' => 'Invoicing',       'icon' => 'ri-file-list-3-line',         'category' => 'Finance'],
        ['title' => 'ERP',             'icon' => 'ri-server-line',              'category' => 'Core'],
        ['title' => 'Inventory',       'icon' => 'ri-archive-stack-line',       'category' => 'Core'],
        ['title' => 'HR',              'icon' => 'ri-team-line',                'category' => 'People'],
        ['title' => 'Payroll',         'icon' => 'ri-bank-card-line',           'category' => 'People'],
        ['title' => 'Projects',        'icon' => 'ri-folders-line',             'category' => 'Operations'],
        ['title' => 'Tasks',           'icon' => 'ri-checkbox-circle-line',     'category' => 'Operations'],
        ['title' => 'Marketing',       'icon' => 'ri-advertisement-line',       'category' => 'Growth'],
        ['title' => 'Commerce',        'icon' => 'ri-shopping-bag-3-line',      'category' => 'Growth'],
        ['title' => 'Analytics',       'icon' => 'ri-bar-chart-box-line',       'category' => 'Core'],
        ['title' => 'AI workspace',    'icon' => 'ri-robot-line',               'category' => 'Core']
    ];
    ?>

    <!-- ─── PLATFORM CAPABILITIES RUNWAY ─── -->
    <section class="py-24 bg-zinc-50/30 border-b border-zinc-100" id="platform-capabilities">
        <div class="max-w-6xl mx-auto px-6">

            <!-- Section Structural Header Block -->
            <div class="max-w-3xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">{10} Ecosystem scope</span>
                <h2 class="text-3xl md:text-4xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    What you can run. <br><span class="italic font-serif text-royal">Every business function, one unified platform.</span>
                </h2>
                <p class="text-zinc-500 text-xs md:text-sm leading-relaxed mt-4 max-w-xl">
                    Run customers, finance, core operations, people, complex projects, marketing funnels, and intelligence nodes systematically from a single foundational workspace.
                </p>
            </div>

            <!-- 5-Column Grid Structure on Desktop, Graceful Wrap Downwards -->
            <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4">
                <?php foreach ($platform_modules as $index => $mod): ?>
                    <div class="group bg-white border border-zinc-200/60 rounded-2xl p-5 flex flex-col justify-between transition-all duration-300 hover:border-royal/30 hover:shadow-[0_20px_40px_-15px_rgba(51,83,224,0.05)]" data-aos="fade-up" data-aos-delay="<?= $index * 30 ?>">

                        <div>
                            <!-- Minimal Icon Engine Block -->
                            <div class="flex h-9 w-9 items-center justify-center rounded-xl bg-zinc-50 border border-zinc-100 text-zinc-400 transition-colors duration-300 group-hover:text-royal group-hover:bg-royal/[0.01] group-hover:border-royal/10 shadow-sm mb-4">
                                <i class="<?= $mod['icon'] ?> text-sm leading-none"></i>
                            </div>

                            <h3 class="text-xs font-medium text-zinc-800 tracking-tight transition-colors duration-200 group-hover:text-zinc-950 font-sans">
                                <?= $mod['title'] ?>
                            </h3>
                        </div>

                        <!-- Clean Horizontal Separator & Functional Categorization Meta Link -->
                        <div class="mt-5 pt-3 border-t border-zinc-100/80 flex items-center justify-between">
                            <span class="font-mono text-[8px] tracking-wider text-zinc-400 uppercase">
                                <?= $mod['category'] ?>
                            </span>
                            <i class="ri-arrow-right-up-line text-zinc-300 opacity-0 group-hover:opacity-100 group-hover:text-brandOrange transition-all duration-300 text-xs translate-y-0.5"></i>
                        </div>

                    </div>
                <?php endforeach; ?>
            </div>

        </div>
    </section>


    <?php
    $all_modules = [
        'CRM'                   => 'ri-customer-service-2-line',
        'Leads'                 => 'ri-user-search-line',
        'Contacts'              => 'ri-contacts-line',
        'Companies'             => 'ri-building-4-line',
        'Sales pipeline'        => 'ri-git-commit-line',
        'Deals'                 => 'ri-hand-heart-line',
        'Quotes'                => 'ri-file-text-line',
        'Support tickets'       => 'ri-ticket-2-line',
        'Live chat'             => 'ri-message-3-line',
        'Customer portal'       => 'ri-window-line',
        'Accounting'            => 'ri-calculator-line',
        'General ledger'        => 'ri-book-3-line',
        'Invoices'              => 'ri-file-list-3-line',
        'Expenses'              => 'ri-money-dollar-circle-line',
        'Budgets'               => 'ri-pie-chart-line',
        'Taxes'                 => 'ri-percent-line',
        'Payroll'               => 'ri-bank-card-line',
        'ERP'                   => 'ri-server-line',
        'Inventory'             => 'ri-archive-stack-line',
        'Procurement'           => 'ri-shopping-basket-2-line',
        'Warehouse'             => 'ri-store-2-line',
        'Suppliers'             => 'ri-node-tree',
        'Assets'                => 'ri-safe-2-line',
        'Orders'                => 'ri-survey-line',
        'Products'              => 'ri-box-3-line',
        'Subscriptions'         => 'ri-calendar-todo-line',
        'Shipping'              => 'ri-truck-line',
        'POS'                   => 'ri-refund-2-line',
        'HR'                    => 'ri-team-line',
        'Employees'             => 'ri-user-shared-line',
        'Attendance'            => 'ri-user-received-line',
        'Leave'                 => 'ri-flight-takeoff-line',
        'Recruitment'           => 'ri-user-add-line',
        'Performance'           => 'ri-medal-line',
        'Projects'              => 'ri-folders-line',
        'Tasks'                 => 'ri-checkbox-circle-line',
        'Milestones'            => 'ri-flag-line',
        'Kanban'                => 'ri-dashboard-line',
        'Timesheets'            => 'ri-time-line',
        'Approvals'             => 'ri-verified-badge-line',
        'Calendar'              => 'ri-calendar-line',
        'Chat'                  => 'ri-wechat-line',
        'Email'                 => 'ri-mail-line',
        'SMS'                   => 'ri-question-answer-line',
        'WhatsApp'              => 'ri-whatsapp-line',
        'Email campaigns'       => 'ri-mail-send-line',
        'Funnels'               => 'ri-filter-3-line',
        'Landing pages'         => 'ri-pages-line',
        'Marketing automation'  => 'ri-magic-line',
        'Workflow engine'       => 'ri-git-branches-line',
        'Documents'             => 'ri-file-copy-2-line',
        'Files'                 => 'ri-folder-zip-line',
        'Contracts'             => 'ri-file-shield-line',
        'E-signature'           => 'ri-quill-pen-line',
        'Knowledge base'        => 'ri-book-open-line',
        'Analytics'             => 'ri-bar-chart-box-line',
        'KPIs'                  => 'ri-line-chart-line',
        'Forecasting'           => 'ri-pulse-line',
        'Custom reports'        => 'ri-file-chart-line',
        'Dashboards'            => 'ri-layout-grid-line',
        'AI assistant'          => 'ri-robot-line',
        'Content generation'    => 'ri-ai-generate',
        'Business insights'     => 'ri-lightbulb-line',
        'Custom fields'         => 'ri-add-box-line',
        'Custom objects'        => 'ri-shapes-line',
        'Roles'                 => 'ri-shield-user-line',
        'SSO'                   => 'ri-lock-password-line',
        'Audit logs'            => 'ri-history-line',
        'API access'            => 'ri-code-s-slash-line',
        'Webhooks'              => 'ri-anchor-line',
        'Mobile apps'           => 'ri-smartphone-line',
        'Notifications'         => 'ri-notification-3-line',
        'Multi-company'         => 'ri-git-merge-line',
        'Multi-currency'        => 'ri-coins-line',
        'White label'           => 'ri-award-line'
    ];
    ?>

    <!-- ─── ALL MODULES MATRIX ─── -->
    <section class="py-24 bg-white border-b border-zinc-100" id="modules">
        <div class="max-w-6xl mx-auto px-6">

            <div class="max-w-2xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">Modules and features</span>
                <h2 class="text-3xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    One platform, <span class="italic font-serif text-royal">every business module</span>
                </h2>
                <p class="text-zinc-500 text-xs md:text-sm leading-relaxed mt-4">
                    At least seventy capabilities across every department, sharing one data model.
                </p>
            </div>

            <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-3">
                <?php
                $index = 0;
                foreach ($all_modules as $mod_name => $mod_icon):
                ?>
                    <div class="group bg-white border border-zinc-200/60 px-4 py-3 rounded-xl flex items-center gap-3 text-left text-xs font-medium text-zinc-700 hover:border-royal/30 hover:text-royal hover:-translate-y-0.5 hover:shadow-[0_8px_20px_-6px_rgba(51,83,224,0.08)] transition-all duration-300 cursor-default" data-aos="fade-up" data-aos-delay="<?= min($index * 15, 350) ?>">

                        <!-- Compact Left-aligned Icon Wrapper -->
                        <div class="flex h-6 w-6 items-center justify-center rounded-md bg-zinc-50 border border-zinc-100 text-zinc-400 group-hover:text-royal group-hover:bg-royal/[0.02] group-hover:border-royal/10 transition-colors duration-300 shadow-sm flex-shrink-0">
                            <i class="<?= $mod_icon ?> text-xs leading-none"></i>
                        </div>

                        <span class="truncate transition-colors duration-200 group-hover:text-zinc-900 font-sans tracking-tight">
                            <?= $mod_name ?>
                        </span>

                    </div>
                <?php
                    $index++;
                endforeach;
                ?>
            </div>
        </div>
    </section>


    <!-- ─── SECURITY & CONTROLS ─── -->
    <!-- ─── ENTERPRISE CONTROLS & SECURITY SPECS ─── -->
    <section class="py-24 bg-zinc-50/50 border-b border-zinc-100" id="security">
        <div class="max-w-6xl mx-auto px-6">

            <!-- Structural Header Block -->
            <div class="max-w-2xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">{11} Security and controls</span>
                <h2 class="text-3xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    Enterprise controls <span class="italic font-serif text-royal">across every department.</span>
                </h2>
                <p class="text-zinc-500 text-xs md:text-sm leading-relaxed mt-4">
                    One consistent layer of access control, cryptographic verification, structural approvals, and granular audits deployed globally across your customers, finance protocols, people management, and core operations.
                </p>
            </div>

            <?php
            $controls = [
                'Role-based access control'     => 'ri-shield-user-line',
                'Granular permissions'          => 'ri-equalizer-line',
                'Audit logs'                    => 'ri-history-line',
                'Approval workflows'            => 'ri-git-pull-request-line',
                'Maker checker'                 => 'ri-checkbox-multiple-line',
                'Data encryption'               => 'ri-lock-2-line',
                'Single sign-on (SSO)'          => 'ri-key-line',
                'Two-factor authentication'     => 'ri-smartphone-line',
                'Activity history'              => 'ri-time-line',
                'GDPR controls'                 => 'ri-file-shield-line',
                'Data export and portability'   => 'ri-download-cloud-line',
                'Backups and recovery'          => 'ri-database-2-line',
                'ISO 27001 aligned'             => 'ri-verified-badge-line',
            ];
            ?>

            <!-- High-Fidelity Horizontal Badge Engine -->
            <div class="flex flex-wrap gap-2.5" data-aos="fade-up">
                <?php
                $i = 1;
                foreach ($controls as $label => $icon):
                ?>
                    <div class="group px-3.5 py-2 bg-white border border-zinc-200/60 rounded-xl flex items-center gap-2.5 transition-all duration-300 hover:border-royal/30 hover:shadow-[0_8px_20px_-6px_rgba(51,83,224,0.05)] cursor-default">

                        <!-- Micro Icon Terminal -->
                        <div class="flex items-center justify-center text-zinc-400 group-hover:text-royal transition-colors duration-300 flex-shrink-0">
                            <i class="<?= $icon ?> text-xs leading-none"></i>
                        </div>

                        <!-- Label Core -->
                        <span class="text-zinc-600 font-sans text-xs group-hover:text-zinc-900 transition-colors duration-200">
                            <?= $label ?>
                        </span>

                        <!-- Tiny Index Indicator for Structural Balance -->
                        <span class="font-mono text-[8px] text-zinc-300 group-hover:text-royal/40 transition-colors duration-200 pl-1">
                            <?= str_pad($i, 2, '0', STR_PAD_LEFT) ?>
                        </span>

                    </div>
                <?php
                    $i++;
                endforeach;
                ?>
            </div>
        </div>
    </section>


    <!-- ─── INFRASTRUCTURE UPSELL ─── -->
    <section class="py-24 bg-royal text-white relative overflow-hidden border-b border-white/5" id="infrastructure">
        <div class="absolute inset-0 pointer-events-none">
            <div class="absolute -top-32 -right-32 w-96 h-96 bg-white/5 rounded-full blur-[120px]"></div>
            <div class="absolute -bottom-32 -left-32 w-96 h-96 bg-brandOrange/10 rounded-full blur-[120px]"></div>
        </div>

        <div class="max-w-6xl mx-auto px-6 relative">
            <div class="grid lg:grid-cols-12 gap-12 lg:gap-16 items-center">

                <!-- Left Descriptive Column -->
                <div class="lg:col-span-5 space-y-6" data-aos="fade-right">
                    <div>
                        <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-white/50 block mb-2">{12} Extend your stack</span>
                        <h2 class="text-3xl md:text-4xl font-normal tracking-tight text-white leading-[1.15]">
                            Connect the channels and providers <span class="italic font-serif text-white/80">your business uses.</span>
                        </h2>
                    </div>
                    <p class="text-white/60 text-xs md:text-sm leading-relaxed max-w-sm">
                        Connect email pipelines, secure SMS vectors, merchant accounts, banking ledger feeds, and authentication domains through a single integration framework.
                    </p>
                    <div class="pt-2">
                        <a href="solutions-infrastructure-access.php" class="inline-flex items-center gap-3 px-5 py-3 rounded-full text-xs font-medium text-royal bg-white hover:bg-zinc-50 transition-all duration-300 hover:scale-[1.02] shadow-lg shadow-black/10">
                            Explore Infrastructure Access <i class="ri-arrow-right-line text-xs"></i>
                        </a>
                    </div>
                </div>

                <!-- Right Column: Rich Functional Content Cards instead of flat boxes -->
                <?php
                $infra_cards = [
                    [
                        'title' => 'Communications',
                        'desc'  => 'SMS, WhatsApp, and automated fallback transactional email engines.',
                        'icon'  => 'ri-message-3-line',
                        'meta'  => 'OMNICHANNEL'
                    ],
                    [
                        'title' => 'Financing & Payments',
                        'desc'  => 'Core merchant accounts, processing gateways, and instant payout rails.',
                        'icon'  => 'ri-bank-card-line',
                        'meta'  => 'LEDGER_SYNC'
                    ],
                    [
                        'title' => 'Identity & Security',
                        'desc'  => 'Automated KYC layers alongside robust SSO cross-domain credentials.',
                        'icon'  => 'ri-shield-user-line',
                        'meta'  => 'ZERO_TRUST'
                    ],
                    [
                        'title' => 'Fulfillment Chain',
                        'desc'  => 'Live cargo routing, inventory endpoints, and distribution logic hooks.',
                        'icon'  => 'ri-truck-line',
                        'meta'  => 'LOGISTICS'
                    ]
                ];
                ?>
                <div class="lg:col-span-7 grid grid-cols-1 sm:grid-cols-2 gap-4" data-aos="fade-left" data-aos-delay="100">
                    <?php foreach ($infra_cards as $card): ?>
                        <div class="group p-5 rounded-2xl bg-white/[0.04] backdrop-blur-md border border-white/10 hover:border-white/20 hover:bg-white/[0.07] transition-all duration-300 flex flex-col justify-between">
                            <div>
                                <!-- Minimal High-Contrast Icon Frame -->
                                <div class="flex h-8 w-8 items-center justify-center rounded-xl bg-white/10 text-white group-hover:bg-white group-hover:text-royal transition-all duration-300 mb-4 shadow-sm">
                                    <i class="<?= $card['icon'] ?> text-sm leading-none"></i>
                                </div>

                                <div class="space-y-1">
                                    <h3 class="text-xs font-medium text-white tracking-tight">
                                        <?= $card['title'] ?>
                                    </h3>
                                    <p class="text-[11px] text-white/60 font-sans leading-normal">
                                        <?= $card['desc'] ?>
                                    </p>
                                </div>
                            </div>

                            <!-- Micro Info Footer Segment -->
                            <div class="mt-5 pt-3 border-t border-white/5 flex items-center justify-between">
                                <span class="font-mono text-[8px] tracking-widest text-white/40 uppercase">
                                    <?= $card['meta'] ?>
                                </span>
                                <span class="text-[9px] text-white/20 group-hover:text-white/80 group-hover:translate-x-0.5 transition-all duration-300">→</span>
                            </div>
                        </div>
                    <?php endforeach; ?>
                </div>

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


    <?php
    $who_its_for = [
        ['icon' => 'ri-building-4-line',      'title' => 'SMEs',                         'desc' => 'Replace a pile of subscriptions with one owned platform.'],
        ['icon' => 'ri-building-line',        'title' => 'Manufacturers',                 'desc' => 'Connect operations, finance and customers.'],
        ['icon' => 'ri-shopping-bag-3-line',  'title' => 'Retail businesses',             'desc' => 'Unify sales, stock, finance and customers.'],
        ['icon' => 'ri-pulse-line',           'title' => 'Healthcare organizations',      'desc' => 'Manage patients, staff, billing and operations.'],
        ['icon' => 'ri-graduation-cap-line',  'title' => 'Schools',                       'desc' => 'Run admissions, finance, staff and communication.'],
        ['icon' => 'ri-government-line',      'title' => 'Government agencies',           'desc' => 'Standardize departments on one system.'],
        ['icon' => 'ri-briefcase-line',       'title' => 'Professional service firms',    'desc' => 'Projects, billing, CRM and HR together.'],
        ['icon' => 'ri-truck-line',           'title' => 'Logistics companies',           'desc' => 'Coordinate operations, finance and customers.'],
        ['icon' => 'ri-hotel-line',           'title' => 'Hospitality businesses',        'desc' => 'Manage bookings, staff, finance and inventory.'],
    ];
    ?>

    <!-- ─── WHO IT IS FOR ─── -->
    <section class="py-24 bg-white border-b border-zinc-100" id="who-its-for">
        <div class="max-w-6xl mx-auto px-6">

            <div class="max-w-2xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">Who it is for</span>
                <h2 class="text-3xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    Built for organizations <span class="italic font-serif text-royal">of every kind</span>
                </h2>
            </div>

            <div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
                <?php foreach ($who_its_for as $index => $org): ?>
                    <div class="group flex flex-col bg-white border border-zinc-200/70 rounded-3xl p-7 hover:border-royal/30 hover:shadow-[0_20px_40px_-10px_rgba(51,83,224,0.05)] transition-all duration-300" data-aos="fade-up" data-aos-delay="<?= $index * 50 ?>">

                        <!-- Upgraded High-Fidelity Icon Frame -->
                        <div class="flex h-10 w-10 items-center justify-center rounded-xl bg-zinc-50 border border-zinc-200/60 text-zinc-400 group-hover:text-royal group-hover:bg-royal/[0.02] group-hover:border-royal/20 transition-all duration-300 shadow-sm mb-5">
                            <i class="<?= $org['icon'] ?> text-brandOrange leading-none"></i>
                        </div>

                        <h3 class="text-sm font-semibold text-zinc-900 tracking-tight transition-colors group-hover:text-royal font-sans">
                            <?= $org['title'] ?>
                        </h3>
                        <p class="mt-2 text-xs text-zinc-500 leading-relaxed font-sans">
                            <?= $org['desc'] ?>
                        </p>

                    </div>
                <?php endforeach; ?>
            </div>
        </div>
    </section>


    <!-- ─── DEPLOYMENT MODELS ─── -->
    <section class="py-24 bg-zinc-50/50 border-b border-zinc-100" id="deployment-models">
        <div class="max-w-6xl mx-auto px-6">

            <div class="max-w-2xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">Deploy your way</span>
                <h2 class="text-3xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    Run it wherever your <span class="italic font-serif text-royal">organization requires</span>
                </h2>
                <p class="text-zinc-500 text-xs md:text-sm leading-relaxed mt-4">
                    Because you own the source code, you choose the hosting model, from fully managed cloud to on-premise.
                </p>
            </div>

            <?php
            $deploy_options = [
                'Cloud Hosted',
                'AWS',
                'Azure',
                'GCP',
                'Private Cloud',
                'Hybrid',
                'On-Premise',
                'Kubernetes',
                'Docker',
                'Disaster Recovery',
                'HA Cluster',
            ];
            ?>
            <div class="flex flex-wrap gap-3" data-aos="fade-up">
                <?php foreach ($deploy_options as $d): ?>
                    <span class="px-3 py-2 bg-white border border-zinc-200/60 text-zinc-600 font-sans text-xs rounded-xl transition-all duration-300 hover:border-royal/30 hover:text-royal cursor-default">
                        <?= $d ?>
                    </span>
                <?php endforeach; ?>
            </div>
        </div>
    </section>


    <?php
    $deliverables = [
        'Application source code',
        'Admin dashboard',
        'Web application',
        'API documentation',
        'Docker containers',
        'CI/CD pipelines',
        'Database schema',
        'Deployment guide',
        'Mobile API',
        'User manuals',
        'Test credentials',
        'Sample configurations',
        '90–365 days support',
        'Training sessions',
        'Merchant dashboard access',
        'White-label rights',
    ];
    ?>

    <!-- ─── WHAT YOU RECEIVE ─── -->
    <section class="py-24 bg-white border-b border-zinc-100" id="what-you-receive">
        <div class="max-w-6xl mx-auto px-6">

            <div class="max-w-2xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">What you receive</span>
                <h2 class="text-3xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    Exactly what is included <span class="italic font-serif text-royal">in your purchase</span>
                </h2>
                <p class="text-zinc-500 text-xs md:text-sm leading-relaxed mt-4">
                    Every acquisition is a complete, deployable package delivered to your merchant account.
                </p>
            </div>

            <div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-3">
                <?php foreach ($deliverables as $index => $d): ?>
                    <div class="flex items-center gap-2.5 bg-white border border-zinc-200/60 rounded-xl px-4 py-3.5" data-aos="fade-up" data-aos-delay="<?= min($index * 40, 400) ?>">
                        <i class="ri-checkbox-circle-fill text-brandOrange text-base flex-shrink-0"></i>
                        <span class="text-sm font-medium text-zinc-900"><?= $d ?></span>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
    </section>


    <!-- ─── COMPARISON TABLE: BOS vs SaaS vs In-house ─── -->
    <section class="py-24 bg-zinc-50/50 border-b border-zinc-100" id="compare">
        <div class="max-w-6xl mx-auto px-6">

            <div class="max-w-2xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">How Nesvra compares</span>
                <h2 class="text-3xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    Business OS vs SaaS <span class="italic font-serif text-royal">vs in-house build</span>
                </h2>
                <p class="text-zinc-500 text-xs md:text-sm leading-relaxed mt-4">
                    Owned software, a rented subscription, or building from scratch. The trade-offs are clear.
                </p>
            </div>

            <?php
            $comparison_rows = [
                ['feature' => 'Source code',              'nesvra' => true,  'saas' => false,  'inhouse' => true,  'saas_val' => null,  'inhouse_val' => null],
                ['feature' => 'One-time cost',            'nesvra' => true,  'saas' => false,  'inhouse' => false, 'saas_val' => null,  'inhouse_val' => null],
                ['feature' => 'One platform, one invoice', 'nesvra' => true,  'saas' => false,  'inhouse' => null,  'saas_val' => null,  'inhouse_val' => 'Maybe'],
                ['feature' => 'Unified data',             'nesvra' => true,  'saas' => false,  'inhouse' => null,  'saas_val' => null,  'inhouse_val' => 'Maybe'],
                ['feature' => 'No per-seat fees',         'nesvra' => true,  'saas' => false,  'inhouse' => true,  'saas_val' => null,  'inhouse_val' => null],
                ['feature' => 'AI assistant included',    'nesvra' => true,  'saas' => null,   'inhouse' => null,  'saas_val' => 'Extra cost', 'inhouse_val' => 'Maybe'],
                ['feature' => 'Single vendor',            'nesvra' => true,  'saas' => false,  'inhouse' => true,  'saas_val' => null,  'inhouse_val' => null],
            ];
            ?>

            <div class="bg-white border border-zinc-200/60 rounded-2xl overflow-hidden shadow-sm" data-aos="fade-up">
                <div class="overflow-x-auto">
                    <table class="w-full text-left border-collapse min-w-[560px]">
                        <thead>
                            <tr class="border-b border-zinc-100 bg-zinc-50/70">
                                <th class="p-5 text-xs font-mono uppercase tracking-widest text-zinc-400 font-bold w-1/4">Feature</th>
                                <th class="p-5 text-xs font-mono uppercase tracking-widest text-royal font-bold w-1/4 bg-royal/[0.02]">Nesvra</th>
                                <th class="p-5 text-xs font-mono uppercase tracking-widest text-zinc-500 font-bold w-1/4">SaaS</th>
                                <th class="p-5 text-xs font-mono uppercase tracking-widest text-zinc-500 font-bold w-1/4">In-house build</th>
                            </tr>
                        </thead>
                        <tbody class="divide-y divide-zinc-100/70 text-sm">
                            <?php foreach ($comparison_rows as $row): ?>
                                <tr class="group transition-colors duration-200 hover:bg-zinc-50/30">
                                    <td class="p-5 font-medium text-zinc-900 font-sans"><?= $row['feature'] ?></td>
                                    <td class="p-5 bg-royal/[0.02] group-hover:bg-royal/[0.04] transition-colors">
                                        <?php if ($row['nesvra'] === true): ?>
                                            <span class="text-brandOrange font-bold">✓</span>
                                        <?php else: ?>
                                            <span class="text-zinc-300">✕</span>
                                        <?php endif; ?>
                                    </td>
                                    <td class="p-5">
                                        <?php if ($row['saas'] === true): ?>
                                            <span class="text-brandOrange font-bold">✓</span>
                                        <?php elseif ($row['saas'] === false): ?>
                                            <span class="text-zinc-300">✕</span>
                                        <?php else: ?>
                                            <span class="text-zinc-500 text-xs"><?= $row['saas_val'] ?></span>
                                        <?php endif; ?>
                                    </td>
                                    <td class="p-5">
                                        <?php if ($row['inhouse'] === true): ?>
                                            <span class="text-brandOrange font-bold">✓</span>
                                        <?php elseif ($row['inhouse'] === false): ?>
                                            <span class="text-zinc-300">✕</span>
                                        <?php else: ?>
                                            <span class="text-zinc-500 text-xs"><?= $row['inhouse_val'] ?></span>
                                        <?php endif; ?>
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </section>


    <!-- ─── COST ECONOMICS ─── -->
    <section class="py-24 bg-royal text-white relative overflow-hidden border-b border-white/5" id="economics">
        <div class="absolute inset-0 pointer-events-none">
            <div class="absolute -top-40 -right-40 w-96 h-96 bg-white/5 rounded-full blur-[120px]"></div>
            <div class="absolute -bottom-40 -left-40 w-96 h-96 bg-brandOrange/10 rounded-full blur-[120px]"></div>
        </div>

        <div class="max-w-6xl mx-auto px-6 relative">
            <div class="grid lg:grid-cols-12 gap-12 lg:gap-16 items-center">

                <!-- Left Descriptive Analysis Panel -->
                <div class="lg:col-span-5 space-y-6" data-aos="fade-right">
                    <div>
                        <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-white/50 block mb-2">{13} Capital Efficiency</span>
                        <h2 class="text-3xl md:text-4xl font-normal tracking-tight text-white leading-[1.15]">
                            A 12-tool software stack <span class="italic font-serif text-white/80">costs more every year.</span>
                        </h2>
                    </div>

                    <p class="text-white/60 text-xs md:text-sm leading-relaxed font-sans">
                        A typical growing business pays for a dozen disjointed subscriptions, priced per seat, that climb every time you hire. Building a unified platform internally costs even more. With Nesvra, you own a cohesive platform layer for a fixed, predictable capital investment.
                    </p>

                    <!-- Premium Metrics Intercept -->
                    <div class="pt-4 flex flex-col sm:flex-row items-stretch gap-4">
                        <div class="flex-1 rounded-2xl bg-white/[0.03] border border-white/10 p-5 flex flex-col justify-between">
                            <p class="font-mono text-[9px] uppercase tracking-wider text-white/40 mb-2">In-house build stack</p>
                            <p class="font-sans font-medium text-xl text-white/70 tracking-tight">≈ $132,000<span class="text-xs text-white/40 font-normal"> / yr</span></p>
                        </div>
                        <div class="flex h-6 w-6 items-center justify-center self-center text-white/20 hidden sm:flex">
                            <i class="ri-arrow-right-line text-sm"></i>
                        </div>
                        <div class="flex-1 rounded-2xl bg-brandOrange/10 border border-brandOrange/30 p-5 flex flex-col justify-between shadow-[0_15px_30px_-10px_rgba(242,92,92,0.1)]">
                            <p class="font-mono text-[9px] uppercase tracking-wider text-brandOrange mb-2">Nesvra Enterprise</p>
                            <p class="font-sans font-semibold text-xl text-white tracking-tight">$20,000<span class="text-xs text-white/60 font-normal"> once</span></p>
                        </div>
                    </div>

                    <p class="text-[10px] font-mono text-white/30 tracking-wide block pt-2">* Figures shown reflect illustrative global enterprise estimates.</p>
                </div>

                <!-- Right Column: Glassmorphism Audit Ledger -->
                <?php
                $cost_rows = [
                    ['label' => 'CRM subscription',    'val' => '$24,000 / yr', 'icon' => 'ri-customer-service-2-line'],
                    ['label' => 'ERP subscription',    'val' => '$30,000 / yr', 'icon' => 'ri-server-line'],
                    ['label' => 'Accounting system',   'val' => '$12,000 / yr', 'icon' => 'ri-calculator-line'],
                    ['label' => 'HR and payroll',       'val' => '$18,000 / yr', 'icon' => 'ri-bank-card-line'],
                    ['label' => 'Project software',    'val' => '$12,000 / yr', 'icon' => 'ri-checkbox-circle-line'],
                    ['label' => 'Helpdesk workspace',  'val' => '$9,000 / yr',  'icon' => 'ri-ticket-2-line'],
                    ['label' => 'Marketing tools',     'val' => '$15,000 / yr', 'icon' => 'ri-advertisement-line'],
                    ['label' => 'Reporting and BI',    'val' => '$12,000 / yr', 'icon' => 'ri-bar-chart-box-line'],
                ];
                ?>
                <div class="lg:col-span-7 bg-white/[0.02] backdrop-blur-md border border-white/10 rounded-2xl p-6 space-y-1 shadow-2xl shadow-black/10" data-aos="fade-left" data-aos-delay="100">
                    <div class="pb-3 border-b border-white/5 flex items-center justify-between">
                        <span class="font-mono text-[9px] uppercase tracking-widest text-white/40">Siloed Software Line</span>
                        <span class="font-mono text-[9px] uppercase tracking-widest text-white/40">Estimated Cost</span>
                    </div>

                    <div class="py-2 space-y-0.5">
                        <?php foreach ($cost_rows as $r): ?>
                            <div class="group flex items-center justify-between rounded-xl px-3 py-2.5 transition-colors duration-200 hover:bg-white/[0.02]">
                                <div class="flex items-center gap-3">
                                    <div class="flex h-6 w-6 items-center justify-center rounded-lg bg-white/5 text-white/40 border border-white/5 group-hover:text-white/80 group-hover:bg-white/10 transition-colors duration-200">
                                        <i class="<?= $r['icon'] ?> text-xs leading-none"></i>
                                    </div>
                                    <span class="text-xs font-medium text-white/80 font-sans tracking-tight"><?= $r['label'] ?></span>
                                </div>
                                <span class="text-xs font-mono text-white/50 tracking-tight group-hover:text-white transition-colors duration-200"><?= $r['val'] ?></span>
                            </div>
                        <?php endforeach; ?>
                    </div>

                    <!-- Total Summary Intercept -->
                    <div class="pt-4 border-t border-white/10 flex items-center justify-between px-3">
                        <div class="flex items-center gap-2">
                            <span class="w-1.5 h-1.5 rounded-full bg-brandOrange animate-pulse"></span>
                            <span class="text-xs font-medium text-white tracking-tight">Cumulative Stack Burden</span>
                        </div>
                        <span class="text-sm font-semibold text-white tracking-tight">≈ $132,000<span class="text-[10px] font-normal opacity-50"> / yr</span></span>
                    </div>
                </div>

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


    <?php
    $deploy_journey = [
        ['week' => 'Week 1', 'title' => 'Setup',           'desc' => 'Provision environments and stand up the platform.'],
        ['week' => 'Week 1', 'title' => 'Configuration',   'desc' => 'Set up your company, roles and departments.'],
        ['week' => 'Week 2', 'title' => 'Module setup',    'desc' => 'Configure CRM, finance, projects and HR.'],
        ['week' => 'Week 3', 'title' => 'Data import',     'desc' => 'Migrate records from your existing tools.'],
        ['week' => 'Week 3', 'title' => 'Integrations',    'desc' => 'Connect channels and providers.'],
        ['week' => 'Week 4', 'title' => 'Go live',         'desc' => 'Launch to your teams with support on standby.'],
    ];
    ?>

    <!-- ─── DEPLOYMENT JOURNEY ─── -->
    <section class="py-24 bg-white border-b border-zinc-100" id="deployment-journey">
        <div class="max-w-6xl mx-auto px-6">

            <div class="max-w-2xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">Deployment journey</span>
                <h2 class="text-3xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    Live in weeks, <span class="italic font-serif text-royal">not months</span>
                </h2>
            </div>

            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-12 items-stretch relative">
                <?php foreach ($deploy_journey as $index => $step): ?>
                    <div class="group flex flex-col justify-between transition-all duration-300 relative" data-aos="fade-up" data-aos-delay="<?= $index * 50 ?>">

                        <div>
                            <!-- Top Layout Header: Progress Milestones -->
                            <div class="flex items-center justify-between mb-4">
                                <!-- Week / Sprint Matrix -->
                                <span class="font-mono text-[10px] uppercase tracking-[0.2em] text-royal bg-royal/[0.03] border border-royal/10 px-2.5 py-1 rounded-md">
                                    <?= $step['week'] ?>
                                </span>

                                <!-- Sequence Index Matrix -->
                                <span class="font-mono text-[11px] text-zinc-300 group-hover:text-royal/30 transition-colors duration-300">
                                    // 0<?= $index + 1 ?>
                                </span>
                            </div>

                            <!-- Content Matrix Stack -->
                            <div class="space-y-2">
                                <h3 class="text-sm font-semibold text-zinc-900 tracking-tight transition-colors duration-200 group-hover:text-royal font-sans">
                                    <?= $step['title'] ?>
                                </h3>
                                <p class="text-zinc-500 text-xs leading-relaxed font-sans max-w-sm">
                                    <?= $step['desc'] ?>
                                </p>
                            </div>
                        </div>



                    </div>
                <?php endforeach; ?>
            </div>
        </div>
    </section>


    <!-- ─── OWNERSHIP ADVANTAGE ─── -->
    <section class="py-24 bg-zinc-50 border-b border-zinc-100 relative overflow-hidden" id="ownership">
        <!-- Subtle architectural background accent -->
        <div class="absolute right-0 top-0 w-[500px] h-[500px] bg-royal/[0.01] rounded-full blur-[100px] pointer-events-none"></div>

        <div class="max-w-6xl mx-auto px-6 relative">
            <div class="grid lg:grid-cols-12 gap-12 lg:gap-16 items-start">

                <!-- Left Editorial & High-Fidelity Comparison Column -->
                <div class="lg:col-span-5 space-y-8" data-aos="fade-right">
                    <div class="space-y-3">
                        <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block">OWNERSHIP ADVANTAGE</span>
                        <h2 class="text-3xl md:text-4xl font-normal tracking-tight text-zinc-900 leading-[1.12]">
                            Buy once and own the platform <span class="italic font-serif text-royal">your business runs on.</span>
                        </h2>
                    </div>

                    <div class="space-y-4 text-zinc-500 text-xs md:text-sm leading-relaxed font-sans">
                        <p>
                            Running a business on a stack of per-seat subscriptions means your most vital operating engines are controlled by third-party vendors. Your core data is isolated across scattered clouds, and the recurring bill spikes with every single hire.
                        </p>
                        <p>
                            The Business Operating System model completely inverts this dependency. One intentional asset allocation gives you full source code, unlimited user access, and centralized operations. The infrastructure is yours, hosted precisely where you command.
                        </p>
                    </div>

                    <!-- Interactive Comparison Badge Component -->
                    <div class="p-4 rounded-2xl bg-zinc-100/80 border border-zinc-200/60 space-y-3">
                        <div class="flex items-center justify-between text-[11px] font-mono text-zinc-400">
                            <span>SUBSCRIPTION STACK</span>
                            <span>NESVRA ARCHITECTURE</span>
                        </div>
                        <div class="h-2 rounded-full bg-zinc-200 overflow-hidden flex">
                            <div class="w-1/3 bg-zinc-300 h-full"></div>
                            <div class="w-2/3 bg-royal h-full rounded-r-full"></div>
                        </div>
                        <div class="flex justify-between items-center text-[11px] font-sans">
                            <span class="text-zinc-500 font-medium">33% Control (Siloed Data)</span>
                            <span class="text-royal font-semibold">100% IP Ownership</span>
                        </div>
                    </div>
                </div>

                <!-- Right Column: Premium Operational Architecture Pillars -->
                <?php
                $ownership_pillars = [
                    [
                        'icon'  => 'ri-key-2-line',
                        'title' => 'Own it for life',
                        'desc'  => 'Full source code ownership and IP reassignment. No mandatory annual license renewals, zero recurring seat costs, and no revenue sharing margins.',
                        'tag'   => 'IP_GRANTED'
                    ],
                    [
                        'icon'  => 'ri-git-branch-line',
                        'title' => 'Customize freely',
                        'desc'  => 'Modify schemas, tailor operational workflows, and fork custom modules instantly to perfectly match your proprietary corporate frameworks.',
                        'tag'   => 'OPEN_SOURCE_CORE'
                    ],
                    [
                        'icon'  => 'ri-line-chart-line',
                        'title' => 'Predictable capital allocation',
                        'desc'  => 'Transform erratic operational expenditure into a single, structured capital investment asset that protects margins as your workforce scales.',
                        'tag'   => 'ZERO_SEAT_BURDEN'
                    ],
                ];
                ?>
                <div class="lg:col-span-7 space-y-4" data-aos="fade-left" data-aos-delay="100">
                    <?php foreach ($ownership_pillars as $p): ?>
                        <div class="group bg-white border border-zinc-200/60 rounded-2xl p-6 transition-all duration-300 hover:border-royal/20 hover:shadow-[0_20px_40px_-15px_rgba(51,83,224,0.04)] flex gap-5 items-start">

                            <!-- High-Contrast Interactive Icon Box -->
                            <div class="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-zinc-50 border border-zinc-200/60 text-zinc-400 group-hover:bg-royal group-hover:text-white group-hover:border-royal transition-all duration-300 shadow-sm">
                                <i class="<?= $p['icon'] ?> text-base leading-none"></i>
                            </div>

                            <!-- Content Stack -->
                            <div class="space-y-1.5 flex-1">
                                <div class="flex flex-wrap items-center justify-between gap-2">
                                    <h3 class="text-sm font-semibold text-zinc-900 tracking-tight font-sans transition-colors duration-200 group-hover:text-royal">
                                        <?= $p['title'] ?>
                                    </h3>
                                    <span class="font-mono text-[8px] tracking-wider font-semibold text-zinc-400 bg-zinc-100 px-1.5 py-0.5 rounded transition-colors duration-200 group-hover:bg-royal/5 group-hover:text-royal">
                                        <?= $p['tag'] ?>
                                    </span>
                                </div>
                                <p class="text-zinc-500 text-xs leading-relaxed font-sans">
                                    <?= $p['desc'] ?>
                                </p>
                            </div>

                        </div>
                    <?php endforeach; ?>
                </div>

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


    <!-- ─── CASE STUDY ─── -->
    <section class="py-24 bg-white border-b border-zinc-100" id="case-study">
        <div class="max-w-6xl mx-auto px-6">
            <div class="bg-zinc-50/60 border border-zinc-200/60 rounded-3xl p-8 sm:p-12" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">Case study · illustrative</span>
                <h2 class="text-3xl font-normal tracking-tight text-zinc-900 leading-[1.15] max-w-2xl">
                    How a company replaced 12 tools <span class="italic font-serif text-royal">with one platform</span>
                </h2>
                <p class="mt-4 text-zinc-500 text-sm leading-relaxed max-w-2xl">
                    A growing services company consolidated CRM, accounting, projects, HR and support from twelve separate subscriptions onto the Nesvra Business Operating System, on infrastructure they own.
                </p>
                <div class="mt-8 grid grid-cols-2 md:grid-cols-5 gap-5">
                    <?php
                    $case_metrics = [
                        ['val' => '12',     'label' => 'tools replaced'],
                        ['val' => '180',    'label' => 'employees'],
                        ['val' => '60%',    'label' => 'lower software cost'],
                        ['val' => '4 wks',  'label' => 'to deploy'],
                        ['val' => '1',      'label' => 'source of truth'],
                    ];
                    foreach ($case_metrics as $m):
                    ?>
                        <div>
                            <p class="text-3xl font-normal text-zinc-900 tracking-tight"><?= $m['val'] ?></p>
                            <p class="mt-1 text-xs text-zinc-500"><?= $m['label'] ?></p>
                        </div>
                    <?php endforeach; ?>
                </div>
            </div>
        </div>
    </section>


    <!-- ─── SOCIAL PROOF / OUTCOMES ─── -->
    <section class="py-24 bg-zinc-50/50 border-b border-zinc-100" id="outcomes">
        <div class="max-w-6xl mx-auto px-6">

            <div class="max-w-2xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">Outcomes · illustrative</span>
                <h2 class="text-3xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    Organizations <span class="italic font-serif text-royal">running on Nesvra</span>
                </h2>
            </div>

            <?php
            $proof = [
                ['org' => 'Services Company',   'metrics' => [['12', 'tools cut'], ['180', 'staff'], ['4 wks', 'deploy']]],
                ['org' => 'Retail Group',        'metrics' => [['40', 'stores'], ['1', 'platform'], ['55%', 'lower cost']]],
                ['org' => 'Professional Firm',   'metrics' => [['1', 'data model'], ['99.9%', 'uptime'], ['360°', 'view']]],
            ];
            ?>
            <div class="grid md:grid-cols-3 gap-6">
                <?php foreach ($proof as $index => $item): ?>
                    <div class="bg-white border border-zinc-200/70 rounded-3xl p-7 hover:border-royal/30 hover:shadow-[0_20px_40px_-10px_rgba(51,83,224,0.05)] transition-all duration-300" data-aos="fade-up" data-aos-delay="<?= $index * 80 ?>">
                        <h3 class="text-sm font-semibold text-zinc-900"><?= $item['org'] ?></h3>
                        <div class="mt-4 grid grid-cols-3 gap-3">
                            <?php foreach ($item['metrics'] as $mi => $metric): ?>
                                <div class="<?= $mi > 0 ? 'border-l border-zinc-200/60 pl-3' : '' ?>">
                                    <p class="text-xl font-normal text-zinc-900 tracking-tight"><?= $metric[0] ?></p>
                                    <p class="text-[9px] font-mono uppercase tracking-wider text-zinc-400"><?= $metric[1] ?></p>
                                </div>
                            <?php endforeach; ?>
                        </div>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
    </section>


    <!-- ─── TESTIMONIALS ─── -->
    <section class="py-24 px-[5%] bg-white relative overflow-hidden" id="testimonial">
        <?php
        $testimonials = [
            [
                'quote' => "Nesvra's subscription model gave us a complete tech department overnight. The team is proactive, strategic, and deeply integrated. We shipped a new mobile app in 8 weeks — something that would have taken us 8 months internally.",
                'author' => "Sarah Chen",
                'role' => "CTO @ Karely Health",
                'meta' => "Scaled from 0 to 200k users with Nesvra Tech Team"
            ],
            [
                'quote' => "We cancelled twelve subscriptions and run the whole company on one platform we own, with every number in one place.",
                'author' => "David Thorne",
                'role' => "Managing Director @ Apex Services",
                'meta' => "Consolidated 12 active operational subscriptions into one layer"
            ],
            [
                'quote' => "Owning the source code let us shape every department around how we actually work, instead of bending to nine vendors.",
                'author' => "Amara Okafor",
                'role' => "Operations Lead @ Velo Retail Group",
                'meta' => "Replaced 9 external SaaS endpoints with single source deployment"
            ]
        ];
        ?>

        <div class="max-w-[900px] mx-auto text-center" data-aos="fade-up">
            <span class="font-mono text-[11px] font-bold tracking-[0.4em] text-brandOrange uppercase block mb-8">
                Client Feedback
            </span>

            <!-- Carousel Frame Wrapper -->
            <div class="relative min-h-[280px] md:min-h-[220px] flex items-center justify-center">
                <?php foreach ($testimonials as $index => $t): ?>
                    <blockquote
                        data-testimonial-index="<?= $index ?>"
                        class="testimonial-slide absolute inset-x-0 top-0 transition-all duration-500 ease-in-out transform opacity-0 scale-[0.98] pointer-events-none hidden">
                        <p class="text-xl md:text-2xl font-normal tracking-tight text-zinc-900 leading-[1.35] italic font-serif mb-8 max-w-3xl mx-auto">
                            "<?= htmlspecialchars($t['quote']) ?>"
                        </p>
                        <cite class="not-italic block">
                            <span class="font-semibold text-royal text-sm md:text-base"><?= htmlspecialchars($t['author']) ?>, <span class="font-normal opacity-80"><?= htmlspecialchars($t['role']) ?></span></span>
                            <span class="block font-mono text-[9px] uppercase tracking-widest text-zinc-400 mt-2">
                                <?= htmlspecialchars($t['meta']) ?>
                            </span>
                        </cite>
                    </blockquote>
                <?php endforeach; ?>
            </div>

            <!-- Premium High-Fidelity Indicator Dots -->
            <div class="flex items-center justify-center gap-2.5 mt-10">
                <?php foreach ($testimonials as $index => $t): ?>
                    <button
                        data-testimonial-dot="<?= $index ?>"
                        onclick="switchTestimonial(<?= $index ?>)"
                        class="h-1.5 rounded-full bg-zinc-200 hover:bg-royal/40 transition-all duration-300 focus:outline-none"
                        aria-label="Go to testimonial slide <?= $index + 1 ?>"></button>
                <?php endforeach; ?>
            </div>
        </div>

        <!-- Ultra-Lightweight Transition Controller -->
        <script>
            let currentTestimonialIndex = 0;
            const slides = document.querySelectorAll('.testimonial-slide');
            const dots = document.querySelectorAll('[data-testimonial-dot]');
            let testimonialInterval;

            function switchTestimonial(index) {
                if (slides.length === 0) return;

                // Normalize index boundaries
                currentTestimonialIndex = index;
                if (currentTestimonialIndex >= slides.length) currentTestimonialIndex = 0;
                if (currentTestimonialIndex < 0) currentTestimonialIndex = slides.length - 1;

                // Clear previous states and apply hardware-accelerated animations
                slides.forEach((slide, idx) => {
                    if (idx === currentTestimonialIndex) {
                        slide.classList.remove('hidden', 'opacity-0', 'scale-[0.98]', 'pointer-events-none');
                        slide.classList.add('opacity-100', 'scale-100', 'relative');
                    } else {
                        slide.classList.remove('opacity-100', 'scale-100', 'relative');
                        slide.classList.add('opacity-0', 'scale-[0.98]', 'pointer-events-none', 'absolute');
                        // Add a tiny delay to hide visibility so transform layout calculations complete smoothly
                        setTimeout(() => {
                            if (idx !== currentTestimonialIndex) slide.classList.add('hidden');
                        }, 500);
                    }
                });

                // Handle active dot pill expansions reminiscent of premium mobile OS interfaces
                dots.forEach((dot, idx) => {
                    if (idx === currentTestimonialIndex) {
                        dot.classList.remove('bg-zinc-200', 'w-1.5');
                        dot.classList.add('bg-royal', 'w-6');
                    } else {
                        dot.classList.remove('bg-royal', 'w-6');
                        dot.classList.add('bg-zinc-200', 'w-1.5');
                    }
                });

                // Reset automated timer pool on interactive click
                resetTestimonialTimer();
            }

            function resetTestimonialTimer() {
                clearInterval(testimonialInterval);
                testimonialInterval = setInterval(() => {
                    switchTestimonial(currentTestimonialIndex + 1);
                }, 7000); // Rotates every 7 seconds for luxury readable pacing
            }

            // Initialize execution setup once DOM registers
            document.addEventListener('DOMContentLoaded', () => {
                switchTestimonial(0);
            });
        </script>
    </section>


    <?php
$steps = [
    [
        'num'   => '01',
        'title' => 'Create merchant account',
        'desc'  => 'Log in or create your merchant account to initialize the corporate dashboard.',
        'badge' => 'Setup'
    ],
    [
        'num'   => '02',
        'title' => 'Secure checkout',
        'desc'  => 'Confirm your enterprise parameters and complete payment securely via encrypted gateways.',
        'badge' => 'Allocation'
    ],
    [
        'num'   => '03',
        'title' => 'Invoice generated',
        'desc'  => 'Receive a fully itemized capital asset invoice directly inside your immutable records ledger.',
        'badge' => 'Ledger'
    ],
    [
        'num'   => '04',
        'title' => 'Deployment specification',
        'desc'  => 'Provide operational metrics, data sovereignty targets, and explicit hosting preferences.',
        'badge' => 'Architecture'
    ],
    [
        'num'   => '05',
        'title' => 'Project kickoff',
        'desc'  => 'Deployment instances are structured, engineering queues are assigned, and roadmaps align.',
        'badge' => 'Scheduling'
    ],
    [
        'num'   => '06',
        'title' => 'Delivery and deployment',
        'desc'  => 'Receive comprehensive source code repositories, secure access handshakes, and go live.',
        'badge' => 'Production'
    ]
];
?>

<section class="relative w-full py-24 md:py-32 bg-white overflow-hidden z-20">
    <div class="w-full max-w-8xl mx-auto px-4 md:px-16">

        <!-- Structural Header Area -->
        <div class="max-w-3xl mb-20">
            <span class="font-mono text-[11px] font-bold tracking-[0.3em] text-brandOrange uppercase mb-4 block" data-aos="fade-right">
                The Sequence Blueprint
            </span>
            <h2 data-aos="fade-right" data-aos-delay="100" class="text-3xl md:text-4xl font-normal tracking-[-0.04em] leading-[1.15] text-zinc-900 mb-6 font-sans">
                From account configuration <br>to absolute deployment in <span class="italic font-serif text-royal">six phases</span>
            </h2>
            <p data-aos="fade-right" data-aos-delay="200" class="text-xs md:text-sm text-zinc-500 font-sans leading-relaxed max-w-xl">
                Eliminate traditional procurement delays, fragmented legal negotiation cycles, and fragile multi-vendor pipelines. Configure your specifications, verify identity parameters, and spin up an independent layer.
            </p>
        </div>

        <!-- Sequential Step Matrix: Structured as a flawless 3-column engineering grid -->
        <div class="relative grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-12 gap-y-16 items-stretch">
            
            <?php
            $delay = 100;
            foreach ($steps as $step):
            ?>
                <div data-aos="fade-up" data-aos-delay="<?= $delay ?>" class="relative flex flex-col justify-between items-start space-y-4 group z-10 border-b border-zinc-100 pb-6 lg:pb-8">

                    <div class="w-full">
                        <!-- Structural Index Node -->
                        <div class="flex items-center justify-between w-full">
                            <div class="font-serif italic text-2xl text-brandOrange tracking-tighter transition-colors duration-300 group-hover:text-royal">
                                <?= $step['num'] ?>
                            </div>
                            <span class="font-mono text-[9px] uppercase tracking-widest text-zinc-400 bg-zinc-50 px-2 py-0.5 rounded border border-zinc-100/80">
                                <?= $step['badge'] ?>
                            </span>
                        </div>

                        <!-- Copy Content Cluster -->
                        <div class="space-y-1.5 pt-4">
                            <h3 class="text-sm md:text-base font-sans font-semibold tracking-tight text-zinc-900 transition-colors duration-300 group-hover:text-royal">
                                <?= $step['title'] ?>
                            </h3>
                            <p class="text-xs md:text-sm text-zinc-500 font-sans leading-relaxed max-w-sm">
                                <?= $step['desc'] ?>
                            </p>
                        </div>
                    </div>

                </div>
            <?php
                $delay += 50;
            endforeach;
            ?>

            <!-- Elite Closing Summary Point (Terminal Node Intercept) -->
            <div data-aos="fade-up" data-aos-delay="<?= $delay ?>" class="relative flex flex-col justify-between items-start p-6 rounded-2xl bg-royal/[0.02] border border-royal/10 group z-10 shadow-sm col-span-1 sm:col-span-2 lg:col-span-3 mt-4">
                <div class="flex flex-col sm:flex-row sm:items-center justify-between w-full gap-4">
                    <div class="flex items-start gap-4">
                        <div class="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-brandOrange/10 border border-brandOrange/20 text-brandOrange font-serif text-lg font-bold">
                            ★
                        </div>
                        <div class="space-y-1">
                            <h4 class="text-sm font-semibold tracking-tight text-zinc-900 font-sans">
                                You own it from here
                            </h4>
                            <p class="text-xs text-zinc-500 font-sans leading-relaxed max-w-2xl">
                                Full source code, permanent lifetime asset ownership, and optional managed operations infrastructure layer. No legacy license renewals, zero platform taxes, and no margin revenue sharing rules.
                            </p>
                        </div>
                    </div>
                    <div class="font-mono text-[8px] tracking-widest uppercase text-royal bg-royal/5 px-3 py-1 rounded border border-royal/10 self-start sm:self-center">
                        // PLATFORM_IP_SECURED
                    </div>
                </div>
            </div>

        </div>

    </div>
</section>


    <!-- ─── PRICING ─── -->
    <section class="py-24 bg-white border-b border-zinc-100" id="pricing">
        <div class="max-w-7xl mx-auto px-6">

            <div class="max-w-2xl mb-6" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-brandOrange block mb-2">Pricing</span>
                <h2 class="text-3xl md:text-4xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    One-time investment. <span class="italic font-serif text-royal">Lifetime ownership.</span>
                </h2>
                <p class="text-zinc-500 text-xs md:text-sm leading-relaxed mt-4">
                    Purchase once and own your software forever. No monthly fees, no annual renewals, no revenue sharing.
                </p>
            </div>

            <!-- Purchase assurance block -->
            <div class="rounded-3xl border border-zinc-200/60 bg-zinc-50/60 p-8 sm:p-10 mb-10" data-aos="fade-up">
                <h3 class="text-base font-semibold text-zinc-900 mb-5">Purchase with confidence</h3>
                <div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-3 text-sm">
                    <?php
                    $assurances = [
                        'One-time investment',
                        'Lifetime ownership',
                        'Full source code included',
                        'No revenue sharing',
                        'No annual license fees',
                        'Merchant dashboard access',
                        'Secure checkout',
                        'Invoice generation',
                        'Deployment assistance',
                        'Technical documentation',
                        'Optional managed operations',
                    ];
                    foreach ($assurances as $a):
                    ?>
                        <span class="inline-flex items-center gap-2 text-zinc-600 text-xs">
                            <i class="ri-checkbox-circle-fill text-brandOrange text-sm flex-shrink-0"></i>
                            <?= $a ?>
                        </span>
                    <?php endforeach; ?>
                </div>
            </div>

            <!-- Pricing plans -->
            <div class="grid md:grid-cols-2 xl:grid-cols-4 gap-6 items-stretch">
                <?php
                $plans = [
                    [
                        'title'     => 'Business OS Starter',
                        'subtitle'  => 'Startups and small businesses',
                        'price'     => '$5,000',
                        'popular'   => false,
                        'btn_label' => 'Acquire Starter',
                        'btn_link'  => 'checkout?product=systems-enterprise-os&plan=starter',
                        'features'  => [
                            'CRM',
                            'Contacts',
                            'Sales pipeline',
                            'Invoices',
                            'Projects',
                            'Tasks',
                            'Calendar',
                            'Basic reports',
                            'Email integration',
                            'Admin portal',
                            'User roles',
                            'Web application',
                            'Source code ownership',
                            'Documentation',
                            '90 days support',
                        ],
                    ],
                    [
                        'title'     => 'Business OS Growth',
                        'subtitle'  => 'Growing businesses',
                        'price'     => '$10,000',
                        'popular'   => true,
                        'btn_label' => 'Acquire Growth',
                        'btn_link'  => 'checkout?product=systems-enterprise-os&plan=growth',
                        'features'  => [
                            'Everything in Starter, plus:',
                            'ERP',
                            'Inventory',
                            'Accounting',
                            'Payroll',
                            'Procurement',
                            'Warehouse',
                            'Marketing',
                            'Automation',
                            'API access',
                            'Custom fields',
                            'Mobile access',
                            'Multi-currency',
                            '180 days support',
                        ],
                    ],
                    [
                        'title'     => 'Business OS Enterprise',
                        'subtitle'  => 'Established organizations',
                        'price'     => '$20,000',
                        'popular'   => false,
                        'btn_label' => 'Acquire Enterprise',
                        'btn_link'  => 'checkout?product=systems-enterprise-os&plan=enterprise',
                        'features'  => [
                            'Everything in Growth, plus:',
                            'HR',
                            'Knowledge base',
                            'AI assistant',
                            'SSO',
                            'White label',
                            'Multi-company',
                            'Audit logs',
                            'Advanced analytics',
                            'Workflow engine',
                            'Custom branding',
                            'Priority support',
                            '365 days support',
                        ],
                    ],
                    [
                        'title'     => 'Business OS Enterprise+',
                        'subtitle'  => 'Unlimited scale and custom builds',
                        'price'     => 'Custom',
                        'popular'   => false,
                        'btn_label' => 'Talk to Sales',
                        'btn_link'  => 'book-strategy-call.php',
                        'features'  => [
                            'Everything in Enterprise, plus:',
                            'Unlimited companies',
                            'Dedicated team',
                            'Private deployment',
                            'Custom integrations',
                            'Architecture review',
                            'Implementation assistance',
                            'CI/CD pipelines',
                            'Custom SLAs',
                            '24/7 priority support',
                            'White-glove migration',
                        ],
                    ],
                ];
                foreach ($plans as $plan):
                    $isPopular = $plan['popular'];
                ?>
                    <div class="flex flex-col <?= $isPopular ? 'bg-white border-2 border-royal shadow-2xl shadow-royal/10 lg:scale-[1.03] z-10' : 'bg-white border border-zinc-200/60' ?> rounded-[32px] p-8 transition-all duration-500 relative overflow-hidden" data-aos="fade-up">

                        <?php if ($isPopular): ?>
                            <div class="absolute top-0 right-0 bg-brandOrange text-white px-5 py-1.5 rounded-bl-2xl font-mono text-[9px] uppercase tracking-widest font-bold">Most Popular</div>
                        <?php endif; ?>

                        <div class="mb-6">
                            <h3 class="text-base font-semibold text-zinc-900 tracking-tight"><?= $plan['title'] ?></h3>
                            <p class="text-xs text-zinc-400 mt-1"><?= $plan['subtitle'] ?></p>
                            <div class="flex items-baseline gap-1 mt-4">
                                <span class="text-4xl font-semibold text-zinc-900 tracking-tighter"><?= $plan['price'] ?></span>
                            </div>
                            <p class="font-mono text-[10px] uppercase tracking-widest text-royal mt-1.5">One-time investment · lifetime ownership</p>
                        </div>

                        <ul class="flex flex-col gap-2.5 mb-8 flex-grow">
                            <?php foreach ($plan['features'] as $f): ?>
                                <?php if (str_contains($f, 'plus:')): ?>
                                    <li class="flex items-start gap-2.5 text-xs font-semibold text-zinc-900">
                                        <span class="text-brandOrange mt-0.5 flex-shrink-0">★</span>
                                        <?= $f ?>
                                    </li>
                                <?php else: ?>
                                    <li class="flex items-start gap-2.5 text-xs text-zinc-500">
                                        <span class="text-brandOrange mt-0.5 flex-shrink-0">✓</span>
                                        <?= $f ?>
                                    </li>
                                <?php endif; ?>
                            <?php endforeach; ?>
                        </ul>

                        <div class="border-t border-zinc-100 pt-6 space-y-2">
                            <a href="<?= $plan['btn_link'] ?>"
                                class="w-full py-4 rounded-full text-center block text-xs font-bold uppercase tracking-widest transition-all <?= $isPopular ? 'bg-royal text-white hover:bg-royal/90' : 'border border-royal text-royal hover:bg-royal hover:text-white' ?>">
                                <?= $plan['btn_label'] ?> →
                            </a>
                            <a href="get-demo.php"
                                class="w-full py-3 rounded-full text-center block text-xs font-medium tracking-wider text-zinc-400 hover:text-royal transition-colors">
                                Request Demo
                            </a>
                        </div>
                    </div>
                <?php endforeach; ?>
            </div>

            <p class="mt-8 text-xs text-zinc-400 text-center" data-aos="fade-up">
                Every Nesvra software product is sold this way: one-time investment, lifetime ownership, source code included, no revenue sharing and no annual license fees. Deployment assistance is available.
            </p>
        </div>
    </section>


    <!-- ─── PURCHASE ASSURANCE STRIP ─── -->
    <section class="bg-royal">
        <div class="max-w-6xl mx-auto px-6 py-4">
            <p class="text-center text-xs sm:text-sm font-medium text-white/70 flex flex-wrap items-center justify-center gap-x-3 gap-y-1">
                <span>Secure merchant checkout</span><span class="text-brandOrange">•</span>
                <span>Lifetime ownership</span><span class="text-brandOrange">•</span>
                <span>Source code included</span><span class="text-brandOrange">•</span>
                <span>Invoice provided</span><span class="text-brandOrange">•</span>
                <span>Deployment support available</span>
            </p>
        </div>
    </section>


    <!-- ─── TIER COMPARISON TABLE ─── -->
    <section class="py-24 bg-white border-b border-zinc-100" id="tier-compare">
        <div class="max-w-6xl mx-auto px-6">

            <div class="max-w-2xl mb-16" data-aos="fade-up">
                <span class="font-mono text-[10px] uppercase tracking-[0.3em] text-zinc-400 block mb-2">Compare plans</span>
                <h2 class="text-3xl font-normal tracking-tight text-zinc-900 leading-[1.15]">
                    What is included <span class="italic font-serif text-royal">at each tier</span>
                </h2>
                <p class="text-zinc-500 text-xs md:text-sm leading-relaxed mt-4">
                    Every tier includes source code and lifetime ownership. Higher tiers add capability, scale and support.
                </p>
            </div>

            <?php
            $tier_rows = [
                ['cap' => 'Core modules',            's' => true,  'g' => true,  'e' => true,  'ep' => true,  'ep_val' => null],
                ['cap' => 'ERP and inventory',       's' => false, 'g' => true,  'e' => true,  'ep' => true,  'ep_val' => null],
                ['cap' => 'Accounting and payroll',  's' => false, 'g' => true,  'e' => true,  'ep' => true,  'ep_val' => null],
                ['cap' => 'Marketing and automation', 's' => false, 'g' => true,  'e' => true,  'ep' => true,  'ep_val' => null],
                ['cap' => 'API access',              's' => false, 'g' => true,  'e' => true,  'ep' => true,  'ep_val' => null],
                ['cap' => 'HR',                      's' => false, 'g' => false, 'e' => true,  'ep' => true,  'ep_val' => null],
                ['cap' => 'AI assistant',            's' => false, 'g' => false, 'e' => true,  'ep' => true,  'ep_val' => null],
                ['cap' => 'White label and SSO',     's' => false, 'g' => false, 'e' => true,  'ep' => true,  'ep_val' => null],
                ['cap' => 'Unlimited companies',     's' => false, 'g' => false, 'e' => false, 'ep' => true,  'ep_val' => null],
                ['cap' => 'Private deployment',      's' => false, 'g' => false, 'e' => false, 'ep' => true,  'ep_val' => null],
                ['cap' => 'Dedicated team',          's' => false, 'g' => false, 'e' => false, 'ep' => true,  'ep_val' => null],
                ['cap' => 'Source code & ownership', 's' => true,  'g' => true,  'e' => true,  'ep' => true,  'ep_val' => null],
                ['cap' => 'Support window',          's' => '90d', 'g' => '180d', 'e' => '365d', 'ep' => '24/7', 'ep_val' => null],
            ];

            $tick = fn($v) => $v === true ? '<span class="text-brandOrange font-bold">✓</span>'
                : ($v === false ? '<span class="text-zinc-200">—</span>'
                    : '<span class="text-zinc-500 text-xs font-mono">' . $v . '</span>');
            ?>

            <div class="bg-white border border-zinc-200/60 rounded-2xl overflow-hidden shadow-sm" data-aos="fade-up">
                <div class="overflow-x-auto">
                    <table class="w-full text-left border-collapse min-w-[640px]">
                        <thead>
                            <tr class="border-b border-zinc-100 bg-zinc-50/70">
                                <th class="p-5 text-xs font-mono uppercase tracking-widest text-zinc-400 font-bold">Capability</th>
                                <th class="p-5 text-xs font-mono uppercase tracking-widest text-zinc-500 font-bold text-center">Starter</th>
                                <th class="p-5 text-xs font-mono uppercase tracking-widest text-zinc-500 font-bold text-center">Growth</th>
                                <th class="p-5 text-xs font-mono uppercase tracking-widest text-zinc-500 font-bold text-center">Enterprise</th>
                                <th class="p-5 text-xs font-mono uppercase tracking-widest text-royal font-bold text-center bg-royal/[0.02]">Enterprise+</th>
                            </tr>
                        </thead>
                        <tbody class="divide-y divide-zinc-100/70 text-sm">
                            <?php foreach ($tier_rows as $row): ?>
                                <tr class="group hover:bg-zinc-50/30 transition-colors">
                                    <td class="p-5 font-medium text-zinc-900 font-sans"><?= $row['cap'] ?></td>
                                    <td class="p-5 text-center"><?= $tick($row['s']) ?></td>
                                    <td class="p-5 text-center"><?= $tick($row['g']) ?></td>
                                    <td class="p-5 text-center"><?= $tick($row['e']) ?></td>
                                    <td class="p-5 text-center bg-royal/[0.02] group-hover:bg-royal/[0.04] transition-colors"><?= $tick($row['ep']) ?></td>
                                </tr>
                            <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </section>


    <?php
    $faqs = [
        ['q' => 'What is the Business Operating System?',    'a' => 'It is the management layer for growing organizations, unifying CRM, accounting, projects, HR, operations, marketing and AI on one platform you own, instead of a dozen disconnected subscriptions. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Unified Platform • Lifetime Ownership</small>', 'icon' => 'ri-apps-2-line'],
        ['q' => 'Do I own the source code?',                 'a' => 'Yes. Every plan includes full source code ownership, with no revenue sharing and no annual license fees. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• 100% IP Sovereignty • No License Fees</small>', 'icon' => 'ri-code-s-slash-line'],
        ['q' => 'Are there per-seat fees?',                  'a' => 'No. Pricing is for the platform, not per user, so the whole organization can use it without increasing cost. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Unlimited Users • Flat Investment</small>', 'icon' => 'ri-team-line'],
        ['q' => 'Is this a one-time payment?',               'a' => 'Yes. You pay once and own the platform for life. Optional managed hosting is separate. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• One-Time Investment • Lifetime Access</small>', 'icon' => 'ri-bank-card-line'],
        ['q' => 'Can it replace HubSpot?',                   'a' => 'Yes. The CRM, marketing and support modules cover the core of what teams use HubSpot for, on a platform you own. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• CRM Core • Marketing Automation</small>', 'icon' => 'ri-customer-service-2-line'],
        ['q' => 'Can it replace Salesforce?',                'a' => 'Yes. The CRM, pipeline, automation and custom objects replace the core Salesforce use cases without per-seat pricing. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Pipeline Management • Custom Objects</small>', 'icon' => 'ri-bar-chart-box-line'],
        ['q' => 'Can it replace Odoo?',                      'a' => 'Yes. It unifies ERP, CRM, accounting, HR and projects much like Odoo, with full source code ownership. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Full ERP Suite • Open Source Ownership</small>', 'icon' => 'ri-git-merge-line'],
        ['q' => 'Can it replace Zoho?',                      'a' => 'Yes. It consolidates the equivalent of the Zoho suite into one owned platform. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Suite Consolidation • Owned Platform</small>', 'icon' => 'ri-layout-5-line'],
        ['q' => 'Can I manage multiple companies?',          'a' => 'Yes. Multi-company is available on Enterprise, and unlimited companies on Enterprise+. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Multi-Tenant • Unlimited Entities</small>', 'icon' => 'ri-building-4-line'],
        ['q' => 'Can I use it for schools?',                 'a' => 'Yes. Schools use it to run admissions, finance, staff and communication from one platform. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Education Verticals • Unified Administration</small>', 'icon' => 'ri-graduation-cap-line'],
        ['q' => 'Can I use it for hospitals?',               'a' => 'Yes. Healthcare organizations use it for staff, billing, operations and records, configured to their workflows. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Healthcare Ready • Workflow Configuration</small>', 'icon' => 'ri-pulse-line'],
        ['q' => 'Can I customize workflows?',                'a' => 'Yes. The workflow engine and source code ownership let you tailor any process to your business. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Workflow Engine • Custom Logic</small>', 'icon' => 'ri-settings-4-line'],
        ['q' => 'Can I host it myself?',                     'a' => 'Yes. Deploy in the cloud, private cloud, or fully on-premise on your own servers. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Self-Host • On-Premise</small>', 'icon' => 'ri-server-line'],
        ['q' => 'Can Nesvra host it?',                       'a' => 'Yes. You can self-host or have Nesvra manage hosting and operations for you. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Managed Hosting • Optional Operations</small>', 'icon' => 'ri-cloud-line'],
        ['q' => 'Do you provide training?',                  'a' => 'Yes. Training sessions are included to onboard each department. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Department Onboarding • Included Training</small>', 'icon' => 'ri-book-open-line'],
        ['q' => 'Can I add modules later?',                  'a' => 'Yes. Start with Starter and add ERP, HR, AI and more by moving up tiers as you grow. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Tier Upgrades • Modular Expansion</small>', 'icon' => 'ri-add-circle-line'],
        ['q' => 'Do you support API integrations?',          'a' => 'Yes. API access is included from Growth, and providers connect through Infrastructure Access. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• API-First • Infrastructure Access</small>', 'icon' => 'ri-instance-line'],
        ['q' => 'Does it include an AI assistant?',          'a' => 'Yes. The AI workspace, content generation and business insights are included on the Enterprise plan. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• AI Workspace • Enterprise Tier</small>', 'icon' => 'ri-robot-line'],
        ['q' => 'Does it include accounting?',               'a' => 'Yes. Accounting, invoicing and payroll are included from the Growth plan. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• Accounting Core • From Growth Tier</small>', 'icon' => 'ri-calculator-line'],
        ['q' => 'How long does deployment take?',            'a' => 'Typically two to four weeks, depending on the modules and data involved. <br><small class="block mt-2 opacity-60 font-mono text-[10px] uppercase tracking-wider text-royal">• 2–4 Weeks • Fast Deployment</small>', 'icon' => 'ri-speed-up-line'],
    ];
    ?>

    <!-- ─── FAQ ─── -->
    <section class="py-24 bg-white overflow-hidden" id="faq-vault">
        <div class="max-w-[1200px] mx-auto px-6">

            <div class="text-center mb-16">
                <span class="font-mono text-[10px] uppercase tracking-[0.4em] text-royal block mb-4">Business Operating System</span>
                <h2 class="text-4xl md:text-5xl font-[400] tracking-tighter text-royal leading-tight">
                    Common Questions. <br>
                    <span class="italic font-serif text-brandOrange">Expert Answers.</span>
                </h2>
            </div>

            <div class="grid md:grid-cols-2 gap-4">
                <?php foreach ($faqs as $faq): ?>
                    <div class="group relative p-8 rounded-[24px] bg-zinc-50/50 border border-zinc-100/80 transition-all duration-500 hover:bg-royal hover:shadow-xl hover:shadow-royal/10 overflow-hidden cursor-pointer">
                        <div class="relative z-10">
                            <div class="flex items-center gap-4 mb-2">
                                <i class="<?= $faq['icon'] ?> text-royal group-hover:text-brandOrange transition-colors"></i>
                                <h3 class="text-[15px] font-semibold text-royal group-hover:text-white transition-colors duration-300 pr-6">
                                    <?= $faq['q'] ?>
                                </h3>
                            </div>
                            <div class="max-h-0 opacity-0 group-hover:max-h-[300px] group-hover:opacity-100 transition-all duration-500 ease-in-out overflow-hidden">
                                <div class="pt-4 text-zinc-500 group-hover:text-white/70 text-[14px] leading-relaxed">
                                    <?= $faq['a'] ?>
                                </div>
                            </div>
                        </div>
                        <div class="absolute top-8 right-8">
                            <div class="w-6 h-6 rounded-full border border-zinc-200 group-hover:border-white/20 flex items-center justify-center transition-all">
                                <i class="ri-add-line text-xs text-royal group-hover:text-white group-hover:rotate-45 transition-all"></i>
                            </div>
                        </div>
                    </div>
                <?php endforeach; ?>
            </div>

            <div class="mt-12 text-center">
                <p class="text-xs text-zinc-500 font-[400]">
                    Don't see your specific requirement?
                    <a href="book-strategy-call.php" class="text-royal border-b border-royal/20 hover:text-brandOrange hover:border-brandOrange transition-all ml-1">
                        Talk to our engineering team
                    </a>
                </p>
            </div>

        </div>
    </section>


    <!-- ─── FINAL CTA ─── -->
    <section class="py-24 px-[5%] bg-white overflow-hidden" id="final-call">
        <div class="max-w-[1200px] mx-auto">
            <div class="relative w-full md:h-[450px] rounded-[32px] border border-zinc-900/5 overflow-hidden flex items-center justify-center group bg-zinc-950">
                <div class="absolute inset-0 z-0">
                    <img src="Asset/system-accounting.webp" alt="Business Operating System" class="w-full h-full object-cover opacity-60 scale-100 group-hover:scale-[1.03] transition-transform duration-[1200ms] ease-out">
                    <div class="absolute inset-0 bg-black/30"></div>
                </div>
                <div class="relative z-10 w-full px-6 py-20 md:py-0 text-center">
                    <div class="max-w-[720px] mx-auto" data-aos="fade-up" data-aos-duration="800">
                        <h2 class="text-4xl md:text-5xl font-[400] tracking-tighter text-white leading-[1.1] mb-6">
                            Ready to consolidate your <br><span class="italic font-serif text-brandOrange">business tools?</span>
                        </h2>
                        <p class="text-white/70 text-sm md:text-base mb-10 max-w-[540px] mx-auto leading-relaxed tracking-tight font-light">
                            Stop paying for multiple subscriptions and start running your entire organization from one operating system you own.
                        </p>
                        <div class="flex flex-col sm:flex-row items-center justify-center gap-4 max-w-xl mx-auto">
                            <a href="#pricing" class="w-full sm:w-auto px-8 py-4 bg-brandOrange text-white rounded-full font-medium text-xs uppercase tracking-widest hover:bg-white hover:text-royal transition-all duration-300 shadow-lg shadow-brandOrange/10 flex items-center justify-center gap-2 group/btn">
                                <span>See Plans & Pricing</span><i class="ri-arrow-down-line text-xs transition-transform duration-300 group-hover/btn:translate-y-0.5"></i>
                            </a>
                            <a href="get-demo.php?product=systems-enterprise-os" class="w-full sm:w-auto px-8 py-4 bg-white/10 backdrop-blur-md text-white rounded-full font-medium text-xs uppercase tracking-widest hover:bg-white hover:text-royal transition-all duration-300 border border-white/10 flex items-center justify-center gap-2 group/btn2">
                                <span>Request Demo</span><i class="ri-play-circle-line text-xs text-brandOrange"></i>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="absolute top-0 right-0 w-80 h-80 bg-blue-500/10 rounded-full blur-[120px] pointer-events-none"></div>
                <div class="absolute bottom-0 left-0 w-80 h-80 bg-brandOrange/10 rounded-full blur-[120px] pointer-events-none"></div>
            </div>
        </div>
    </section>


    <?php include 'components/Scroll-to-top.php'; ?>
    <?php include 'components/footer.php'; ?>

</body>

</html>