/* ==========================================================================
   Scan to Desktop — Landing page styles
   by ImraneSoft · Design system (CSS custom properties + logical properties)
   ========================================================================== */

:root {
  --primary: #1557d6;
  --primary-dark: #0d47a1;
  --primary-soft: #e8effc;
  --gradient: linear-gradient(135deg, #1557d6 0%, #4a7dff 55%, #6ea2ff 100%);
  --navy: #081a38;
  --navy-2: #0e2550;
  --ink: #12233f;
  --muted: #5b6c89;
  --line: #e4eaf4;
  --surface: #ffffff;
  --surface-2: #f5f8fd;
  --success: #0e9f6e;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(10, 30, 70, .06), 0 4px 12px rgba(10, 30, 70, .05);
  --shadow-m: 0 8px 24px rgba(10, 30, 70, .08), 0 24px 60px rgba(10, 30, 70, .06);
  --shadow-l: 0 30px 70px rgba(8, 26, 56, .24);
  --max-w: 1160px;
  --nav-h: 68px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Cairo", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }

::selection { background: rgba(21, 87, 214, .18); }

:focus-visible { outline: 3px solid rgba(21, 87, 214, .55); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-block-start: -60px; inset-inline-start: 16px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; transition: inset-block-start .2s ease;
}
.skip-link:focus { inset-block-start: 12px; color: #fff; }

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

.section { padding: clamp(64px, 9vw, 110px) 0; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  line-height: 1; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 10px 22px rgba(21, 87, 214, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21, 87, 214, .42); }

.btn-secondary {
  background: #fff; color: var(--primary-dark); border-color: #d5e1f7;
  box-shadow: var(--shadow-s);
}
.btn-secondary:hover { border-color: var(--primary); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn svg { flex: none; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; inset-block-start: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(228, 234, 244, .8);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.06rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--gradient);
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 6px 14px rgba(21, 87, 214, .35);
}
.brand-mark img { width: 22px; height: 22px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.nav-links a {
  color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: 9px 14px; border-radius: 10px; transition: color .15s ease, background-color .15s ease;
}
.nav-links a:hover { color: var(--primary-dark); background: var(--primary-soft); }

.nav-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 4px;
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 600 .82rem var(--font); color: var(--muted);
  padding: 7px 9px; border-radius: 8px; transition: background-color .15s ease, color .15s ease;
  line-height: 1;
}
[dir="rtl"] .lang-switch button { font-family: var(--font-ar); }
.lang-switch button:hover { color: var(--primary-dark); }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--primary); box-shadow: var(--shadow-s); }

.btn-nav { padding: 11px 20px; font-size: .92rem; }

/* Mobile menu */
.menu-btn {
  display: none; appearance: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2);
  border: 1px solid var(--line); align-items: center; justify-content: center;
}
.menu-btn svg { stroke: var(--ink); }

.mobile-panel {
  position: fixed; inset-block-start: 0; inset-inline-end: 0; z-index: 120;
  height: 100dvh; width: min(320px, 86vw);
  background: #fff; box-shadow: var(--shadow-l);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column; padding: 22px;
  visibility: hidden;
}
[dir="rtl"] .mobile-panel { transform: translateX(-100%); inset-inline-end: 0; }
.mobile-panel.open { transform: translateX(0); visibility: visible; }

.mobile-panel-header { display: flex; align-items: center; justify-content: space-between; margin-block-end: 18px; }
.mobile-panel-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-panel nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-panel nav a {
  color: var(--ink); font-weight: 600; font-size: 1.02rem;
  padding: 13px 14px; border-radius: 12px; border: 1px solid transparent;
}
.mobile-panel nav a:hover { background: var(--surface-2); }
.mobile-panel .lb-close { position: static; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.mobile-panel .lb-close:hover { background: var(--primary-soft); color: var(--primary); }
.mobile-panel .lang-switch { align-self: flex-start; margin-block-start: 20px; }
.lang-mini.lang-switch button { padding: 5px 8px; font-size: .76rem; }
.mobile-panel .mobile-download {
  margin-block-start: 22px; display: block; text-align: center;
  background: var(--gradient); color: #fff; font-weight: 700;
  padding: 15px; border-radius: 14px; box-shadow: 0 10px 22px rgba(21, 87, 214, .3);
}

.menu-overlay {
  position: fixed; inset: 0; z-index: 110; background: rgba(8, 26, 56, .45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.menu-overlay.open { opacity: 1; visibility: visible; }

body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(74, 125, 255, .16), transparent 60%),
    radial-gradient(900px 520px at 8% 110%, rgba(21, 87, 214, .10), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(74, 125, 255, .16), transparent 60%),
    radial-gradient(900px 520px at 92% 110%, rgba(21, 87, 214, .10), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; padding-block: clamp(56px, 9vw, 120px);
}

.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .82rem; font-weight: 700; color: var(--primary-dark);
  box-shadow: var(--shadow-s); margin-block-end: 22px;
}
.eyebrow-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); position: relative; }
.eyebrow-badge .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(14, 159, 110, .5); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

.hero h1 span.grad {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-inline-size: 56ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 28px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--success); flex: none; }

.hero-visual { position: relative; }
.hero-flow {
  display: grid; grid-template-columns: minmax(0, 42%) auto 1fr;
  gap: 14px; align-items: center; position: relative;
}
.flow-phone { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); }
.flow-phone img { width: 100%; height: auto; object-fit: cover; }
.flow-arrow { display: grid; place-items: center; color: var(--primary); }
[dir="rtl"] .flow-arrow svg { transform: scaleX(-1); }
.flow-pc { background: #fff; border-radius: var(--radius-l); padding: 14px; box-shadow: var(--shadow-m); border: 1px solid var(--line); }
.flow-pc img { border-radius: calc(var(--radius-l) - 10px); width: 100%; height: auto; }

.hero-note {
  margin-block-start: 18px; display: flex; align-items: center; gap: 10px;
  font-size: .88rem; font-weight: 600; color: var(--muted);
}
.hero-note svg { color: var(--primary); flex: none; }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats { background: var(--navy); color: #cfe0ff; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  padding-block: 30px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 1.28rem; font-weight: 800; color: #fff; }
.stat span { font-size: .88rem; color: rgba(207, 224, 255, .78); }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, .12); padding-inline-start: 26px; }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.section-head { max-inline-size: 720px; margin-block-end: clamp(40px, 6vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); margin-block-end: 14px;
}
[dir="rtl"] .eyebrow { letter-spacing: .02em; }
.section-head .lead { font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 28px 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 100%; height: 3px; background: var(--gradient); opacity: 0;
  transition: opacity .22s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: #e0e9fb; }
.feature:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-block-end: 18px;
}
.feature:nth-child(2n) .feature-icon { background: #ecfdf5; color: var(--success); }
.feature:nth-child(3n) .feature-icon { background: #fdf2e8; color: #d97c15; }
.feature h3 { margin-block-end: 8px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how { background: var(--surface-2); position: relative; overflow: hidden; }
.how::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 87, 214, .08), transparent 70%);
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px; box-shadow: var(--shadow-s); transition: transform .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.step-num {
  font-size: .82rem; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: var(--gradient); border-radius: 999px;
  padding: 5px 12px; display: inline-block; margin-block-end: 16px;
}
.step h3 { margin-block-end: 8px; font-size: 1.06rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* --------------------------------------------------------------------------
   Gallery / screenshots
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery.phones { grid-template-columns: repeat(4, 1fr); }
.gallery.phones { margin-block-start: 22px; }

.shot {
  border-radius: var(--radius-m); overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-s);
  position: relative; transition: transform .22s ease, box-shadow .22s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.04); }
.shot-title {
  position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2;
  background: linear-gradient(transparent, rgba(8, 26, 56, .82));
  color: #fff; font-size: .86rem; font-weight: 600; padding: 42px 16px 14px;
  pointer-events: none;
}

.phones .shot { aspect-ratio: 9 / 20; }
.screens .shot { aspect-ratio: 16 / 10; }

.platform-tag {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink);
  font-size: .95rem; margin-block-end: 22px;
}
.platform-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* --------------------------------------------------------------------------
   Use cases
   -------------------------------------------------------------------------- */
.usecases { background: var(--navy); color: #dfe9fb; }
.usecases .eyebrow { color: #8fb4ff; }
.usecases h2 { color: #fff; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-m); padding: 24px; display: flex; gap: 16px; align-items: flex-start;
  transition: background-color .2s ease, transform .2s ease;
}
.case:hover { background: rgba(255, 255, 255, .09); transform: translateY(-3px); }
.case-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(74, 125, 255, .22); color: #bcd2ff; display: grid; place-items: center; }
.case h3 { color: #fff; font-size: 1rem; margin-block-end: 4px; }
.case p { color: rgba(223, 233, 251, .75); font-size: .9rem; margin: 0; }

/* --------------------------------------------------------------------------
   Compatibility
   -------------------------------------------------------------------------- */
.compat-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-s); padding: clamp(28px, 5vw, 48px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center;
}
.compat-box h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.app-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-logo {
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  transition: border-color .18s ease, background-color .18s ease;
}
.app-logo svg { flex: none; color: var(--primary); }
.app-logo:hover { border-color: #c6d8f8; background: var(--primary-soft); }

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */
.download {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(74, 125, 255, .18), transparent 60%),
    radial-gradient(800px 400px at 90% 100%, rgba(21, 87, 214, .14), transparent 55%),
    var(--navy);
}
.download .eyebrow { color: #8fb4ff; }
.download h2, .download .sub { color: #fff; text-align: center; }
.download .sub { color: rgba(223, 233, 251, .8); max-inline-size: 56ch; margin-inline: auto; margin-block-end: 44px; }

.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-inline-size: 860px; margin-inline: auto; }
.dl-card {
  background: #fff; border-radius: var(--radius-l); padding: 34px 30px;
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-l); transition: transform .22s ease;
}
.dl-card:hover { transform: translateY(-5px); }
.dl-card.accent { background: linear-gradient(160deg, #ffffff 0%, #eef4ff 100%); }
.dl-badge {
  position: absolute; inset-block-start: 0; inset-inline: 0; height: 5px; background: var(--gradient);
}
.dl-card.accent .dl-badge { background: linear-gradient(90deg, #0e9f6e, #3ddc97); }
.dl-platform { display: flex; align-items: center; gap: 14px; }
.dl-platform-icon {
  width: 54px; height: 54px; border-radius: 15px; background: var(--primary-soft);
  color: var(--primary); display: grid; place-items: center; flex: none;
}
.dl-card h3 { margin: 0; font-size: 1.35rem; }
.dl-card .platform-sub { color: var(--muted); font-size: .9rem; margin-block-end: 12px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 22px; }
.dl-meta span {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px;
}
.dl-btn { width: 100%; }

.download-note {
  text-align: center; color: rgba(223, 233, 251, .65); font-size: .86rem;
  margin-block-start: 30px;
}

/* --------------------------------------------------------------------------
   Visitor counter bar
   -------------------------------------------------------------------------- */
.counter {
  display: inline-flex; align-items: center; gap: 10px;
  margin-block-start: 16px; padding: 12px 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s);
  font-weight: 700; color: var(--ink); font-size: .92rem;
}
.counter .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex: none; }
.counter small { color: var(--muted); font-weight: 500; }
.counter.is-hidden { visibility: hidden; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: #060f24; color: #8fa2c4; padding-block: 64px 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-block-end: 44px;
}
.footer-brand .brand { color: #fff; margin-block-end: 14px; }
.footer-brand p { font-size: .9rem; color: #8fa2c4; max-inline-size: 40ch; margin: 0; }
.footer h4 { color: #c8d7f2; font-size: .9rem; margin-block-end: 16px; letter-spacing: .04em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #8fa2c4; font-size: .92rem; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-block-start: 1px solid rgba(255, 255, 255, .1); padding-block-start: 24px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-size: .84rem;
}
.footer-bottom .spacer { flex: 1; }
.footer-bottom a { color: #8fa2c4; }
.footer-bottom a:hover { color: #fff; }
.lang-mini { display: inline-flex; gap: 4px; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(6, 15, 36, .92);
  display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-inline-size: 92vw; max-block-size: 88vh; display: grid; gap: 14px; justify-items: center; }
.lightbox img {
  max-inline-size: 92vw; max-block-size: 78vh; border-radius: 14px; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #0a1226;
}
.lightbox figcaption { color: #cfe0ff; font-size: .95rem; }
.lb-close {
  position: absolute; inset-block-start: 18px; inset-inline-end: 18px;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; line-height: 1;
  display: grid; place-items: center; transition: background-color .15s ease, transform .15s ease;
}
.lb-close:hover { background: rgba(255, 255, 255, .24); transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   Reveal-on-scroll animations
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-inline-size: 620px; }
  .features, .cases { grid-template-columns: repeat(2, 1fr); }
  .gallery.phones { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .compat-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .btn-nav { display: none; }
  .menu-btn { display: flex; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat + .stat { border-inline-start: 0; padding-inline-start: 0; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .features, .cases, .steps, .download-grid, .gallery, .app-logos { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .flow-arrow { display: none; }
  .hero-flow { grid-template-columns: 1fr 1fr; }
  .download .sub { margin-block-end: 30px; }
}

/* --------------------------------------------------------------------------
   Legal pages (privacy / terms)
   -------------------------------------------------------------------------- */
.legal { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 110px); background: var(--surface-2); min-height: 60vh; }
.legal .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); margin-block-end: 26px; }
.legal .breadcrumb a { color: var(--primary); font-weight: 600; }
.legal .breadcrumb .sep { color: #b7c4d8; }
.legal-paper {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-s); padding: clamp(26px, 5vw, 54px);
  max-inline-size: 820px; margin-inline: auto;
}
.legal-paper h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-block-end: 6px; }
.legal-paper .updated { color: var(--muted); font-size: .88rem; font-weight: 600; margin-block-end: 30px; }
.legal-paper h2 { font-size: 1.18rem; margin-block-start: 34px; margin-block-end: 10px; }
.legal-paper p { color: #33445f; }
.legal-paper .lead { color: var(--muted); font-size: 1.02rem; }
.legal-cta { margin-block-start: 40px; }
.legal-note {
  max-inline-size: 820px; margin: 22px auto 0; text-align: center;
  color: var(--muted); font-size: .86rem;
}
.legal-note a { font-weight: 600; }