/* ── Reset & base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #3d00eb;
  --brand-soft: #f1ebff;
  --bg-top: #e8f0fb;
  --bg-bot: #ffffff;
  --surface: #ffffff;
  --ink: #0f1419;
  --ink-soft: #4a5568;
  --ink-faint: #8892a6;
  --border: #e5eaf1;
  --sage: #7fa98e;
  --terracotta: #c87f5f;
  --dusty-blue: #6b95b8;
  --lavender: #9b8fd1;
  --pink: #e08fb5;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 20, 25, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 20, 25, 0.08);
  --container: 1120px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bot) 40%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body[dir='ltr'] {
  font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(232, 240, 251, 0.7);
  border-bottom: 1px solid rgba(15, 20, 25, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
}

.nav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.nav__links a:hover {
  color: var(--brand);
}

.nav__lang {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s;
}

.nav__lang:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 720px) {
  .nav__links {
    gap: 16px;
    font-size: 0.875rem;
  }
  .nav__links a:not(.nav__lang) {
    display: none;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding-block: 80px 64px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, box-shadow 0.15s;
}

.hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.hero__cta svg {
  width: 20px;
  height: 20px;
}

.hero__note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/* ── Stats banner ─────────────────────────────────────────────────────────── */
.stats {
  padding-block: 40px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.stat {
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  inset-block: 8px;
  inset-inline-start: -8px;
  width: 1px;
  background: var(--border);
}

.stat__num {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
    gap: 24px;
  }
  .stat + .stat::before {
    display: none;
  }
}

/* ── Section shell ───────────────────────────────────────────────────────── */
.section {
  padding-block: 80px;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.section__sub {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── Features grid ───────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.feature--explore .feature__icon  { background: color-mix(in srgb, var(--lavender) 22%, white); color: var(--lavender); }
.feature--identity .feature__icon { background: color-mix(in srgb, var(--dusty-blue) 22%, white); color: var(--dusty-blue); }
.feature--health .feature__icon   { background: color-mix(in srgb, var(--sage) 22%, white); color: var(--sage); }
.feature--wealth .feature__icon   { background: color-mix(in srgb, var(--terracotta) 22%, white); color: var(--terracotta); }
.feature--plans .feature__icon    { background: color-mix(in srgb, var(--pink) 22%, white); color: var(--pink); }

.feature__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature__desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── Screenshots ─────────────────────────────────────────────────────────── */
.screenshots {
  padding-block: 80px;
  background: linear-gradient(180deg, transparent 0%, var(--brand-soft) 100%);
  overflow: hidden;
}

.screenshots__track {
  display: flex;
  gap: 24px;
  padding-inline: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 20px;
}

.screenshots__track::-webkit-scrollbar {
  display: none;
}

.phone {
  flex: 0 0 260px;
  scroll-snap-align: center;
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  background: #0f1419;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #e8f0fb, #ffffff);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.875rem;
  text-align: center;
}

/* Placeholder text (when no image) gets padding; img children fill the frame */
.phone__screen:not(:has(img)) {
  padding: 24px;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.phone::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #0f1419;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone__caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: 14px;
  font-weight: 500;
}

/* ── How it works ────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -18px;
  inset-inline-start: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 8px;
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: border-color 0.15s;
}

.faq__item[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.faq__q {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brand);
  transition: transform 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.faq__item[open] .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  margin-top: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ── Footer CTA ──────────────────────────────────────────────────────────── */
.footer-cta {
  padding-block: 80px;
  text-align: center;
}

.footer-cta__box {
  background: linear-gradient(135deg, var(--brand) 0%, #5e2df0 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.footer-cta__box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.footer-cta__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.footer-cta__sub {
  font-size: 1.0625rem;
  opacity: 0.85;
  margin-bottom: 32px;
  position: relative;
}

.footer-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: transform 0.15s;
}

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

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-faint);
}

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

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a:hover {
  color: var(--brand);
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
