:root {
  --navy: #102f4a;
  --navy-2: #173e5e;
  --turquoise: #16b8c8;
  --teal: #0d8d98;
  --green: #2fbf71;
  --green-dark: #1f9f5d;
  --ink: #172331;
  --muted: #617083;
  --line: #dce6ee;
  --soft: #f4f8fb;
  --white: #ffffff;
  --warning: #fff8e6;
  --shadow: 0 18px 45px rgba(16, 47, 74, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: "Cairo", "Tajawal", system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(22, 184, 200, 0.72);
  outline-offset: 3px;
}

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

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

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

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: inline-block;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(16, 47, 74, 0.14);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #25374a;
  font-size: 14px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.language-switcher button {
  min-width: 38px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.is-active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 6px 14px rgba(16, 47, 74, 0.1);
}

.site-nav a {
  padding: 10px 9px;
  border-radius: 7px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--soft);
  color: var(--teal);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}

body.is-english {
  font-family: "Cairo", system-ui, sans-serif;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(47, 191, 113, 0.22);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(16, 47, 74, 0.18);
}

.btn-outline {
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}

.hero {
  min-height: calc(100vh - 74px);
  padding: 64px 0 42px;
  background:
    linear-gradient(120deg, rgba(244, 248, 251, 0.98), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, rgba(22, 184, 200, 0.12), rgba(47, 191, 113, 0.08));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.35;
}

h1 {
  font-size: clamp(32px, 5vw, 58px);
  max-width: 820px;
}

h2 {
  font-size: clamp(26px, 3.2vw, 38px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0;
}

.lead {
  margin-top: 18px;
  color: #35495e;
  font-size: 18px;
  max-width: 760px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.notes {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  color: #3d5368;
  font-size: 14px;
}

.note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.visual-slot {
  min-height: 410px;
  border: 1px dashed #9cb4c8;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.visual-slot strong {
  color: var(--navy);
  font-size: 22px;
}

.visual-slot span {
  color: var(--muted);
}

.hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1448 / 1086;
  object-fit: contain;
  background: #f7f8f9;
}

.hero-media picture,
.screenshot-card picture {
  display: block;
}

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

.screenshot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 47, 74, 0.07);
}

.screenshot-card img {
  width: 100%;
  object-fit: contain;
  background: #f7f8f9;
  cursor: zoom-in;
}

.screenshot-card.landscape img {
  aspect-ratio: 1586 / 893;
}

.screenshot-card.phone img {
  aspect-ratio: 1440 / 2907;
}

.screenshot-card figcaption {
  padding: 12px 14px;
  color: var(--navy);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 22, 34, 0.82);
}

.lightbox.is-open {
  display: flex;
}

.lightbox:not(.is-open) {
  pointer-events: none;
}

.lightbox-content {
  position: relative;
  max-width: min(1180px, 94vw);
  max-height: 92vh;
  display: grid;
  gap: 10px;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--white);
}

.lightbox figcaption {
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  inset-inline-end: -18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

section {
  padding: 78px 0;
}

.section-muted {
  background: var(--soft);
}

.section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

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

.two-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(16, 47, 74, 0.07);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: inline-grid;
  place-items: center;
  color: var(--teal);
  background: #e8fbfd;
  margin-bottom: 14px;
}

.card p,
.list-card p {
  color: var(--muted);
  margin-top: 8px;
}

.feature-list,
.clean-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.feature-list li,
.clean-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.feature-list li::before,
.clean-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  margin-top: 12px;
  flex: 0 0 auto;
}

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

.pill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
}

.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 28px;
  box-shadow: var(--shadow);
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
  color: #3b4d60;
}

.meta-list span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--soft);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.faq p {
  margin-top: 10px;
  color: var(--muted);
}

.page-hero {
  padding: 62px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.content-page {
  max-width: 900px;
}

.content-page h2 {
  margin-top: 34px;
  font-size: 25px;
}

.content-page p,
.content-page li {
  color: #43566a;
}

.content-page ul,
.content-page ol {
  padding-right: 22px;
}

.notice {
  border: 1px solid #f1d48a;
  background: var(--warning);
  color: #5b4714;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 20px;
}

.site-footer {
  padding: 44px 0;
  color: #d7e4ee;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.site-footer a:hover {
  color: var(--turquoise);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #b8c8d4;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 10px;
  }

  .hero-grid,
  .two-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .payment-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .hero {
    padding-top: 42px;
  }

  .header-inner {
    gap: 8px;
  }

  .brand {
    gap: 7px;
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-tools {
    gap: 6px;
  }

  .language-switcher button {
    min-width: 34px;
    height: 30px;
    font-size: 12px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  section {
    padding: 56px 0;
  }

  .cards-grid,
  .screenshot-grid,
  .meta-list,
  .payment-flow {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .visual-slot {
    min-height: 300px;
  }
}


.contact-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 47, 74, 0.07);
}

.contact-item .icon {
  width: 42px;
  height: 42px;
  margin: 0;
  flex: 0 0 auto;
}

.contact-item .social-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: block;
}

.contact-item strong,
.contact-item small {
  display: block;
}

.contact-item strong {
  color: var(--navy);
  font-size: 18px;
}

.contact-item small {
  color: var(--muted);
  font-size: 15px;
  direction: ltr;
  text-align: right;
}

@media (max-width: 620px) {
  .contact-directory {
    grid-template-columns: 1fr;
  }
}

body.is-english .card,
body.is-english .download-panel,
body.is-english .content-page,
body.is-english .faq,
body.is-english .notice,
body.is-english .meta-list,
body.is-english .footer-grid,
body.is-english .copyright {
  direction: ltr;
  text-align: left;
}

body.is-english .feature-list li,
body.is-english .clean-list li {
  justify-content: flex-start;
}

body.is-english .content-page ol,
body.is-english .content-page ul {
  padding-right: 0;
  padding-left: 22px;
}

body.is-english .contact-item small {
  text-align: left;
}
