@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter (SIL OFL 1.1) — self-hosted latin subset, see fonts/OFL-Inter.txt */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* BubbledotICG-FinePos (CC BY 4.0, Web Fonts) — credited in the page footer */
@font-face {
  font-family: "BubbledotICG-FinePos";
  src: url("fonts/BubbledotICG-FinePos.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

button {
  font: inherit;
  cursor: pointer;
}

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

/* ---------- Background video ---------- */

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

/* The first frame of the video, drifting slowly: shown while the video loads, or for
   good where autoplay is blocked (Low Power Mode, in-app browsers). */
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/bg/hero-1280.webp") center / cover no-repeat;
  transform: scale(1.04);
  animation: bgDrift 16s ease-in-out infinite alternate;
}

.bg.is-playing::before {
  animation-play-state: paused;
}

@keyframes bgDrift {
  to {
    transform: scale(1.12) translateY(-2%);
  }
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.bg.is-playing .bg-video {
  opacity: 1;
}

/* Never show WebKit's own play overlay on the background. */
.bg-video::-webkit-media-controls,
.bg-video::-webkit-media-controls-start-playback-button,
.bg-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
}

@media (max-width: 720px) and (orientation: portrait) {
  .bg::before {
    background-image: url("assets/bg/hero-540.webp");
  }
}

/* A light wash behind the copy so white type stays readable over the bright sky. */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60% 45% at 50% 42%, rgba(0, 0, 0, 0.32), transparent 75%);
}

@media (max-width: 900px) {
  .bg::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.5) 18%, rgba(0, 0, 0, 0.5) 46%, transparent 66%);
  }
}

/* ---------- Page: one viewport, 3 regions ---------- */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}

.header,
.hero,
.stats,
.scroll-cue {
  position: relative;
  z-index: 1;
}

/* ---------- 1) Header ---------- */

.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 1120px;
  animation: slideDown 0.7s var(--ease) both;
}

.logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.sign-in {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 20px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
  cursor: pointer;
}

.sign-in .icon {
  font-size: 1.1em;
  margin-top: -2px;
}

.sign-in:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-toggle {
  display: grid;
  place-items: center;
  width: clamp(44px, 5.2vw, 48px);
  height: clamp(44px, 5.2vw, 48px);
  border: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

html[lang="ar"] .lang-toggle {
  font-size: 13px;
}

.lang-toggle:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- 2) Hero ---------- */

.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 80px);
  width: 100%;
  max-width: 1120px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 900px;
  text-align: center;
}

.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.trust-avatar {
  position: relative;
  display: grid;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  transition: transform 0.35s var(--ease);
}

.trust-avatar > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}

.trust-avatar + .trust-avatar {
  margin-inline-start: calc(var(--trust-size) * -0.42);
}

.trust-avatar.a1 { z-index: 1; }
.trust-avatar.a2 { z-index: 2; }
.trust-avatar.a3 { z-index: 4; }

.trust:hover .a1 { transform: translateY(-2px); }
.trust:hover .a2 { transform: translateY(-4px); }
.trust:hover .a3 { transform: translateY(-2px); }

.trust-pill {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-inline-start: calc(var(--trust-size) * -0.42);
  padding-inline: calc(var(--trust-size) * 0.58) 16px;
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6.2vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #fff;
}

.headline .line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s var(--ease) forwards;
}

.headline .l1 { animation-delay: 0.12s; }
.headline .l2 { animation-delay: 0.3s; }

/* The parent only groups the lines; each line animates on its own. */
.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

/* Arabic glyphs are not in the dot-matrix fonts: draw them with the system Arabic
   face under a dot grid so the headline keeps the same retro LED texture. */
html[lang="ar"] .headline {
  font-family: "BubbledotICG-FinePos", "Geist Pixel Circle", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

html[lang="ar"] .headline .line {
  padding-block: 0.04em;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 84%, transparent 92%);
  mask-image: radial-gradient(circle closest-side, #000 84%, transparent 92%);
  -webkit-mask-size: 0.055em 0.055em;
  mask-size: 0.055em 0.055em;
}

.subhead {
  max-width: min(500px, 92%);
  margin: clamp(14px, 2.2vh, 22px) 0 0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
}

.subhead.anim {
  --final-opacity: 0.8;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
  cursor: pointer;
}

.cta .icon {
  font-size: 1.2em;
  margin-top: -2px;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.45),
    0 0 64px rgba(255, 255, 255, 0.2);
}

.cta-row.anim {
  animation-name: revealPulse;
  animation-duration: 1.1s;
}

[data-store][aria-disabled="true"] {
  cursor: default;
}

/* ---------- App Store slides (frameless: each slide already shows a phone) ---------- */

.device {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone {
  --w: clamp(190px, 30vh, 310px);
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  width: var(--w);
  aspect-ratio: 720 / 1564;
  border-radius: calc(var(--w) * 0.075);
  background: #0b0b0c;
  box-shadow:
    0 calc(var(--w) * 0.1) calc(var(--w) * 0.22) rgba(0, 0, 0, 0.6),
    0 0 calc(var(--w) * 0.45) rgba(255, 255, 255, 0.07);
  animation: phoneFloat 6s ease-in-out 1.4s infinite alternate;
}

/* Hairline light border that catches the edge, like polished glass. */
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0.04) 62%, rgba(255, 255, 255, 0.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Soft light pooling under the slide. */
.phone::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 8%;
  bottom: -7%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), transparent);
  filter: blur(12px);
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #0b0b0c;
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}

.screen.is-active {
  opacity: 1;
  transform: none;
}

.phone-dots {
  display: flex;
  gap: 2px;
}

/* Each dot is a 24px button (easy to hit) drawing a small pill. */
.phone-dots .dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
}

.phone-dots .dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.4s var(--ease), background 0.4s ease;
}

.phone-dots .dot:hover::before {
  background: rgba(255, 255, 255, 0.6);
}

.phone-dots .dot.is-active::before {
  width: 18px;
  background: #fff;
}

/* ---------- 3) Stats ---------- */

.stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: #fff;
}

.stat-value {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.stat-label {
  font-size: clamp(11px, 1.2vw, 12.5px);
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Legal line ---------- */

.legal {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 16px;
  margin-top: clamp(8px, 1.6vh, 16px);
  font-size: 11.5px;
  color: var(--muted);
}

.social {
  display: flex;
  gap: 8px;
}

.social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--sign-in-text);
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.social a:hover {
  background: #fff;
  color: #000;
  transform: translateY(-1px);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 10px;
}

.legal-links a {
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: #fff;
}

/* ---------- Shared entrance ---------- */

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

.d005 { --d: 0.05s; }
.d028 { --d: 0.28s; }
.d034 { --d: 0.34s; }
.d04 { --d: 0.4s; }
.d05 { --d: 0.5s; }
.d058 { --d: 0.58s; }
.d066 { --d: 0.66s; }
.d074 { --d: 0.74s; }
.d082 { --d: 0.82s; }

.i0 { --i: 0; }
.i1 { --i: 1; }
.i2 { --i: 2; }
.i3 { --i: 3; }
.i4 { --i: 4; }

@keyframes reveal {
  to {
    opacity: var(--final-opacity, 1);
    transform: none;
    filter: none;
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
    filter: none;
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes phoneFloat {
  from { translate: 0 -6px; }
  to { translate: 0 6px; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- ≤900px: phone moves under the copy and peeks up from the stats ---------- */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding-top: clamp(16px, 4vh, 40px);
  }

  /* The device box takes the space left between the button and the stats; the phone
     is sized from that height (cqh) so the whole frame always fits, never cropped. */
  .device {
    flex: 1;
    min-height: 0;
    width: 100%;
    margin-top: clamp(16px, 3vh, 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    container-type: size;
  }

  .phone {
    --w: min(50vw, 250px, calc(100cqh * 720 / 1564));
    animation: none;
  }

  .phone-dots {
    display: none;
  }
}

/* ---------- ≤720px ---------- */

@media (max-width: 720px) {
  .header-end {
    margin: 0;
  }

  .logo,
  .lang-toggle {
    width: 48px;
    height: 48px;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  html[lang="ar"] .headline {
    letter-spacing: 0;
    line-height: 1.3;
  }

  .trust-pill {
    font-size: 12px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(10px, 1.8vh, 18px);
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }

  html[lang="ar"] .headline {
    line-height: 1.28;
  }
}

@media (max-height: 700px) {
  .trust {
    margin-bottom: 12px;
  }

  .subhead {
    margin-top: 10px;
  }

  .cta-row {
    margin-top: 16px;
  }

  .stat {
    gap: 3px;
  }
}

/* ---------- Tablet (721–900px): bigger phone rising from the stats ---------- */

@media (max-width: 900px) {
  /* Soft halo so the copy holds up over the brightest frames of the video. */
  .headline.anim {
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
  }

  .subhead {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .phone {
    --w: min(320px, calc(100cqh * 720 / 1564));
  }
}

/* ---------- Phones: bigger type, a real phone peek, compact stats, safe areas ---------- */

@media (max-width: 720px) {
  .page {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .hero {
    padding-top: clamp(14px, 3.4vh, 32px);
  }

  .trust {
    margin-bottom: clamp(12px, 2vh, 18px);
  }

  .headline {
    font-size: clamp(34px, 11vw, 50px);
  }

  html[lang="ar"] .headline {
    font-size: clamp(34px, 10.6vw, 48px);
  }

  /* Bigger dots read better at phone sizes. */
  html[lang="ar"] .headline .line {
    -webkit-mask-image: radial-gradient(circle closest-side, #000 88%, transparent 96%);
    mask-image: radial-gradient(circle closest-side, #000 88%, transparent 96%);
    -webkit-mask-size: 0.07em 0.07em;
    mask-size: 0.07em 0.07em;
  }

  .subhead {
    max-width: min(420px, 100%);
    margin-top: clamp(10px, 1.8vh, 16px);
    font-size: 15.5px;
    line-height: 1.5;
  }

  .subhead.anim {
    --final-opacity: 0.92;
  }


  html[lang="ar"] .subhead {
    line-height: 1.65;
  }

  .cta-row {
    margin-top: clamp(16px, 2.6vh, 24px);
  }

  .cta,
  .cta-ghost {
    padding: 13px 22px;
    font-size: 15px;
  }

  .device {
    margin-top: clamp(12px, 2vh, 20px);
    margin-bottom: clamp(8px, 1.4vh, 14px);
  }

  .phone {
    --w: min(66vw, 280px, calc(100cqh * 720 / 1564));
  }

  /* Stats: icon beside value and label, two rows of two */
  .stats {
    row-gap: 12px;
    column-gap: 12px;
    margin-top: 0;
  }

  .stat {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 1px;
    align-items: center;
    text-align: start;
  }

  .stat-icon {
    grid-row: 1 / span 2;
    width: 26px;
    font-size: 22px;
    text-align: center;
  }

  .stat-value {
    justify-self: start;
    font-size: 19px;
    line-height: 1.2;
  }

  .stat-label {
    justify-self: start;
    font-size: 11.5px;
    line-height: 1.35;
  }

  .legal {
    margin-top: 6px;
    font-size: 11px;
  }

  .legal {
    gap: 0 12px;
    margin-top: 4px;
    font-size: 10.5px;
  }

  .legal-links {
    gap: 0 8px;
  }

  .legal-links a {
    padding: 7px 2px;
  }

  .social {
    gap: 6px;
  }

  .social a {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  .cta {
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .cta {
    padding: 12px 18px;
    font-size: 14px;
  }

  .legal {
    gap: 0 6px;
    font-size: 10.5px;
  }
}

/* ---------- Hero buttons and scroll cue ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(20px, 3.4vh, 34px);
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(20px, 2.6vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  transition: background 0.25s ease, transform 0.3s var(--ease);
}

.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.scroll-cue {
  flex-shrink: 0;
  display: block;
  width: 22px;
  height: 34px;
  margin-top: clamp(8px, 1.4vh, 14px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
}

.scroll-cue span {
  display: block;
  width: 4px;
  height: 7px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Phones (≤720px): one calm column that scrolls ---------- */
/* Order: header, pill, headline, line of copy, one button, the slide, then the numbers. */

@media (max-width: 720px) {
  /* The page fades into the dark sections, so no hard edge appears while scrolling. */
  .page {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-bottom: 56px;
    background: linear-gradient(180deg, transparent 0%, transparent 46%, rgba(0, 0, 0, 0.62) 72%, rgba(0, 0, 0, 0.86) 100%);
  }

  /* The hero button already opens the store; the header keeps only logo and language. */
  .header .sign-in {
    display: none;
  }

  .hero {
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: clamp(36px, 8vh, 64px);
  }

  .hero-copy {
    width: 100%;
  }

  .trust {
    margin-bottom: 22px;
  }

  .trust-avatar {
    display: none;
  }

  .trust-pill {
    height: 32px;
    margin: 0;
    padding-inline: 16px;
    font-size: 12.5px;
    background: rgba(0, 0, 0, 0.38);
    border-color: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .headline {
    font-size: clamp(40px, 12vw, 54px);
    line-height: 1.06;
  }

  html[lang="ar"] .headline {
    font-size: clamp(40px, 12.4vw, 56px);
    line-height: 1.22;
  }

  /* On a phone the dot grid fights the grainy sky; solid letters with a soft sheen read cleaner. */
  html[lang="ar"] .headline .line {
    -webkit-mask-image: none;
    mask-image: none;
    background: linear-gradient(180deg, #fff 30%, #c9c9ce 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .subhead {
    max-width: 30ch;
    margin: 18px auto 0;
    font-size: 16px;
    line-height: 1.75;
    color: #ececec;
  }

  html[lang="en"] .subhead {
    line-height: 1.6;
  }

  .cta-row {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: 30px;
  }

  .cta {
    justify-content: center;
    width: min(100%, 320px);
    padding: 16px 24px;
    font-size: 16px;
  }

  .cta-ghost {
    padding: 12px 18px;
    border: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 6px;
  }

  .cta-ghost:hover {
    background: none;
    color: #fff;
  }

  .device {
    flex: none;
    container-type: normal;
    width: 100%;
    margin: 44px 0 0;
    gap: 14px;
  }

  .phone {
    --w: min(70vw, 300px);
  }

  .phone-dots {
    display: flex;
  }

  /* Numbers: one quiet card, four cells. */
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
    max-width: 440px;
    margin: 40px auto 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    text-shadow: none;
  }

  .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 20px 12px;
    text-align: center;
    background: rgba(8, 8, 10, 0.78);
  }

  .stat-icon {
    display: none;
  }

  .stat-value {
    font-size: 26px;
    line-height: 1.1;
  }

  .stat-label {
    font-size: 12.5px;
    line-height: 1.45;
    color: #a9a9ad;
  }

  .scroll-cue {
    display: none;
  }

  /* Darker veil over the bright sky so the copy stays clean. */
  .bg::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.66) 36%, rgba(0, 0, 0, 0.42) 64%, rgba(0, 0, 0, 0.72) 100%);
  }
}

@media (max-width: 360px) {
  .headline,
  html[lang="ar"] .headline {
    font-size: 38px;
  }

  .stat {
    padding: 16px 8px;
  }

  .stat-value {
    font-size: 22px;
  }
}

/* ---------- Sections below the first screen ---------- */

.sections {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.82) 14%, rgba(0, 0, 0, 0.86) 100%);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) clamp(16px, 4vw, 48px);
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #fff;
}

html[lang="ar"] .section-title {
  font-family: "BubbledotICG-FinePos", "Geist Pixel Circle", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 84%, transparent 92%);
  mask-image: radial-gradient(circle closest-side, #000 84%, transparent 92%);
  -webkit-mask-size: 0.06em 0.06em;
  mask-size: 0.06em 0.06em;
}

.section-sub {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: #a8a8a8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  background: var(--trust-bg);
  color: var(--trust-text);
  font-size: 12.5px;
  font-weight: 500;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone.mini {
  --w: clamp(160px, 16vw, 200px);
  margin-bottom: 22px;
  animation: none;
}

.phone.mini img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.step-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  opacity: 0.6;
}

.step-title {
  margin: 8px 0 6px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  color: #fff;
}

.step-body {
  max-width: 300px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #a8a8a8;
}

/* Verification */

.verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.verify-copy .section-title,
.verify-copy .section-sub {
  text-align: start;
}

.perks {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.perk {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.perk-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--trust-border);
  border-radius: 50%;
  background: var(--trust-bg);
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
}

.perk-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.perk-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #a8a8a8;
}

.soon {
  padding: 2px 9px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 600;
}

.verify-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #0d0d0e;
}

.form-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sign-in-text);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #161618;
  color: #fff;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

html[dir="rtl"] .field input[dir="ltr"] {
  text-align: left;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #fff;
}

.field [aria-invalid="true"] {
  border-color: #ff8a8a;
}

.hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Bot trap: off-screen, unreachable by keyboard and screen readers. */
.field.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--sign-in-text);
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #fff;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.submit {
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: 0;
  font-size: 15px;
}

.submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.form-status.is-ok {
  border: 1px solid rgba(214, 245, 223, 0.35);
  color: #d6f5df;
}

.form-status.is-error {
  border: 1px solid rgba(255, 138, 138, 0.4);
  color: #ffc4c4;
}

/* Verified features: three uniform cards (real screens from the app) */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: 0 auto clamp(56px, 8vw, 96px);
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(22, 22, 24, 0.92), rgba(10, 10, 11, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 30px 70px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

/* Hairline highlight on the top edge. */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(255, 255, 255, 0.07);
}

.feature-media {
  display: grid;
  place-items: center;
  height: clamp(200px, 19vw, 250px);
  margin: 10px 10px 0;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 18px;
  background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #eef0ef 70%, #e4e7e5 100%);
}

.feature-media {
  overflow: hidden;
}

.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(11, 42, 26, 0.14));
  transition: transform 0.6s var(--ease);
}

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

.feature-body {
  display: grid;
  gap: 6px;
  padding: 20px 22px 24px;
}

.feature-glyph {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: #fff;
  opacity: 0.85;
}

.feature-title {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.feature-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #a8a8a8;
}

/* Verification steps */

.vsteps {
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.vstep {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
}

.vstep:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 46px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.04));
}

.vstep-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-family: var(--font-display);
  font-size: 15px;
}

/* WhatsApp group card (verification section) */

.whatsapp {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 22, 24, 0.92), rgba(10, 10, 11, 0.96));
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.28), 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.55), 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(37, 211, 102, 0.12);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 24px;
}

.whatsapp-text {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.whatsapp-text strong {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.whatsapp-text small {
  font-size: 13px;
  line-height: 1.5;
  color: #a8a8a8;
}

.whatsapp-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: #25d366;
}

html[dir="rtl"] .whatsapp-arrow {
  transform: scaleX(-1);
}

.perks-heading {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.perks-heading.later {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.verify-copy .perks {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
  }
}

/* Footer (end of the page) */

.legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  margin: 0;
  padding: 28px clamp(16px, 4vw, 48px) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.92);
  font-size: 12px;
  color: var(--muted);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.steps .step:nth-child(2) { transition-delay: 0.1s; }
.steps .step:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .verify-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .scroll-cue {
    display: none;
  }

  .header-end .sign-in {
    height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }
}

/* Phones: the hero already fades to this shade, so the sections continue it seamlessly. */
@media (max-width: 720px) {
  .sections {
    background: rgba(0, 0, 0, 0.86);
  }

  html[lang="ar"] .section-title {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- Reduced motion ---------- */

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

  .anim,
  .headline .line,
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .subhead.anim {
    opacity: 0.8;
  }
}
