/* ===================================================
   HIFED LANDING PAGE — Premium CSS
   Colors: Teal #14b8a6, Gold #f59e0b, Dark #0f172a
   =================================================== */

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

:root {
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-light: #5eead4;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --dark: #0f172a;
  --dark2: #1e293b;
  --dark3: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.25);
  --font-ar: 'Cairo', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-ar);
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
}

body.lang-en {
  font-family: var(--font-en);
  direction: ltr;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--teal-dark);
  border-radius: 3px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.97);
  box-shadow: var(--shadow-md);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(20, 184, 166, 0.3));
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--teal-light);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.lang-toggle:hover {
  background: rgba(20, 184, 166, 0.2);
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.2);
  transform: translateY(-1px);
}

.lang-icon {
  font-size: 1rem;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(20, 184, 166, 0.3);
  transition: all var(--transition);
}

.nav-action-btn:hover {
  background: rgba(20, 184, 166, 0.2);
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.2);
  transform: translateY(-1px);
}


/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--teal);
  top: -100px;
  right: -150px;
  animation: float1 8s ease-in-out infinite;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: var(--gold);
  bottom: 5%;
  left: -100px;
  animation: float2 10s ease-in-out infinite;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: #8b5cf6;
  top: 40%;
  left: 30%;
  animation: float1 12s ease-in-out infinite reverse;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(20px) scale(0.95);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  flex: 1 1 300px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--gold);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.6s ease both;
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  animation: fadeInDown 0.7s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal-light), var(--teal), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  animation: fadeInDown 0.75s ease 0.15s both;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.8s ease 0.2s both;
}

/* ===== DOWNLOAD BUTTONS ===== */
.download-section {
  animation: fadeInDown 0.9s ease 0.3s both;
}

.download-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.download-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.dl-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  flex: 1 1 140px;
  min-width: 140px;
}

.dl-android {
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
  border-color: rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

.dl-android:hover {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.25);
}

.dl-windows {
  background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
  border-color: rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}

.dl-windows:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.25);
}

.dl-linux {
  background: linear-gradient(135deg, #2d1b69, #4c1d95);
  border-color: rgba(167, 139, 250, 0.3);
  color: #c4b5fd;
}

.dl-linux:hover {
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.25);
}

.dl-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-icon svg {
  width: 100%;
  height: 100%;
}

.dl-text {
  display: flex;
  flex-direction: column;
}

.dl-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

.dl-platform {
  font-size: 1rem;
  font-weight: 700;
}

/* ===== MOCKUPS ===== */
.hero-visual {
  position: relative;
  z-index: 1;
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1s ease 0.4s both;
}

.mockup-wrapper {
  position: relative;
  width: 500px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop-mockup {
  position: absolute;
  top: 20px;
  right: 0;
  width: 440px;
  height: 270px;
  background: #111827;
  border-radius: 10px 10px 0 0;
  padding: 12px 12px 18px 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 60px rgba(20, 184, 166, 0.1);
  animation: laptopBob 6s ease-in-out infinite reverse;
  z-index: 1;
}

.laptop-mockup::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #333;
  border-radius: 50%;
}

.laptop-base {
  position: absolute;
  bottom: -12px;
  left: -20px;
  right: -20px;
  height: 12px;
  background: linear-gradient(180deg, #334155, #0f172a);
  border-radius: 0 0 12px 12px;
  border-top: 2px solid #64748b;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  z-index: 1;
}

.laptop-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #1e293b;
  border-radius: 0 0 4px 4px;
}

.laptop-screen {
  width: 100%;
  height: 100%;
  background: var(--dark);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.desktop-preview {
  display: flex;
  flex-direction: row !important;
  height: 100%;
}

.desktop-sidebar {
  width: 120px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.lang-en .desktop-sidebar {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.desktop-logo {
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--teal-light), var(--teal), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item.active {
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal-light);
}

.nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-icon {
  width: 16px;
  height: 16px;
  display: flex;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.desktop-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.desktop-stats {
  display: flex;
  gap: 10px;
}

.desktop-stat-card {
  padding: 10px 14px;
  min-width: 100px;
}

.desktop-stat-card .card-value {
  font-size: 1.6rem;
  margin-bottom: 0;
}

.desktop-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.desktop-content::-webkit-scrollbar {
  width: 4px;
}
.desktop-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@keyframes laptopBob {
  0%, 100% { transform: translateY(0) rotate(0.3deg); }
  50% { transform: translateY(-8px) rotate(-0.3deg); }
}

.phone-mockup-wrapper {
  position: absolute;
  bottom: -40px;
  left: -20px;
  z-index: 2;
  transform: scale(0.65);
  transform-origin: bottom left;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border-radius: 40px;
  border: 2px solid rgba(20, 184, 166, 0.3);
  box-shadow:
    0 0 0 1px rgba(20, 184, 166, 0.1),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(20, 184, 166, 0.15);
  overflow: hidden;
  position: relative;
  animation: phoneBob 5s ease-in-out infinite;
}

@keyframes phoneBob {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 6px;
  background: rgba(20, 184, 166, 0.4);
  border-radius: 3px;
}

.phone-screen {
  height: 100%;
  padding: 30px 14px 20px;
}

.app-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-greeting {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preview-teacher {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-light);
}

.preview-card {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
}

.card-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.card-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 10px;
}

.card-progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 4px;
  animation: growBar 2s ease 1s both;
}

@keyframes growBar {
  from {
    width: 0 !important;
  }
}

.preview-students {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.student-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  animation: slideIn 0.5s ease both;
}

.student-item:nth-child(1) {
  animation-delay: 0.8s;
}

.student-item:nth-child(2) {
  animation-delay: 1s;
}

.student-item:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.student-avatar {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.student-info {
  flex: 1;
  min-width: 0;
}

.student-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-ayahs {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.student-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  flex-shrink: 0;
}

.student-badge.excellent {
  background: rgba(20, 184, 166, 0.2);
  color: var(--teal-light);
}

.student-badge.good {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.student-badge.review {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SECTIONS COMMON ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-block;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--teal-light);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease var(--delay, 0s) both;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(20, 184, 166, 0.1);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--color) 40%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color);
  transition: all var(--transition);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color) 25%, transparent);
}

.feature-icon {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 6rem 1.5rem;
  background: var(--dark);
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
  flex: 1 1 200px;
}

.step-number {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.4);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.step-number .en-hidden {
  display: none;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(20, 184, 166, 0.2));
  margin-top: 36px;
  margin-bottom: auto;
  align-self: flex-start;
}

body.lang-en .step-connector {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.2), var(--teal));
}

/* ===== STATS STRIP ===== */
.stats-strip {
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(245, 158, 11, 0.05));
  border-top: 1px solid rgba(20, 184, 166, 0.15);
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
}

.stats-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1rem 2.5rem;
  flex: 1 1 150px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(20, 184, 166, 0.2);
  flex-shrink: 0;
}

/* ===== DOWNLOAD CTA ===== */
.download-cta {
  padding: 6rem 1.5rem;
  background: var(--dark2);
}

.cta-card {
  background: linear-gradient(135deg, #0d2a2a, #0f172a, #1a1a3e);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.85rem;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-dl-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  transition: all var(--transition);
  border: 1px solid transparent;
  min-width: 180px;
}

.cta-dl-btn.android {
  background: linear-gradient(135deg, #064e3b, #065f46);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.15);
}

.cta-dl-btn.android:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(52, 211, 153, 0.3);
  background: linear-gradient(135deg, #065f46, #047857);
}

.cta-dl-btn.windows {
  background: linear-gradient(135deg, #1e3a5f, #1e40af);
  border-color: rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  box-shadow: 0 4px 20px rgba(96, 165, 250, 0.15);
}

.cta-dl-btn.windows:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(96, 165, 250, 0.3);
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.cta-dl-btn.linux {
  background: linear-gradient(135deg, #2e1065, #4c1d95);
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.15);
}

.cta-dl-btn.linux:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(167, 139, 250, 0.3);
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
}

.cta-dl-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-dl-text {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.cta-label {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 500;
}

.cta-platform {
  font-size: 1.05rem;
  font-weight: 800;
}

/* ===== FOOTER ===== */
.footer {
  background: #080f1a;
  border-top: 1px solid rgba(20, 184, 166, 0.1);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo-img {
  height: 100px;
  object-fit: contain;
  opacity: 0.8;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.footer-copy {
  color: rgba(148, 163, 184, 0.5);
  font-size: 0.8rem;
}

/* ===== RTL / LTR helpers ===== */
.ar-num {
  display: inline;
}

/* ===== Intersection Observer Animations ===== */
.feature-card,
.step-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease var(--delay, 0s), transform 0.6s ease var(--delay, 0s);
}

.feature-card.visible,
.step-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero-visual {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
  }

  .download-buttons {
    justify-content: center;
  }

  .step-connector {
    display: none;
  }

  .steps-container {
    gap: 2rem;
  }

  .step-item {
    max-width: 100%;
    flex-direction: row;
    text-align: start;
    gap: 1rem;
  }

  .step-number {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .mockup-wrapper {
    transform: scale(0.85);
    margin-inline: -37.5px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-dl-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .stats-container {
    gap: 1.5rem;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .dl-btn {
    min-width: 120px;
  }

  .download-buttons {
    gap: 0.6rem;
  }

  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mockup-wrapper {
    transform: scale(0.65);
    margin-top: -40px;
    margin-bottom: -20px;
    margin-inline: -87.5px;
  }
}