@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* =========================================
   1. Design System & Variables
   ========================================= */
:root {
  /* Premium Color System */
  --primary: #7c3aed;       /* Violet-600: Premium, Modern */
  --primary-dark: #6d28d9;  /* Violet-700: Hover state */
  --primary-light: #ede9fe; /* Violet-100: Backgrounds */
  
  --secondary: #06b6d4;     /* Cyan-500: Tech, Fresh */
  --accent: #10b981;        /* Emerald-500: Success, Growth */
  --accent-light: #d1fae5;  /* Emerald-100 */
  --warning: #f59e0b;       /* Amber-500: Attention */
  --danger: #ef4444;        /* Red-500: Error */
  --success: #10b981;       /* Green-500 */

  /* Neutrals - Premium Palette */
  --background: #f9fafb;    /* Gray-50: Clean background */
  --surface: #ffffff;       /* White: Cards */
  --surface-alt: #f3f4f6;   /* Gray-100: Secondary surface */
  --surface-dark: #1f2937;  /* Gray-800: Dark elements */
  
  --text-main: #111827;     /* Gray-900: Primary text */
  --text-body: #374151;     /* Gray-700: Body text */
  --text-muted: #6b7280;    /* Gray-500: Muted text */
  --text-light: #9ca3af;    /* Gray-400: Light text */
  
  --border: #e5e7eb;        /* Gray-200: Borders */
  --border-light: #f3f4f6;  /* Gray-100: Light borders */
  
  /* Shadows - Premium */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-colored: 0 10px 25px -5px rgba(124, 58, 237, 0.2);

  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  
  --spacing-section: 100px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", sans-serif;
  background-color: var(--background);
  background-image: 
    radial-gradient(at 20% 50%, rgba(124, 58, 237, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
    radial-gradient(at 40% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
}

p {
  margin-bottom: 1rem;
}

/* =========================================
   3. Layout Components
   ========================================= */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: var(--spacing-section) 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* =========================================
   4. Components
   ========================================= */

/* Buttons */
.primary-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  outline: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-colored);
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-full);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px -5px rgba(124, 58, 237, 0.4);
}

.primary-btn:hover::before {
  opacity: 1;
}

.primary-btn:active {
  transform: translateY(-1px);
}

.primary-btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ghost-btn {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary-light);
}

.ghost-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Cards */
.card, .info-card, .faq-item, .review-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  overflow: hidden;
  position: relative;
}

.card::before, .info-card::before, .faq-item::before, .review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.info-card:hover, .faq-item:hover, .review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.info-card:hover::before, .faq-item:hover::before, .review-card:hover::before {
  transform: scaleX(1);
}

/* =========================================
   5. Site Header
   ========================================= */
.site-header {
  padding: 80px 0 50px;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.header-content {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 80px;
  align-items: center;
}

.brand-logo {
  width: 100%;
  max-width: 240px;
  filter: drop-shadow(0 15px 30px rgba(124, 58, 237, 0.15));
  margin: 0 auto;
  transition: transform var(--transition-base);
}

.brand-logo:hover {
  transform: scale(1.08) translateY(-5px);
}

.header-text {
  text-align: right;
}

.header-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 24px;
  line-height: 1.1;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-text p {
  font-size: 1.2rem;
  color: var(--text-body);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.8;
}

/* Header Platforms - Horizontal Layout */
.header-platforms-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}

.h-platform-card {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: default;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.h-platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.h-platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: var(--primary-light);
}

.h-platform-card:hover::before {
  opacity: 1;
}

.h-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  font-size: 24px;
  transition: all var(--transition-base);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.h-platform-card.android .h-icon {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.h-platform-card.ios .h-icon {
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.02) 100%);
}

.h-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.h-content h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  color: var(--text-main);
}

.h-badge {
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.h-badge.success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}

.h-badge.waiting {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.header-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.status-message {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   6. Sections
   ========================================= */

/* Info Card Section */
.single-card .info-card {
  text-align: center;
  padding: 80px 60px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(124, 58, 237, 0.02) 100%);
}

.single-card .info-card h2 {
  font-size: 2.5rem;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.single-card .info-card p {
  font-size: 1.2rem;
  color: var(--text-body);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.faq-item {
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
  position: relative;
}

.faq-item h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-item h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

.faq-item p {
  color: var(--text-body);
  font-size: 1.05rem;
  margin-bottom: 0;
  line-height: 1.8;
}

/* Reviews Section */
.reviews-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.review-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.review-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

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

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.review-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.review-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-info strong {
  color: var(--text-main);
  font-size: 1.05rem;
}

.stars {
  color: #fbbf24;
  font-size: 0.9rem;
  display: flex;
  gap: 4px;
}

.review-text {
  color: var(--text-body);
  font-style: italic;
  line-height: 1.8;
  margin-top: auto;
  font-size: 1rem;
  position: relative;
  padding-right: 12px;
}

.review-text::before {
  content: '"';
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  right: 0;
}

/* =========================================
   7. Footer
   ========================================= */
.site-footer {
  background: linear-gradient(135deg, var(--text-main) 0%, #0f172a 100%);
  color: var(--surface-alt);
  padding: 100px 0 40px;
  margin-top: var(--spacing-section);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.footer-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: 1.5fr 1fr 1fr;
  position: relative;
  z-index: 1;
}

.footer-grid h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-grid h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 0;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  margin-bottom: 14px;
}

.list a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.list a:hover {
  color: white;
  transform: translateX(-4px);
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-list a i {
  font-size: 1.2rem;
  transition: all var(--transition-base);
}

.contact-list a:hover i {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* =========================================
   8. Responsive Design
   ========================================= */
@media (max-width: 768px) {
  :root {
    --spacing-section: 60px;
  }

  .header-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .header-text {
    text-align: center;
  }

  .header-text h1 {
    font-size: 2rem;
  }

  .header-platforms-grid {
    justify-content: center;
  }

  .h-platform-card {
    min-width: 160px;
  }

  .header-actions {
    justify-content: center;
  }

  .single-card .info-card {
    padding: 50px 30px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-item {
    padding: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer {
    padding: 60px 0 30px;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-section: 40px;
  }

  .header-text h1 {
    font-size: 1.8rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .h-platform-card {
    min-width: 140px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .h-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .primary-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .single-card .info-card {
    padding: 40px 20px;
  }

  .single-card .info-card h2 {
    font-size: 1.8rem;
  }

  .faq-item {
    padding: 24px;
  }

  .faq-item h3 {
    font-size: 1.1rem;
  }

  .review-card {
    padding: 24px;
  }

  .review-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* =========================================
   9. Animations & Effects
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.section {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}

/* Store Badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.store-badge.ios {
  height: 60px; /* Increased height to match Android badge visual weight */
}

.store-badge.android {
  height: 78px; /* Adjusted height for Google badge to match visual size */
}

.store-badge img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block; /* Removes any extra spacing below inline images */
}

.store-badge:hover {
  transform: translateY(-4px);
}
