:root {
  --bg: #f4f7ff;
  --surface: #ffffff;
  --text: #0a0a0a;
  --muted: #3a3a3a;
  --primary: #2f5bff;
  --primary-dark: #1e3fcc;
  --accent: #13c4a3;
  --border: #e6eaf5;
  --shadow: 0 12px 30px rgba(10, 25, 70, 0.08);
  --brand-black: #0a0a0a;
  --brand-orange: #f97316;
  --brand-orange-dark: #c2410c;
  --brand-orange-soft: rgba(249, 115, 22, 0.2);
  --brand-orange-muted: rgba(249, 115, 22, 0.12);
}

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

body {
  font-family: "Tajawal", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

body.lang-en {
  font-family: "Tajawal", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand img {
  width: 142px;
  height: auto;
}

.top-nav {
  display: flex;
  gap: 22px;
  font-weight: 700;
  color: #2a3448;
}

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

.header-controls {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  height: 40px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.nav-btn i {
  font-size: 0.9rem;
}

.nav-btn-primary {
  background: #f59e0b;
  color: #fff;
  border: 1px solid #f59e0b;
}

.nav-btn-primary:hover {
  background: #df8a05;
  border-color: #df8a05;
}

.nav-btn-outline {
  background: transparent;
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.nav-btn-outline:hover {
  background: #fff4de;
}

.lang-actions {
  display: flex;
  gap: 6px;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #23304a;
  cursor: pointer;
}

.lang-icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: #23304a;
  line-height: 1;
}

.lang-icon-btn i {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.lang-icon-btn.is-en i {
  transform: scaleX(-1);
}

.lang-icon-btn:hover {
  background: #f4f7ff;
}

#langCode {
  min-width: 24px;
  text-align: center;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 35, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 150;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: #fff;
  box-shadow: 0 18px 38px rgba(10, 25, 70, 0.18);
  z-index: 160;
  padding: 18px 16px;
  transform: translateX(108%);
  transition: transform 0.35s ease;
}

html[dir="rtl"] .mobile-menu-drawer {
  right: 0;
}

html[dir="ltr"] .mobile-menu-drawer {
  left: 0;
  transform: translateX(-108%);
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

body.mobile-menu-open .mobile-menu-drawer {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mobile-menu-head img {
  width: 126px;
}

.mobile-close-btn {
  border: 1px solid var(--border);
  background: #f7f9ff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
}

.mobile-nav-links {
  display: grid;
  gap: 10px;
}

.mobile-nav-links a {
  background: #f6f8ff;
  border: 1px solid #e7ecfa;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}

.mobile-nav-auth {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.mobile-nav-auth .nav-btn {
  justify-content: center;
  padding: 10px 12px;
}

body.mobile-menu-open {
  overflow: hidden;
}

.hero {
  padding: 70px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 38px;
  align-items: center;
}

.hero-image img {
  max-height: 620px;
  margin: auto;
  filter: drop-shadow(0 16px 38px rgba(47, 91, 255, 0.2));
  animation: botFloat 4.6s ease-in-out infinite;
}

.badge {
  display: inline-block;
  background: rgba(47, 91, 255, 0.12);
  color: var(--primary);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-content h1 {
  animation: fadeInLeft 0.95s ease forwards;
}

.hero-content p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-content .hero-lead {
  white-space: pre-line;
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  font-weight: 600;
  line-height: 1.55;
  color: #334155;
}

.meta-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.download-wrap {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.download-title {
  margin-bottom: 12px;
  font-weight: 700;
  color: #202a3a;
}

.cta-btn {
  display: inline-block;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary), #5a7bff);
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.store-buttons img {
  height: 52px;
  width: auto;
}

.section {
  padding: 66px 0;
}

.section.alt {
  background: #eef3ff;
}

#services.section.alt {
  background: #f2f4f8;
}

#services h2,
#services .section-sub {
  text-align: center;
}

.features-rich {
  background: linear-gradient(180deg, #faf9f7 0%, #f3f5fb 100%);
}

.features-rich > .container {
  width: min(1240px, 94%);
  overflow-x: clip;
}

.features-hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.2vw, 12px);
  margin-bottom: clamp(40px, 6vw, 56px);
}

.features-hero-copy {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}

.features-hero-copy h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  line-height: 1.25;
  color: var(--brand-black);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 14px;
}

.features-hero-copy h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-orange), #fb923c);
  transform: translate(-50%, 0);
}

.features-hero-sub {
  margin: 0 auto;
  max-width: 32rem;
  font-size: clamp(0.98rem, 1.85vw, 1.08rem);
  line-height: 1.65;
  color: var(--muted);
  font-weight: 500;
}

/* يبطّل margin-bottom لـ .section-sub (26px) الوارد لاحقاً في الملف */
#features .features-hero-sub.section-sub {
  margin-bottom: 0;
}

.features-hero-visual {
  width: 100%;
  max-width: min(680px, 100%);
  margin-inline: auto;
  animation: featuresHeroFloat 5s ease-in-out infinite;
  will-change: transform;
}

.features-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-tile {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 26px 20px 24px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(16, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(16, 23, 42, 0.08);
}

.feature-tile-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: #fff;
  font-size: 1.28rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.feature-tile-icon--emerald {
  background: linear-gradient(145deg, #34d399, #059669);
}

.feature-tile-icon--blue {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
}

.feature-tile-icon--teal {
  background: linear-gradient(145deg, #2dd4bf, #0d9488);
}

.feature-tile-icon--amber {
  background: linear-gradient(145deg, #fbbf24, #d97706);
}

.feature-tile-icon--violet {
  background: linear-gradient(145deg, #a78bfa, #7c3aed);
}

.feature-tile-icon--indigo {
  background: linear-gradient(145deg, #818cf8, #4f46e5);
}

.feature-tile-icon--green {
  background: linear-gradient(145deg, #4ade80, #16a34a);
}

.feature-tile-icon--lime {
  background: linear-gradient(145deg, #a3e635, #65a30d);
}

.feature-tile-icon--sky {
  background: linear-gradient(145deg, #38bdf8, #0284c7);
}

.feature-tile h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1b2233;
}

.feature-tile p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

.ai-showcase {
  padding: 64px 0 58px;
  background: radial-gradient(ellipse 95% 90% at 50% 12%, #ffffff 0%, #fff7ed 42%, #ffedd5 78%, #fed7aa 100%);
  text-align: center;
  color: var(--brand-black);
}

.ai-showcase-inner {
  max-width: 820px;
  margin-inline: auto;
}

.ai-showcase-heading {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.28;
  margin: 0 0 18px;
  color: var(--brand-black);
  letter-spacing: -0.02em;
}

/* عنوان AI يستخدم حركة الأسطر الداخلية — لا نخفيه بـ .reveal على الـ h2 */
#aiShowcaseHeading.reveal,
.ai-showcase-heading.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.ai-showcase-line {
  display: block;
  opacity: 0;
  animation: aiShowcaseTitleIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ai-showcase-heading .ai-showcase-line:nth-child(1) {
  animation-delay: 0.12s;
}

.ai-showcase-heading .ai-showcase-line:nth-child(2) {
  animation-delay: 0.32s;
}

.ai-showcase-line--accent {
  margin-top: 6px;
  background-image: linear-gradient(
    105deg,
    #7c2d12 0%,
    #c2410c 22%,
    #f97316 45%,
    #ea580c 68%,
    #9a3412 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: aiShowcaseTitleIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    aiShowcaseGradient 6s ease-in-out infinite;
  animation-delay: 0.32s, 1.05s;
}

.ai-showcase-desc {
  margin: 0 auto 32px;
  max-width: 52rem;
  font-size: clamp(1rem, 1.85vw, 1.12rem);
  line-height: 1.7;
  color: #1a1a1a;
  font-weight: 500;
}

.ai-showcase-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin: 0;
  padding: 0;
}

.ai-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand-black);
}

.ai-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-orange);
  color: var(--brand-black);
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}

#how h2,
#how .section-sub {
  text-align: center;
}

#pricing h2,
#pricing .section-sub {
  text-align: center;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 26px;
}

.partners-section h2,
.partners-section .section-sub {
  text-align: center;
}

.partners-marquee {
  overflow: hidden;
  position: relative;
  padding: 8px 0;
  isolation: isolate;
  width: 60%;
  margin-inline: auto;
}

.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 2;
  pointer-events: none;
}

.partners-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(244, 247, 255, 0) 100%);
}

.partners-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, rgba(244, 247, 255, 0) 100%);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  direction: ltr;
  padding-inline: 0;
  will-change: transform;
}

.partner-logo {
  background: #fff;
  border: 1px solid #e8edf8;
  border-radius: 14px;
  width: 190px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(16, 23, 42, 0.06);
}

.partner-logo img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eceff5;
  padding: 26px 22px 20px;
  box-shadow: 0 2px 10px rgba(16, 23, 42, 0.03);
  text-align: center;
}

.card i {
  color: #f59e0b;
  font-size: 1.85rem;
  margin-bottom: 12px;
}

.feature-store-copy {
  text-align: start;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.service-list-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
  margin: 10px 0 38px;
}

.service-icon-item {
  text-align: center;
  background: #fff;
  border: 1px solid #e8ebf3;
  border-radius: 16px;
  padding: 28px 16px;
  box-shadow: 0 8px 24px rgba(16, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-icon-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(16, 23, 42, 0.1);
}

.service-icon-item i {
  color: #f59e0b;
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.service-icon-item h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1b2233;
}

.service-showcase {
  display: grid;
  gap: 18px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.showcase-item.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.showcase-item.reverse img {
  order: 2;
}

.showcase-item h3 {
  margin-bottom: 8px;
  color: #f59e0b;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
}

.showcase-item p {
  color: var(--muted);
}

.faheem-badge {
  width: 150px;
  max-width: 100%;
  margin-bottom: 12px;
}

.showcase-item img {
  border-radius: 12px;
  border: none;
}

.showcase-item > img:first-of-type {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.stats-section {
  background: transparent;
}

.stats-wrap {
  background: #161d2c;
  color: #fff;
  border-radius: 22px;
  padding: 34px 24px 28px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(7, 15, 35, 0.22);
}

.stats-wrap h2 {
  color: #f59e0b;
  margin-bottom: 2px;
}

.stats-sub {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.stats-rating {
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.stats-rating span {
  color: #fff;
  font-weight: 800;
  margin-inline-start: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  border-radius: 14px;
  padding: 16px 12px;
}

.stat-card i {
  font-size: 4rem;
  color: #ff9d00;
  margin-bottom: 8px;
}

.stat-number {
  color: #ff9d00;
  font-size: clamp(3.3rem, 6.4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.stat-card p:last-child {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pricing-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toggle-group {
  background: #fff;
  border: 1px solid #e4e9f5;
  border-radius: 999px;
  padding: 5px;
  display: inline-flex;
  gap: 6px;
  box-shadow: 0 6px 20px rgba(16, 23, 42, 0.06);
}

.toggle-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #2a3448;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'Tajawal';
}

.toggle-btn.active {
  background: #f59e0b;
  color: #fff;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--primary);
  transform: translateY(-6px);
}

.popular {
  position: absolute;
  top: -12px;
  inset-inline-start: 20px;
  background: var(--accent);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 8px 0 12px;
}

.plan-name {
  color: #f59e0b;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.plan ul {
  list-style: none;
  margin-bottom: 18px;
  flex: 1;
}

.plan li {
  color: var(--muted);
  margin-bottom: 8px;
  position: relative;
  padding-inline-start: 18px;
}

.plan li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
}

.pricing-grid .btn {
  margin-top: auto;
  align-self: center;
  min-width: 120px;
  text-align: center;
}

.btn:hover {
  background: #df8a05;
}

.join-cta {
  background: #ff8a00;
  padding: 58px 0;
}

.join-cta-inner {
  text-align: center;
  color: #fff;
}

.join-cta h2 {
  color: #fff;
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.join-cta p {
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 22px;
  white-space: pre-line;
}

.join-btn {
  display: inline-block;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  padding: 10px 28px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.clients-section h2,
.clients-section .section-sub {
  text-align: center;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin-inline: auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(16, 23, 42, 0.06);
}

.faq-item h3 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  color: #f59e0b;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.payment-section h2,
.payment-section .section-sub {
  text-align: center;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.payment-card {
  background: #fff;
  border: 1px solid #e8edf8;
  border-radius: 14px;
  padding: 14px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(16, 23, 42, 0.06);
}

.payment-card img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.clients-slider {
  overflow: hidden;
  position: relative;
  padding: 6px 48px;
}

.clients-track {
  display: flex;
  gap: 16px;
  will-change: transform;
  direction: ltr;
}

.client-card {
  background: #fff;
  border: 1px solid #eef1f7;
  border-radius: 14px;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(16, 23, 42, 0.05);
  flex: 0 0 calc((100% - 64px) / 5);
  direction: rtl;
}

body.lang-en .client-card {
  direction: ltr;
}

.client-card img {
  max-height: 74px;
  width: auto;
  object-fit: contain;
}

.client-card p {
  margin-top: 10px;
  color: #2a3448;
  font-weight: 700;
  font-size: 0.95rem;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #1d2a44;
  box-shadow: 0 8px 20px rgba(16, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.slider-arrow:hover {
  background: #2f5bff;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(16, 23, 42, 0.1);
}

.slider-arrow.prev {
  left: 4px;
}

.slider-arrow.next {
  right: 4px;
}

.site-footer {
  background: #10172a;
  color: #d4dcf2;
  padding: 48px 0 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 32px;
  align-items: start;
}

.site-footer .footer-grid h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 26rem;
}

.footer-brand-col > p {
  margin: 0;
  line-height: 1.75;
  color: rgba(212, 220, 242, 0.92);
  font-size: 0.98rem;
}

.footer-follow {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-follow h4 {
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer-follow .socials {
  margin-top: 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-follow .socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-follow .socials a:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  transform: translateY(-2px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  color: #d4dcf2;
  line-height: 1.55;
  font-size: 0.95rem;
}

.footer-contact-row:hover {
  color: #fff;
}

.footer-contact-row:hover .footer-contact-icon {
  color: var(--brand-orange);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 1.1rem;
  margin-top: 0.2em;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.footer-contact-text {
  flex: 1;
  min-width: 0;
}

.footer-contact-row--link {
  text-decoration: none;
}

.footer-logo {
  width: 130px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-links {
  list-style: none;
  margin-top: 8px;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-links a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #2f3c63;
  border-radius: 50%;
}

.socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.copy {
  text-align: center;
  margin-top: 26px;
  border-top: 1px solid #263153;
  padding-top: 10px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-image,
.hero-content {
  opacity: 0;
  animation: heroReveal 0.9s ease forwards;
}

.hero-content {
  animation-delay: 0.18s;
}

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

@keyframes botFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes heroTitleFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes aiShowcaseTitleIn {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes aiShowcaseGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-image,
  .hero-content,
  .hero-image img,
  .hero-content h1 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .ai-showcase-heading .ai-showcase-line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .ai-showcase-line--accent {
    color: var(--brand-orange-dark) !important;
    background: none !important;
    -webkit-text-fill-color: var(--brand-orange-dark) !important;
  }

  .features-hero-visual {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .cards,
  .steps,
  .pricing-grid,
  .stats-grid,
  .service-list-icons,
  .payment-grid,
  .footer-grid,
  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
  }

  .showcase-item.reverse img {
    order: 0;
  }

  .top-nav {
    display: none;
  }

  .nav-auth-actions {
    display: none;
  }

  .header-controls {
    margin-inline-start: 0;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .client-card {
    flex-basis: calc((100% - 32px) / 3);
  }

  .clients-slider {
    padding: 6px 40px;
  }
}

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

  .hero-image img {
    max-height: 360px;
  }

  .client-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .clients-slider {
    padding: 6px 34px;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
  }

  .partner-logo {
    width: 150px;
    height: 78px;
  }

  .partner-logo img {
    max-height: 36px;
  }
}

@media (max-width: 440px) {
  .hero-image img {
    max-height: 300px;
  }

  .client-card {
    flex-basis: 100%;
  }
}

/* Legal / terms */
.legal-page {
  padding: 48px 0 72px;
}

.legal-page .terms-prose {
  max-width: 44rem;
  margin-inline: auto;
}

body.lang-en .terms-lang-ar,
body:not(.lang-en) .terms-lang-en {
  display: none;
}

.terms-prose h1 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--brand-black);
  line-height: 1.25;
}

.terms-prose h2 {
  font-size: 1.28rem;
  font-weight: 800;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  color: var(--text);
  line-height: 1.3;
}

.terms-prose h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--text);
  line-height: 1.35;
}

.terms-prose p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.terms-prose ul {
  margin: 1rem 0 1.25rem;
  padding-inline-start: 1.35rem;
  color: var(--muted);
}

.terms-prose li {
  margin-bottom: 0.45rem;
}

.terms-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-prose a:hover {
  color: var(--brand-orange-dark);
}

@media (max-width: 900px) {
  .top-nav {
    gap: 14px;
    font-size: 0.92rem;
  }
}
