/* ==========================================================================
   منصة إحكام - أنماط الصفحة الرئيسية
   IHKAM Platform - Main Styles
   ========================================================================== */

/* ============================================================================
   متغيرات CSS (Color Scheme)
   =========================================================================== */

:root {
  --ink: #092234;
  --ink-2: #12364a;
  --ink-3: #1a4d63;
  --teal: #2fb9a8;
  --teal-deep: #149482;
  --teal-light: #4cc9b8;
  --gold: #d9ae58;
  --gold-dark: #c79a42;
  --sand: #f4f0e6;
  --paper: #fbfaf6;
  --muted: #647783;
  --muted-light: #8497a3;
  
  /* ألوان وظيفية للوضع النهاري/الليلي */
  --bg-main: var(--paper);
  --bg-card: #ffffff;
  --bg-hover: #f3f4f6;
  --text-main: var(--ink);
  --text-secondary: #465e6b;
  --surface-dark: #092234;
  --surface-dark-2: #12364a;
  --text-on-dark: #ffffff;
  --header-bg: rgba(251, 250, 246, 0.85);
  --line: rgba(9, 34, 52, 0.13);
  --line-light: rgba(9, 34, 52, 0.08);
  --shadow-sm: 0 2px 8px rgba(9, 34, 52, 0.08);
  --shadow-md: 0 8px 20px rgba(9, 34, 52, 0.12);
  --shadow-lg: 0 12px 26px rgba(9, 34, 52, 0.18);
  --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] {
  --bg-main: #0a1118;
  --bg-card: #121c26;
  --bg-hover: #1f2937;
  --text-main: #f4f4f5;
  --text-secondary: #a1b0b8;
  --surface-dark: #121c26;
  --surface-dark-2: #1a2836;
  --text-on-dark: #ffffff;
  --header-bg: rgba(10, 17, 24, 0.85);
  --line: rgba(255, 255, 255, 0.1);
  --line-light: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 26px rgba(0, 0, 0, 0.8);
}

/* ============================================================================
   إعادة تعيين وأنماط عامة
   =========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: right;
  transition: var(--transition-theme);
}

/* الترميز العربي */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

body, .sans-serif {
  font-family: 'Cairo', 'Segoe UI', sans-serif;
}

.serif {
  font-family: 'Lora', serif;
}

/* ============================================================================
   الروابط والأزرار
   =========================================================================== */

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-deep);
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  cursor: pointer;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ============================================================================
   رأس الصفحة
   =========================================================================== */

.marketing-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  width: min(1440px, calc(100% - 64px));
  max-width: 100%;
  height: auto;
  min-height: 92px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-theme);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  padding: 1rem 2rem;
}

/* ============================================================================
   الشعار
   =========================================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 44% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  font-size: 25px;
  font-weight: 800;
  transform: rotate(-6deg);
  flex-shrink: 0;
  transition: var(--transition-theme);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}

.brand strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-main);
  transition: var(--transition-theme);
}

.brand small {
  font-size: 8px;
  letter-spacing: 0.3em;
  direction: ltr;
  color: var(--muted);
  font-weight: 600;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
  transition: transform 0.3s ease;
}

/* ============================================================================
   الملاحة
   =========================================================================== */

.site-header nav {
  display: flex;
  gap: 2rem;
  font-size: 14px;
  color: var(--text-secondary);
  justify-content: center;
  flex: 1;
  transition: var(--transition-theme);
}

.site-header nav a {
  position: relative;
  font-weight: 500;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.site-header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.site-header nav a:hover {
  color: var(--teal-deep);
}

.site-header nav a:hover::after {
  width: 100%;
}

/* ============================================================================
   إجراءات الرأس
   =========================================================================== */

.header-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  font-size: 14px;
  flex-shrink: 0;
}

.text-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.text-link:hover {
  background: var(--line-light);
}

/* ============================================================================
   الأزرار
   =========================================================================== */

.button {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--surface-dark);
  border-radius: 6px;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  background: var(--surface-dark-2);
  border-color: var(--surface-dark-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-sm {
  min-height: 43px;
  padding: 0 18px;
  font-size: 13px;
}

.button-ghost {
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
  border-color: transparent;
  transition: var(--transition-theme);
}

.button-ghost:hover {
  background: var(--line-light);
  box-shadow: none;
}

.button-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.button-teal:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

/* ============================================================================
   قسم البطل (Hero Section)
   =========================================================================== */

.hero {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0 5rem;
  position: relative;
}

/* الكرات المضيئة المتحركة (Animated Glow Blobs) */
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float-blob 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(47, 185, 168, 0.3); /* Teal */
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(217, 174, 88, 0.2); /* Gold */
  bottom: 100px;
  left: 20%;
  animation-delay: -5s;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero-copy {
  animation: fadeInUp 0.8s ease 0.2s both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 25px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: fadeInLeft 0.6s ease 0.1s both;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--teal);
}

.hero h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 900;
  overflow: visible;
  padding-block: 0.1em;
  animation: fadeInLeft 0.7s ease 0.2s both;
}

.hero h1 em {
  display: block;
  color: var(--teal-deep);
  font-style: normal;
  position: relative;
  width: fit-content;
  line-height: 1.25;
  padding: 0.08em 0.04em 0.12em;
  overflow: visible;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: -11px;
  right: 5px;
  width: 92%;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.75;
  transform: rotate(-1deg);
}

.hero-lede {
  max-width: 610px;
  margin: 33px 0 28px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  animation: fadeInUp 0.7s ease 0.3s both;
  transition: var(--transition-theme);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.microcopy {
  margin: 13px 3px 0;
  color: var(--muted);
  font-size: 12px;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.trust-row {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  border: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
  animation: fadeInUp 0.6s ease 0.6s both;
  transition: var(--transition-theme);
}

.trust-row span {
  color: var(--teal-deep);
  font-weight: 900;
}

.trust-row li {
  flex: 0 0 auto;
}

.trust-row::-webkit-scrollbar {
  display: none;
}

/* ============================================================================
   المرحلة (Product Stage)
   =========================================================================== */

.product-stage {
  position: relative;
  min-height: 570px;
  background: var(--surface-dark);
  border-radius: 4px 72px 4px 4px;
  padding: 54px 42px 44px;
  isolation: isolate;
  animation: fadeInRight 0.8s ease 0.3s both;
  transition: var(--transition-theme);
}

.product-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image: 
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 44px 44px;
  border-radius: 4px 72px 4px 4px;
}

.product-stage::after {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  top: -60px;
  left: -50px;
  background: var(--teal);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  z-index: -1;
}

.stage-note {
  display: inline-block;
  background: rgba(47, 185, 168, 0.2);
  color: var(--teal-light);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 24px;
  color: white;
}

.dashboard-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.dashboard-topline p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-topline strong {
  font-size: 18px;
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(47, 185, 168, 0.2);
  color: var(--teal-light);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.period-progress {
  margin-bottom: 28px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.progress-meta strong {
  color: white;
  font-weight: 700;
}

.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-track i {
  display: block;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 2px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mini-grid article {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-dot.teal {
  background: var(--teal-light);
}

.mini-grid small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.mini-grid strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

/* ============================================================================
   الحركات والتأثيرات
   =========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   الأنماط المتجاوبة
   =========================================================================== */

@media screen and (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    padding: 3rem 0;
  }

  .product-stage {
    min-height: auto;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    gap: 1rem;
  }

  .header-actions {
    order: 2;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .site-header {
    width: calc(100% - 32px);
    min-height: auto;
    padding: 1rem;
  }

  .site-header nav {
    display: none;
  }

  .header-actions {
    gap: 0.75rem;
  }

  .button-sm {
    padding: 0 12px;
  }

  .hero {
    width: calc(100% - 32px);
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .product-stage {
    padding: 32px 24px;
  }
}

@media screen and (max-width: 480px) {
  .site-header {
    width: calc(100% - 16px);
    padding: 0.75rem 0.5rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .brand strong {
    font-size: 18px;
  }

  .hero {
    width: calc(100% - 16px);
    padding: 1.5rem 0.5rem;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-lede {
    font-size: 14px;
    line-height: 1.6;
  }

  .button {
    padding: 0 16px;
    font-size: 12px;
  }

  .trust-row {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 8px;
    padding-bottom: 4px;
  }
}

/* ============================================================================
   عناصر واجهة المستخدم الإضافية (Dark Mode & Back to Top)
   =========================================================================== */

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--teal);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.theme-toggle:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.theme-toggle .icon-moon {
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

@media screen and (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* ============================================================================
   الويدجتس الديناميكية (Dynamic Widgets)
   =========================================================================== */

/* الشريط المتحرك (Ticker) */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: 12px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  direction: ltr; /* Ensure smooth LTR animation */
}

.ticker {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker__item {
  display: inline-block;
  padding: 0 2rem;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  direction: rtl; /* Keep text RTL */
}

.ticker__item .highlight {
  color: var(--teal-light);
  font-weight: 700;
  margin-right: 5px;
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.stats-section,
.pains-section,
.services-section,
.how-section,
.faqs-section,
.integrations-section,
.pricing-section,
.assessment-section {
  padding: 4rem 2rem;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  background: var(--bg-main);
  border: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-theme);
}

.stat-card.is-visible {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================================================
   مكونات Hero الجديدة (Hero Visual, Floating Cards)
   =========================================================================== */

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
}

.hero-img {
  width: 75%;
  max-width: 450px;
  height: auto;
  margin-inline: auto;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  display: block;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-theme);
  white-space: nowrap;
}

.fc-1 {
  bottom: 15%;
  right: -25px;
  animation: float-card 4s ease-in-out infinite;
}

.fc-2 {
  top: 15%;
  left: -25px;
  animation: float-card 4s ease-in-out infinite 2s;
}

.fc-3 {
  top: -25px;
  right: 15%;
  animation: float-card 4.5s ease-in-out infinite 1s;
}

.fc-4 {
  bottom: -25px;
  left: 15%;
  animation: float-card 4.2s ease-in-out infinite 3s;
}

.fc-5 {
  top: -15px;
  left: 35%;
  animation: float-card 3.8s ease-in-out infinite 0.5s;
}

.fc-6 {
  bottom: -15px;
  right: 35%;
  animation: float-card 4.1s ease-in-out infinite 1.5s;
}

.fc-7 {
  top: 45%;
  right: -15px;
  animation: float-card 4.3s ease-in-out infinite 2.5s;
}

.fc-8 {
  bottom: 45%;
  left: -15px;
  animation: float-card 3.9s ease-in-out infinite 0.8s;
}

.fc-icon { font-size: 22px; }

.fc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition-theme);
}

.fc-sub, .fc-value {
  font-size: 11px;
  color: var(--text-secondary);
  transition: var(--transition-theme);
}

.fc-value {
  font-size: 16px;
  font-weight: 900;
  color: var(--teal);
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ============================================================================
   Blob الثالثة
   =========================================================================== */
.blob-3 {
  width: 200px;
  height: 200px;
  background: rgba(217, 174, 88, 0.15);
  bottom: -50px;
  left: 10%;
  animation: float-blob 25s infinite alternate ease-in-out;
  animation-delay: -10s;
}

/* ============================================================================
   Section Badge وSection Header المحسّن
   =========================================================================== */

.section-badge {
  display: inline-block;
  background: rgba(47, 185, 168, 0.12);
  color: var(--teal);
  border: 1px solid rgba(47, 185, 168, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  transition: var(--transition-theme);
}

[data-theme="dark"] .section-badge {
  background: rgba(47, 185, 168, 0.08);
  border-color: rgba(47, 185, 168, 0.2);
}

.section-header h2 {
  color: var(--text-main) !important;
  transition: var(--transition-theme);
}

.section-header p {
  color: var(--text-secondary) !important;
  transition: var(--transition-theme);
}

/* ============================================================================
   أيقونة الخدمة
   =========================================================================== */

.service-icon-wrap {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

/* ============================================================================
   Blob القسم CTA
   =========================================================================== */

.assessment-section {
  position: relative;
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.cta-blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(47, 185, 168, 0.15);
  top: -100px;
  left: -100px;
  animation: float-blob 18s ease-in-out infinite;
}

.cta-blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(217, 174, 88, 0.1);
  bottom: -100px;
  right: -50px;
  animation: float-blob 22s ease-in-out infinite;
  animation-delay: -5s;
}

/* ============================================================================
   تخطيط Assessment Section
   =========================================================================== */

.assessment-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.assessment-intro h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 16px;
  line-height: 1.25;
  transition: var(--transition-theme);
}

.assessment-intro p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
  transition: var(--transition-theme);
}

.cta-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition-theme);
}

/* ============================================================================
   نموذج محسّن (Form Row)
   =========================================================================== */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

/* ============================================================================
   Button Variants جديدة
   =========================================================================== */

.button-glow {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow: 0 0 0 0 rgba(47, 185, 168, 0.4);
  animation: pulse-glow 2.5s infinite;
}

.button-glow:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  box-shadow: 0 10px 30px rgba(47, 185, 168, 0.35);
  animation: none;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 185, 168, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(47, 185, 168, 0); }
}

.button-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text-main);
  box-shadow: none;
  transition: all 0.25s ease, background-color 0.3s ease, color 0.3s ease;
}

.button-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(47, 185, 168, 0.05);
}

.button-full {
  width: 100%;
}

/* ============================================================================
   Trust Check
   =========================================================================== */

.trust-check {
  color: var(--teal);
  font-weight: 900;
}

/* ============================================================================
   الأسئلة الشائعة (FAQ)
   =========================================================================== */

.faqs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-main);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-theme);
}

.faq-item[open] {
  border-color: var(--teal);
  background: var(--header-bg);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--teal);
}

.faq-item summary {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none; /* إخفاء المثلث الافتراضي */
  transition: var(--transition-theme);
}

.faq-item summary::-webkit-details-marker {
  display: none; /* سفاري */
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--teal);
}

details[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================================================
   How Steps (بديل Timeline)
   =========================================================================== */

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.how-step::after {
  content: '';
  position: absolute;
  top: 32px;
  left: -1rem;
  right: -1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0.2;
}

.how-step:last-child::after {
  display: none;
}

.step-num {
  font-size: 56px;
  font-weight: 900;
  color: var(--teal);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.step-body {
  flex: 1;
}

.step-icon {
  font-size: 28px;
  width: 64px;
  height: 64px;
  background: var(--header-bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--teal);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-theme);
}

.step-body h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 10px;
  transition: var(--transition-theme);
}

.step-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 12px;
  transition: var(--transition-theme);
}

.step-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-details li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  position: relative;
  padding-right: 16px;
}

.step-details li::before {
  content: '•';
  color: var(--teal);
  position: absolute;
  right: 0;
  font-weight: bold;
}

/* ============================================================================
   Card Glow Effect
   =========================================================================== */

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at 50% 50%, rgba(47, 185, 168, 0.08), transparent 70%);
  pointer-events: none;
}

.pain-card, .service-card, .stat-card {
  position: relative;
}

.pain-card:hover .card-glow,
.service-card:hover .card-glow {
  opacity: 1;
}

/* ============================================================================
   Scroll Reveal Animation
   =========================================================================== */

[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-scroll-reveal].is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stat Card محسّن - نفوذ عالي لتجاوز أي تعارض */
.stat-card[data-scroll-reveal].is-visible {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================================================
   حركة قسم كيف نعمل (بواسطة GSAP)
   =========================================================================== */
.how-section {
  overflow: hidden;
}

.how-step {
  /* GSAP will control the opacity and transform */
  will-change: transform, opacity;
}

/* ============================================================================
   Ticker Track محسّن
   =========================================================================== */

.ticker-track {
  overflow: hidden;
  display: block;
  width: 100%;
}

.ticker__sep {
  padding: 0 1rem;
  color: var(--teal);
  opacity: 0.5;
}

/* ============================================================================
   الأنظمة المدعومة (Integrations)
   =========================================================================== */

.integrations-section {
  text-align: center;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.integration-card {
  background: var(--header-bg);
  border: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-theme);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.integration-card.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.6s ease, transform 0.6s ease, var(--transition-theme);
}

.integration-card:hover {
  border-color: var(--teal);
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-lg);
}

.integration-card p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  transition: var(--transition-theme);
}

.int-features {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  text-align: center;
  width: 100%;
}

.int-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--line-light);
}

.int-features li:last-child {
  border-bottom: none;
}

.int-icon {
  font-size: 2rem;
  font-weight: 900;
  color: var(--teal);
  background: rgba(47, 185, 168, 0.1);
  border: 1px solid rgba(47, 185, 168, 0.2);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  transition: var(--transition-theme);
}

/* ============================================================================
   الباقات والأسعار (Pricing)
   =========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-main);
  border: 1px solid var(--line);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-theme);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.6s ease, transform 0.6s ease, var(--transition-theme);
}

.pricing-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.pricing-featured {
  border: 2px solid var(--teal);
  background: var(--header-bg);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.pricing-featured.is-visible {
  opacity: 1 !important;
  transform: scale(1.05) translateY(0) !important;
}

.pricing-featured:hover {
  transform: scale(1.05) translateY(-10px) !important;
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: right;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li span {
  color: var(--teal);
  font-weight: 900;
}

.pricing-features li:last-child {
  border-bottom: none;
}


/* ============================================================================
   فئات المساعدة للتجاوب مع الموبايل | Mobile Responsive Utilities
   =========================================================================== */

/* حاوية الجداول المتجاوبة | Responsive Table Container */
.table-responsive,
.auto-wrapped-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar,
.auto-wrapped-table::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb,
.auto-wrapped-table::-webkit-scrollbar-thumb {
  background: rgba(47, 185, 168, 0.3);
  border-radius: 4px;
}

/* دعم شريط الأمان للهواتف الحديثة | Safe Area Insets Support */
@supports (padding: max(0px)) {
  .dash-topbar {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .dash-footer-nav {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* تعديلات عامة للشاشات الصغيرة | Mobile Global Helpers */
@media screen and (max-width: 768px) {
  .mobile-hide {
    display: none !important;
  }
  .mobile-full-width {
    width: 100% !important;
  }
  .mobile-stack {
    flex-direction: column !important;
  }
}

/* ============================================================================
   الطباعة
   =========================================================================== */

@media print {
  .site-header,
  .header-actions,
  .button {
    display: none;
  }

  body {
    background: white;
  }
}

