<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>خوش آمدید - مایا اسلامی</title>
  <link href="/css/output.css" rel="stylesheet">
</head>
<body class="bg-gray-50 dark:bg-black transition-colors duration-300">
  <div class="min-h-screen flex flex-col">
    <header class="bg-white dark:bg-black shadow-sm dark:shadow-dark-lg">
      <div class="container mx-auto px-4 py-4">
        <div class="flex justify-between items-center">
          <h1 class="text-2xl font-bold text-primary-600 dark:text-primary-400 flex items-center space-x-2 space-x-reverse">
            <i class="fas fa-chart-line text-3xl"></i>
            <span>مایا اسلامی</span>
          </h1>
          <button id="theme-toggle" class="p-2 rounded-lg bg-gray-200 dark:bg-gray-800 hover:bg-gray-300 dark:hover:bg-dark-700 transition-all duration-200 shadow-md dark:shadow-dark">
            <svg id="theme-toggle-dark-icon" class="hidden w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
              <path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"></path>
            </svg>
            <svg id="theme-toggle-light-icon" class="hidden w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
              <path fill-rule="evenodd" d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z" clip-rule="evenodd"></path>
            </svg>
          </button>
        </div>
      </div>
    </header>

    <main class="flex-1">
      <section class="bg-gradient-to-br from-primary-600 to-primary-800 text-white py-20">
        <div class="container mx-auto px-4 text-center">
          <h2 class="text-5xl font-bold mb-6">ربات پریمیوم سیگنال تریدینگ</h2>
          <p class="text-xl mb-8 max-w-2xl mx-auto">
            به ربات‌های تلگرام ما بپیوندید و سیگنال‌های حرفه‌ای فارکس، کریپتو، طلا و سهام دریافت کنید. با نرخ موفقیت بالای ۸۷٪ سودآوری خود را به حداکثر برسانید.
          </p>
          <div class="flex justify-center space-x-4 space-x-reverse">
            <button onclick="showLoginModal()" class="bg-white text-primary-600 px-8 py-3 rounded-lg font-semibold hover:bg-gray-100 transition-colors">
              ورود
            </button>
            <button onclick="showRegisterModal()" class="border-2 border-white text-white px-8 py-3 rounded-lg font-semibold hover:bg-white hover:text-primary-600 transition-colors">
              ثبت نام
            </button>
          </div>
        </div>
      </section>

      <section class="py-16">
        <div class="container mx-auto px-4">
          <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
            <div class="card hover:shadow-xl dark:hover:shadow-dark-xl transition-all duration-300 text-center">
              <div class="w-16 h-16 bg-primary-100 dark:bg-primary-900 rounded-full flex items-center justify-center mx-auto mb-4">
                <i class="fas fa-chart-line text-3xl text-primary-600 dark:text-primary-400"></i>
              </div>
              <h3 class="text-xl font-semibold mb-2 text-gray-800 dark:text-gray-200">سیگنال‌های حرفه‌ای</h3>
              <p class="text-gray-600 dark:text-gray-400">تحلیل دقیق بازار و سیگنال‌های به زمان ریال</p>
            </div>

            <div class="card hover:shadow-xl dark:hover:shadow-dark-xl transition-all duration-300 text-center">
              <div class="w-16 h-16 bg-primary-100 dark:bg-primary-900 rounded-full flex items-center justify-center mx-auto mb-4">
                <i class="fas fa-robot text-3xl text-primary-600 dark:text-primary-400"></i>
              </div>
              <h3 class="text-xl font-semibold mb-2 text-gray-800 dark:text-gray-200">ربات تلگرام</h3>
              <p class="text-gray-600 dark:text-gray-400">دسترسی آسان به سیگنال‌ها از طریق ربات تلگرام</p>
            </div>

            <div class="card hover:shadow-xl dark:hover:shadow-dark-xl transition-all duration-300 text-center">
              <div class="w-16 h-16 bg-primary-100 dark:bg-primary-900 rounded-full flex items-center justify-center mx-auto mb-4">
                <i class="fas fa-dollar-sign text-3xl text-primary-600 dark:text-primary-400"></i>
              </div>
              <h3 class="text-xl font-semibold mb-2 text-gray-800 dark:text-gray-200">سودآوری بالا</h3>
              <p class="text-gray-600 dark:text-gray-400">نرخ موفقیت ۸۷٪ و سود میانگین ۱۵٪ در ماه</p>
            </div>
          </div>
        </div>
      </section>
    </main>

    <%- include('../components/footer') %>
  </div>

  <!-- Login Modal -->
  <div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 hidden items-center justify-center z-50">
    <div class="bg-white dark:bg-black rounded-lg p-8 max-w-md w-full mx-4">
      <div class="flex justify-between items-center mb-6">
        <h3 class="text-2xl font-bold text-gray-800 dark:text-gray-200">ورود</h3>
        <button onclick="hideLoginModal()" class="text-gray-500 hover:text-gray-700">
          <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
          </svg>
        </button>
      </div>

      <form action="/login" method="POST" class="space-y-4">
        <div>
          <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">ایمیل</label>
          <input type="email" name="email" required class="input-field" placeholder="ایمیل خود را وارد کنید">
        </div>
        <div>
          <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">رمز عبور</label>
          <input type="password" name="password" required class="input-field" placeholder="رمز عبور خود را وارد کنید">
        </div>
        <button type="submit" class="w-full btn-primary hover:shadow-lg dark:hover:shadow-glow">ورود</button>
      </form>

      <p class="text-center text-gray-600 dark:text-gray-400 mt-4">
        حساب کاربری ندارید؟
        <button onclick="hideLoginModal(); showRegisterModal()" class="text-primary-600 dark:text-primary-400 hover:underline">ثبت نام کنید</button>
      </p>
    </div>
  </div>

  <!-- Register Modal -->
  <div id="registerModal" class="fixed inset-0 bg-black bg-opacity-50 hidden items-center justify-center z-50">
    <div class="bg-white dark:bg-black rounded-lg p-8 max-w-md w-full mx-4">
      <div class="flex justify-between items-center mb-6">
        <h3 class="text-2xl font-bold text-gray-800 dark:text-gray-200">ثبت نام</h3>
        <button onclick="hideRegisterModal()" class="text-gray-500 hover:text-gray-700">
          <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
          </svg>
        </button>
      </div>

      <form action="/register" method="POST" class="space-y-4">
        <div>
          <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">نام</label>
          <input type="text" name="name" required class="input-field" placeholder="نام خود را وارد کنید">
        </div>
        <div>
          <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">ایمیل</label>
          <input type="email" name="email" required class="input-field" placeholder="ایمیل خود را وارد کنید">
        </div>
        <div>
          <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">رمز عبور</label>
          <input type="password" name="password" required class="input-field" placeholder="رمز عبور خود را وارد کنید">
        </div>
        <button type="submit" class="w-full btn-primary hover:shadow-lg dark:hover:shadow-glow">ثبت نام</button>
      </form>

      <p class="text-center text-gray-600 dark:text-gray-400 mt-4">
        قبلاً ثبت نام کرده‌اید؟
        <button onclick="hideRegisterModal(); showLoginModal()" class="text-primary-600 dark:text-primary-400 hover:underline">وارد شوید</button>
      </p>
    </div>
  </div>

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <script src="/js/landing.js"></script>
  <script src="/js/theme.js"></script>
</body>
</html>