@font-face {
  font-family: "Bauhaus 93";
  src: url("assets/fonts/bauhaus_93.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("assets/fonts/noto_naskh_arabic_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("assets/fonts/noto_naskh_arabic_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("assets/fonts/noto_naskh_arabic_medium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("assets/fonts/noto_naskh_arabic_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("assets/fonts/noto_naskh_arabic_bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #3c3c3c;
  --ink-strong: #1f1f1f;
  --muted: #777;
  --line: #e5e5e5;
  --white: #ffffff;
  --bg: #ffffff;
  --nabda-pink: #ff1493;
  --nabda-violet: #8a2be2;
  --nabda-blue: #5d26ff;
  --brand-purple: #7d2bd8;
  --primary: #7b2ff2;
  --primary-deep: #5d26ff;
  --secondary-text: #1cb0f6;
  --radius: 16px;
  --font: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Bauhaus 93", "Segoe UI", Tahoma, sans-serif;
  --pad: clamp(16px, 5vw, 28px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --max: 980px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 20, 147, 0.07), transparent 55%),
    radial-gradient(90% 50% at 100% 20%, rgba(93, 38, 255, 0.05), transparent 45%),
    var(--bg);
  min-height: 100dvh;
  overflow-x: clip;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-top)) var(--pad) 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--brand-purple);
  direction: ltr;
  unicode-bidi: isolate;
}

.header-download {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: clamp(0.82rem, 3.2vw, 0.95rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(180deg, #a56bff 0%, var(--primary) 48%, var(--primary-deep) 100%);
  border: 2px solid #4b18d6;
  border-bottom-width: 3px;
  box-shadow: 0 6px 16px rgba(93, 38, 255, 0.24);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.header-download:hover {
  filter: brightness(1.06);
}

.header-download:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

/* ── Hero ── */
.hero {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 10px var(--pad) 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-art {
  margin: 0 0 20px;
  width: min(100%, 380px);
  animation: float-soft 5.5s ease-in-out infinite;
}

.hero-art-icon {
  width: min(56vw, 220px);
}

.hero-art img {
  width: 100%;
  border-radius: 28px;
  box-shadow:
    0 22px 56px rgba(93, 38, 255, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.6) inset;
}

.hero-art-icon img {
  border-radius: 28%;
  box-shadow: 0 18px 40px rgba(125, 43, 216, 0.28);
}

.hero h1 {
  margin: 6px 0 0;
  max-width: 17ch;
  font-size: clamp(1.75rem, 6.8vw, 2.65rem);
  line-height: 1.55;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: 0;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--nabda-pink), var(--nabda-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 14px 0 0;
  max-width: 28ch;
  font-size: clamp(0.98rem, 3.4vw, 1.12rem);
  line-height: 1.65;
  font-weight: 600;
  color: var(--muted);
}

.hero-actions {
  width: min(100%, 360px);
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #9a9a9a;
  letter-spacing: 0.01em;
}

/* Duo-like 3D buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: clamp(1.02rem, 3.8vw, 1.18rem);
  font-weight: 800;
  border: 2px solid transparent;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #a56bff 0%, var(--primary) 48%, var(--primary-deep) 100%);
  border-color: #4b18d6;
  border-bottom-width: 4px;
  box-shadow: 0 8px 24px rgba(93, 38, 255, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-primary:active {
  border-bottom-width: 2px;
  box-shadow: 0 3px 12px rgba(93, 38, 255, 0.22);
}

.btn-secondary {
  color: var(--secondary-text);
  background: var(--white);
  border-color: #e0e0e0;
  border-bottom-width: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  background: #f7fbff;
  border-color: #d0eaf8;
}

.btn-secondary:active {
  border-bottom-width: 2px;
}

/* ── Feature rows ── */
.feature {
  width: 100%;
  padding: clamp(40px, 8vw, 80px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 52px);
  align-items: center;
  max-width: none;
}

.feature > * {
  width: min(100%, calc(var(--max) / 2 - 24px));
}

.feature-a {
  background: var(--white);
  justify-content: center;
}

.feature-a .feature-media {
  justify-self: end;
}

.feature-a .feature-copy {
  justify-self: start;
}

.feature-b {
  background: linear-gradient(180deg, #f6f3fc 0%, #faf9fd 100%);
  justify-content: center;
}

.feature-b .feature-media {
  order: 2;
  justify-self: start;
}

.feature-b .feature-copy {
  order: 1;
  justify-self: end;
  text-align: end;
}

.feature-media img {
  width: min(100%, 380px);
  margin-inline: auto;
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(20, 31, 35, 0.1);
}

.feature-media-shot img {
  width: min(52vw, 240px);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(20, 31, 35, 0.16);
}

.feature-graphic-wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 8px var(--pad) 28px;
}

.feature-graphic {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(93, 38, 255, 0.14);
}

.shots {
  text-align: center;
  padding: clamp(28px, 6vw, 56px) 0 clamp(40px, 8vw, 72px);
  background: #faf9fd;
}

.shots h2 {
  margin: 0 0 22px;
  padding-inline: var(--pad);
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 700;
  color: var(--ink-strong);
}

.shots-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px var(--pad) 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots-row img {
  flex: 0 0 auto;
  width: min(42vw, 180px);
  border-radius: 18px;
  scroll-snap-align: center;
  box-shadow: 0 12px 32px rgba(20, 31, 35, 0.12);
}

.feature-kicker {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(31, 31, 31, 0.72);
}

.kicker-pink,
.kicker-violet,
.kicker-blue {
  color: rgba(31, 31, 31, 0.72);
}

.feature-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4.8vw, 2.25rem);
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-strong);
}

.feature-copy p:not(.feature-kicker) {
  margin: 0;
  font-size: clamp(0.98rem, 3.3vw, 1.15rem);
  line-height: 1.75;
  color: var(--ink);
  font-weight: 600;
  max-width: 34ch;
}

.feature-b .feature-copy p:not(.feature-kicker) {
  margin-inline-start: auto;
}

/* ── Store ── */
.store {
  text-align: center;
  padding: clamp(52px, 10vw, 96px) var(--pad);
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(138, 43, 226, 0.1), transparent 60%),
    linear-gradient(180deg, #f3eefc 0%, #ffffff 72%);
}

.store h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 800;
  color: var(--ink-strong);
}

.store-sub {
  margin: 0 0 26px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  padding: 10px 18px 10px 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  margin-bottom: 18px;
  text-align: start;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.store-badge:hover {
  filter: brightness(1.08);
}

.store-badge:active {
  transform: scale(0.98);
}

.store-badge-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-badge-top {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.store-badge-name {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.2;
}

.store-btn {
  width: min(100%, 320px);
  margin-inline: auto;
}

.legal-nav {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-nav a {
  color: var(--muted);
}

.legal-nav a:hover,
.legal-nav a.is-active {
  color: var(--brand-purple);
}

/* ── Legal document pages ── */
.legal-page {
  overflow-x: clip;
}

.legal-page .site-header {
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
}

.legal-page .header-download-short {
  display: none;
}

.legal-wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 16px var(--pad) calc(40px + var(--safe-bottom));
}

.legal-shell {
  width: 100%;
  margin: 0;
  padding: clamp(20px, 4vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(20, 31, 35, 0.08);
  overflow-wrap: anywhere;
}

.legal-crumbs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.legal-crumbs::-webkit-scrollbar {
  display: none;
}

.legal-crumbs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #faf9fd;
  color: var(--ink-strong);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.legal-crumbs a:hover,
.legal-crumbs a.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #a56bff 0%, var(--primary) 55%, var(--primary-deep) 100%);
}

.legal-shell h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-strong);
}

.legal-shell .meta {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-shell h2 {
  margin: 24px 0 10px;
  font-size: clamp(1.08rem, 3.4vw, 1.28rem);
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-strong);
}

.legal-shell p,
.legal-shell li {
  font-size: clamp(0.95rem, 3.2vw, 1.05rem);
  line-height: 1.85;
  font-weight: 500;
  color: var(--ink);
}

.legal-shell p {
  margin: 0 0 12px;
}

.legal-shell ul,
.legal-shell ol {
  margin: 0 0 12px;
  padding-inline-start: 1.25rem;
}

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

.legal-shell a {
  color: var(--brand-purple);
  font-weight: 700;
}

.legal-shell a:hover {
  text-decoration: underline;
}

.legal-shell .en {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
  direction: ltr;
  text-align: left;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.legal-shell .en h1 {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
}

.legal-shell .en h2 {
  font-size: 1.1rem;
}

.legal-page .legal-nav {
  margin-top: 22px;
}

@media (max-width: 480px) {
  .legal-page .logo-wordmark {
    font-size: 1.2rem;
  }

  .legal-page .header-download {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .legal-page .header-download-full {
    display: none;
  }

  .legal-page .header-download-short {
    display: inline;
  }

  .legal-wrap {
    padding-top: 12px;
  }

  .legal-shell {
    padding: 18px 16px 24px;
    border-radius: 20px;
  }
}

/* ── Footer ── */
.site-footer {
  border-top: 2px solid var(--line);
  padding: 28px var(--pad) calc(28px + var(--safe-bottom));
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-strong);
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand img {
  border-radius: 8px;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  color: var(--primary);
  font-weight: 700;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  padding:
    10px
    max(var(--pad), var(--safe-right))
    calc(10px + var(--safe-bottom))
    max(var(--pad), var(--safe-left));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94) 32%, #fff);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 760px) {
  .feature,
  .feature-b {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .feature > * {
    width: min(100%, var(--max));
    justify-self: center !important;
  }

  .feature-b .feature-media,
  .feature-b .feature-copy {
    order: unset;
    text-align: center;
  }

  .feature-copy p:not(.feature-kicker),
  .feature-b .feature-copy p:not(.feature-kicker) {
    margin-inline: auto;
  }

  .feature-media img {
    width: min(86vw, 340px);
  }
}

@media (max-width: 480px) {
  .store {
    padding-bottom: calc(96px + var(--safe-bottom));
  }

  .hero-art {
    width: min(90vw, 340px);
  }

  .hero h1 {
    max-width: 18ch;
  }
}

@media (max-width: 359px) {
  .hero h1 {
    font-size: 1.55rem;
  }

  .btn {
    min-height: 50px;
    font-size: 0.98rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .sticky-cta {
    display: none;
  }

  .hero-art {
    width: min(34vw, 220px);
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .sticky-cta,
  [data-reveal],
  .site-header {
    transition: none;
  }

  .hero-art {
    animation: none;
  }

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