/* ============================================================
   Froton Nova — موقع تعريفي
   بُني على أساس RTL منذ البداية باستخدام الخصائص المنطقية
   ============================================================ */

/* ---------- 1. الرموز والمتغيرات ---------- */
:root {
  /* ألوان مستمدة من واجهة التطبيق */
  --c-primary:        #0E7C8C;
  --c-primary-strong: #0A606E;
  --c-primary-soft:   #E2F1F3;
  --c-accent:         #12A06E;
  --c-accent-soft:    #E3F5EE;

  --c-bg:        #F4F8FA;
  --c-bg-alt:    #EAF2F5;
  --c-surface:   #FFFFFF;
  --c-surface-2: #F0F6F8;
  --c-border:    #DBE7EB;
  --c-border-2:  #C9DBE0;

  --c-text:   #0C2A32;
  --c-text-2: #47666E;
  --c-muted:  #74929A;

  --tone-teal:   #0E7C8C;
  --tone-green:  #12A06E;
  --tone-violet: #7C5CD6;
  --tone-amber:  #D98514;
  --tone-blue:   #1D74C4;

  --shadow-sm: 0 1px 2px rgba(12, 42, 50, .06), 0 2px 6px rgba(12, 42, 50, .04);
  --shadow-md: 0 4px 12px rgba(12, 42, 50, .07), 0 12px 28px rgba(12, 42, 50, .06);
  --shadow-lg: 0 10px 24px rgba(12, 42, 50, .09), 0 28px 60px rgba(12, 42, 50, .10);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --container: 1220px;
  --header-h: 74px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}

:root[data-theme="dark"] {
  --c-primary:        #23A5B7;
  --c-primary-strong: #35BACC;
  --c-primary-soft:   rgba(35, 165, 183, .14);
  --c-accent:         #22B57F;
  --c-accent-soft:    rgba(34, 181, 127, .14);

  --c-bg:        #070B0C;
  --c-bg-alt:    #0B1214;
  --c-surface:   #101A1D;
  --c-surface-2: #162327;
  --c-border:    #1E2E33;
  --c-border-2:  #2A3C42;

  --c-text:   #E9F3F5;
  --c-text-2: #A2BAC0;
  --c-muted:  #7C979E;

  --tone-teal:   #35BACC;
  --tone-green:  #22B57F;
  --tone-violet: #9B84E8;
  --tone-amber:  #E8A33F;
  --tone-blue:   #4E9BE8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
}

/* ---------- 2. الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  /* clip (لا hidden) حتى لا يتحول الجذر إلى حاوية تمرير: يمنع درج التنقل
     المخفي خارج الشاشة من توسيع عرض الصفحة على الشاشات الصغيرة. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease);
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

svg { width: 100%; height: 100%; }

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

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

.container {
  inline-size: 100%;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.nowrap { white-space: nowrap; }

/* ---------- 3. الترويسة ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--c-bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck {
  border-block-end-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  block-size: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  inline-size: 44px;
  block-size: 44px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand-mark img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
:root[data-theme="dark"] .brand-mark { background: #fff; }

.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 1.03rem; font-weight: 700; letter-spacing: .2px; }
.brand-text small { font-size: .74rem; color: var(--c-muted); font-weight: 500; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--c-text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--c-text); background: var(--c-surface-2); }
.nav-link.is-active { color: var(--c-primary); background: var(--c-primary-soft); font-weight: 600; }

.nav-link--cta {
  color: #fff;
  background: var(--c-primary);
  font-weight: 600;
  margin-inline-start: 8px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--c-primary) 32%, transparent);
}
.nav-link--cta:hover { color: #fff; background: var(--c-primary-strong); }
.nav-link--cta.is-active { color: #fff; background: var(--c-primary-strong); }

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

.theme-toggle {
  inline-size: 42px;
  block-size: 42px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-2);
  display: grid;
  place-items: center;
  padding: 10px;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--c-primary); border-color: var(--c-primary); transform: translateY(-1px); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-burger {
  display: none;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-burger span {
  display: block;
  block-size: 2px;
  inline-size: 100%;
  border-radius: 2px;
  background: var(--c-text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 20, 24, .5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.nav-overlay.is-visible { opacity: 1; }

/* ---------- 4. الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: .97rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg {
  inline-size: 19px;
  block-size: 19px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--c-primary) 34%, transparent);
}
.btn-primary:hover {
  background: var(--c-primary-strong);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--c-primary) 42%, transparent);
}

.btn-ghost {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }

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

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- 5. عناصر مشتركة ---------- */
.section { padding-block: clamp(64px, 8vw, 108px); }
.section--tint { background: var(--c-bg-alt); }

.section-head {
  max-inline-size: 680px;
  margin-inline: auto;
  margin-block-end: clamp(38px, 5vw, 60px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-block: 12px 14px;
}
.section-head p { color: var(--c-text-2); font-size: 1.03rem; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--c-primary-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 18px;
  border-radius: 999px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: .87rem;
  font-weight: 500;
  color: var(--c-text-2);
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 20%, transparent);
  flex-shrink: 0;
}

/* إطار اللقطات */
.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.shot img {
  inline-size: 100%;
  cursor: zoom-in;
  transition: transform .5s var(--ease);
}
.shot figcaption {
  padding: 11px 16px;
  font-size: .85rem;
  color: var(--c-text-2);
  background: var(--c-surface-2);
  border-block-start: 1px solid var(--c-border);
  text-align: start;
}

/* ---------- 6. البطل ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 84px) clamp(50px, 6vw, 76px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset-block-start: -320px;
  inset-inline-end: -180px;
  inline-size: 780px;
  block-size: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-primary) 20%, transparent) 0%, transparent 66%);
  pointer-events: none;
  z-index: 0;
}
:root[data-theme="dark"] .hero-glow {
  background: radial-gradient(circle, color-mix(in srgb, var(--c-primary) 26%, transparent) 0%, transparent 66%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(36px, 4.5vw, 58px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 2.95rem);
  line-height: 1.32;
  margin-block: 20px 18px;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(90deg, var(--c-primary) 10%, var(--c-accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.07rem;
  color: var(--c-text-2);
  max-inline-size: 56ch;
}
.hero-lead strong { color: var(--c-text); font-weight: 700; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-block-start: 28px;
  font-size: .92rem;
  color: var(--c-text-2);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points span {
  inline-size: 20px;
  block-size: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: .7rem;
  font-weight: 700;
}

.hero-visual { position: relative; padding-block-end: 58px; padding-inline-start: 34px; }
.hero-visual .shot--main { box-shadow: var(--shadow-lg); }
.hero-visual .shot--float {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: -26px;
  inline-size: 38%;
  box-shadow: var(--shadow-lg);
  border-color: var(--c-border-2);
}

/* شريط الأرقام */
.stat-strip {
  position: relative;
  z-index: 1;
  margin-block-start: clamp(46px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-strip li {
  background: var(--c-surface);
  padding: 22px 20px;
  text-align: center;
}
.stat-strip strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.3;
}
.stat-strip span {
  font-size: .86rem;
  color: var(--c-text-2);
  line-height: 1.6;
  display: block;
}

/* ---------- 7. عن المنصة ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(36px, 5vw, 62px);
  align-items: center;
}
.about-copy h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.35rem);
  margin-block: 14px 18px;
}
.about-copy > p {
  color: var(--c-text-2);
  margin-block-end: 14px;
}
.about-copy > p strong { color: var(--c-text); }

.check-list {
  display: grid;
  gap: 16px;
  margin-block-start: 30px;
}
.check-list li { display: flex; gap: 13px; align-items: flex-start; }
.check-list svg {
  inline-size: 24px;
  block-size: 24px;
  flex-shrink: 0;
  margin-block-start: 4px;
  padding: 4px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check-list strong { display: block; font-size: .99rem; line-height: 1.6; }
.check-list span { display: block; font-size: .9rem; color: var(--c-text-2); line-height: 1.7; }

.about-visual { position: relative; }

/* ---------- 8. المميزات ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-2);
}

.feature-icon {
  inline-size: 50px;
  block-size: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  padding: 12px;
  margin-block-end: 18px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.feature-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tone-teal   { color: var(--tone-teal); }
.tone-green  { color: var(--tone-green); }
.tone-violet { color: var(--tone-violet); }
.tone-amber  { color: var(--tone-amber); }
.tone-blue   { color: var(--tone-blue); }

.feature-card h3 { font-size: 1.13rem; margin-block-end: 8px; color: var(--c-text); }
.feature-card p { font-size: .93rem; color: var(--c-text-2); line-height: 1.85; }

/* ---------- 9. واجهات المنصة ---------- */
.ui-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.ui-nav {
  position: sticky;
  inset-block-start: calc(var(--header-h) + 22px);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
}
.ui-nav-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--c-muted);
  padding-inline: 12px;
  margin-block-end: 12px;
}
.ui-nav ul { display: grid; gap: 3px; }

.ui-nav-btn {
  inline-size: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 12px;
  text-align: start;
  font-size: .95rem;
  font-weight: 500;
  color: var(--c-text-2);
  border-inline-end: 2.5px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.ui-nav-btn .num {
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-muted);
  min-inline-size: 22px;
  transition: color .2s var(--ease);
}
.ui-nav-btn:hover { background: var(--c-surface-2); color: var(--c-text); }
.ui-nav-btn.is-active {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-weight: 600;
  border-inline-end-color: var(--c-primary);
}
.ui-nav-btn.is-active .num { color: var(--c-primary); }

.ui-panels { min-inline-size: 0; }

.ui-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.2vw, 38px);
  box-shadow: var(--shadow-sm);
  animation: panelIn .4s var(--ease);
}
.ui-panel[hidden] { display: none; }
.ui-panel:focus { outline: none; }

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

.ui-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block-end: 20px;
  margin-block-end: 20px;
  border-block-end: 1px solid var(--c-border);
}
.ui-panel-num {
  inline-size: 52px;
  block-size: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: 1.12rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ui-panel-head h3 { font-size: clamp(1.25rem, 2.3vw, 1.6rem); }
.ui-panel-sub { font-size: .9rem; color: var(--c-muted); }

.ui-desc { color: var(--c-text-2); font-size: 1rem; }

.ui-sub-title {
  font-weight: 700;
  font-size: .96rem;
  margin-block: 22px 12px;
  color: var(--c-text);
}

.ui-list {
  display: grid;
  gap: 9px;
  margin-block-end: 30px;
}
.ui-list li {
  position: relative;
  padding-inline-start: 22px;
  font-size: .94rem;
  color: var(--c-text-2);
  line-height: 1.8;
}
.ui-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 12px;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--c-primary);
  opacity: .55;
}
.ui-list strong { color: var(--c-text); font-weight: 600; }

.ui-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ui-shots--single { grid-template-columns: minmax(0, 1fr); }
.ui-shots .shot { box-shadow: var(--shadow-sm); }
.ui-shots .shot:hover { box-shadow: var(--shadow-md); }

/* ---------- 10. المظهر ---------- */
.note-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-inline-size: 860px;
  margin-inline: auto;
  margin-block-end: 36px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-inline-start: 3px solid var(--c-primary);
  box-shadow: var(--shadow-sm);
}
.note-card svg {
  inline-size: 24px;
  block-size: 24px;
  flex-shrink: 0;
  margin-block-start: 4px;
  color: var(--c-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.note-card p { font-size: .95rem; color: var(--c-text-2); }
.note-card strong { color: var(--c-text); }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.compare-card { margin: 0; }
.compare-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .97rem;
  margin-block-end: 12px;
  padding-inline-start: 4px;
}
.dot {
  inline-size: 13px;
  block-size: 13px;
  border-radius: 50%;
  border: 1px solid var(--c-border-2);
  flex-shrink: 0;
}
.dot--light { background: #F4F8FA; }
.dot--dark  { background: #0B1214; }

.appearance-extra {
  max-inline-size: 780px;
  margin-inline: auto;
  margin-block-start: 34px;
}

/* ---------- 11. التنزيل ---------- */
.download-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(42px, 6vw, 72px) clamp(24px, 5vw, 62px);
  border-radius: var(--radius-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.download-glow {
  position: absolute;
  inset-block-start: -180px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  inline-size: 620px;
  block-size: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-primary) 18%, transparent) 0%, transparent 68%);
  pointer-events: none;
}
.download-card > *:not(.download-glow) { position: relative; z-index: 1; }

.download-icon {
  inline-size: 96px;
  block-size: 96px;
  margin-inline: auto;
  margin-block-end: 24px;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}
.download-icon img { inline-size: 100%; block-size: 100%; object-fit: cover; }

.download-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); margin-block-end: 14px; }
.download-card > p {
  color: var(--c-text-2);
  max-inline-size: 54ch;
  margin-inline: auto;
  font-size: 1.03rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-block-start: 30px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-block-start: 28px;
  font-size: .89rem;
  color: var(--c-muted);
}
.download-meta li { display: inline-flex; align-items: center; gap: 8px; }
.download-meta li::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.download-note {
  margin-block-start: 22px;
  font-size: .88rem;
  color: var(--c-muted);
}

/* ---------- 12. التذييل ---------- */
.site-footer {
  background: var(--c-bg-alt);
  border-block-start: 1px solid var(--c-border);
  padding-block-start: clamp(50px, 6vw, 74px);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 60px);
  padding-block-end: 44px;
}
.footer-desc {
  margin-block-start: 18px;
  font-size: .92rem;
  color: var(--c-text-2);
  max-inline-size: 46ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer-nav h3 {
  font-size: .93rem;
  margin-block-end: 14px;
  color: var(--c-text);
}
.footer-nav ul { display: grid; gap: 9px; }
.footer-nav a { font-size: .91rem; color: var(--c-text-2); }
.footer-nav a:hover { color: var(--c-primary); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-block: 22px;
  border-block-start: 1px solid var(--c-border);
  font-size: .86rem;
  color: var(--c-muted);
}

/* ---------- 13. أدوات عائمة ---------- */
.to-top {
  position: fixed;
  inset-block-end: 26px;
  inset-inline-start: 26px;
  z-index: 80;
  inline-size: 46px;
  block-size: 46px;
  padding: 12px;
  border-radius: 14px;
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), opacity .25s var(--ease), background-color .2s var(--ease);
}
.to-top svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--c-primary-strong); transform: translateY(-3px); }
.to-top[hidden] { display: none; }

/* عارض الصور */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 52px);
  background: rgba(4, 12, 15, .9);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lightbox.is-visible { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img {
  max-inline-size: 100%;
  max-block-size: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  inset-block-start: 22px;
  inset-inline-end: 22px;
  inline-size: 44px;
  block-size: 44px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background-color .2s var(--ease);
}
.lightbox-close:hover { background: rgba(255, 255, 255, .24); }
.lightbox-close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- 13b. النماذج ---------- */
.field { margin-block-end: 18px; }

/* حقلان جنباً إلى جنب، ينهاران إلى عمود واحد على الشاشات الضيقة */
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-block-end: 7px;
  color: var(--c-text);
}

.field input,
.field textarea {
  inline-size: 100%;
  font-family: inherit;
  font-size: .97rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-block-size: 130px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--c-muted); opacity: .75; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--c-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent);
}

/* الحقول التي تُكتب بالإنجليزية/الأرقام تبقى LTR لكن محاذاتها تتبع الاتجاه */
.field input[dir="ltr"] { text-align: start; }

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #D64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .14);
}
:root[data-theme="dark"] .field input.is-invalid,
:root[data-theme="dark"] .field textarea.is-invalid { border-color: #F07070; }

.field-error {
  margin-block-start: 6px;
  font-size: .85rem;
  color: #C63C3C;
}
:root[data-theme="dark"] .field-error { color: #F49090; }

.btn-block { inline-size: 100%; }
.btn:disabled { opacity: .72; cursor: not-allowed; transform: none; }

.btn.is-busy::before {
  content: "";
  inline-size: 16px;
  block-size: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-block-start-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-block-start: 14px;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  line-height: 1.7;
}
.form-status--error {
  background: color-mix(in srgb, #D64545 12%, transparent);
  border: 1px solid color-mix(in srgb, #D64545 34%, transparent);
  color: #B33636;
}
:root[data-theme="dark"] .form-status--error { color: #FBA5A5; }
.form-status--ok {
  background: var(--c-accent-soft);
  border: 1px solid color-mix(in srgb, var(--c-accent) 34%, transparent);
  color: var(--c-accent);
}

.form-success { text-align: center; padding-block: 20px; }
.form-success:focus { outline: none; }
.form-success-icon {
  inline-size: 62px;
  block-size: 62px;
  margin-inline: auto;
  margin-block-end: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.form-success-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success h3 { font-size: 1.3rem; margin-block-end: 10px; }
.form-success > p {
  color: var(--c-text-2);
  font-size: .95rem;
  max-inline-size: 42ch;
  margin-inline: auto;
  margin-block-end: 22px;
}

/* ---------- 13c. النافذة المنبثقة ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(5, 16, 19, .68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .25s var(--ease);
  overflow-y: auto;
}
.modal.is-visible { opacity: 1; }
.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  inline-size: 100%;
  max-inline-size: 470px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 38px);
  transform: translateY(14px) scale(.98);
  transition: transform .28s var(--ease);
}
.modal.is-visible .modal-card { transform: none; }

.modal-close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  inline-size: 36px;
  block-size: 36px;
  padding: 10px;
  border-radius: 10px;
  color: var(--c-muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.modal-close:hover { background: var(--c-surface-2); color: var(--c-text); }
.modal-close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.modal-body[hidden] { display: none; }
.modal-body h2 { font-size: 1.4rem; margin-block-end: 10px; }

.modal-icon {
  inline-size: 54px;
  block-size: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 14px;
  margin-block-end: 18px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.modal-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-desc {
  color: var(--c-text-2);
  font-size: .94rem;
  margin-block-end: 24px;
}

.modal-foot {
  margin-block-start: 18px;
  font-size: .88rem;
  color: var(--c-muted);
  text-align: center;
}
.modal-foot a { color: var(--c-primary); font-weight: 600; }
.modal-foot a:hover { text-decoration: underline; }

.modal-body--success { text-align: center; }
.modal-body--success:focus { outline: none; }
.modal-body--success .form-success-icon { margin-block-end: 18px; }
.modal-body--success .modal-desc { max-inline-size: 40ch; margin-inline: auto; }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.modal-actions .btn[hidden] { display: none; }

/* ---------- 13d. صفحة الدعم ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 78px) clamp(28px, 3vw, 40px);
  text-align: center;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-block: 16px 14px;
}
.page-head p {
  color: var(--c-text-2);
  font-size: 1.04rem;
  max-inline-size: 56ch;
  margin-inline: auto;
}

.section--top-tight { padding-block-start: clamp(24px, 3vw, 36px); }

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 44px);
  align-items: start;
}

.support-form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
}
.support-form-card h2 { font-size: 1.42rem; margin-block-end: 6px; }
.support-form-intro {
  color: var(--c-muted);
  font-size: .89rem;
  margin-block-end: 26px;
}

.support-aside { display: grid; gap: 18px; }

.support-info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.support-info-card h3 { font-size: 1.05rem; margin-block-end: 8px; }
.support-info-card p { font-size: .91rem; color: var(--c-text-2); }
.support-info-card .feature-icon { inline-size: 44px; block-size: 44px; margin-block-end: 14px; }
.support-info-card--accent { border-inline-start: 3px solid var(--tone-amber); }

.ui-list--tight { margin-block-end: 0; gap: 7px; }
.ui-list--tight li { font-size: .9rem; }

.support-info-card--phones { border-inline-start: 3px solid var(--c-accent); }

.phone-list {
  display: grid;
  gap: 8px;
  margin-block-start: 16px;
}
.phone-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: .3px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.phone-list a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-soft);
}
.phone-list svg {
  inline-size: 17px;
  block-size: 17px;
  flex-shrink: 0;
  color: var(--c-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-list bdi { font-variant-numeric: tabular-nums; }

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 14px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--c-primary);
  direction: ltr;
}
.support-link:hover { text-decoration: underline; }
.support-link svg {
  inline-size: 16px;
  block-size: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-note a { color: var(--c-primary); font-weight: 600; }
.download-note a:hover { text-decoration: underline; }

/* ---------- 14. الحركة عند الظهور ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.is-shown { opacity: 1; transform: none; }

/* ---------- 15. الاستجابة ---------- */
@media (max-width: 1080px) {
  /* minmax(0,…) على المسار و min-inline-size على العنصر معاً،
     وإلا فرض شريط الواجهات الأفقي عرضاً أكبر من الشاشة */
  .ui-layout { grid-template-columns: minmax(0, 1fr); }
  .ui-nav {
    position: static;
    padding: 14px;
    min-inline-size: 0;
  }
  .ui-nav-title { display: none; }
  .ui-nav ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-block-end: 4px;
    min-inline-size: 0;
  }
  .ui-nav li { flex: 0 0 auto; }
  .ui-nav-btn {
    border-inline-end: 0;
    border-block-end: 2.5px solid transparent;
    border-radius: 10px;
    white-space: nowrap;
  }
  .ui-nav-btn.is-active { border-block-end-color: var(--c-primary); }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }

  /* backdrop-filter يجعل الترويسة الكتلةَ الحاوية لأي عنصر position:fixed
     بداخلها، فينحصر درج التنقل داخل ارتفاع الترويسة بدل ملء الشاشة.
     نلغي الضبابية هنا ونستخدم خلفية معتمة بدلاً منها. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--c-bg);
  }

  .nav-burger { display: flex; }

  /* الدرج ابن للترويسة، فيُرسم فوقها دائماً. نرفع أزرار الترويسة داخل نفس
     سياق التكديس ليبقى زر القائمة (وحالة الإغلاق X) ظاهراً وقابلاً للنقر. */
  .header-actions {
    position: relative;
    z-index: 96;
  }

  .main-nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 95;
    inline-size: min(310px, 84vw);
    padding: calc(var(--header-h) + 24px) 22px 32px;
    background: var(--c-surface);
    border-inline-start: 1px solid var(--c-border);
    box-shadow: 18px 0 50px rgba(10, 30, 36, .16);
    transform: translateX(-100%);
    transition: transform .32s var(--ease);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 13px 16px; border-radius: 12px; font-size: 1rem; }
  .nav-link--cta { margin-inline-start: 0; margin-block-start: 10px; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: start; }

  /* في عمود واحد لم يعد التركيب المتداخل مناسباً: اللقطتان جنباً إلى جنب
     بدل أن تخرج اللقطة العائمة خارج حدود الحاوية. */
  .hero-visual {
    padding: 0;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
    align-items: start;
  }
  .hero-visual .shot--float {
    position: static;
    inline-size: auto;
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }

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

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

  .footer-inner { grid-template-columns: 1fr; }
}

/* العمود الواحد للقطتَي البطل + شبكة الأرقام ٢×٢ قبل أن تضيق الأعمدة */
@media (max-width: 820px) {
  .hero-visual { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }

  .container { padding-inline: 18px; }

  .brand-text small { display: none; }

  .feature-grid { grid-template-columns: 1fr; }

  .ui-shots { grid-template-columns: 1fr; }

  .compare-grid { grid-template-columns: 1fr; }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .btn { padding: 12px 22px; font-size: .93rem; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }

  .to-top { inset-block-end: 18px; inset-inline-start: 18px; }

  .ui-panel-head { gap: 12px; }
  .ui-panel-num { inline-size: 44px; block-size: 44px; font-size: 1rem; }
}

@media (max-width: 420px) {
  .footer-nav { grid-template-columns: 1fr; }
  .hero-cta .btn { inline-size: 100%; }
}

/* ---------- 16. تفضيلات إمكانية الوصول ---------- */
@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; }
}

/* ---------- 17. الطباعة ---------- */
@media print {
  .site-header, .to-top, .lightbox, .nav-overlay, .hero-glow, .download-glow { display: none !important; }
  body { background: #fff; color: #000; }
  .ui-panel[hidden] { display: block !important; }
}
