@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #061225;
  --bg-2: #091b35;
  --panel: rgba(11, 29, 55, 0.76);
  --panel-strong: rgba(16, 40, 74, 0.92);
  --line: rgba(151, 204, 255, 0.18);
  --text: #eef7ff;
  --muted: #b8cae0;
  --soft: #7fa4c8;
  --cyan: #24d4ff;
  --blue: #3b82f6;
  --indigo: #4f46e5;
  --green: #7cf7c5;
  --warning: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max: 1160px;
  --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --text-body: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  --text-lead: clamp(1.02rem, 0.94rem + 0.32vw, 1.125rem);
  --text-hero: clamp(2.25rem, 1.12rem + 3.4vw, 3.6rem);
  --text-hero-ar: clamp(2.1rem, 1.05rem + 3.1vw, 3.3rem);
  --text-section: clamp(1.38rem, 1.02rem + 1.2vw, 1.88rem);
  --text-section-ar: clamp(1.32rem, 1rem + 1.1vw, 1.76rem);
  --text-page: clamp(1.7rem, 1.15rem + 1.5vw, 2.35rem);
  --text-page-ar: clamp(1.6rem, 1.1rem + 1.35vw, 2.15rem);
  --store-badge-visual-height: 50px;
  --store-badge-google-ratio: 1.4881;
  font-family: var(--font-en);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 10%, rgba(36, 212, 255, 0.25), transparent 28rem),
    radial-gradient(circle at 88% 6%, rgba(79, 70, 229, 0.28), transparent 30rem),
    linear-gradient(135deg, var(--bg), var(--bg-2) 54%, #050b18);
  color: var(--text);
  font-size: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

:lang(ar) body {
  font-family: var(--font-ar);
  line-height: 1.78;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.74), transparent 76%);
}

.page-home::before {
  animation: grid-drift 58s linear infinite;
}

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

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 13, 29, 0.76);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

:lang(ar) .brand,
[dir="rtl"] .brand {
  letter-spacing: 0;
}

.brand img,
.app-orb img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(36, 212, 255, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.language-toggle button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.nav-links a:hover,
.language-toggle button:hover,
.language-toggle button[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(36, 212, 255, 0.26);
  background: rgba(36, 212, 255, 0.1);
}

.language-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.nav-toggle,
.nav-backdrop,
.nav-drawer {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(36, 212, 255, 0.26);
  background: rgba(36, 212, 255, 0.1);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.nav-toggle-bars span {
  position: absolute;
  inset-inline-start: 0;
  width: 18px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 240ms ease, opacity 200ms ease, top 240ms ease;
}

.nav-toggle-bars span:nth-child(1) {
  top: 0;
}

.nav-toggle-bars span:nth-child(2) {
  top: 6px;
}

.nav-toggle-bars span:nth-child(3) {
  top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 8, 20, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.nav-drawer {
  --nav-drawer-shift: -110%;
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 60;
  width: min(84vw, 340px);
  max-width: 100%;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 24, 48, 0.96), rgba(6, 14, 30, 0.98));
  backdrop-filter: blur(22px);
  border-inline-end: 1px solid rgba(151, 204, 255, 0.18);
  box-shadow: 20px 0 64px rgba(0, 0, 0, 0.38);
  transform: translateX(var(--nav-drawer-shift));
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 320ms;
}

.nav-drawer::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(36, 212, 255, 0.82), rgba(36, 212, 255, 0.08));
  pointer-events: none;
}

[dir="rtl"] .nav-drawer {
  --nav-drawer-shift: 110%;
  box-shadow: -20px 0 64px rgba(0, 0, 0, 0.38);
}

html.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.nav-open .nav-drawer {
  --nav-drawer-shift: 0%;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.nav-open body {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  padding-inline-end: var(--nav-scrollbar-compensation, 0px);
}

.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px 24px;
}

.nav-drawer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(36, 212, 255, 0.22);
}

.nav-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  font-weight: 700;
  line-height: 1.3;
}

.nav-drawer-brand span {
  overflow-wrap: anywhere;
}

.nav-drawer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(36, 212, 255, 0.2);
}

.nav-drawer-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(151, 204, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}

.nav-drawer-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-drawer-close:hover,
.nav-drawer-close:focus-visible {
  border-color: rgba(36, 212, 255, 0.28);
  background: rgba(36, 212, 255, 0.1);
}

.nav-drawer-nav {
  display: grid;
  gap: 6px;
  padding: 8px 0 18px;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-drawer-link:hover,
.nav-drawer-link:focus-visible {
  border-color: rgba(36, 212, 255, 0.22);
  background: rgba(36, 212, 255, 0.08);
  transform: translateX(4px);
}

[dir="rtl"] .nav-drawer-link:hover,
[dir="rtl"] .nav-drawer-link:focus-visible {
  transform: translateX(-4px);
}

.nav-drawer-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 212, 255, 0.16);
  border-radius: 12px;
  background: rgba(36, 212, 255, 0.08);
  color: var(--cyan);
}

.nav-drawer-icon .icon-svg {
  width: 20px;
  height: 20px;
  transition: none;
}

.nav-drawer-chevron {
  width: 8px;
  height: 8px;
  margin-inline-start: auto;
  border-block-end: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.42;
}

[dir="rtl"] .nav-drawer-chevron {
  transform: rotate(135deg);
}

.nav-drawer-language {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(151, 204, 255, 0.14);
}

.nav-drawer-language-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.nav-drawer-language-head p {
  margin: 0;
}

.nav-drawer-language-head #nav-language-heading {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-drawer-language-current {
  color: var(--muted);
  font-size: 0.82rem;
}

.language-toggle--drawer {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
}

.language-toggle--drawer button {
  min-height: 44px;
  padding-inline: 12px;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 56px 0 40px;
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: -18% -8% auto;
  height: 120%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(36, 212, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.12), transparent 38%);
  animation: ambient-shift 42s ease-in-out infinite alternate;
}

.hero-scan {
  position: absolute;
  inset: 8% 4% auto auto;
  width: min(42%, 360px);
  height: 72%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(36, 212, 255, 0.07) 48%,
    transparent 100%
  );
  opacity: 0.55;
  animation: hero-scan 14s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(36, 212, 255, 0.24);
  border-radius: 999px;
  background: rgba(36, 212, 255, 0.09);
  color: #d8f7ff;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero h1 {
  margin: 16px 0 14px;
  max-width: 13.5em;
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.page-hero h1 {
  margin: 16px 0 12px;
  max-width: 18em;
  font-size: var(--text-page);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

:lang(ar) .hero h1,
[dir="rtl"] .hero h1 {
  font-size: var(--text-hero-ar);
  line-height: 1.26;
  letter-spacing: 0;
}

:lang(ar) .page-hero h1,
[dir="rtl"] .page-hero h1 {
  font-size: var(--text-page-ar);
  line-height: 1.32;
  letter-spacing: 0;
}

.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.6;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.store-badges.compact {
  margin-top: 18px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 auto;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.store-badge img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.store-badge--apple img {
  height: var(--store-badge-visual-height);
}

.store-badge--google img {
  height: calc(var(--store-badge-visual-height) * var(--store-badge-google-ratio));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 212, 255, 0.48);
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #041224;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.play-mark {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-inline-start: 13px solid currentColor;
}

.hero-device {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.75;
}

.glow.one {
  background: rgba(36, 212, 255, 0.22);
  top: 26px;
  inset-inline-start: 12px;
  animation: glow-breathe 7.5s ease-in-out infinite;
}

.glow.two {
  background: rgba(79, 70, 229, 0.26);
  bottom: 18px;
  inset-inline-end: 0;
  animation: glow-breathe 9s ease-in-out infinite reverse;
}

.phone-float {
  position: relative;
  z-index: 1;
  animation: phone-float 8s ease-in-out infinite;
}

.phone-card {
  position: relative;
  width: min(100%, 370px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(9, 23, 45, 0.78);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.18);
  transform: perspective(900px) rotateY(-8deg) rotateX(5deg);
}

[dir="rtl"] .phone-card {
  transform: perspective(900px) rotateY(8deg) rotateX(5deg);
}

.app-orb {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(36, 212, 255, 0.36), rgba(59, 130, 246, 0.1));
  box-shadow: 0 0 0 1px rgba(36, 212, 255, 0.16);
  animation: orb-glow 6s ease-in-out infinite;
}

.app-orb img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.phone-card h2 {
  margin: 12px 0 8px;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

:lang(ar) .phone-card h2,
[dir="rtl"] .phone-card h2 {
  line-height: 1.4;
  letter-spacing: 0;
}

.search-demo {
  position: relative;
  margin: 18px 0 4px;
}

.search-demo-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(36, 212, 255, 0.22);
  background: rgba(4, 16, 32, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.search-demo-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.search-demo.is-scanning .search-demo-icon {
  animation: search-icon-pulse 850ms ease-out;
}

.search-demo-value {
  display: inline-flex;
  align-items: center;
  min-width: 7ch;
  min-height: 1.2em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
}

.search-demo-text {
  display: inline-block;
  min-height: 1em;
  white-space: nowrap;
}

.search-demo-caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-inline-start: 2px;
  background: var(--cyan);
  border-radius: 1px;
  animation: caret-blink 1.05s steps(1) infinite;
}

.search-demo.is-complete .search-demo-caret {
  opacity: 0;
  animation: none;
}

.search-demo-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(36, 212, 255, 0.2),
    transparent
  );
}

.search-demo.is-scanning .search-demo-scan {
  animation: scan-sweep 850ms ease-out;
}

.search-demo-confirm {
  position: absolute;
  inset-inline-end: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  box-shadow: 0 0 0 0 rgba(124, 247, 197, 0.0);
}

.search-demo.is-complete .search-demo-confirm {
  opacity: 0.92;
  animation: confirm-glow 1.6s ease-out;
}

.code-preview {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.code-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-device.is-visible .code-row {
  animation: code-row-in 560ms ease both;
}

.hero-device.is-visible .code-row:nth-child(1) {
  animation-delay: 220ms;
}

.hero-device.is-visible .code-row:nth-child(2) {
  animation-delay: 360ms;
}

.hero-device.is-visible .code-row:nth-child(3) {
  animation-delay: 500ms;
}

.code-row.is-match {
  border-color: rgba(36, 212, 255, 0.28);
}

.search-demo.is-complete + .code-preview .code-row.is-match {
  box-shadow: inset 0 0 0 1px rgba(36, 212, 255, 0.18);
}

.code {
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.section {
  padding: 64px 0;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 26px;
}

.section-header h2,
.legal-card h2 {
  margin: 0 0 10px;
  font-size: var(--text-section);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.018em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

:lang(ar) .section-header h2,
:lang(ar) .legal-card h2,
[dir="rtl"] .section-header h2,
[dir="rtl"] .legal-card h2 {
  font-size: var(--text-section-ar);
  line-height: 1.4;
  letter-spacing: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.steps-grid,
.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.legal-card,
.toc-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.card::after,
.legal-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(36, 212, 255, 0.18), transparent 38%);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 212, 255, 0.34);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(36, 212, 255, 0.12);
}

.icon {
  position: relative;
  overflow: hidden;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(36, 212, 255, 0.2), rgba(79, 70, 229, 0.26));
  color: var(--cyan);
  transition: transform 280ms ease;
}

.icon-svg {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 280ms ease;
}

.card:hover .icon {
  transform: translateY(-3px);
}

.card:hover .icon--wrench .icon-svg {
  transform: rotate(-7deg);
}

.icon--engine {
  animation: engine-breathe 5.2s ease-in-out infinite;
}

.icon--search .icon-svg,
.icon--scan .icon-svg {
  animation: search-nudge 3.8s ease-in-out infinite;
}

.icon--database {
  animation: data-pulse 4.8s ease-in-out infinite;
}

.icon--oem::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 36%;
  left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: oem-sweep 5.6s ease-in-out infinite;
}

.icon--bookmark {
  animation: bookmark-pulse 6s ease-in-out infinite;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: break-word;
}

:lang(ar) .card h3,
[dir="rtl"] .card h3 {
  line-height: 1.7;
  letter-spacing: 0;
}

.card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.step-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.step-mark .icon {
  margin-bottom: 0;
}

.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #03101f;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-weight: 800;
  font-size: 0.85rem;
}

.trust-card {
  min-height: 100%;
}

.page-hero {
  padding: 56px 0 28px;
}

.page-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc-card {
  position: sticky;
  top: 96px;
}

.toc-card h2 {
  margin-top: 0;
  font-size: 1rem;
}

.toc-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.toc-card a {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
}

.toc-card a:hover {
  background: rgba(36, 212, 255, 0.09);
  color: var(--text);
}

.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-card h2 {
  font-size: clamp(1.18rem, 1rem + 0.7vw, 1.45rem);
}

.legal-card ul {
  padding-inline-start: 1.25rem;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.download-panel {
  max-width: 560px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.meta-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item strong {
  display: block;
  margin-bottom: 4px;
}

.site-footer {
  margin-top: 54px;
  padding: 38px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(2, 7, 18, 0.38);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-downloads {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--cyan);
}

.fine-print {
  margin-top: 16px;
  color: var(--soft);
  font-size: 0.92rem;
}

.lang-copy[hidden] {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease, transform 640ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.hero-copy .store-badges.reveal {
  --reveal-delay: 120ms;
}

.hero-copy .hero-actions.reveal {
  --reveal-delay: 200ms;
}

.reveal-from-start,
.hero-copy .reveal-from-start {
  transform: translate3d(-22px, 8px, 0);
}

.hero-device.reveal-from-end,
.reveal-from-end {
  transform: translate3d(22px, 8px, 0);
}

[dir="rtl"] .reveal-from-start,
[dir="rtl"] .hero-copy .reveal-from-start {
  transform: translate3d(22px, 8px, 0);
}

[dir="rtl"] .reveal-from-end,
[dir="rtl"] .hero-device.reveal-from-end {
  transform: translate3d(-22px, 8px, 0);
}

.page-legal .reveal {
  transform: translateY(14px);
}

.reveal.is-visible,
.reveal-from-start.is-visible,
.reveal-from-end.is-visible,
.hero-copy .reveal-from-start.is-visible,
.hero-device.reveal-from-end.is-visible,
[dir="rtl"] .reveal-from-start.is-visible,
[dir="rtl"] .reveal-from-end.is-visible,
[dir="rtl"] .hero-copy .reveal-from-start.is-visible,
[dir="rtl"] .hero-device.reveal-from-end.is-visible,
.page-legal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.page-legal .hero-ambient,
.page-legal .hero-scan {
  display: none;
}

[dir="rtl"] .code-row {
  grid-template-columns: auto 1fr;
}

[dir="rtl"] .footer-links {
  justify-content: flex-start;
}

[dir="rtl"] .footer-downloads {
  justify-items: start;
}

@keyframes grid-drift {
  to {
    background-position: 52px 52px, 52px 52px;
  }
}

@keyframes ambient-shift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  to {
    transform: translate3d(2.5%, 1.5%, 0) scale(1.04);
    opacity: 1;
  }
}

@keyframes hero-scan {
  0%,
  100% {
    transform: translateY(-6%);
    opacity: 0.25;
  }
  50% {
    transform: translateY(8%);
    opacity: 0.55;
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.06);
  }
}

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

@keyframes orb-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(36, 212, 255, 0.14), 0 0 18px rgba(36, 212, 255, 0.12);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(36, 212, 255, 0.28), 0 0 28px rgba(36, 212, 255, 0.22);
  }
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes scan-sweep {
  from {
    transform: translateX(-45%);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  to {
    transform: translateX(280%);
    opacity: 0;
  }
}

@keyframes search-icon-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(36, 212, 255, 0));
  }
  40% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(36, 212, 255, 0.45));
  }
}

@keyframes confirm-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 247, 197, 0.55);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(124, 247, 197, 0);
  }
}

@keyframes code-row-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes engine-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(36, 212, 255, 0);
  }
  50% {
    box-shadow: 0 0 14px 1px rgba(36, 212, 255, 0.22);
  }
}

@keyframes search-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

@keyframes data-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

@keyframes oem-sweep {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  18% {
    opacity: 0.7;
  }
  42%,
  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}

@keyframes bookmark-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(36, 212, 255, 0);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(36, 212, 255, 0.28);
  }
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(2.45rem, 2.1rem + 1.6vw, 3.15rem);
  }

  :lang(ar) .hero h1,
  [dir="rtl"] .hero h1 {
    font-size: clamp(2.25rem, 1.95rem + 1.4vw, 2.95rem);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .legal-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-device {
    min-height: auto;
  }

  .hero-scan {
    inset: auto 8% 0 8%;
    width: auto;
    height: 46%;
  }

  .features-grid,
  .steps-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc-card {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-downloads {
    justify-items: start;
  }
}

@media (max-width: 820px) {
  .nav {
    min-height: 62px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .language-toggle--header {
    display: none;
  }

  .nav-backdrop {
    display: block;
  }

  .nav-drawer {
    display: flex;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(2.25rem, 1.7rem + 2.4vw, 2.85rem);
    line-height: 1.12;
  }

  :lang(ar) .hero h1,
  [dir="rtl"] .hero h1 {
    font-size: clamp(2.1rem, 1.6rem + 2.1vw, 2.65rem);
    line-height: 1.28;
  }

  .section-header h2 {
    font-size: clamp(1.32rem, 1.05rem + 1.1vw, 1.62rem);
  }
}

@media (max-width: 680px) {
  :root {
    --store-badge-visual-height: 44px;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 1.55rem + 3.4vw, 2.7rem);
  }

  :lang(ar) .hero h1,
  [dir="rtl"] .hero h1 {
    font-size: clamp(2.05rem, 1.45rem + 3vw, 2.5rem);
  }

  .phone-card,
  [dir="rtl"] .phone-card {
    transform: none;
  }

  .features-grid,
  .steps-grid,
  .trust-grid,
  .meta-list {
    grid-template-columns: 1fr;
  }

  .store-badges,
  .hero-actions,
  .card-actions {
    width: 100%;
  }

  .section {
    padding: 46px 0;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(2.2rem, 8.4vw, 2.55rem);
    line-height: 1.14;
  }

  :lang(ar) .hero h1,
  [dir="rtl"] .hero h1 {
    font-size: clamp(2.05rem, 7.8vw, 2.4rem);
    line-height: 1.28;
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 6.4vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal,
  .page-legal .reveal,
  .reveal-from-start,
  .reveal-from-end,
  .hero-copy .reveal-from-start,
  .hero-device.reveal-from-end,
  [dir="rtl"] .reveal-from-start,
  [dir="rtl"] .reveal-from-end {
    opacity: 1 !important;
    transform: none !important;
  }

  .code-row,
  .hero-device.is-visible .code-row {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .phone-float,
  .phone-card,
  [dir="rtl"] .phone-card {
    transform: none;
  }

  .search-demo-caret {
    display: none;
  }

  .search-demo-scan,
  .hero-ambient,
  .hero-scan {
    display: none;
  }

  .nav-drawer,
  .nav-backdrop {
    transition: none !important;
  }
}
