:root {
  --bg: #ffffff;
  --bg-soft: #f8f7ff;
  --surface: #ffffff;
  --text: #171421;
  --muted: #5f5a72;
  --brand: #916fff;
  --brand-soft: #ede8ff;
  --border: #e6e1f5;
  --shadow: 0 18px 40px rgba(103, 84, 168, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans Arabic", "IBM Plex Arabic", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at 88% 6%, rgba(145, 111, 255, 0.09), transparent 28%),
    radial-gradient(circle at 10% 22%, rgba(145, 111, 255, 0.07), transparent 24%),
    var(--bg);
}

button,
input,
textarea,
select {
  font-family: inherit;
}

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

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

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-glow::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  border-radius: 999px;
  background: rgba(145, 111, 255, 0.08);
  filter: blur(70px);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 2rem 0;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.08rem;
}

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

.header-link {
  border: 1px solid #d4c9ff;
  background: var(--brand-soft);
  color: #4d3399;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(145, 111, 255, 0.18);
}

.header-link-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.header-link-secondary:hover {
  box-shadow: 0 10px 20px rgba(23, 20, 33, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.36rem 0.82rem;
  border: 1px solid #d8ccff;
  background: #f1edff;
  color: #5135a4;
  font-size: 0.88rem;
  font-weight: 500;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  letter-spacing: -0.015em;
}

.hero-description {
  margin: 1rem 0 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hero-points li {
  position: relative;
  padding-inline-start: 1.3rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.67em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.store-links {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#download {
  scroll-margin-top: 7rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 66px;
  border-radius: 14px;
  background: #000;
  overflow: hidden;
  line-height: 0;
  transition: transform 180ms ease;
}

.store-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-badge:hover {
  transform: translateY(-3px);
}

.store-badge-google img {
  transform: scale(1.52);
  transform-origin: center;
}

.hero-media {
  display: grid;
  gap: 1rem;
}

.logo-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(120deg, #ffffff, #f5f2ff);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: grid;
  justify-items: center;
  text-align: center;
  animation: floatSoft 4.8s ease-in-out infinite;
}

.logo-panel img {
  width: clamp(92px, 16vw, 132px);
  height: auto;
}

.logo-panel p {
  margin: 0.75rem 0 0;
  color: #5f5a72;
  font-size: 0.96rem;
}

.hero-feature-frame {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #f6f4ff;
  padding: 1rem;
  box-shadow: var(--shadow);
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-feature-frame img {
  width: 100%;
  max-height: 245px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.hero-feature-frame:hover img {
  transform: scale(1.05);
}

.insights-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.insights-list li {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 1rem;
}

.insights-list h3 {
  font-size: 1rem;
}

.insights-list p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-heading {
  margin-bottom: 1.3rem;
}

.features .section-heading {
  text-align: center;
}

.section-heading h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.62rem, 3.2vw, 2.35rem);
}

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

.feature-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  border-radius: 32px;
  background: #F5F8FF;
  box-shadow: 0 14px 34px rgba(103, 84, 168, 0.08);
  padding: 1rem 1rem 1.15rem;
}

.feature-card-inner {
  display: grid;
  align-content: start;
  gap: 1rem;
  height: 100%;
}

.feature-media {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 240ms ease;
}

.feature-card:hover .feature-media img {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.08rem;
  text-align: center;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.feature-card-wide {
  grid-column: 1 / -1;
}

.feature-card-wide .feature-media {
  height: 280px;
}

.cta-box {
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #dacfff;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.45), transparent 34%),
    linear-gradient(130deg, #f5f1ff 0%, #efe8ff 48%, #f8f6ff 100%);
}

.cta-box h2 {
  font-size: clamp(1.42rem, 2.8vw, 2.15rem);
}

.cta-box p {
  margin: 0.72rem 0 0;
  color: #5c5574;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0 1.5rem;
  font-size: 0.9rem;
  color: #706a84;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 560ms ease;
}

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

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .insights-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(1120px, calc(100% - 1.35rem));
  }

  .header-inner {
    min-height: auto;
    padding: 0.8rem 0 0.9rem;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
  }

  .header-actions {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    display: flex;
    gap: 0.55rem;
  }

  .brand {
    justify-content: flex-start;
    width: auto;
    flex: 0 0 auto;
    gap: 0.45rem;
    font-size: 0.92rem;
  }

  .brand img {
    height: 32px;
  }

  .header-link {
    min-width: 0;
    width: auto;
    flex: 0 0 auto;
    text-align: center;
    padding: 0.62rem 1rem;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .section {
    padding: 3.8rem 0;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .store-badge {
    width: 184px;
    height: 56px;
  }

  .store-badge img {
    width: 100%;
    height: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .feature-card {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 0;
  }

  .feature-card-wide {
    grid-column: auto;
  }

  .feature-card-inner {
    gap: 1.4rem;
    transform: scale(0.9);
    transform-origin: center top;
    opacity: 0.42;
    filter: saturate(0.78);
    transition:
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 280ms ease,
      filter 280ms ease;
    will-change: transform, opacity;
  }

  .feature-card.is-active .feature-card-inner {
    transform: scale(1);
    opacity: 1;
    filter: none;
  }

  .feature-media,
  .feature-card-wide .feature-media {
    height: auto;
  }

  .feature-media img {
    width: min(100%, 84%);
    height: auto;
    margin-inline: auto;
  }

  .feature-card h3 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .feature-card p {
    max-width: 30ch;
    margin-inline: auto;
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .cta-box {
    padding: 1.4rem;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .feature-card-inner {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}
