/* ===========================================================================
   كسّارة — الموقع
   ---------------------------------------------------------------------------
   نفس هوية النظام: صورة المقلع الحقيقية ثابتة ورا كل شي، والمحتوى على
   ألواح زجاج. اللي بيشوفه الزائر هون هو نفس اللي رح يشوفه لما يفتح النظام
   — الموقع والمنتج شي واحد.

   القيم منقولة من alashqar-erp/src/app/globals.css: الكهرماني 700 للتعبئة
   (أبيض فوقه 5.02:1) و800 للنص، والزجاج 0.82 بلور 28px.
   =========================================================================== */

@font-face {
  font-family: "Readex Pro"; font-style: normal; font-weight: 300 700;
  font-display: swap; src: url("/fonts/readex-arabic.woff2") format("woff2");
  unicode-range: u+06??, u+0750-077f, u+0870-088e, u+fb50-fdff, u+fe70-fefc, u+200c-200e;
}
@font-face {
  font-family: "Readex Pro"; font-style: normal; font-weight: 300 700;
  font-display: swap; src: url("/fonts/readex-latin.woff2") format("woff2");
  unicode-range: u+00??, u+0131, u+0152-0153, u+2000-206f, u+2122;
}

:root {
  --primary: #B45309;
  --primary-hover: #9A4708;
  --primary-ink: #92400E;
  --primary-soft: #FEF3C7;
  --fg: #1D1D1F;
  --fg-2: #3A3A3C;
  --muted: #5E5E63;          /* 5.6:1 على الزجاج الفاتح */
  --line: rgb(0 0 0 / 0.08);
  --glass: rgb(255 255 255 / 0.82);
  --glass-strong: rgb(255 255 255 / 0.92);
  --glass-edge: rgb(255 255 255 / 0.65);
  --shadow: 0 40px 90px -48px rgb(74 44 10 / 0.45), 0 12px 30px -18px rgb(74 44 10 / 0.18);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --dir: 1;                  /* RTL: الصفحة الجاية على الشمال، فالمسار بيتحرّك يمين */
}
html[dir="ltr"] { --dir: -1; }

*, *::before, *::after { box-sizing: border-box; }
/* clip مش hidden: hidden بيمنع المستخدم يمرّر بس المتصفح نفسه بيقدر —
   وأي رابط بـ# كان يزحّط الـbody صفحة كاملة لجنب، فالصفحة تطلع فاضية. */
html, body { height: 100%; margin: 0; overflow: hidden; overflow: clip; overscroll-behavior: none; }
body {
  font-family: "Readex Pro", system-ui, sans-serif;
  color: var(--fg); background: #EDE6DB;
  line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; letter-spacing: normal; line-height: 1.25; font-weight: 650; text-wrap: balance; }
html[dir="ltr"] h1, html[dir="ltr"] h2 { letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 12px;
  text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

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

/* --- المشهد: صورة المقلع ---------------------------------------------------
   نهارية دايماً، وما بتتحرّك مع الصفحات: الصفحات بتمرّ فوقها مثل ألواح على
   طاولة. الستارة الرملية نفسها اللي بالنظام. */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% -10%, rgb(251 191 36 / 0.16), transparent 70%),
    linear-gradient(180deg, rgb(250 247 242 / 0.30), rgb(244 241 236 / 0.42));
}

/* --- الزجاج -----------------------------------------------------------------
   حافة بيضا 1px وخط ضو من فوق: بدونهم الزجاج الفاتح على صورة فاتحة بيطلع
   طبقة باهتة؛ معهم بيصير قطعة زجاج ملقوطة من فوق. */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.75), var(--shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-strong); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* --- الترويسة --------------------------------------------------------------- */
.top {
  position: fixed; top: 14px; inset-inline: 0; z-index: 50;
  padding-inline: clamp(12px, 3vw, 32px); pointer-events: none;
}
.bar {
  pointer-events: auto; max-width: 1240px; margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding-inline: 10px 10px;
  border-radius: 999px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding-inline-start: 6px; }
.mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--fg);
  display: grid; place-items: center; flex: none;
}
.mark svg { width: 24px; color: #F59E0B; }
.logo b { font-size: 19px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 14px; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--fg); background: rgb(0 0 0 / 0.05); }
.nav a[aria-current="true"] { color: var(--fg); background: rgb(0 0 0 / 0.06); }
.bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.lang, .login {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--fg-2);
  height: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
  transition: background-color .2s;
}
.lang:hover, .login:hover { background: rgb(0 0 0 / 0.05); }
.lang { font-weight: 600; }
@media (max-width: 1020px) { .nav { display: none; } }
@media (max-width: 560px) {
  .login { display: none; }
  .logo b { font-size: 17px; }
  .bar .btn { padding: 0 16px; }
}

/* --- الأزرار --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--primary); color: #fff;
  box-shadow: 0 10px 24px -12px rgb(180 83 9 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.22);
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.sm { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn.quiet {
  background: rgb(255 255 255 / 0.6); color: var(--fg); border-color: rgb(0 0 0 / 0.08);
  box-shadow: none;
}
.btn.quiet:hover { background: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: none; }

/* --- المسار الأفقي -----------------------------------------------------------
   صفحات جنب بعض بعرض الشاشة، والمسار كله بيتحرّك بـtransform. ما في
   scrollLeft: قيمته بالـRTL سالبة بمتصفح وموجبة بغيره، وهاد اللي كان يكسر
   النسخة القديمة (النقاط ما بتحرّك والعجلة بتوقف بنص صفحة). */
.track {
  position: relative; z-index: 1; display: flex; height: 100dvh; width: 100vw;
  transform: translate3d(calc(var(--i, 0) * var(--dir) * 100vw), 0, 0);
  transition: transform .85s var(--ease);
  will-change: transform;
}
.page {
  flex: 0 0 100vw; width: 100vw; height: 100dvh;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 44px) clamp(16px, 4vw, 48px) 112px;
  scrollbar-width: thin; scrollbar-color: rgb(0 0 0 / 0.2) transparent;
}
/* margin-block:auto بيوسّط المحتوى القصير، والطويل بينزل ويتمرّر من أوله —
   place-items:center كان يقصّ رأسه. */
.inner { width: 100%; max-width: 1200px; margin: auto; }

/* --- عناصر مشتركة ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--primary-ink);
  padding: 6px 12px; border-radius: 999px; background: rgb(254 243 199 / 0.85);
  border: 1px solid rgb(180 83 9 / 0.14);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.title { font-size: clamp(28px, 3.6vw, 46px); margin-top: 16px; }
.lede { margin-top: 16px; font-size: clamp(16px, 1.45vw, 18.5px); color: var(--fg-2); max-width: 54ch; line-height: 1.85; }
.ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

.shot {
  border-radius: var(--r-lg); overflow: hidden; background: #F4F1EC;
  border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow: 0 50px 100px -50px rgb(74 44 10 / 0.55), 0 18px 40px -24px rgb(74 44 10 / 0.3);
}
.shot img { width: 100%; height: auto; }

/* --- 1. الهيرو ---------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.25; margin-top: 18px; }
.hero .copy { padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r-xl); }
.facts { margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--fg-2); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 17px; height: 17px; color: var(--primary); flex: none; }
/* اللقطة بتطلع شوي برّا حافة الشبكة — كأنها شاشة النظام نفسه مسنودة على
   اللوح، مش صورة محطوطة بإطار. */
.hero .shot { margin-inline-end: clamp(-60px, -3vw, 0px); }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero .shot { margin-inline-end: 0; }
}

/* --- 2. الفيلم --------------------------------------------------------------- */
.film-head { text-align: center; margin-bottom: 26px; }
.film-head .title { margin-top: 12px; }
.film {
  position: relative; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden;
  width: 100%; max-width: min(1080px, calc((100dvh - 400px) * 16 / 9));
  background: #1D1D1F;
}
.film video { width: 100%; aspect-ratio: 16 / 9; background: #1D1D1F; }
.play {
  position: absolute; inset: 0; margin: auto; width: clamp(76px, 8vw, 100px); height: clamp(76px, 8vw, 100px);
  border: 0; border-radius: 999px; cursor: pointer; display: grid; place-items: center;
  background: var(--primary); color: #fff;
  box-shadow: 0 0 0 10px rgb(255 255 255 / 0.18), 0 24px 50px -10px rgb(0 0 0 / 0.5);
  transition: transform .3s var(--ease), opacity .4s ease;
}
.play:hover { transform: scale(1.06); }
.play svg { width: 40%; height: 40%; margin-left: 7%; }  /* المثلث بيأشّر يمين دايماً */
.film.playing .play { opacity: 0; transform: scale(.7); pointer-events: none; }
.play.loading { animation: wait 1.1s ease-in-out infinite; cursor: progress; }
@keyframes wait { 50% { opacity: .5; } }
.film-note { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--fg-2); }

/* --- 3. الوعد ---------------------------------------------------------------- */
.promise { border-radius: var(--r-xl); padding: clamp(30px, 4.4vw, 64px); }
.promise .title { font-size: clamp(30px, 4.2vw, 54px); }
.pillars { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pillar {
  border-radius: var(--r-md); padding: 24px 22px; background: rgb(255 255 255 / 0.62);
  border: 1px solid rgb(255 255 255 / 0.85);
}
.pillar .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 16px; }
.pillar .ico svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 18px; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* --- 4. الوحدات (bento) -------------------------------------------------------- */
.mods-head { margin-bottom: 22px; }
.bento { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: minmax(120px, auto); gap: 14px; }
.tile { border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tile .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 8px; }
.tile .ico svg { width: 20px; height: 20px; }
.tile h3 { font-size: 16.5px; }
.tile p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.tile.feature { grid-row: span 3; padding: 26px; gap: 10px; }
.tile.feature h3 { font-size: 21px; }
.tile.feature .shot { margin-top: auto; border-radius: 14px; }
@media (max-width: 1020px) { .bento { grid-template-columns: 1fr 1fr; } .tile.feature { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }

/* --- 5 و6. صفحات مقسومة -------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(26px, 4vw, 56px); align-items: center; }
.split .copy { border-radius: var(--r-xl); padding: clamp(28px, 3.4vw, 44px); }
.split.phone { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
@media (max-width: 980px) { .split, .split.phone { grid-template-columns: 1fr; } }

.ticks { list-style: none; margin: 24px 0 0; padding: 0; }
.ticks li { position: relative; padding: 10px 0; padding-inline-start: 34px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.7; }
.ticks li:first-child { border-top: 0; }
.ticks li b { font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 19px;
  width: 13px; height: 7px; border: 2px solid var(--primary); border-top: 0; border-right: 0;
  transform: rotate(-45deg);
}
/* حدود فيزيائية مش منطقية: علامة الصح شكل مش نص، فما بتنقلب مع الاتجاه.
   بـborder-inline-end كانت بالعربي تطلع "‹" بدل ✓. */
kbd { font-family: inherit; font-size: 12px; padding: 1px 7px; border-radius: 6px; border: 1px solid rgb(0 0 0 / 0.15); background: #fff; }

.privacy-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 14px;
  border-radius: 999px; background: #E8F5EC; color: #1B6E30; font-size: 13.5px; font-weight: 600;
}
.privacy-chip svg { width: 16px; height: 16px; }

/* الجوال: إطار بسيط بدل صورة جهاز جاهزة — حواف وسماكة بس. */
.device {
  width: min(300px, 74vw); background-clip: padding-box; margin: 0 auto; border-radius: 46px; padding: 10px;
  background: #1D1D1F; box-shadow: 0 60px 100px -50px rgb(40 24 6 / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.12);
}
.device img { border-radius: 37px; width: 100%; height: auto; background: #EFEAE2; }

/* --- 7. التواصل ---------------------------------------------------------------- */
.end { border-radius: var(--r-xl); padding: clamp(30px, 4.4vw, 64px); text-align: center; }
.end .title { font-size: clamp(30px, 4vw, 50px); max-width: 22ch; margin-inline: auto; }
.end .lede { margin-inline: auto; }
.end .ctas { justify-content: center; }
.contact-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.foot {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-radius: 999px; font-size: 13.5px; color: var(--fg-2);
}
.foot a { text-decoration: none; font-weight: 500; }
.foot a:hover { color: var(--primary-ink); }
@media (max-width: 640px) { .foot { border-radius: 22px; justify-content: center; text-align: center; } }

/* --- التنقّل السفلي -------------------------------------------------------------- */
.pager {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
}
.pager button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
}
.arrow { width: 44px; height: 44px; display: grid; place-items: center; color: var(--fg); transition: background-color .2s, opacity .2s; }
.arrow:hover { background: rgb(0 0 0 / 0.06); }
.arrow[disabled] { opacity: .28; pointer-events: none; }
.arrow svg { width: 18px; height: 18px; }
/* السهم المرسوم بيأشّر شمال. بالعربي "التالي" شمال، بالإنجليزي يمين. */
.arrow.prev svg { transform: scaleX(-1); }
html[dir="ltr"] .arrow.prev svg { transform: none; }
html[dir="ltr"] .arrow.next svg { transform: scaleX(-1); }
.dots { display: flex; align-items: center; gap: 2px; padding-inline: 4px; }
.dot { width: 26px; height: 44px; display: grid; place-items: center; }
.dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgb(0 0 0 / 0.22);
  transition: width .35s var(--ease), background-color .35s var(--ease);
}
.dot:hover::before { background: rgb(0 0 0 / 0.4); }
.dot[aria-current="true"]::before { width: 22px; background: var(--primary); }
.count { font-size: 12.5px; color: var(--muted); padding-inline: 6px 10px; min-width: 52px; text-align: center;; direction: ltr; unicode-bidi: isolate; }
/* بالعربي "06 / 07" كانت تنقلب "07 / 06": الأرقام والشرطة بتترتّب حسب اتجاه السطر. */
@media (max-width: 480px) { .count { display: none; } .dot { width: 20px; } }

/* --- الحركة --------------------------------------------------------------------
   كل عنصر بيوصل مرة وحدة لما توصل صفحته، وبيسكت. */
[data-reveal] { opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.page.seen [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .track { transition: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .play.loading { animation: none; }
  .btn, .btn:hover, .btn:active { transform: none; }
}

/* شاشات قصيرة (لابتوب 768): المسافات والخطوط بتضيق قبل ما المحتوى يحتاج
   تمرير. القيم انقاست على 1366×768 بالعربي والإنجليزي. */
@media (max-height: 920px) and (min-width: 700px) {
  :root { --header-h: 56px; }
  .top { top: 10px; }
  .page { padding-top: calc(var(--header-h) + 26px); padding-bottom: 82px; }
  .pager { bottom: 12px; }
  .btn { height: 46px; padding: 0 22px; font-size: 15px; }
  .btn.sm { height: 40px; }
  .lang, .login { height: 40px; }
  .mark { width: 36px; height: 36px; }
  .eyebrow { padding: 4px 11px; font-size: 12.5px; }
  .title { font-size: clamp(24px, 2.6vw, 36px); margin-top: 12px; }
  .lede { margin-top: 12px; font-size: 15.5px; line-height: 1.75; }
  .ctas { margin-top: 20px; }
  .hero h1 { font-size: clamp(26px, 2.5vw, 36px); margin-top: 14px; }
  .hero .copy, .split .copy { padding: 26px 30px; }
  .facts { margin-top: 18px; padding-top: 14px; }
  .promise, .end { padding: 30px 38px; }
  .promise .title { font-size: clamp(28px, 3.2vw, 42px); }
  .pillars { margin-top: 22px; gap: 12px; }
  .pillar { padding: 16px 18px; }
  .pillar .ico { width: 38px; height: 38px; margin-bottom: 10px; }
  .pillar p, .tile p { font-size: 13.5px; line-height: 1.7; }
  .bento { gap: 10px; grid-auto-rows: minmax(100px, auto); }
  .tile { padding: 16px; }
  .tile .ico { width: 34px; height: 34px; margin-bottom: 4px; }
  .tile.feature { padding: 20px; }
  .ticks { margin-top: 16px; }
  .ticks li { padding: 7px 0; padding-inline-start: 32px; font-size: 14.5px; }
  .ticks li::before { top: 14px; }
  .privacy-chip { margin-top: 14px; }
  .device { width: min(250px, 70vw); border-radius: 40px; }
  .device img { border-radius: 31px; }
  .foot { margin-top: 14px; padding: 12px 20px; }
  html[dir="ltr"] .hero h1 { font-size: clamp(26px, 2.4vw, 34px); }
  html[dir="ltr"] .title { font-size: clamp(24px, 2.5vw, 34px); }
}

/* --- الإنجليزي ------------------------------------------------------------------
   الحروف اللاتينية ما إلها نقاط ولا حركات فوق وتحت السطر، فالتباعد العربي
   (1.85) بيطلّعها مفرّطة وبيطوّل الصفحة. */
html[dir="ltr"] body { line-height: 1.55; }
html[dir="ltr"] .lede { line-height: 1.6; }
html[dir="ltr"] .hero h1 { font-size: clamp(28px, 2.75vw, 40px); line-height: 1.15; }
html[dir="ltr"] .title { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.15; }
html[dir="ltr"] .promise .title { font-size: clamp(28px, 3.6vw, 48px); }
html[dir="ltr"] .pillar p, html[dir="ltr"] .tile p { line-height: 1.55; }
html[dir="ltr"] .ticks li { line-height: 1.5; }
