/* ===========================================================================
   موقع لمتنا — الأنماط
   مبنيّ على «لمتنا Design System»: داكن دائماً، توهّج نيون، خط Cairo، RTL.
   الرموز (tokens) منقولة حرفياً من حزمة التصميم؛ لا تُغيَّر قيمها هنا.
   =========================================================================== */

/* ── رموز التصميم ──────────────────────────────────────────────────────── */
:root {
  /* الخلفيات والأسطح */
  --lam-bg-void:        #050810;
  --lam-bg-deep:        #08101F;
  --lam-surface:        #0B1D3A;
  --lam-surface-raised: #102A52;
  --lam-line:           #1C3460;

  /* ألوان النيون */
  --lam-blue:        #00BFFF;
  --lam-blue-deep:   #0091C2;
  --lam-purple:      #7B2FFF;
  --lam-purple-deep: #5A1FCC;
  --lam-pink:        #FF3CAC;

  /* ألوان رموز بلايستيشن */
  --lam-ps-green: #2ECC71;
  --lam-ps-red:   #FF4D6D;

  /* النصوص */
  --lam-text:         #FFFFFF;
  --lam-text-muted:   rgba(255,255,255,0.60);
  --lam-text-faint:   rgba(255,255,255,0.38);
  --lam-text-on-blue: #04121C;
  --lam-success:      #2ECC71;

  /* التدرّجات */
  --lam-grad-surface: linear-gradient(160deg, #0B1D3A 0%, #08101F 100%);

  /* الخط */
  --lam-font: 'Cairo', system-ui, 'Segoe UI', sans-serif;
  --lam-w-regular: 400;
  --lam-w-medium:  500;
  --lam-w-bold:    700;
  --lam-w-black:   900;

  /* الأنصاف والمسافات */
  --lam-radius-sm:   10px;
  --lam-radius-md:   14px;
  --lam-radius-lg:   18px;
  --lam-radius-xl:   24px;
  --lam-radius-pill: 999px;
  --lam-tap-min: 48px;

  /* التوهّج والظلال */
  --lam-glow-blue:    0 0 20px rgba(0,191,255,0.55), 0 0 4px rgba(0,191,255,0.9);
  --lam-glow-blue-sm: 0 0 12px rgba(0,191,255,0.45);
  --lam-glow-purple:  0 0 22px rgba(123,47,255,0.55);
  --lam-glow-pink:    0 0 22px rgba(255,60,172,0.55);
  --lam-shadow-card:  0 8px 28px rgba(0,0,0,0.55);
  --lam-inset-top:    inset 0 1px 0 rgba(255,255,255,0.06);
  --lam-focus-ring:   0 0 0 3px rgba(0,191,255,0.35);
  --lam-text-glow-blue: 0 0 14px rgba(0,191,255,0.65);
  --lam-blur: blur(16px);

  /* الحركة */
  --lam-ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --lam-ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --lam-dur-fast:  140ms;
  --lam-dur:       220ms;

  /* تخطيط الموقع */
  --page-max: 1120px;
  --gutter: 24px;
}

/* ── الأساس ────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* حتى لا يختفي عنوان القسم خلف الترويسة اللاصقة عند القفز إليه */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  direction: rtl;
  background: var(--lam-bg-void);
  color: var(--lam-text);
  font-family: var(--lam-font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lam-blue); text-decoration: none; }
a:hover { color: #7CDDFF; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }

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

/* للقارئات الشاشية فقط */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* رابط تخطّي للوحة المفاتيح */
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--lam-blue); color: var(--lam-text-on-blue);
  padding: 12px 20px; border-radius: var(--lam-radius-md); font-weight: var(--lam-w-black);
  transition: top var(--lam-dur) var(--lam-ease);
}
.skip-link:focus { top: 16px; color: var(--lam-text-on-blue); }

.wrap { max-width: var(--page-max); margin: 0 auto; padding-inline: var(--gutter); }

i[data-lucide] { width: 22px; height: 22px; stroke-width: 2; }

/* ── الترويسة ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: var(--lam-blur);
  -webkit-backdrop-filter: var(--lam-blur);
  background: rgba(5,8,16,0.72);
  border-bottom: 1px solid var(--lam-line);
  transition: box-shadow var(--lam-dur) var(--lam-ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(0,0,0,0.55); }

.header-inner {
  max-width: var(--page-max); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 14px; margin-inline-end: auto; }
.brand:hover { color: inherit; }
.brand-logo {
  width: 52px; height: 52px; border-radius: var(--lam-radius-md);
  object-fit: cover; border: 1px solid var(--lam-line);
  box-shadow: 0 0 20px rgba(0,191,255,0.35);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; color: var(--lam-text); }
.brand-name { font-weight: var(--lam-w-black); font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }
.brand-tag { font-size: 12px; color: var(--lam-text-muted); font-weight: var(--lam-w-medium); line-height: 1.2; }

.nav { display: flex; gap: 22px; font-size: 14px; font-weight: var(--lam-w-bold); }
.nav a { color: var(--lam-text-muted); transition: color var(--lam-dur) var(--lam-ease); }
.nav a:hover, .nav a.is-active { color: var(--lam-blue); }

/* ── الأزرار ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--lam-radius-md);
  font-weight: var(--lam-w-black);
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow var(--lam-dur) var(--lam-ease),
              transform var(--lam-dur) var(--lam-ease),
              background var(--lam-dur) var(--lam-ease);
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--lam-blue); color: var(--lam-text-on-blue);
  box-shadow: var(--lam-glow-blue);
}
.btn-primary:hover {
  color: var(--lam-text-on-blue);
  box-shadow: 0 0 34px rgba(0,191,255,0.85);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent; color: var(--lam-purple);
  border-color: var(--lam-purple);
}
.btn-outline:hover {
  color: var(--lam-purple);
  box-shadow: var(--lam-glow-purple);
  transform: translateY(-3px);
}

.btn-sm  { height: 44px; padding-inline: 22px; font-size: 15px; }
.btn-lg  { height: 58px; padding-inline: 30px; font-size: 18px; }
.btn-block { width: 100%; height: 48px; font-size: 16px; }

/* ── الشارات (Badge) ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--lam-radius-pill);
  font-weight: var(--lam-w-bold); font-size: 12px; line-height: 1;
  white-space: nowrap;
}
.badge-blue    { color: var(--lam-blue);    background: rgba(0,191,255,0.14);  border: 1px solid rgba(0,191,255,0.45); }
.badge-purple  { color: var(--lam-purple);  background: rgba(123,47,255,0.14); border: 1px solid rgba(123,47,255,0.45); }
.badge-pink    { color: var(--lam-pink);    background: rgba(255,60,172,0.14); border: 1px solid rgba(255,60,172,0.45); }
.badge-success { color: var(--lam-success); background: rgba(46,204,113,0.14); border: 1px solid rgba(46,204,113,0.45); }
.badge-glow.badge-success { box-shadow: 0 0 12px rgba(46,204,113,0.45); }
.badge-glow.badge-blue    { box-shadow: var(--lam-glow-blue-sm); }
.badge-glow.badge-purple  { box-shadow: var(--lam-glow-purple); }

/* ── بطاقة السعر (PriceTag) ────────────────────────────────────────────── */
.price { direction: rtl; }
.price-row { display: flex; align-items: baseline; flex-direction: row-reverse; gap: 8px; }
.price-num {
  font-weight: var(--lam-w-black); line-height: 1; letter-spacing: -0.01em;
  color: var(--lam-blue); text-shadow: var(--lam-text-glow-blue);
}
.price-cur { font-weight: var(--lam-w-bold); color: var(--lam-text-muted); }
.price-note { font-size: 12px; color: var(--lam-text-muted); margin-top: 4px; }

.price-hero .price-num { font-size: 64px; }
.price-hero .price-cur { font-size: 20px; }
.price-lg   .price-num { font-size: 44px; }
.price-lg   .price-cur { font-size: 16px; }

/* ── البطاقات ──────────────────────────────────────────────────────────── */
.card {
  background: var(--lam-grad-surface);
  border: 1px solid var(--lam-line);
  border-radius: var(--lam-radius-lg);
  padding: 28px;
  box-shadow: var(--lam-shadow-card), var(--lam-inset-top);
}
.card-hover { transition: transform var(--lam-dur) var(--lam-ease), box-shadow var(--lam-dur) var(--lam-ease); }
.card-hover:hover { transform: translateY(-3px); }
.card-hover.glow-blue:hover   { box-shadow: 0 0 24px rgba(0,191,255,0.35); }
.card-hover.glow-purple:hover { box-shadow: 0 0 24px rgba(123,47,255,0.35); }
.card-hover.glow-pink:hover   { box-shadow: 0 0 24px rgba(255,60,172,0.35); }

.card-title { font-weight: var(--lam-w-black); font-size: 19px; margin: 16px 0 8px; }
.card-body  { color: var(--lam-text-muted); font-size: 15px; line-height: 1.7; }

/* ── الأقسام ───────────────────────────────────────────────────────────── */
.section { padding: 72px 0; border-top: 1px solid var(--lam-line); position: relative; }
.section-title { font-weight: var(--lam-w-black); font-size: 30px; margin-bottom: 8px; }
.section-sub { color: var(--lam-text-muted); font-size: 16px; margin-bottom: 34px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── البطل (Hero) ──────────────────────────────────────────────────────── */
.hero { position: relative; padding: 80px 0 96px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(123,47,255,0.30), transparent 70%),
    radial-gradient(600px 420px at 10% 95%, rgba(0,191,255,0.22), transparent 70%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-title {
  font-weight: var(--lam-w-black);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.12; letter-spacing: -0.02em; text-wrap: pretty;
}
.hero-lead { font-size: 17px; line-height: 1.75; color: var(--lam-text-muted); max-width: 44ch; text-wrap: pretty; }
.hero-price-row { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.hero-extra { padding-bottom: 6px; font-size: 14px; font-weight: var(--lam-w-bold); color: var(--lam-text-muted); }
.hero-extra b { color: var(--lam-blue); font-weight: var(--lam-w-black); text-shadow: var(--lam-text-glow-blue); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* بطاقة الجهاز — إطار متدرّج عبر padding 1px */
.device-frame {
  position: relative; border-radius: var(--lam-radius-xl); padding: 1px;
  background: linear-gradient(160deg, rgba(0,191,255,0.55), rgba(123,47,255,0.45));
}
.device-card {
  border-radius: 23px; background: var(--lam-grad-surface);
  padding: 44px 34px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  box-shadow: var(--lam-shadow-card), var(--lam-inset-top);
}
.device-orb {
  width: 150px; height: 150px; border-radius: 32px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(0,191,255,0.35), rgba(123,47,255,0.25) 55%, transparent 75%);
  box-shadow: 0 0 40px rgba(0,191,255,0.28);
}
.device-orb i[data-lucide] { width: 76px; height: 76px; color: var(--lam-blue); }
.device-name { font-weight: var(--lam-w-black); font-size: 22px; }
.device-specs { display: grid; gap: 12px; width: 100%; }
.device-specs li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: var(--lam-w-medium); color: rgba(255,255,255,0.85);
}
.device-specs i[data-lucide] { color: var(--lam-ps-green); width: 18px; height: 18px; }
.device-specs { list-style: none; margin: 0; padding: 0; }

/* ── الأسعار ───────────────────────────────────────────────────────────── */
.pricing-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 320px at 15% 0%, rgba(0,191,255,0.14), transparent 70%);
}
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 14px; padding: 30px; }
.price-card.featured {
  border-color: var(--lam-blue);
  box-shadow: 0 0 22px rgba(0,191,255,0.35), var(--lam-inset-top);
}

/* حاسبة الأيام */
.calc { display: flex; flex-direction: column; gap: 18px; padding: 30px; }
.calc-title { font-weight: var(--lam-w-bold); font-size: 17px; }
.calc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--lam-bg-deep); border: 1px solid var(--lam-line);
  border-radius: var(--lam-radius-md); padding: 10px 14px;
}
.calc-label { font-size: 14px; font-weight: var(--lam-w-bold); color: var(--lam-text-muted); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 38px; height: 38px; border-radius: var(--lam-radius-sm);
  border: 1px solid var(--lam-line); background: var(--lam-surface);
  color: var(--lam-blue); font-size: 22px; font-weight: var(--lam-w-black);
  cursor: pointer; display: grid; place-items: center;
  transition: box-shadow var(--lam-dur-fast) var(--lam-ease-snap), transform var(--lam-dur-fast) var(--lam-ease-snap);
}
.stepper button:hover:not(:disabled) { box-shadow: 0 0 16px rgba(0,191,255,0.5); }
.stepper button:active:not(:disabled) { transform: scale(0.96); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper-value {
  min-width: 52px; text-align: center; font-size: 24px; font-weight: var(--lam-w-black);
  color: var(--lam-blue); text-shadow: var(--lam-text-glow-blue);
}
.calc-total { display: flex; align-items: baseline; gap: 10px; flex-direction: row-reverse; margin-inline-start: auto; }
.calc-total-num { font-size: 40px; font-weight: var(--lam-w-black); color: var(--lam-blue); text-shadow: var(--lam-text-glow-blue); line-height: 1; }
.calc-total-cur { font-size: 15px; font-weight: var(--lam-w-bold); color: var(--lam-text-muted); }

/* ── شريط التوصيل ──────────────────────────────────────────────────────── */
.delivery {
  background: linear-gradient(120deg, rgba(0,191,255,0.14), rgba(123,47,255,0.14));
  border: 1px solid var(--lam-line); border-radius: var(--lam-radius-xl);
  padding: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.delivery-icon {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(0,191,255,0.14); box-shadow: 0 0 20px rgba(0,191,255,0.4); flex: none;
}
.delivery-icon i[data-lucide] { color: var(--lam-blue); width: 30px; height: 30px; }
.delivery-body { margin-inline-end: auto; }
.delivery-title { font-weight: var(--lam-w-black); font-size: 24px; }
.delivery-text { margin-top: 8px; color: var(--lam-text-muted); font-size: 15px; }

/* ── خطوات الحجز ───────────────────────────────────────────────────────── */
.step { box-shadow: var(--lam-inset-top); }
.step-num { font-size: 34px; font-weight: var(--lam-w-black); line-height: 1; }
.step-1 .step-num { color: var(--lam-blue);   text-shadow: var(--lam-text-glow-blue); }
.step-2 .step-num { color: var(--lam-purple); text-shadow: 0 0 14px rgba(123,47,255,0.65); }
.step-3 .step-num { color: var(--lam-pink);   text-shadow: 0 0 14px rgba(255,60,172,0.65); }
.step-title { font-weight: var(--lam-w-black); font-size: 18px; margin: 14px 0 8px; }

/* ── التذييل ───────────────────────────────────────────────────────────── */
.site-footer {
  padding: 64px 0 40px; border-top: 1px solid var(--lam-line);
  background: linear-gradient(180deg, #050810, #08101F);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; border: 1px solid var(--lam-line); box-shadow: 0 0 20px rgba(0,191,255,0.3); }
.footer-brand span { font-weight: var(--lam-w-black); font-size: 22px; }
.footer-about { color: var(--lam-text-muted); font-size: 15px; line-height: 1.7; max-width: 34ch; }
.footer-head { font-weight: var(--lam-w-bold); font-size: 16px; margin-bottom: 4px; }
.footer-line { display: flex; align-items: center; gap: 10px; color: var(--lam-text-muted); font-size: 15px; }
.footer-line i[data-lucide] { color: var(--lam-blue); width: 18px; height: 18px; flex: none; }
.footer-link { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: var(--lam-w-bold); }
.footer-link i[data-lucide] { width: 18px; height: 18px; flex: none; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-legal a { color: var(--lam-text-muted); }
.footer-legal a:hover { color: var(--lam-blue); }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--lam-line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--lam-text-muted); font-size: 13px;
}

/* ── زر عائم ───────────────────────────────────────────────────────────── */
.fab {
  position: fixed; inset-inline-start: 24px; bottom: 24px; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding-inline: 24px; border-radius: var(--lam-radius-pill);
  background: var(--lam-blue); color: var(--lam-text-on-blue);
  font-weight: var(--lam-w-black); font-size: 16px;
  box-shadow: 0 0 26px rgba(0,191,255,0.6);
  transition: box-shadow var(--lam-dur) var(--lam-ease), transform var(--lam-dur) var(--lam-ease), opacity var(--lam-dur) var(--lam-ease);
}
.fab:hover { color: var(--lam-text-on-blue); box-shadow: 0 0 40px rgba(0,191,255,0.9); transform: translateY(-3px); }

/* ── ظهور تدريجي عند التمرير ───────────────────────────────────────────── */
/* الإخفاء مشروط بوجود جافاسكربت (الصنف js يُضاف من الترويسة). بدونها يظهر
   المحتوى كاملاً فوراً بدل ما يبقى شفّافاً لو فشل تحميل app.js. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 520ms var(--lam-ease), transform 520ms var(--lam-ease); }

/* ── الاستجابة ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .pricing-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid .calc { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }               /* الروابط متاحة بالتذييل والزر العائم */
  .hero { padding: 56px 0 72px; }
  .section { padding: 56px 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-3, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .header-inner { padding-block: 12px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 18px; }
  .btn-lg { height: 54px; width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-price-row { gap: 16px; }
  .price-hero .price-num { font-size: 52px; }
  .section-title, .delivery-title { font-size: 24px; }
  .device-card { padding: 32px 22px; }
  .delivery { padding: 24px; }
  /* الزرّ العائم يمتدّ عرضاً على الجوال ليسهل الوصول إليه */
  .fab { inset-inline: 16px; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* الترويسة عند شاشة قصيرة جداً */
@media (max-width: 400px) {
  .header-cta { display: none; }        /* الزر العائم يكفي */
}

/* ── احترام تفضيل تقليل الحركة ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── الطباعة ───────────────────────────────────────────────────────────── */
@media print {
  .fab, .site-header { display: none; }
  body { background: #fff; color: #000; }
}
