/*
 * FLASH POS landing page — single stylesheet, no external fonts or libraries.
 * Layout uses logical properties (inline-start/end) so dir="rtl" mirrors the
 * whole page for Arabic without separate rules.
 */

/* ---------- Tokens ---------- */
:root {
  --font: 'Segoe UI', Tahoma, system-ui, -apple-system, 'Noto Sans Arabic', 'Helvetica Neue', Arial, sans-serif;

  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --surface: #ffffff;
  --text: #0e1116;
  --text-muted: #4b5563;
  --border: #e2e7ee;
  --border-strong: #cdd5df;

  --ink: #07090c;
  --ink-2: #0d1116;
  --ink-3: #151a21;
  --ink-text: #eef1f5;
  --ink-muted: #9ca6b4;
  --ink-border: rgba(255, 255, 255, 0.1);

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #e8efff;
  --accent-bright: #7aa5ff;

  --danger: #b42318;
  --danger-soft: #fdecea;
  --success: #067647;

  --focus: #2563eb;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, 0.18);
  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body { line-height: 1.8; }

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

h1, h2, h3, p { margin: 0; }

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 650; }

html[lang="ar"] h2,
html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

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

button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.site-header,
.hero,
.trust,
.section-dark,
.plan-featured,
.site-footer,
.lightbox,
.feature-wide { --focus: #93b8ff; }

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(37, 99, 235, 0.8); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c232d; color: #fff; }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }

.btn-ghost-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 12, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  color: var(--ink-text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ink-border); background: rgba(7, 9, 12, 0.94); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: #fff; }

.brand-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo img { height: 42px; width: auto; }
.brand-footer .brand-logo img { height: 100px; }
.brand-logo .brand-tag-fallback { display: none; }
.brand-footer .img-missing .brand-tag-fallback { display: inline-block; }
.brand-wordmark,
.hero-wordmark {
  display: none;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand-wordmark { font-size: 1.35rem; }

/* "POS" pill, matching the brand lockup (white pill, black heavy italic). */
.brand-tag,
.hero-pos {
  display: inline-block;
  border-radius: 999px;
  background: #fff;
  color: #07090c;
  font-weight: 800;
  font-style: italic;
  line-height: 1.25;
}
.brand-tag { padding: 1px 10px 2px; font-size: 0.78rem; letter-spacing: 0.06em; }

[data-img-fallback].img-missing img { display: none; }
[data-img-fallback].img-missing .brand-wordmark,
[data-img-fallback].img-missing .hero-wordmark { display: inline; }

.site-nav { margin-inline-start: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #c9d1dc;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.lang-toggle .icon { width: 1.1em; height: 1.1em; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-open { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1023px) {
  .js .nav-toggle { display: inline-flex; }
  .header-inner { gap: 12px; }
  .header-actions { margin-inline-start: auto; }
  .js .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--ink-border);
  }
  .js .site-header.nav-open .site-nav { display: block; }
  .js .nav-list { flex-direction: column; gap: 2px; }
  .js .nav-list a { padding: 12px; font-size: 1rem; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { order: 3; width: 100%; overflow-x: auto; }
}

@media (max-width: 520px) {
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--ink-text);
  padding-block: clamp(40px, 5vw, 64px) 0;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(37, 99, 235, 0.35), transparent 70%),
    radial-gradient(40% 30% at 50% 78%, rgba(37, 99, 235, 0.22), transparent 70%);
}
.hero-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
}

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.hero-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
}
.hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(37, 99, 235, 0.45));
}
.hero-icon-fallback { display: none; width: 44px; height: 44px; color: #fff; }
.hero-icon.img-missing {
  border-radius: 22px;
  background: linear-gradient(145deg, #1b2330, #07090c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.hero-icon.img-missing .hero-icon-fallback { display: block; }

.eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--ink-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #c9d4e3;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 14px;
  direction: ltr; /* the brand lockup reads the same in both languages */
}
.hero-logo { display: inline-flex; align-items: center; }
.hero-logo img { height: clamp(84px, 10vw, 120px); width: auto; }
.hero-wordmark { font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1; }
.hero-pos {
  padding: 4px 22px 6px;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  letter-spacing: 0.06em;
}

.hero-lead {
  max-width: 720px;
  margin-top: 24px;
  color: #c3ccd8;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
}

.hero-promise {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin-top: 22px;
  padding: 12px 18px;
  border: 1px solid rgba(122, 165, 255, 0.35);
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  color: #fff;
  font-weight: 600;
  text-align: start;
}
.hero-promise .icon { color: var(--accent-bright); width: 1.4em; height: 1.4em; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.hero-meta li { display: inline-flex; align-items: center; }
.hero-meta li + li::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-inline: 14px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* Hero device mockup: black hardware on a soft light "stage" (spotlight
   glow + a pale counter surface that catches the image's contact shadow). */
.hero-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 940px;
  margin: clamp(32px, 4.5vw, 52px) 0 0;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.hero-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -4% -2% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 226, 250, 0.34), rgba(122, 165, 255, 0.14) 58%, transparent);
  pointer-events: none;
}
.hero-device {
  position: relative;
  isolation: isolate;
  width: 90%;
  margin-inline: auto;
  direction: ltr; /* the photo never mirrors in RTL */
}
.hero-device::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 68% -9% -7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 241, 248, 0.74), rgba(216, 225, 238, 0.56) 40%, rgba(178, 195, 222, 0.2) 64%, transparent 78%);
  pointer-events: none;
}
.hero-device-img { display: block; width: 100%; height: auto; }
.hero-device.is-missing .hero-device-img { visibility: hidden; }

@media (max-width: 640px) {
  .hero-device { width: 100%; }
}

/* ---------- Desktop window frame + screenshot ---------- */
.window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f1318;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  text-align: start;
}
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding-inline: 14px 6px;
  background: #171c24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  direction: ltr;
}
.window-title { color: #aab4c2; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; }
.window-controls { display: flex; height: 100%; }
.window-controls i {
  position: relative;
  width: 40px;
  height: 100%;
  opacity: 0.7;
}
.window-controls i::before,
.window-controls i::after { content: ''; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; }
.window-controls i:nth-child(1)::before { width: 10px; height: 1px; background: #aab4c2; transform: translate(-50%, -50%); }
.window-controls i:nth-child(2)::before { width: 9px; height: 9px; border: 1px solid #aab4c2; transform: translate(-50%, -50%); }
.window-controls i:nth-child(3)::before,
.window-controls i:nth-child(3)::after { width: 12px; height: 1px; background: #aab4c2; }
.window-controls i:nth-child(3)::before { transform: translate(-50%, -50%) rotate(45deg); }
.window-controls i:nth-child(3)::after { transform: translate(-50%, -50%) rotate(-45deg); }

.window-light { background: #fff; border-color: var(--border); box-shadow: var(--shadow); }
.window-light .window-bar { background: #eef1f5; border-bottom-color: var(--border); }
.window-light .window-title { color: #4b5563; }
.window-light .window-controls i::before,
.window-light .window-controls i::after { background: #6b7280; }
.window-light .window-controls i:nth-child(2)::before { background: transparent; border-color: #6b7280; }

.shot {
  --ph-a: rgba(255, 255, 255, 0.07);
  --ph-b: rgba(255, 255, 255, 0.035);
  --ph-accent: rgba(122, 165, 255, 0.35);
  --ph-bg: #0f1318;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--ph-bg);
  overflow: hidden;
}
.window-light .shot {
  --ph-a: #e5e9f0;
  --ph-b: #eff2f6;
  --ph-accent: rgba(37, 99, 235, 0.28);
  --ph-bg: #f8fafc;
}
.shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.shot.is-loaded .shot-img { opacity: 1; }
.shot.is-loaded .shot-ph { visibility: hidden; }
.shot.is-missing .shot-img { display: none; }

/* Styled placeholder shown until (or instead of) the real screenshot. */
.shot-ph {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 2.4%;
  padding: 2.4%;
}
.shot-ph i, .shot-ph b { display: block; border-radius: 6px; background: var(--ph-a); }
.ph-side { display: flex; flex-direction: column; gap: 5%; width: 17%; padding-top: 1%; }
.ph-side b { height: 7%; width: 70%; background: var(--ph-accent); }
.ph-side i { height: 4.5%; width: 90%; background: var(--ph-b); }
.ph-main { flex: 1; display: flex; flex-direction: column; gap: 4%; min-width: 0; }
.ph-top { display: flex; justify-content: space-between; height: 7%; }
.ph-top i { width: 32%; }
.ph-top i + i { width: 14%; }
.ph-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; height: 19%; }
.ph-cards i { border-radius: 10px; }
.ph-body { flex: 1; display: flex; gap: 3%; min-height: 0; }
.ph-chart {
  display: block;
  flex: 2;
  border-radius: 10px;
  background:
    linear-gradient(to top, var(--ph-accent) 0 38%, transparent 38%) 6% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 58%, transparent 58%) 19% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 46%, transparent 46%) 32% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 72%, transparent 72%) 45% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 62%, transparent 62%) 58% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 85%, transparent 85%) 71% 100% / 7% 80% no-repeat,
    linear-gradient(to top, var(--ph-accent) 0 70%, transparent 70%) 84% 100% / 7% 80% no-repeat,
    var(--ph-b);
}
.ph-list { flex: 1; display: flex; flex-direction: column; gap: 6%; }
.ph-list i { height: 12%; background: var(--ph-b); }
.ph-label {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(7, 9, 12, 0.72);
  color: #fff;
  font-size: clamp(0.72rem, 1.4vw, 0.9rem);
  font-weight: 600;
  white-space: nowrap;
}
[dir="rtl"] .ph-label { transform: translate(50%, -50%); }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--ink);
  color: var(--ink-text);
  border-top: 1px solid var(--ink-border);
  position: relative;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
  padding-block: 26px;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d5dce6;
  font-size: 0.95rem;
  font-weight: 600;
}
.trust-list .icon { color: var(--accent-bright); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--bg-alt); }
.section-dark {
  position: relative;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(37, 99, 235, 0.22), transparent 70%),
    var(--ink);
  color: var(--ink-text);
}
[dir="rtl"] .section-dark {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(37, 99, 235, 0.22), transparent 70%),
    var(--ink);
}

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

.kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-dark .kicker,
.plan-featured .kicker { color: var(--accent-bright); }
html[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }

.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.section-dark .section-lead { color: #b9c3d0; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-wide { grid-column: span 2; }
}

.feature {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c9d6ee; }
.feature h3 { margin-top: 18px; }
.feature p { margin-top: 8px; color: var(--text-muted); font-size: 0.97rem; }

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-icon-dark { background: rgba(122, 165, 255, 0.12); color: var(--accent-bright); }

.feature-wide {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(37, 99, 235, 0.45), transparent 60%),
    linear-gradient(160deg, #0d1422, #07090c);
  border-color: #0d1422;
  color: #fff;
}
[dir="rtl"] .feature-wide {
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(37, 99, 235, 0.45), transparent 60%),
    linear-gradient(200deg, #0d1422, #07090c);
}
.feature-wide:hover { border-color: #22324f; }
.feature-wide h3 { font-size: 1.4rem; }
.feature-wide p { color: #c3ccd8; font-size: 1.02rem; max-width: 620px; }
.feature-wide .feature-icon { background: rgba(122, 165, 255, 0.16); color: var(--accent-bright); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e3e9f2;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Gallery ---------- */
.gallery { max-width: 1080px; margin-inline: auto; }
.gallery-tabs {
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.gallery-tabs [role="tab"] {
  flex-shrink: 0;
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.gallery-tabs [role="tab"]:hover { color: var(--text); background: var(--bg-alt); }
.gallery-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }

.shot-button {
  padding: 0;
  border: 0;
  cursor: zoom-in;
  font: inherit;
  text-align: start;
}
.shot-button:focus-visible { outline-offset: -4px; border-radius: 0; }
.shot-zoom {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(7, 9, 12, 0.75);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.shot-button:hover .shot-zoom,
.shot-button:focus-visible .shot-zoom { opacity: 1; }
@media (hover: none) { .shot-zoom { opacity: 1; } }

.gallery-caption {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.step-num {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 22px;
  color: #e3e8f0;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.step-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}
.step-icon .icon { width: 22px; height: 22px; }
.step h3 { margin-top: 18px; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: 0.97rem; }
.step:nth-child(3) { border-color: rgba(37, 99, 235, 0.45); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08); }
.step:nth-child(3) .step-icon { background: var(--accent); }

.steps-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--text-muted);
  text-align: center;
}
.steps-note .icon { color: var(--accent); }

/* ---------- Runs locally ---------- */
.local-inner { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .local-inner { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .local-inner .section-head { margin-bottom: 0; }
}
.local-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .local-grid { grid-template-columns: repeat(2, 1fr); } }
.local-grid li {
  padding: 24px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.local-grid h3 { margin-top: 16px; color: #fff; }
.local-grid p { margin-top: 8px; color: #b3bdca; font-size: 0.97rem; }

/* ---------- Licensing ---------- */
.license-inner { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .license-inner { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
}
.license-copy .btn { margin-top: 28px; }
.license-list { display: grid; gap: 14px; }
.license-list li {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.license-list p { margin-top: 6px; color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Plans ---------- */
.plans {
  display: grid;
  gap: 20px;
  max-width: 960px;
  margin-inline: auto;
}
@media (min-width: 820px) { .plans { grid-template-columns: repeat(2, 1fr); align-items: stretch; } }

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.plan-featured {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(37, 99, 235, 0.35), transparent 70%),
    var(--ink);
  border-color: rgba(122, 165, 255, 0.4);
  color: var(--ink-text);
  box-shadow: 0 30px 60px -30px rgba(37, 99, 235, 0.55);
}
[dir="rtl"] .plan-featured {
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(37, 99, 235, 0.35), transparent 70%),
    var(--ink);
}
.plan-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 700;
}
.plan-featured .plan-badge { background: rgba(122, 165, 255, 0.16); color: #cfe0ff; }
.plan-title { margin-top: 16px; font-size: 1.35rem; }
.plan-price { margin-top: 6px; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
html[lang="ar"] .plan-price { letter-spacing: 0; }
.plan-desc { margin-top: 6px; color: var(--text-muted); }
.plan-featured .plan-desc { color: #b9c3d0; }

.plan-list { display: grid; gap: 12px; margin-block: 24px 28px; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; }
.plan-list .icon { margin-top: 0.2em; color: var(--success); width: 1.15em; height: 1.15em; }
.plan-featured .plan-list .icon { color: var(--accent-bright); }

.plan-actions { display: grid; gap: 10px; margin-top: auto; }

.dl-meta { margin-top: 12px; color: var(--text-muted); font-size: 0.88rem; text-align: center; }
.plan-featured .dl-meta { color: var(--ink-muted); }
.dl-contents { margin-top: 4px; color: var(--text-muted); font-size: 0.82rem; text-align: center; }
.plan-featured .dl-contents { color: var(--ink-muted); }
.dl-unavailable {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7e6;
  color: #7a4b00;
  font-size: 0.9rem;
  text-align: center;
}
.plan-featured .dl-unavailable { background: rgba(255, 196, 77, 0.12); color: #ffd98a; }
.plan-note { margin-top: 10px; color: var(--ink-muted); font-size: 0.88rem; text-align: center; }

.dl-sha { margin-top: 10px; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.plan-featured .dl-sha { color: var(--ink-muted); }
.dl-sha summary { cursor: pointer; }
.dl-sha code {
  display: block;
  margin-top: 6px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.1);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.78rem;
  word-break: break-all;
  direction: ltr;
  text-align: left;
}

/* ---------- Request form ---------- */
.request {
  display: grid;
  gap: 32px;
  margin-top: clamp(56px, 8vw, 88px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (min-width: 1024px) {
  .request { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
}
.request-intro h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem); }
.request-contact { margin-top: 28px; color: var(--text-muted); }
.request-contact .contact-list { margin-top: 12px; }
.request-contact .contact-list a { color: var(--text); }

.request-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field-full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}
.req-mark { color: var(--danger); }
.opt { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover,
.field textarea:hover { border-color: #9aa6b6; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18); border-color: var(--danger); }
.field-error { margin-top: 6px; color: var(--danger); font-size: 0.86rem; }

.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  inset-inline-start: -10000px;
}

.form-status {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.93rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 24px;
}
.form-privacy { color: var(--text-muted); font-size: 0.86rem; flex: 1; min-width: 200px; }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { padding-block: 24px; text-align: center; }
.form-success:focus { outline: none; }
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e7f6ee;
  color: var(--success);
}
.success-icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.form-success h3 { margin-top: 16px; font-size: 1.4rem; }
.form-success p { margin: 8px auto 0; max-width: 420px; color: var(--text-muted); }
.form-success .btn { margin-top: 22px; }

/* ---------- Contact list ---------- */
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .icon { color: var(--accent); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .contact-value { unicode-bidi: isolate; direction: ltr; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 860px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 0;
  padding-inline-end: 44px;
  font-size: 1.08rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  /* physical borders on purpose: the chevron must point down in LTR and RTL */
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding-bottom: 22px; color: var(--text-muted); max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ink-muted);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  gap: 36px;
  padding-bottom: 40px;
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: 2fr 1fr 1.3fr; } }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer-col h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #c9d1dc; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.site-footer .contact-list .icon { color: var(--accent-bright); }
.site-footer .contact-list .contact-label { color: var(--ink-muted); font-size: 0.85rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 22px;
  /* divider aligned with the content, not the container padding */
  background: linear-gradient(var(--ink-border), var(--ink-border)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 0.88rem;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #c9d1dc; text-decoration: none; }
.to-top:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 7, 10, 0.98);
  color: #fff;
}
.lightbox::backdrop { background: rgba(5, 7, 10, 0.6); }
.lightbox-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px var(--gutter) 24px;
}
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-count { color: #b9c3d0; font-size: 0.92rem; font-weight: 600; }
.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.shot-lightbox {
  width: min(1280px, calc((100dvh - 180px) * 1.6), 100%);
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.shot-lightbox .shot-img { object-fit: contain; background: #0f1318; }
.lightbox-caption { margin-top: 14px; color: #c3ccd8; text-align: center; min-height: 1.6em; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); }

@media (max-width: 719px) {
  .lightbox-stage { flex-wrap: wrap; align-content: center; }
  .shot-lightbox { order: -1; width: 100%; }
  .lightbox-nav { margin-top: 8px; }
}

html.lightbox-open { overflow: hidden; }

/* ---------- Motion & responsive fine-tuning ---------- */
@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; }
  .hero-meta { gap: 4px 16px; }
  .hero-meta li + li::before { display: none; }
  .hero-promise { font-size: 0.95rem; }
  .trust-list { justify-content: flex-start; gap: 12px 24px; }
  .trust-list li { width: 100%; }
  .feature, .step { padding: 22px; }
  .license-list li { flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .feature:hover { transform: none; }
  .spinner { animation: spin 1.6s linear infinite !important; }
}
