/* ===================================================================
   Landing Page - Marketing Styles
   =================================================================== */

/* ---------- Header / Navigation ---------- */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  padding: 0.5rem 0.875rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: var(--transition);
}

.lang-switch:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  color: var(--gray-700);
  font-size: 1.25rem;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 5rem 0 6rem;
  background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,0.1), transparent);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.1), transparent);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease;
}

.hero h1 {
  font-size: 3.25rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  animation: fadeIn 0.8s ease;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  animation: fadeIn 1s ease;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeIn 1.2s ease;
}

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  animation: fadeIn 1.4s ease;
}

.hero-trust strong {
  color: var(--gray-900);
  font-size: 1.125rem;
  display: block;
}

.hero-image {
  position: relative;
  animation: fadeIn 1s ease;
}

.hero-image-box {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-2xl);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition-slow);
}

body[dir="rtl"] .hero-image-box {
  transform: perspective(1000px) rotateY(5deg);
}

.hero-image-box:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-mockup {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='rgba(255,255,255,0.05)'%3e%3cpath d='M0 0h40v40H0z'/%3e%3cpath d='M20 20h20v20H20zM0 0h20v20H0z' fill='rgba(255,255,255,0.05)'/%3e%3c/svg%3e");
}

/* Floating cards */
.float-card {
  position: absolute;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

.float-card-1 {
  top: 20%;
  left: -30px;
}

.float-card-2 {
  bottom: 15%;
  right: -20px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
}

.float-card-1 .float-icon { background: var(--success); }
.float-card-2 .float-icon { background: var(--accent); }

.float-card-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.float-card-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ---------- Stats Section ---------- */
.stats {
  padding: 4rem 0;
  background: white;
  border-bottom: 1px solid var(--gray-100);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9375rem;
}

/* ---------- Features Section ---------- */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.125rem;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: rotate(-5deg) scale(1.1);
}

.feature-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------- Dashboards Preview ---------- */
.dashboards-section {
  background: var(--gray-50);
}

.dashboards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.dashboard-pill {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
}

.dashboard-pill:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.dashboard-pill-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.875rem;
  font-size: 1.25rem;
  color: white;
}

.dashboard-pill:nth-child(1) .dashboard-pill-icon { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.dashboard-pill:nth-child(2) .dashboard-pill-icon { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.dashboard-pill:nth-child(3) .dashboard-pill-icon { background: linear-gradient(135deg, #10b981, #059669); }
.dashboard-pill:nth-child(4) .dashboard-pill-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dashboard-pill:nth-child(5) .dashboard-pill-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }
.dashboard-pill:nth-child(6) .dashboard-pill-icon { background: linear-gradient(135deg, #ec4899, #db2777); }
.dashboard-pill:nth-child(7) .dashboard-pill-icon { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.dashboard-pill:nth-child(8) .dashboard-pill-icon { background: linear-gradient(135deg, #f97316, #ea580c); }

.dashboard-pill-name {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.dashboard-pill-text {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3e%3cg fill='none' stroke='rgba(255,255,255,0.05)'%3e%3cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3e%3c/g%3e%3c/svg%3e");
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-section .btn {
  background: white;
  color: var(--primary);
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  position: relative;
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-about {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-title {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 0.25rem;
}

body[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 0.25rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta, .hero-trust {
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .features-grid,
  .dashboards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    align-items: flex-start;
  }
  
  .nav-menu.open {
    max-height: 400px;
  }
  
  .mobile-toggle {
    display: inline-flex;
  }
  
  .nav-actions .btn-outline {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
  
  .features-grid,
  .dashboards-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .cta-section h2 {
    font-size: 1.875rem;
  }
  
  .float-card {
    display: none;
  }
}
