:root {
  --blue-900: #013a82;
  --blue-700: #024CAA;
  --blue-500: #1a6fd4;
  --blue-100: #eaf2ff;
  --text: #1a2b40;
  --muted: #5a6e87;
  --surface: #ffffff;
  --bg: #f8fbff;
  --shadow: 0 14px 34px rgba(2, 76, 170, 0.13);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

img.inline {
  display: inline;
}

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

.container {
  width: min(1280px, 100%);
  padding-inline: 100px;
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 28px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  color: var(--blue-900);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head-right {
  text-align: right;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #f0f4fa;
}

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

.brand img {
  width: 106px;
}

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

.nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--blue-700);
}

.nav-link.active {
  background: var(--blue-700);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 0.72rem 1.6rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  color: #fff;
  background: var(--blue-700);
  box-shadow: 0 8px 24px rgba(2, 76, 170, 0.32);
}

.btn-primary:hover {
  background: var(--blue-900);
  box-shadow: 0 10px 28px rgba(2, 76, 170, 0.4);
}

.btn-secondary {
  color: var(--blue-700);
  background: #fff;
  border: 1px solid #d7e5fa;
}

.hero {
  overflow: hidden;
  background: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.hero-content {
  padding-top: 0;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--blue-900);
}

.brand-inline {
  color: var(--blue-700);
  font-weight: 800;
}

.hero-text {
  margin: 20px 0 28px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

/* ── Three-phone fan ─────────────────────────────────── */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phones-fan {
  position: relative;
  width: 100%;
  max-width: 500px;
  /* height driven by center phone; side phones clip into this space */
  aspect-ratio: 1 / 1.1;
  margin-inline: auto;
}

.phone {
  position: absolute;
}

.phone img {
  width: 100%;
  display: block;
}

/* Centre phone — upright, fills ~52% of container width, vertically centered */
.phone-center {
  width: 52%;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 24px 48px rgba(2, 76, 170, 0.28));
}

.phone-center img {
  height: 100%;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

/* Left phone — tilted outward, anchored to vertical center */
.phone-left {
  width: 42%;
  left: 0;
  top: 50%;
  transform: translateY(-44%) rotate(-10deg);
  transform-origin: center center;
  z-index: 2;
  filter: drop-shadow(0 16px 28px rgba(2, 76, 170, 0.16));
}

/* Right phone — tilted outward, anchored to vertical center */
.phone-right {
  width: 42%;
  right: 0;
  top: 50%;
  transform: translateY(-44%) rotate(10deg);
  transform-origin: center center;
  z-index: 2;
  filter: drop-shadow(0 16px 28px rgba(2, 76, 170, 0.16));
}

.logos {
  background: #fff;
  padding: 80px 0;
}

.logos-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
  align-items: center;
  gap: 40px;
}

.logos-row img {
  max-height: 34px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  margin-inline: auto;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logos-row img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.services {
  background: #fff;
}

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

.service-card {
  background: #eef2fc;
  border-radius: 20px;
  padding: 36px 28px 32px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2, 76, 170, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.card-icon svg {
  width: 48px;
  height: 48px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-900);
}

.service-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.75;
}

.why {
  background: #eef2fc;
}

.why-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--blue-900);
  margin: 0 0 52px;
  text-align: center;
}

/* LTR grid = column 1 is physical left (phone), column 2 is physical right (features) */
.why-grid {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  justify-content: space-between;
  column-gap: clamp(32px, 6vw, 80px);
  row-gap: 40px;
}

.why-left,
.why-features {
  direction: rtl;
}

.why-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-self: start;
  align-items: flex-end;
  width: 100%;
  max-width: 480px;
}

.why-desc {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.9;
  text-align: right;
}

.why-phone {
  display: flex;
  width: 100%;
}

.why-phone-img {
  width: 100%;
  max-width: 420px;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}

.feature-item {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.feature-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

.feature-item p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.6;
}

.feature-item strong {
  color: var(--blue-700);
  font-weight: 700;
}

.stats {
  background: var(--blue-700);
  color: #fff;
  padding: 56px 0 64px;
}

.stats-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.stats-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  text-align: center;
  gap: 24px 16px;
}

.stat-item strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-item span {
  display: block;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.45;
}

.testimonials {
  background: #f5f7fb;
}

.testimonials-head p {
  max-width: 640px;
  margin-inline: auto;
}

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

.review-card {
  position: relative;
  background: #eef2fc;
  border: 1px solid #e2e8f4;
  border-radius: 18px;
  padding: 26px 22px 20px;
  box-shadow: 0 8px 24px rgba(2, 76, 170, 0.06);
}

.review-quote {
  position: absolute;
  top: 16px;
  inset-inline-end: 18px;
  line-height: 0;
  pointer-events: none;
}

.review-quote img {
  display: block;
  height: 26px;
  width: auto;
  max-width: 36px;
  object-fit: contain;
}

.review-text {
  margin: 0 0 14px;
  padding-inline-end: 36px;
  color: #334861;
  font-size: 0.98rem;
  line-height: 1.75;
  text-align: right;
}

.review-stars {
  margin-bottom: 16px;
  text-align: start;
}

.stars-row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.review-stars img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.review-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbe8fc;
  color: var(--blue-700);
  font-size: 1.05rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--blue-900);
}

.download-section {
  padding-bottom: clamp(72px, 12vw, 120px);
  background: transparent;
}

.download-cta {
  direction: ltr;
  position: relative;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  line-height: 0;
}

.download-cta-image {
  width: 100%;
  max-width: 1180px;
  height: auto;
  margin-inline: auto;
}

/* Real links under the banner (banner art is not clickable) */
.download-cta-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.download-cta-skip:focus-within {
  position: static;
  width: auto;
  height: auto;
  margin: 12px 0 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}

.download-store-link {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
}

.download-store-link:hover {
  color: var(--blue-900);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  background: var(--blue-700);
  color: #fff;
  padding: clamp(40px, 6vw, 64px) 0 clamp(28px, 4vw, 40px);
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) minmax(200px, 1fr) auto;
  align-items: start;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 40px);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  width: min(180px, 52vw);
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-tagline {
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

.footer-heading {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

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

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-contact-list a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-contact-list a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.footer-social {
  min-width: 0;
}

.footer-social-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.footer-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 0 clamp(20px, 3vw, 28px);
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-credit {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.footer-credit-sep {
  margin: 0 0.35em;
  opacity: 0.7;
}

.footer-klex {
  color: #fff;
  font-weight: 700;
  margin-inline-start: 0.25em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-klex:hover {
  opacity: 0.9;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.92rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-legal-sep {
  opacity: 0.55;
  user-select: none;
}

.footer-copyright {
  margin: clamp(20px, 3vw, 28px) 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1100px) {
  .container {
    padding-inline: 48px;
  }
}

@media (max-width: 980px) {
  .container {
    padding-inline: 32px;
  }

  .main-nav {
    display: none;
  }

  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
    padding: 36px 24px 56px;
    align-items: stretch;
    min-height: unset;
  }

  .why-grid {
    direction: rtl;
  }

  .why-left,
  .why-features {
    justify-self: stretch;
    max-width: none;
  }

  .why-title {
    text-align: center;
  }

  .hero-grid {
    padding-top: 32px;
    padding-bottom: 56px;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    padding-top: 0;
  }

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

  .hero-media {
    order: -1;
  }

  .brand-inline {
    justify-content: center;
  }

  .phones-fan {
    max-width: 360px;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logos-row {
    gap: 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-social {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .phones-fan {
    max-width: 300px;
  }

  .services-grid,
  .testimonials-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-logo {
    margin-inline: auto;
  }

  .footer-contact-list li {
    justify-content: center;
  }

  .footer-social-row {
    justify-content: center;
  }

  .logos-row {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    justify-items: center;
  }
}
