:root {
  color-scheme: light;
  font-family: Alexandria, "Noto Sans Arabic", system-ui, sans-serif;
  color: #241938;
  background: #f8f6fb;
  --ink: #241938;
  --muted: #62596e;
  --line: #e6dfed;
  --lavender: #f5f0fa;
  --mint: #c0eee4;
  --gutter: clamp(12px, 3.6vw, 48px);
}

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

body {
  min-width: 260px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 92% 16%, #eee6f9 0%, transparent 48%),
    radial-gradient(ellipse at 3% 83%, #e9f5f2 0%, transparent 46%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

:focus-visible {
  outline: 3px solid #2d80a1;
  outline-offset: 3px;
}

.shell {
  width: min(1152px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  inset-block-start: 10px;
  inset-inline-start: var(--gutter);
  padding: 10px 16px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 2px 20px #37245124;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 2px;
  border-radius: 10px;
}

.brand img { width: clamp(103px, 14vw, 128px); height: auto; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 15% 110%, #315769 0%, transparent 52%),
    radial-gradient(ellipse at 89% 4%, #583583 0%, transparent 65%),
    #251941;
  color: #fff;
  box-shadow: 0 16px 44px #38265621;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset-block-start: -54%;
  inset-inline-start: -180px;
  width: 390px;
  height: 390px;
  border: 1px solid #ffffff24;
  border-radius: 110px;
  background: linear-gradient(135deg, #ffffff0e, #ffffff00);
  transform: rotate(28deg);
  content: "";
}

.hero-copy {
  align-self: center;
  min-width: 0;
  padding: 27px clamp(16px, 4.1vw, 44px) 21px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.65rem, 7.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.43;
  text-wrap: balance;
}

.hero h1 > span { display: block; }
.hero .accent { color: var(--mint); }

.tagline {
  margin-block-start: 12px;
  color: #f4edf9;
  font-size: clamp(.86rem, 2.8vw, 1.06rem);
  font-weight: 500;
  line-height: 1.65;
}

.hero-actions {
  display: grid;
  max-width: 365px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 21px auto 0;
}

.button {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: clamp(.73rem, 3.35vw, .88rem);
  font-weight: 700;
  line-height: 1.35;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline-color: #e3fbf5; }
.button img { width: 17px; height: 17px; flex: 0 0 auto; }
.button-primary { background: var(--mint); color: #182e30; }
.button-primary:hover { background: #def9f2; }
.button-secondary { border-color: #ffffff45; background: #ffffff12; color: #fff; }
.button-secondary:hover { border-color: #ffffff90; background: #ffffff21; }
.down-arrow { font: 700 1.15rem/1 system-ui, sans-serif; }

.hero-image {
  position: relative;
  overflow: hidden;
  margin: 0 9px 9px;
  border-radius: 17px;
  background: #694b77;
  aspect-ratio: 16 / 9;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid #ffffff2e;
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.link-panels {
  display: grid;
  gap: 12px;
  margin-block-start: 16px;
}

.panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 24px #3826560a;
}

.panel h2 {
  margin-block-end: 10px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.download { scroll-margin: 16px; }

.stores, .social-links {
  display: grid;
  gap: 6px;
}

.stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.social-links { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.store, .social {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--lavender);
  transition: background-color .16s ease, border-color .16s ease;
}

.store:hover, .social:hover { border-color: #d9c8e8; background: #eee5f7; }

.store {
  justify-content: flex-start;
  gap: 7px;
  padding: 7px 7px;
}

.store-icon {
  display: grid;
  width: clamp(26px, 7.2vw, 38px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #fff;
}

.store-icon img { width: clamp(15px, 4.4vw, 22px); height: auto; }
.store-copy { min-width: 0; line-height: 1.28; }
.store-copy strong { display: block; font-size: clamp(.64rem, 2.45vw, .87rem); font-weight: 800; }
.store-copy small { display: block; margin-block-start: 4px; color: var(--muted); font-size: .65rem; }

.external-arrow {
  flex: 0 0 auto;
}

.external-arrow img { width: 16px; height: 16px; }
[dir="rtl"] .external-arrow { transform: scaleX(-1); }
.store > .external-arrow { display: none; margin-inline-start: auto; }

.social {
  flex-direction: column;
  gap: 5px;
  padding: 6px 2px;
  color: #3c2959;
  text-align: center;
  font-size: clamp(.56rem, 1.99vw, .67rem);
  font-weight: 700;
  line-height: 1.25;
}

.social img { width: 20px; height: 20px; }

.site-footer {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 3px;
  color: var(--muted);
  font-size: .75rem;
}

.site-footer small { font-size: inherit; }

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  color: #4c356a;
  font-weight: 700;
}

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

@media (min-width: 560px) {
  .site-header { min-height: 79px; }
  .panel { padding: 18px; }
  .stores, .social-links { gap: 8px; }
  .store { gap: 10px; padding: 9px 12px; }
  .store > .external-arrow { display: inline-block; }
  .hero-image { margin: 0 12px 12px; }
}

@media (min-width: 860px) {
  .site-header { min-height: 91px; justify-content: flex-start; }
  .hero {
    min-height: clamp(360px, 34vw, 431px);
    grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
    border-radius: 30px;
  }
  .hero-copy {
    padding-block: 33px 35px;
    padding-inline: clamp(32px, 4.25vw, 55px) 28px;
    text-align: start;
  }
  .hero h1 { font-size: clamp(2.18rem, 4.15vw, 3.42rem); }
  .tagline { margin-block-start: 13px; }
  .hero-image {
    min-height: 0;
    margin: 12px;
    border-radius: 22px;
    aspect-ratio: auto;
  }
  .hero-image img { position: absolute; inset: 0; }
  .hero-actions { display: flex; gap: 9px; margin: 25px 0 0; }
  .button { min-height: 47px; padding-inline: 14px; }
  .link-panels { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 15px; }
  .panel { padding: 19px; }
  .panel h2 { margin-block-end: 13px; font-size: 1.08rem; }
  .store, .social { min-height: 72px; }
}

@media (max-width: 345px) {
  .panel { padding: 12px; }
  .store-copy small { font-size: .6rem; }
  .store { gap: 5px; padding-inline: 5px; }
}

@media (max-width: 319px) {
  .social-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 860px) and (max-width: 1023px) {
  .store { gap: 8px; padding-inline: 9px; }
  .store > .external-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
