﻿:root {
  --primary: #5a4bd4;
  --primary-light: #8b7cf7;
  --secondary: #00b894;
  --accent: #ffd700;
  --accent-dark: #e6c200;
  --dark-bg: #0f0f1a;
  --dark-card: #1a1a2e;
  --dark-surface: #16213e;
  --light-bg: #ede9fe;
  --light-surface: #ffffff;
  --text-light: #1a1a2e;
  --text-dark: #e8e8f0;
  --text-muted: #374151;
  --text-muted-dark: #9ca3af;
  --glass-light: rgba(255, 255, 255, 0.85);
  --glass-dark: rgba(26, 26, 46, 0.7);
  --shadow-sm: 0 2px 8px rgba(90, 75, 212, 0.12);
  --shadow-md: 0 8px 32px rgba(90, 75, 212, 0.16);
  --shadow-lg: 0 20px 60px rgba(90, 75, 212, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', Arial, sans-serif;
  background: var(--light-bg);
  color: var(--text-light);
  min-height: 100vh;
  font-size: 18px;
  line-height: 1.6;
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

body.dark-mode {
  background: var(--dark-bg);
  color: var(--text-dark);
}

/* ===== Animated Background ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(90, 75, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 184, 148, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: bgShift 15s ease-in-out infinite alternate;
}

body.dark-mode::before {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(90, 75, 212, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 184, 148, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
}

@keyframes bgShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(3deg); }
}

/* ===== Modern Header ===== */
header {
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(90, 75, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 72px;
  transition: background var(--transition), border-color var(--transition);
}

body.dark-mode header {
  background: var(--glass-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-left, header > a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  width: 42px;
  height: auto;
  transition: transform var(--transition);
}

.logo:hover {
  transform: rotate(-5deg) scale(1.05);
}

.platform-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-inline-start: 12px;
  letter-spacing: -0.5px;
  transition: color var(--transition);
}

body.dark-mode .platform-title {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Dark Mode Toggle ===== */
.dark-mode-toggle {
  background: rgba(90, 75, 212, 0.12);
  border: 1px solid rgba(90, 75, 212, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.dark-mode-toggle:hover {
  background: rgba(90, 75, 212, 0.2);
  transform: scale(1.1) rotate(15deg);
}

body.dark-mode .dark-mode-toggle {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.2);
}

body.dark-mode .dark-mode-toggle:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* ===== Language Switcher ===== */
.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(90, 75, 212, 0.1);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(90, 75, 212, 0.12);
}

body.dark-mode .lang-switch {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 7px;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.lang-btn.active {
  background: var(--light-surface);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(90, 75, 212, 0.2);
}

body.dark-mode .lang-btn.active {
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}

.lang-btn:hover:not(.active) {
  color: var(--primary);
  background: rgba(90, 75, 212, 0.1);
}

body.dark-mode .lang-btn:hover:not(.active) {
  color: var(--accent);
  background: rgba(255, 215, 0, 0.06);
}

/* ===== Hero Section ===== */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px 40px;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(90, 75, 212, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 184, 148, 0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

body.dark-mode .hero-section::before {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(90, 75, 212, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 184, 148, 0.12) 0%, transparent 50%);
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -2%) scale(1.02); }
  100% { transform: translate(-1%, 1%) scale(1.01); }
}

.hero-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-hook-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  color: #ef4444;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  animation: pulseBadge 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

body.dark-mode .hero-hook-badge {
  background: rgba(255, 68, 68, 0.15);
  color: #ff6b6b;
  border-color: rgba(255, 68, 68, 0.3);
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #00b894 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  line-height: 1.3;
  max-width: 850px;
}

body.dark-mode .hero-title {
  background: linear-gradient(135deg, var(--accent) 0%, #ff9f43 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.2rem;
  color: #374151;
  max-width: 700px;
  font-weight: 500;
}

body.dark-mode .hero-desc {
  color: var(--text-muted-dark);
}

.hero-summary {
  font-size: 1.05rem;
  color: #374151;
  background: rgba(90, 75, 212, 0.08);
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(90, 75, 212, 0.12);
}

body.dark-mode .hero-summary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-muted-dark);
}

.lifetime-note {
  font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 12px 24px;
  text-align: center;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

body.dark-mode .lifetime-note {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.15);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

.hero-actions .hero-btn {
  min-width: 300px;
  text-align: center;
}

/* ===== Modern Buttons ===== */
.hero-btn, .account-btn, .buy-btn, .btn-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition);
  background: linear-gradient(135deg, #5a4bd4, #8b7cf7);
  color: #fff;
  box-shadow: 0 4px 16px rgba(90, 75, 212, 0.35);
}

.hero-btn::before, .account-btn::before, .buy-btn::before, .btn-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.hero-btn:hover::before, .account-btn:hover::before, .buy-btn:hover::before, .btn-main:hover::before {
  transform: translateX(100%);
}

.hero-btn:hover, .account-btn:hover, .buy-btn:hover, .btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(90, 75, 212, 0.45);
}

.hero-btn:active, .account-btn:active {
  transform: translateY(-1px);
}

.start-now, .hero-btn.start-now {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.start-now:hover, .hero-btn.start-now:hover {
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.hero-btn.contact-telegram, .other-btn.telegram {
  background: linear-gradient(135deg, #229ED9, #1a7ab5);
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.3);
}

.hero-btn.contact-telegram:hover {
  box-shadow: 0 8px 30px rgba(34, 158, 217, 0.4);
}

.hero-btn.contact-whatsapp, .other-btn.whatsapp {
  background: linear-gradient(135deg, #25D366, #1da851);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.hero-btn.contact-whatsapp:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.other-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  color: #fff !important;
  transition: all var(--transition);
  gap: 8px;
}

.other-btn:hover {
  transform: translateY(-2px);
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  text-align: center;
  margin: 40px 0 24px;
  background: linear-gradient(135deg, var(--primary), #00b894);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

body.dark-mode .section-title {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--glass-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(90, 75, 212, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(90, 75, 212, 0.3);
}

body.dark-mode .feature-card {
  background: var(--glass-dark);
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .feature-card:hover {
  border-color: rgba(255, 215, 0, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2.8rem;
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(-5deg);
}

.feature-title {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.3rem;
  transition: color var(--transition);
}

body.dark-mode .feature-title {
  color: var(--accent);
}

.feature-desc {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
}

body.dark-mode .feature-desc {
  color: var(--text-muted-dark);
}

/* ===== Team Section ===== */
.team-section {
  background: var(--glass-light);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(90, 75, 212, 0.08);
  border-radius: var(--radius-lg);
  margin: 30px auto;
  padding: 30px 20px;
  max-width: 900px;
}

body.dark-mode .team-section {
  background: var(--glass-dark);
  border-color: rgba(255, 255, 255, 0.05);
}

.team-title {
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

body.dark-mode .team-title { color: var(--accent); }

.team {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

body.dark-mode .team { color: var(--text-muted-dark); }

/* ===== Footer ===== */
footer {
  width: 100%;
  margin-top: 60px;
  position: relative;
  background: #0f172a; /* Dark solid base */
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  overflow: hidden;
}

.footer-content {
  position: relative;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.footer-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5a4bd4, #00b894, #ffd700);
  z-index: 2;
}

.footer-main {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

[dir="rtl"] .footer-main { text-align: right; }
[dir="ltr"] .footer-main { text-align: left; }

.footer-brand {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand img {
  height: 48px !important;
  width: auto !important;
  margin-bottom: 5px;
  display: block;
}

.footer-brand span {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  display: block;
}

#footerSlogan {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.footer-note {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 450px;
}

.footer-links {
  display: flex;
  gap: 30px;
  padding-top: 10px;
}

.footer-links a {
  color: #ffd700 !important; /* Gold links from Image 1 */
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-links a:hover {
  color: #fff !important;
  transform: translateY(-3px);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 20px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

#footerCopyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 850px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center !important;
  }
  .footer-brand img { margin: 0 auto 10px; }
  .footer-links { justify-content: center; width: 100%; }
  .footer-note { margin: 0 auto; }
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body { font-size: 16px; }
  header { padding: 0 16px; height: 60px; }
  .logo { width: 34px; }
  .platform-title { font-size: 1.2rem; }
  .nav-right { gap: 8px; }
  .dark-mode-toggle { width: 38px; height: 38px; font-size: 1.2rem; }
  .lang-btn { font-size: 0.8rem; padding: 4px 10px; }
  .hero-section { padding: 40px 16px 30px; min-height: auto; }
  .hero-title { font-size: 1.8rem; }
  .hero-desc { font-size: 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-btn, .account-btn { width: 100%; padding: 14px 24px; font-size: 0.95rem; }
  .section-title { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 12px; }
  .feature-card { padding: 24px 16px; }
  .feature-title { font-size: 1.1rem; }
  .feature-desc { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  header { padding: 0 10px; height: 52px; }
  .logo { width: 28px; }
  .platform-title { font-size: 1rem; margin-inline-start: 8px; }
  .lang-btn { font-size: 0.75rem; padding: 3px 8px; }
  .dark-mode-toggle { width: 34px; height: 34px; font-size: 1rem; }
  .hero-title { font-size: 1.4rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-hook-badge { font-size: 0.75rem; padding: 8px 16px; }
  .lifetime-note { font-size: 0.9rem; padding: 10px 16px; }
  .section-title { font-size: 1.4rem; }
}