/* ============================================================
   سُلوك — صفحة «قريبًا» | شاشة واحدة بلا سكرول
   تعتمد كليًّا على tokens.css + components.css (لا ألوان/مسافات جديدة)
   ============================================================ */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;                    /* شاشة واحدة — بلا سكرول */
  font-family: var(--font-ar);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-on-dark);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.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;
}

/* ============ الهيرو — يملأ الشاشة بالضبط ============ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; display: block;
}
.hero-glow {
  position: absolute;
  left: 50%; top: 46%;
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: var(--gradient-glow);
  opacity: 0.9;
  pointer-events: none;
  animation: glow-breathe 7s var(--ease) infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.96; transform: translate(-50%, -50%) scale(1.06); }
}

/* شريط علوي شفاف داخل الهيرو */
.hero-top {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-8);
}
.brand-logo { display: block; width: clamp(96px, 11vw, 130px); height: auto; }
.nav-signal { flex: none; }

/* المحتوى المركزي */
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(92vw, 820px);
  padding: 0 var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.hero .eyebrow {
  margin-bottom: 0;
  color: var(--green-400);
  letter-spacing: 0.18em;
}

/* العلامة (الوردمارك) */
.mark-wrap { width: clamp(240px, 44vw, 470px); }
.mark { display: block; width: 100%; height: auto; overflow: visible; transition: filter var(--duration-slow) var(--ease-out); }
.mark.pulsing {
  filter: drop-shadow(0 0 18px rgba(0, 188, 126, 0.5)) drop-shadow(0 0 44px rgba(0, 188, 126, 0.28));
}
.mk { fill: var(--soft-white); stroke: none; }
.mk-accent { fill: var(--green-500); stroke: none; }

.js-anim .mk {
  fill-opacity: 0;
  stroke: var(--soft-white);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js-anim .mk-accent { stroke: var(--green-500); }
.js-anim .mark.filled .mk {
  fill-opacity: 1;
  stroke-opacity: 0;
  transition: fill-opacity var(--duration-slow) var(--ease),
              stroke-opacity var(--duration-slow) var(--ease);
}

.hero-desc {
  margin: 0;
  max-width: min(90vw, 34rem);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--soft-white);
  text-wrap: balance;
}
.hero-sub {
  margin: 0;
  font-size: var(--text-base);
  color: var(--text-on-dark-2);
}

/* ============ كشف عناصر الهيرو (JS يضيف .in) ============ */
.js-anim .reveal-item { opacity: 0; transform: translateY(14px); }
.js-anim .reveal-item.in {
  opacity: 1;
  transform: none;
  transition: opacity var(--duration-fluid) var(--ease-expo),
              transform var(--duration-fluid) var(--ease-expo);
}

/* ============ تقليل الحركة ============ */
@media (prefers-reduced-motion: reduce) {
  .mark { transition: none; }
  .mark.pulsing { filter: none; }
  .hero-glow { animation: none; opacity: 0.85; }
}

/* ============ الموبايل ============ */
@media (max-width: 640px) {
  .hero-top { padding: var(--space-4) var(--space-5); }
  .hero-desc { font-size: var(--text-lg); }
}

/* على الموبايل/اللمس: أوقف تكبير التوهّج (يمنع إحساس اهتزاز الخلفية) */
@media (max-width: 640px), (pointer: coarse) {
  .hero-glow { animation: none; opacity: 0.85; transform: translate(-50%, -50%); }
}

/* ============ شاشات قصيرة (لاندسكيب) — امنع القصّ ============ */
@media (max-height: 600px) {
  .mark-wrap { width: clamp(170px, 30vw, 300px); }
  .hero-inner { gap: var(--space-3); }
  .hero-desc { font-size: var(--text-lg); }
  .hero-top { padding: var(--space-3) var(--space-6); }
}
