/*
 * WebPlus — Hero & Velocity Marquee Styles (v4.0)
 * الفصل 1: Hero الحقل الحي + المتصفح 3D
 * الفصل 2: Marquee سرعة القدرات
 * بادئة الأصناف: wx-
 */

/* ════════════════════════════════════════════════
   1. HERO — THE GROWTH FIELD (100vh Viewport Fit)
   ════════════════════════════════════════════════ */
.wx-hero-section {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  box-sizing: border-box;
  background-color: var(--wx-ink);
  color: var(--wx-snow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 36px; /* تقليل المسافة العلوية لسنترة المحتوى بدقة في منتصف الشاشة */
  padding-bottom: 24px;
}

@media (max-height: 640px), (max-width: 1024px) {
  .wx-hero-section {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    max-height: none;
    padding-top: calc(76px + 24px);
    padding-bottom: 60px;
  }
}

/* حقل الخطوط المتموجة (Canvas) */
.wx-growth-field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wx-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.wx-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
}

/* عمود المحتوى */
.wx-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wx-hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.85rem);
  line-height: 1.28;
  font-weight: 800;
  color: var(--wx-snow);
  margin-top: 8px;
  margin-bottom: 16px;
}

.wx-hero-title-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  padding-block: 4px 14px; /* مساحة كافية تماماً للزوائد السفلية ومحارف Tajawal لمنع أي تأكل بالحروف */
  margin-block-end: -8px;
}

.wx-hero-title-grow-wrap {
  position: relative;
  display: inline-block;
  margin-inline-start: 6px;
}

/* بذرة منحنى النمو تحت كلمة "تنمو" */
.wx-hero-seed-svg {
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 100%;
  height: 16px;
  overflow: visible;
  pointer-events: none;
}

.wx-hero-desc {
  font-size: clamp(15px, 1.05vw, 17px);
  color: #CBD5E1;
  line-height: 1.7;
  max-width: 48ch;
  margin-bottom: 22px;
}

.wx-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wx-hero-actions .wx-btn--primary {
  height: 46px;
  padding-inline: 26px;
  font-size: 15px;
  font-weight: 700;
}

.wx-hero-actions .wx-btn--outline {
  height: 46px;
  padding-inline: 22px;
  font-size: 15px;
}

/* مؤشر التمرير السلس (Scroll Cue) */
.wx-hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--wx-slate-400);
  margin-top: 4px;
}

.wx-scroll-cue-line {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.wx-scroll-cue-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  background: var(--wx-sky);
  animation: wxScrollDrip 2s infinite ease-in-out;
}

@keyframes wxScrollDrip {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* ── المتصفح 3D والمجسم الحي ────────────────────── */
.wx-hero-visual {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.wx-hero-browser {
  width: 100%;
  max-width: clamp(420px, 39vw, 510px);
  background: rgba(7, 21, 48, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--wx-border-dark);
  border-radius: var(--wx-radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 102, 255, 0.2);
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(5deg);
  will-change: transform;
  position: relative;
}

.wx-browser-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--wx-border-dark);
  background: rgba(5, 14, 36, 0.6);
}

.wx-browser-dots {
  display: flex;
  gap: 5px;
}

.wx-browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.wx-browser-dots span:nth-child(1) { background: #ef4444; }
.wx-browser-dots span:nth-child(2) { background: #f59e0b; }
.wx-browser-dots span:nth-child(3) { background: #22c55e; }

.wx-browser-url {
  font-family: var(--wx-font-lat);
  font-size: 11px;
  color: var(--wx-slate-400);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 10px;
  border-radius: var(--wx-radius-pill);
}

.wx-browser-canvas {
  padding: 16px 20px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(11, 31, 68, 0.5) 0%, rgba(5, 14, 36, 0.8) 100%);
}

.wx-mock-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wx-mock-pill {
  font-size: 10px;
  color: var(--wx-success);
  font-family: var(--wx-font-lat);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wx-mock-hero-content {
  margin-block: 20px;
}

.wx-mock-typing-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--wx-snow);
  min-height: 28px;
  display: flex;
  align-items: center;
}

.wx-mock-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--wx-sky);
  margin-inline-start: 4px;
  animation: wxCursorBlink 0.9s infinite;
}

@keyframes wxCursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* منحنى النمو داخل شاشة المتصفح */
.wx-mock-growth-curve-wrap {
  position: relative;
  height: 60px;
  width: 100%;
}

.wx-mock-growth-curve-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* الشارات العائمة الثلاث (P2 Badges) */
.wx-hero-floating-badge {
  position: absolute;
  z-index: 5;
  background: rgba(7, 21, 48, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--wx-border-glow);
  padding: 8px 16px;
  border-radius: var(--wx-radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: var(--wx-font-lat);
  font-size: 12px;
  font-weight: 700;
  color: var(--wx-snow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.wx-badge-pos-1 { top: -16px; right: -20px; }
.wx-badge-pos-2 { bottom: 40px; right: -28px; }
.wx-badge-pos-3 { bottom: -18px; left: 16px; }

/* ════════════════════════════════════════════════
   2. VELOCITY MARQUEE — سرعة القدرات (P2 Compact & Edge Masked)
   ════════════════════════════════════════════════ */
.wx-marquee-section {
  position: relative;
  background-color: var(--wx-navy-950);
  border-top: 1px solid var(--wx-border-dark);
  border-bottom: 1px solid var(--wx-border-dark);
  padding-block: 22px 18px; /* compact ribbon transition ≤ 24px */
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.wx-marquee-row {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
  margin-block: 4px;
}

.wx-marquee-track {
  display: flex;
  gap: 32px;
  font-family: var(--wx-font-lat);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  flex-shrink: 0;
  will-change: transform;
}

.wx-marquee-track--1 {
  color: var(--wx-snow);
}

.wx-marquee-track--2 {
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(56, 189, 248, 0.45);
}

.wx-marquee-plus {
  color: var(--wx-sky);
  margin-inline: 12px;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* صف شعارات التقنيات النظيفة الصادقة */
.wx-marquee-tech-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.75;
}

.wx-tech-logo-item {
  font-family: var(--wx-font-lat);
  font-weight: 700;
  font-size: 14px;
  color: var(--wx-slate-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .wx-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .wx-hero-content {
    align-items: center;
  }
  .wx-hero-desc {
    margin-inline: auto;
  }
  .wx-hero-actions {
    justify-content: center;
  }
  .wx-hero-browser {
    transform: none !important;
    max-width: 480px;
  }
  .wx-badge-pos-1 { top: -10px; right: -5px; }
  .wx-badge-pos-2 { bottom: 10px; right: -5px; }
}

@media (max-width: 640px) {
  .wx-hero-section {
    padding-top: 100px;
  }
  .wx-hero-floating-badge {
    display: none;
  }
}
