:root {
  --ink: #211734;
  --muted: #6f687a;
  --body: #554d62;
  --purple: #6d49e9;
  --purple-dark: #4b2cad;
  --lavender: #f2efff;
  --line: #ded8ef;
  --line-strong: #d1c7f4;
  --paper: #fbfaff;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 5%, rgba(109, 73, 233, .08), transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro",
    "Segoe UI", Arial, sans-serif;
}

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

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.navLinks,
.footer div {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.navLinks a:hover,
.footer a:hover,
.textLink:hover {
  color: var(--purple);
}

/* Language switching always names the destination language in words. */
.language {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  padding: 104px 0 94px;
  min-height: 630px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 370px;
  height: 490px;
  inset-inline-end: 2%;
  inset-block-start: 68px;
  border: 1px solid var(--line-strong);
  border-radius: 78px;
  background:
    radial-gradient(circle at 70% 23%, #fff 0 13px, transparent 14px),
    linear-gradient(145deg, #ede7ff, #d9ccff);
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, .65);
  transform: rotate(7deg);
  z-index: -1;
}

/* Rotation has no logical equivalent, so the mirrored tilt stays explicit. */
[dir="rtl"] .hero::after {
  transform: rotate(-7deg);
}

.eyebrow {
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

[dir="rtl"] .eyebrow {
  letter-spacing: normal;
}

.hero h1 {
  max-width: 730px;
  margin: 20px 0 25px;
  font-size: clamp(58px, 8.2vw, 112px);
  line-height: .9;
  letter-spacing: -.072em;
  font-weight: 830;
}

/* Arabic glyphs are wider and taller, so the display size steps down and the
   line box opens up to keep the two-line hero intact. */
[dir="rtl"] .hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 5.6vw, 78px);
  letter-spacing: normal;
  line-height: 1.22;
}

.hero > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.storeButton {
  min-width: 194px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding-inline: 20px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}

.storeButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(33, 23, 52, .26);
}

.storeButton svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.storeButton small {
  display: block;
  margin-bottom: 4px;
  font-size: 8px;
  letter-spacing: .08em;
  font-weight: 600;
}

[dir="rtl"] .storeButton small {
  letter-spacing: normal;
  font-size: 10px;
}

.storeButton span {
  text-align: start;
}

.textLink {
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 750;
}

.featureGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, .72);
}

.featureGrid article {
  min-height: 250px;
  padding: 34px;
  border-inline-end: 1px solid var(--line);
}

.featureGrid article:last-child {
  border-inline-end: 0;
}

.featureGrid span {
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
}

.featureGrid h2,
.privacyBand h2 {
  margin: 48px 0 12px;
  font-size: 27px;
  letter-spacing: -.04em;
}

[dir="rtl"] .featureGrid h2,
[dir="rtl"] .privacyBand h2 {
  letter-spacing: normal;
}

.featureGrid p,
.privacyBand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.privacyBand {
  margin-top: 90px;
  padding: 86px 0;
  background: var(--lavender);
  border-block: 1px solid #ddd3ff;
}

.privacyInner {
  display: grid;
  grid-template-columns: 180px minmax(0, 600px);
  align-items: center;
  justify-content: center;
  gap: 70px;
}

.privacyInner img {
  width: 180px;
  height: 180px;
  border-radius: 40px;
  box-shadow: 0 24px 55px rgba(75, 44, 173, .18);
}

.privacyBand h2 {
  margin-top: 14px;
  font-size: 42px;
}

.footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.legal,
.support {
  padding: 86px 0 110px;
}

.legalHeader,
.supportHeader {
  max-width: 760px;
  margin-bottom: 60px;
}

.legal h1,
.support h1 {
  margin: 16px 0;
  font-size: clamp(48px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.06em;
}

[dir="rtl"] .legal h1,
[dir="rtl"] .support h1 {
  letter-spacing: normal;
  line-height: 1.14;
}

.legalHeader p,
.supportHeader p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.legal article {
  max-width: 760px;
}

.legal h2 {
  margin: 46px 0 10px;
  font-size: 24px;
  letter-spacing: -.025em;
}

[dir="rtl"] .legal h2 {
  letter-spacing: normal;
}

.legal article p,
.legal li {
  color: var(--body);
  line-height: 1.75;
}

.legal a {
  color: var(--purple);
  font-weight: 650;
}

.legal li + li {
  margin-top: 7px;
}

.supportCards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 880px;
}

.supportCard {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.supportCard h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.supportCard p {
  color: var(--muted);
  line-height: 1.6;
}

.supportCard a {
  color: var(--purple);
  font-weight: 750;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 72px;
  }

  .hero::after {
    opacity: .35;
    inset-inline-end: -190px;
  }

  .featureGrid,
  .supportCards {
    grid-template-columns: 1fr;
  }

  .featureGrid article {
    min-height: auto;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .featureGrid article:last-child {
    border-bottom: 0;
  }

  .privacyInner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .privacyInner img {
    width: 120px;
    height: 120px;
    border-radius: 28px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 76px;
  }

  .brand span,
  .navLinks > a:not(.language):not(:last-child) {
    display: none;
  }

  .navLinks {
    gap: 10px;
  }

  .hero {
    min-height: 620px;
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacyBand h2 {
    font-size: 34px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .storeButton {
    transition: none;
  }

  .storeButton:hover {
    transform: none;
  }
}
