/* =========================================================================
   ID Photo Studio — Promotional Landing Page
   Shared stylesheet (design system + sections + utilities + RTL)
   Author: Senior UI Design
   --------------------------------------------------------------------------
   Structure
     1.  Design tokens (:root)
     2.  Base & reset
     3.  Typography helpers
     4.  Layout primitives (container, section, grid)
     5.  Buttons
     6.  Pills / eyebrow tags / chips
     7.  Top navigation + language switcher
     8.  Hero band
     9.  Section heading block
     10. Problem (icon bullets)
     11. Features grid (12 cards)
     12. How it works (numbered steps)
     13. Audience (check list)
     14. Highlights (4 cards)
     15. Tech & quality
     16. Download card
     17. Footer
     18. Utilities
     19. Accessibility helpers
     20. RTL ([dir="rtl"])
     21. Reduced motion / print
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Brand — trustworthy tech blue (matches app icon) */
  --blue-300: #64B5F6;
  --blue-400: #42A5F5;
  --blue-500: #2196F3;   /* primary */
  --blue-600: #1E88E5;
  --blue-700: #1565C0;
  --blue-900: #0D47A1;   /* deep */

  /* Accent — cyan / teal for highlights */
  --cyan-300: #67E8F9;
  --cyan-400: #22D3EE;
  --cyan-500: #06B6D4;
  --teal-400: #2DD4BF;
  --teal-500: #14B8A6;

  /* Ink (neutral text) */
  --ink-900: #0B1F3A;    /* primary text / headings */
  --ink-700: #1E3A5F;
  --ink-600: #2F4A6B;
  --ink-500: #4A6280;    /* secondary text */
  --ink-400: #6B7F99;    /* muted */
  --ink-300: #94A6BC;

  /* Paper (backgrounds) */
  --paper: #FFFFFF;
  --paper-50: #F7FAFD;
  --paper-100: #EEF3F9;
  --paper-200: #E2EAF3;
  --paper-300: #D4DEEA;

  /* Semantic */
  --bg: var(--paper-50);
  --bg-alt: var(--paper);
  --surface: var(--paper);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --border: #E6EDF5;
  --border-strong: #D4DEEA;

  /* Gradient stops */
  --grad-primary: linear-gradient(135deg, #2196F3 0%, #0D47A1 100%);
  --grad-primary-soft: linear-gradient(135deg, rgba(33,150,243,0.10) 0%, rgba(13,71,161,0.10) 100%);
  --grad-hero: radial-gradient(120% 120% at 15% 0%, #1565C0 0%, #0D47A1 45%, #082C6B 100%);
  --grad-accent: linear-gradient(135deg, #22D3EE 0%, #2DD4BF 100%);
  --grad-accent-glow: radial-gradient(60% 60% at 50% 50%, rgba(34,211,238,0.35) 0%, rgba(34,211,238,0) 70%);

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Kufi Arabic', Tahoma, sans-serif;
  --font-mono: 'SFMono-Regular', ui-monospace, 'Cascadia Code', 'Roboto Mono', Menlo, Consolas, monospace;

  /* Font sizes (fluid) */
  --fs-display: clamp(2.5rem, 1.6rem + 3.8vw, 4.25rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Line heights */
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  /* Shadow — subtle premium depth */
  --shadow-xs: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06), 0 1px 2px rgba(11, 31, 58, 0.04);
  --shadow-md: 0 10px 24px rgba(11, 31, 58, 0.08), 0 2px 6px rgba(11, 31, 58, 0.05);
  --shadow-lg: 0 22px 48px rgba(11, 31, 58, 0.12), 0 6px 14px rgba(11, 31, 58, 0.06);
  --shadow-xl: 0 40px 80px rgba(11, 31, 58, 0.18), 0 12px 24px rgba(11, 31, 58, 0.08);
  --shadow-blue: 0 14px 30px rgba(33, 150, 243, 0.30);
  --shadow-deep: 0 14px 36px rgba(13, 71, 161, 0.35);
  --ring-focus: 0 0 0 3px rgba(33, 150, 243, 0.40);

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --nav-height: 68px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 420ms;
}

/* -------------------------------------------------------------------------
   2. BASE & RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--blue-700);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--blue-500); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: var(--lh-tight);
  color: var(--ink-900);
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-xs);
}

/* Selection */
::selection { background: rgba(33, 150, 243, 0.22); color: var(--ink-900); }

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY HELPERS
   ------------------------------------------------------------------------- */
.display { font-size: var(--fs-display); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.035em; }
.h1 { font-size: var(--fs-h1); font-weight: 800; }
.h2 { font-size: var(--fs-h2); font-weight: 700; }
.h3 { font-size: var(--fs-h3); font-weight: 700; }
.lead { font-size: var(--fs-lead); line-height: var(--lh-relaxed); color: var(--ink-600); font-weight: 400; }
.text-muted { color: var(--text-muted); }
.text-ink { color: var(--text); }
.text-white { color: #fff; }
.text-accent { color: var(--cyan-500); }
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.mono { font-family: var(--font-mono); }

/* -------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1320px; }

.section {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}

.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }

.section--alt { background: var(--bg-alt); }

.section--tint {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(33,150,243,0.06), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(34,211,238,0.06), transparent 60%),
    var(--paper-50);
}

.section--dark {
  background: var(--grad-hero);
  color: #EAF2FB;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .text-muted { color: #B9CDE3; }

/* Decorative top hairline divider */
.section--divider::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}

/* Responsive auto-fit grid. Collapses 3 -> 2 -> 1. */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: var(--space-6); }
}

/* Auto-fit fallback (used by .grid--auto) */
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* -------------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-500);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.4rem;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover { color: #fff; box-shadow: var(--shadow-deep); }

.btn--accent {
  background: var(--grad-accent);
  color: #06243A;
  box-shadow: 0 14px 30px rgba(34,211,238,0.30);
}
.btn--accent:hover { color: #06243A; }

/* Secondary = light surface with border (for hero overlay & light bg) */
.btn--secondary {
  --btn-fg: var(--ink-900);
  background: var(--paper);
  color: var(--ink-900);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { color: var(--ink-900); border-color: var(--blue-400); box-shadow: var(--shadow-sm); }

/* Ghost = transparent (used on dark hero) */
.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.30);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* Outline accent */
.btn--outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-500);
  box-shadow: none;
}
.btn--outline:hover { background: rgba(33,150,243,0.08); color: var(--blue-700); }

.btn--lg { padding: 0.95rem 1.8rem; font-size: var(--fs-lead); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }

/* Play store button (with icon slot) */
.btn--play {
  background: #fff;
  color: var(--ink-900);
  border-color: var(--border-strong);
  padding: 0.7rem 1.2rem;
}
.btn--play:hover { color: var(--ink-900); }

.btn__icon { width: 1.35em; height: 1.35em; flex-shrink: 0; }
.btn__label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn__label small { font-size: 0.6875rem; font-weight: 500; color: var(--ink-500); letter-spacing: 0.02em; }
.btn--play .btn__label small { color: var(--ink-500); }

/* Link styled like a button (text + arrow) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--blue-700);
}
.link-arrow::after {
  content: "\2192";
  transition: transform var(--dur) var(--ease);
}
.link-arrow:hover::after { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   6. PILLS / EYEBROW TAGS / CHIPS
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.8rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: rgba(33, 150, 243, 0.10);
  border: 1px solid rgba(33, 150, 243, 0.22);
  border-radius: var(--radius-pill);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}

.eyebrow--light {
  color: #EAF2FB;
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}
.eyebrow--accent {
  color: #06303A;
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.40);
}

/* Tech chip (Kotlin, CameraX, etc.) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }
.chip--accent .chip__dot { background: var(--cyan-400); }

.chip--outline {
  background: transparent;
  box-shadow: none;
}

/* Feature badge (small label inside a card) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-700);
  background: var(--grad-primary-soft);
  border-radius: var(--radius-xs);
}

/* -------------------------------------------------------------------------
   7. TOP NAVIGATION + LANGUAGE SWITCHER
   ------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230, 237, 245, 0.7);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.86);
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.nav__brand:hover { color: var(--ink-900); }

.nav__logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-blue);
  flex-shrink: 0;
}
.nav__logo svg, .nav__logo img { width: 20px; height: 20px; }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-2);
}
@media (min-width: 880px) { .nav__links { display: flex; } }

.nav__link {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-600);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--blue-700); background: rgba(33,150,243,0.07); }
.nav__link.is-active { color: var(--blue-700); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
}

.nav__actions { display: flex; align-items: center; gap: var(--space-3); }

/* Language switcher — clean pill dropdown */
.lang-switch { position: relative; display: inline-block; }
.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 38px;
  padding: 0 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-switch__toggle:hover { border-color: var(--blue-400); color: var(--blue-700); }
.lang-switch__globe { width: 16px; height: 16px; opacity: 0.8; }
.lang-switch__caret { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.lang-switch[data-open="true"] .lang-switch__caret { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 110;
}
.lang-switch[data-open="true"] .lang-switch__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-switch__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.55rem 0.7rem;
  font-size: var(--fs-sm);
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-switch__option:hover { background: var(--paper-100); color: var(--blue-700); }
.lang-switch__option[aria-selected="true"] { color: var(--blue-700); font-weight: 600; }
.lang-switch__option[aria-selected="true"]::after { content: "\2713"; color: var(--teal-500); }
.lang-switch__check { color: var(--teal-500); font-weight: 700; }

/* Native <select> fallback styling (if dev uses a real select.lang-switch__select) */
.lang-switch__select {
  appearance: none;
  height: 38px;
  padding: 0 2rem 0 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A6280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

/* Mobile nav toggle */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}
@media (min-width: 880px) { .nav__toggle { display: none; } }
.nav__toggle svg { width: 20px; height: 20px; }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: var(--nav-height) 0 auto 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 99;
}
.nav__drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drawer .nav__link { padding: 0.85rem 0.5rem; font-size: var(--fs-body); border-bottom: 1px solid var(--border); border-radius: 0; }
@media (min-width: 880px) { .nav__drawer { display: none; } }

/* -------------------------------------------------------------------------
   8. HERO BAND
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: #EAF2FB;
  isolation: isolate;
}
/* Decorative glows + grid texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 85% 15%, rgba(34,211,238,0.22), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(45,212,191,0.16), transparent 70%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 0%, transparent 80%);
  z-index: -1;
}

.hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-9); }
}

.hero__copy { max-width: 640px; }
.hero__title { color: #fff; font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.035em; line-height: var(--lh-tight); }
.hero__title em { font-style: normal; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero__subtitle { margin-top: var(--space-5); color: #C9DCEE; font-size: var(--fs-lead); line-height: var(--lh-relaxed); max-width: 56ch; }

.hero__actions {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.hero__note {
  margin-top: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: #AFC4DC;
}
.hero__note::before { content: "\2713"; color: var(--teal-400); font-weight: 700; }

/* Hero visual / device mock */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.hero__device {
  position: relative;
  width: min(300px, 78%);
  aspect-ratio: 9 / 18;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, #0A1F3A, #061425);
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero__device::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 16px;
  background: #061425;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.hero__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(60% 40% at 50% 35%, rgba(34,211,238,0.18), transparent 70%),
    linear-gradient(180deg, #103257, #0A2444);
}
/* Floating spec cards */
.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 0.85rem;
  background: rgba(255,255,255,0.92);
  color: var(--ink-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.hero__float--tl { top: 6%; inset-inline-start: -6%; }
.hero__float--br { bottom: 8%; inset-inline-end: -4%; }
.hero__float-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--grad-primary);
  color: #fff;
  flex-shrink: 0;
}
.hero__float-icon--accent { background: var(--grad-accent); color: #06243A; }

@media (max-width: 600px) {
  .hero__float--tl { inset-inline-start: 2%; }
  .hero__float--br { inset-inline-end: 2%; }
}

/* -------------------------------------------------------------------------
   9. SECTION HEADING BLOCK
   ------------------------------------------------------------------------- */
.section-head {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  text-align: center;
}
.section-head > * + * { margin-top: var(--space-4); }
.section-head__eyebrow { margin-bottom: var(--space-3); }
.section-head__title { font-size: var(--fs-h2); }
.section-head__subtitle { font-size: var(--fs-lead); color: var(--text-muted); line-height: var(--lh-relaxed); }

/* Left-aligned variant */
.section-head--start { margin-inline: 0; text-align: start; }

/* -------------------------------------------------------------------------
   10. PROBLEM (icon bullets)
   ------------------------------------------------------------------------- */
.problem__list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bullet:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--paper-300); }

.bullet__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: rgba(244, 67, 54, 0.10);
  color: #D32F2F;
}
.bullet--info .bullet__icon { background: rgba(33,150,243,0.10); color: var(--blue-600); }
.bullet--warn .bullet__icon { background: rgba(255,152,0,0.12); color: #E67E22; }
.bullet__icon svg { width: 22px; height: 22px; }
.bullet__body > * + * { margin-top: var(--space-1); }
.bullet__title { font-weight: 700; color: var(--ink-900); }
.bullet__text { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-normal); }

/* -------------------------------------------------------------------------
   11. FEATURES GRID (cards)
   ------------------------------------------------------------------------- */
.features__grid { margin-top: var(--space-7); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--paper-300);
}
.card:hover::before { opacity: 1; }

.card--accent::before { background: var(--grad-accent); }

.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--grad-primary-soft);
  color: var(--blue-700);
  margin-bottom: var(--space-2);
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--solid { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-blue); }
.card__icon--accent { background: var(--grad-accent); color: #06243A; }

.card__title { font-size: var(--fs-h3); font-weight: 700; color: var(--ink-900); }
.card__desc { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.card__footer { margin-top: auto; padding-top: var(--space-3); }

/* Tinted card variant for highlights */
.card--glass {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #EAF2FB;
  backdrop-filter: blur(10px);
}
.card--glass .card__title { color: #fff; }
.card--glass .card__desc { color: #C9DCEE; }

/* -------------------------------------------------------------------------
   12. HOW IT WORKS (numbered steps)
   ------------------------------------------------------------------------- */
.flow__steps {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
@media (min-width: 760px) {
  .flow__steps { grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.step__number {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: var(--fs-body);
  color: #fff;
  background: var(--grad-primary);
  box-shadow: var(--shadow-blue);
}
.step:nth-child(2n) .step__number { background: var(--grad-accent); color: #06243A; }

/* Connector line between steps on desktop */
@media (min-width: 760px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--space-5) + 20px);
    inset-inline-end: calc(-1 * var(--space-4) / 2);
    width: var(--space-4);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--paper-300) 0 6px, transparent 6px 12px);
  }
}

.step__title { font-size: 1.0625rem; font-weight: 700; color: var(--ink-900); }
.step__desc { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }

/* -------------------------------------------------------------------------
   13. AUDIENCE (check list)
   ------------------------------------------------------------------------- */
.audience__list {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 760px) { .audience__list { grid-template-columns: 1fr 1fr; } }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.check-item:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }

.check-item__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-accent);
  color: #06243A;
  margin-top: 1px;
}
.check-item__icon svg { width: 14px; height: 14px; }
.check-item__text { color: var(--ink-700); font-weight: 500; }

/* -------------------------------------------------------------------------
   14. HIGHLIGHTS (4 cards) — reuses .card; adds emphasis
   ------------------------------------------------------------------------- */
.highlights__grid { margin-top: var(--space-7); }
.highlight-card { position: relative; }
.highlight-card .card__icon { width: 56px; height: 56px; }
.highlight-card .card__icon svg { width: 28px; height: 28px; }
.highlight-card .card__title { font-size: var(--fs-h3); }

/* -------------------------------------------------------------------------
   15. TECH & QUALITY
   ------------------------------------------------------------------------- */
.tech__layout {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}
@media (min-width: 880px) { .tech__layout { grid-template-columns: 1fr 1.1fr; align-items: start; } }

.tech__panel {
  padding: var(--space-6);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.tech__panel-title { font-size: var(--fs-h3); margin-bottom: var(--space-4); }

.tech__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.quality__list { display: grid; gap: var(--space-3); }
.quality__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--border);
}
.quality__item:last-child { border-bottom: none; padding-bottom: 0; }
.quality__marker {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--grad-primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-top: 1px;
}
.quality__text { color: var(--ink-600); line-height: var(--lh-relaxed); }

/* SDK / version meta row */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.meta-row strong { color: var(--ink-900); font-weight: 700; }

/* -------------------------------------------------------------------------
   16. DOWNLOAD CARD
   ------------------------------------------------------------------------- */
.download {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--grad-hero);
  color: #EAF2FB;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  box-shadow: var(--shadow-xl);
  isolation: isolate;
}
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at 90% 10%, rgba(34,211,238,0.20), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(45,212,191,0.14), transparent 70%);
  z-index: -1;
}

.download__inner {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 760px) {
  .download__inner { grid-template-columns: 1.1fr 0.9fr; }
}

.download__title { color: #fff; font-size: var(--fs-h2); }
.download__subtitle { margin-top: var(--space-3); color: #C9DCEE; font-size: var(--fs-lead); line-height: var(--lh-relaxed); max-width: 48ch; }

.download__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.download__privacy {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
}
.download__privacy a { color: var(--cyan-300); text-decoration: underline; text-underline-offset: 3px; }
.download__privacy a:hover { color: #fff; }

/* QR panel */
.download__qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  justify-self: center;
}
.download__qr-frame {
  position: relative;
  padding: var(--space-3);
  width: 196px; height: 196px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.download__qr-frame img,
.download__qr-frame svg { width: 100%; height: 100%; }
/* Corner accents on QR */
.download__qr-frame::before,
.download__qr-frame::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 3px solid var(--cyan-400);
}
.download__qr-frame::before { top: -6px; inset-inline-start: -6px; border-radius: 8px 0 0 0; border-inline-end-width: 0; border-bottom-width: 0; }
.download__qr-frame::after { bottom: -6px; inset-inline-end: -6px; border-radius: 0 0 8px 0; border-inline-start-width: 0; border-top-width: 0; }

.download__scan-hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: #C9DCEE;
  text-align: center;
  max-width: 28ch;
}
.download__scan-hint svg { width: 16px; height: 16px; color: var(--teal-400); flex-shrink: 0; }

/* -------------------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------------------- */
.footer {
  background: var(--ink-900);
  color: #AEBFD3;
  padding-block: var(--space-8) var(--space-6);
}
.footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
@media (min-width: 760px) {
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-6); }
}
.footer__brand { display: flex; align-items: center; gap: var(--space-3); color: #fff; font-weight: 700; }
.footer__brand .nav__logo { box-shadow: none; }
.footer__rights { font-size: var(--fs-sm); }
.footer__note { font-size: var(--fs-xs); color: #7E91A8; max-width: 60ch; line-height: var(--lh-relaxed); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-5); font-size: var(--fs-sm); }
.footer__link { color: #C9DCEE; }
.footer__link:hover { color: #fff; }

/* -------------------------------------------------------------------------
   18. UTILITIES
   ------------------------------------------------------------------------- */
.full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }
.center { display: grid; place-items: center; }
.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cluster--center { justify-content: center; }
.cluster--between { justify-content: space-between; }
.cluster--end { justify-content: flex-end; }

.text-center { text-align: center; }
.text-start { text-align: start; }
.text-end { text-align: end; }
.hide-sm { display: none; }
@media (min-width: 760px) { .hide-sm { display: revert; } .show-sm { display: none; } }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: var(--space-3); } .mb-6 { margin-bottom: var(--space-6); }

.flow-inline > * + * { margin-inline-start: var(--space-3); }
.divider { height: 1px; background: var(--border); border: none; margin-block: var(--space-6); }
.rounded { border-radius: var(--radius-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

/* Reveal-on-scroll hook (progressive enhancement) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   19. ACCESSIBILITY HELPERS
   ------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--blue-700);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-3); }

/* -------------------------------------------------------------------------
   20. RTL  ([dir="rtl"])  — mirrors layout for Arabic
   ------------------------------------------------------------------------- */
[dir="rtl"] body { text-align: right; }

[dir="rtl"] .nav__link.is-active::after { left: auto; right: 50%; transform: translateX(50%); }

/* Flip horizontal-only arrows & icons that imply direction */
[dir="rtl"] .link-arrow::after { content: "\2190"; }            /* ← */
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-3px); }

/* Reverse the connector dashed line direction between steps */
[dir="rtl"] .step:not(:last-child)::after { inset-inline-end: auto; inset-inline-start: calc(-1 * var(--space-4) / 2); }

/* QR frame corner accents swap corners so they still hug opposite corners */
[dir="rtl"] .download__qr-frame::before { inset-inline-start: auto; inset-inline-end: -6px; border-radius: 0 8px 0 0; border-inline-start-width: 0; border-inline-end-width: 3px; }
[dir="rtl"] .download__qr-frame::after  { inset-inline-end: auto; inset-inline-start: -6px; border-radius: 0 0 0 8px; border-inline-end-width: 0; border-inline-start-width: 3px; }

/* Check-item hover should slide the other way */
[dir="rtl"] .check-item:hover { transform: translateX(-3px); }

/* Native select caret moves to the left in RTL */
[dir="rtl"] .lang-switch__select {
  padding: 0 0.75rem 0 2rem;
  background-position: left 0.6rem center;
}

/* The hero floating cards sit on logical corners already; ensure floats read correctly */
[dir="rtl"] .hero__float--tl { inset-inline-start: -6%; }
[dir="rtl"] .hero__float--br { inset-inline-end: -4%; }

/* Ensure toggles/menus open on the correct side */
[dir="rtl"] .lang-switch__menu { inset-inline-end: auto; inset-inline-start: 0; }

/* Numbers in numbered steps stay LTR for legibility but align right */
[dir="rtl"] .step__number { direction: ltr; }

/* For Arabic, prefer the Arabic font first */
[dir="rtl"] body { font-family: 'Noto Sans Arabic', 'Inter', system-ui, 'Segoe UI', Tahoma, sans-serif; }

/* -------------------------------------------------------------------------
   21. REDUCED MOTION / PRINT
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .nav__drawer, .hero__actions, .download, .footer__links { display: none; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  .card, .tech__panel { box-shadow: none; border: 1px solid #ccc; }
}

/* -------------------------------------------------------------------------
   22. HERO QR (scan-to-download at the top of the page)
   ------------------------------------------------------------------------- */
.hero__qr { display: flex; align-items: center; gap: .85rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero__qr-frame { display: inline-flex; align-items: center; justify-content: center; padding: .5rem; background: #fff; border-radius: 1rem; box-shadow: 0 14px 36px rgba(4,20,50,.5), 0 0 0 1px rgba(255,255,255,.18); flex: 0 0 auto; transition: transform .25s ease; }
.hero__qr-frame:hover { transform: translateY(-2px); }
.hero__qr-frame img { display: block; width: 5.5rem; height: 5.5rem; }
.hero__qr-hint { display: block; color: #EAF2FB; font-size: .9rem; line-height: 1.4; max-width: 12.5rem; opacity: .94; }
[dir="rtl"] .hero__qr { flex-direction: row-reverse; }
@media (max-width: 560px) { .hero__qr-frame img { width: 4.75rem; height: 4.75rem; } .hero__qr-hint { font-size: .85rem; } }
@media print { .hero__qr { display: none; } }
