/* ============================================================
   blog.css — Shared styles for all HyperConnect blog pages
   استدعه في كل مقال: <link rel="stylesheet" href="/blog/blog.css">
   ============================================================ */

/* ============================================
   1. GOOGLE FONTS — استدعاء واحد هنا فقط
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;900&family=Tajawal:wght@400;700;900&display=swap');

/* ============================================
   2. DESIGN TOKENS
   ============================================ */
:root {
  /* Brand */
  --clr-primary:       #7c3aed;
  --clr-primary-soft:  rgba(124, 58, 237, 0.15);
  --clr-accent:        #3bdfc4;
  --clr-accent-soft:   rgba(59, 223, 196, 0.12);
  --clr-danger:        #dc3545;
  --clr-danger-soft:   rgba(220, 53, 69, 0.10);

  /* Surfaces */
  --clr-bg:            #03232f;
  --clr-surface:       #011c27;
  --clr-surface-2:     #051e2a;
  --clr-border:        rgba(124, 58, 237, 0.20);
  --clr-border-light:  rgba(255, 255, 255, 0.06);

  /* Text */
  --clr-text:          #e0e0e0;
  --clr-text-muted:    #8da8b5;
  --clr-text-strong:   #ffffff;

  /* Gradients */
  --grad-primary:      linear-gradient(135deg, #7c3aed 0%, #3bdfc4 100%);
  --grad-surface:      linear-gradient(160deg, #051e2a 0%, #011c27 100%);
  --grad-glow:         radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124,58,237,0.18) 0%, transparent 70%);

  /* Shadows */
  --shadow-card:       0 4px 24px rgba(0, 0, 0, 0.40);
  --shadow-glow:       0 0 40px rgba(124, 58, 237, 0.25);

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 5rem;

  /* Typography */
  --ff-heading:  'Tajawal', sans-serif;
  --ff-body:     'Cairo', sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.35rem;
  --fs-2xl:  1.75rem;
  --fs-3xl:  2.25rem;
  --fs-hero: clamp(1.9rem, 5vw, 3rem);

  /* Layout */
  --content-width: 780px;
  --wide-width:    1100px;

  /* Shape */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;
}

/* ============================================
   3. RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html                   { scroll-behavior: smooth; }
body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a   { color: var(--clr-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ============================================
   4. UTILITY — LAYOUT
   ============================================ */
.container       { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--sp-4); }
.container--wide { max-width: var(--wide-width);    margin: 0 auto; padding: 0 var(--sp-4); }
.flex            { display: flex; }
.flex-center     { display: flex; align-items: center; justify-content: center; }
.flex-between    { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap       { flex-wrap: wrap; }
.flex-col        { flex-direction: column; }
.gap-1           { gap: var(--sp-1); }
.gap-2           { gap: var(--sp-2); }
.gap-3           { gap: var(--sp-3); }
.gap-4           { gap: var(--sp-4); }

/* ============================================
   5. UTILITY — TEXT
   ============================================ */
.text-primary  { color: var(--clr-primary); }
.text-accent   { color: var(--clr-accent); }
.text-muted    { color: var(--clr-text-muted); }
.text-strong   { color: var(--clr-text-strong); }
.text-danger   { color: var(--clr-danger); }
.text-xs       { font-size: var(--fs-xs); }
.text-sm       { font-size: var(--fs-sm); }
.text-base     { font-size: var(--fs-base); }
.text-lg       { font-size: var(--fs-lg); }
.text-xl       { font-size: var(--fs-xl); }
.text-center   { text-align: center; }
.font-bold     { font-weight: 700; }
.font-black    { font-weight: 900; }
.ff-heading    { font-family: var(--ff-heading); }
.lh-tight      { line-height: 1.3; }

/* ============================================
   6. UTILITY — SPACING
   ============================================ */
.mt-1 { margin-top: var(--sp-1); }  .mb-1 { margin-bottom: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }  .mb-2 { margin-bottom: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }  .mb-3 { margin-bottom: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }  .mb-4 { margin-bottom: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }  .mb-5 { margin-bottom: var(--sp-5); }

/* ============================================
   7. UTILITY — BG & BORDERS
   ============================================ */
.bg-surface    { background: var(--clr-surface); }
.bg-surface-2  { background: var(--clr-surface-2); }
.border-p      { border: 1px solid var(--clr-border); }
.border-light  { border: 1px solid var(--clr-border-light); }
.radius-sm     { border-radius: var(--radius-sm); }
.radius-md     { border-radius: var(--radius-md); }
.radius-lg     { border-radius: var(--radius-lg); }
.radius-pill   { border-radius: var(--radius-pill); }

/* ============================================
   8. SECTION SPACING
   ============================================ */
.section       { padding: var(--sp-5) 0; }
.section--sm   { padding: var(--sp-4) 0; }

/* ============================================
   9. COMPONENTS
   ============================================ */

/* --- Navbar --- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(3, 35, 47, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--clr-border-light);
  padding: var(--sp-2) 0;
}
.navbar__logo {
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: var(--fs-xl);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar__cta {
  background: var(--grad-primary);
  color: #fff !important;
  padding: 0.45rem var(--sp-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: opacity .2s;
}
.navbar__cta:hover { opacity: .85; text-decoration: none; }

/* --- Tag / Badge --- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.3rem var(--sp-2);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  background: var(--clr-primary-soft);
  border: 1px solid var(--clr-border);
  color: var(--clr-primary);
}
.tag--accent {
  background: var(--clr-accent-soft);
  border-color: rgba(59,223,196,0.3);
  color: var(--clr-accent);
}

/* --- Hero (article) --- */
.hero {
  position: relative;
  padding: var(--sp-6) 0 var(--sp-5);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-glow);
  pointer-events: none;
}
.hero__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.25;
  color: var(--clr-text-strong);
}
.hero__title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__meta {
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
  margin-top: var(--sp-3);
}
.hero__meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}
.hero__divider {
  height: 1px;
  background: linear-gradient(90deg, var(--clr-primary) 0%, transparent 100%);
  margin-top: var(--sp-4);
  opacity: .35;
}

/* --- Section Title --- */
.section-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--clr-text-strong);
  line-height: 1.3;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--grad-primary);
  border-radius: 2px;
  margin-top: var(--sp-2);
}

/* --- Highlight Box --- */
.highlight {
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  border-right: 4px solid var(--clr-primary);
  background: var(--clr-primary-soft);
}
.highlight--accent  { border-color: var(--clr-accent);  background: var(--clr-accent-soft); }
.highlight--danger  { border-color: var(--clr-danger);  background: var(--clr-danger-soft); }

/* --- Stat Grid & Card --- */
.stat-grid {
  display: grid;
   direction: ltr;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-3);
}



.stat-card {
  direction: rtl;
  background: var(--grad-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.stat-card__num {
  font-family: var(--ff-heading);
  font-size: 1.8rem;
  font-weight: 500;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
 font-size: clamp(1.6rem, 4vw, 2.8rem);
  word-break: break-word; 
}
.stat-card__label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-top: var(--sp-1);
  line-height: 1.4;
}

/* --- Scenario Card --- */
.scenario {
  background: var(--grad-surface);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
}
.scenario__header {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--clr-border-light);
}
.scenario__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.scenario__icon--danger  { background: var(--clr-danger-soft); }
.scenario__icon--success { background: var(--clr-accent-soft); }
.scenario__title    { font-family: var(--ff-heading); font-weight: 700; font-size: var(--fs-lg); color: var(--clr-text-strong); }
.scenario__subtitle { font-size: var(--fs-sm); color: var(--clr-text-muted); }

/* --- Chat Bubbles --- */
.chat { display: flex; flex-direction: column; gap: var(--sp-2); }
.chat__msg {
  max-width: 80%;
  padding: 0.6rem var(--sp-2);
  border-radius: 14px;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.chat__msg--client  { background: rgba(255,255,255,0.06); border: 1px solid var(--clr-border-light); align-self: flex-start; }
.chat__msg--bot     { background: var(--clr-accent-soft); border: 1px solid rgba(59,223,196,0.25);   align-self: flex-end; }
.chat__time         { font-size: 0.7rem; color: var(--clr-text-muted); margin-top: 2px; }
.chat__note {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  font-style: italic;
  padding: var(--sp-2);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* --- Feature List --- */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.feature-list li {
  display: flex; gap: var(--sp-2); align-items: flex-start;
  padding: var(--sp-2) var(--sp-3);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: 1.6;
  transition: border-color .2s;
}
.feature-list li:hover { border-color: var(--clr-border); }
.feature-list__icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

/* --- Article Card (for index page) --- */
.article-card {
  background: var(--grad-surface);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-border);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}
.article-card__category { font-size: var(--fs-xs); color: var(--clr-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.article-card__title    { font-family: var(--ff-heading); font-size: var(--fs-xl); font-weight: 700; color: var(--clr-text-strong); line-height: 1.35; }
.article-card__excerpt  { font-size: var(--fs-sm); color: var(--clr-text-muted); line-height: 1.7; }
.article-card__footer   { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--sp-2); border-top: 1px solid var(--clr-border-light); }
.article-card__date     { font-size: var(--fs-xs); color: var(--clr-text-muted); }
.article-card__read     { font-size: var(--fs-xs); color: var(--clr-accent); font-weight: 700; }

/* --- Article Grid --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4);
}

/* --- CTA Block --- */
.cta-block {
  background: var(--grad-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.cta-block::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-glow);
  pointer-events: none;
}
.cta-block__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--clr-text-strong);
  position: relative;
}
.cta-block__btn {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  background: var(--grad-primary);
  color: #fff !important;
  padding: 0.85rem var(--sp-5);
  border-radius: var(--radius-pill);
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-top: var(--sp-4);
  position: relative;
  transition: opacity .2s, transform .2s;
}
.cta-block__btn:hover { opacity: .9; transform: scale(1.03); text-decoration: none; }

/* --- Prose (article body) --- */
.prose p          { margin-bottom: var(--sp-3); }
.prose strong     { color: var(--clr-text-strong); font-weight: 700; }
.prose em         { color: var(--clr-accent); font-style: normal; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--clr-border-light);
  padding: var(--sp-5) 0;
  text-align: center;
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
}
.footer a { color: var(--clr-accent); }

/* ============================================
   10. RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .container, .container--wide { padding: 0 var(--sp-2); }
  .hero  { padding: var(--sp-5) 0 var(--sp-4); }
  .hero__meta { gap: var(--sp-2); }
  .cta-block  { padding: var(--sp-4) var(--sp-3); }
  .scenario   { padding: var(--sp-3); }
  .article-grid { grid-template-columns: 1fr; }
}

/* ============================================
   11. PARTICLES CANVAS
   ============================================ */

/* أضف <canvas id="particles-canvas"></canvas> أول شيء بعد <body> */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* كل المحتوى يطلع فوق الجزيئات */
body > *:not(#particles-canvas) {
  position: relative;
  z-index: 1;
}

/* ============================================
   12. GLASS CARD
   ============================================ */
.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  padding: var(--sp-4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 223, 196, 0.30);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.28);
}

/* ============================================
   13. STAT BOX (للمقالات — أخف من stat-card)
   ============================================ */
.stat-box {
  text-align: center;
  padding: var(--sp-4) var(--sp-2);
}
.stat-box__num {
  font-family: var(--ff-heading);
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.stat-box__label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-top: var(--sp-1);
}

/* stats-row: 4 أعمدة تتكيف */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}

/* ============================================
   14. SCENARIO GRID (قبل / بعد جنباً لجنب)
   ============================================ */
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
}
.scenario-col__label {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-2);
  color: var(--clr-text-strong);
}
.icon-badge {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.icon-badge--danger  { background: rgba(220, 53, 69, 0.15); }
.icon-badge--success { background: rgba(59, 223, 196, 0.15); }

/* ============================================
   15. CHAT BUBBLES (مُحدَّث — يُستبدل .chat__msg)
   ============================================ */

/* bubble wrapper */
.chat-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* .bubble: بديل .chat__msg — أكثر مرونة */
.bubble {
  max-width: 82%;
  padding: 0.55rem var(--sp-2);
  border-radius: 14px;
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.bubble--client {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bubble--bot {
  align-self: flex-end;
  background: rgba(59, 223, 196, 0.12);
  border: 1px solid rgba(59, 223, 196, 0.22);
}
.bubble--gone {
  align-self: center;
  background: rgba(220, 53, 69, 0.10);
  border: 1px solid rgba(220, 53, 69, 0.20);
  color: var(--clr-text-muted);
  font-style: italic;
  font-size: var(--fs-xs);
  text-align: center;
}

/* ============================================
   16. STEPS (كيف يعمل — خطوات عمودية)
   ============================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
}
.step {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.step__icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(59, 223, 196, 0.18),
    rgba(124, 58, 237, 0.18)
  );
  border: 1px solid rgba(59, 223, 196, 0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.step__body h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text-strong);
  margin-bottom: 4px;
}
.step__body p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ============================================
   17. RULE BOX (قواعد التحكم والتحذيرات)
   ============================================ */
.rule-box {
  border-right: 4px solid var(--clr-accent);
  background: rgba(59, 223, 196, 0.08);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--clr-text);
}
.rule-box--danger {
  border-color: var(--clr-danger);
  background: rgba(220, 53, 69, 0.08);
}

/* ============================================
   18. DIFF GRID (3 بطاقات مميزات)
   ============================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
}
.diff-card {
  padding: var(--sp-3);
  text-align: center;
}
.diff-card__emoji {
  font-size: 2rem;
  margin-bottom: var(--sp-1);
}
.diff-card__title {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--clr-text-strong);
  margin-bottom: 6px;
}
.diff-card__text {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ============================================
   19. ROI BOX
   ============================================ */
.roi-box {
  border: 2px solid rgba(124, 58, 237, 0.40);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.12),
    rgba(59, 223, 196, 0.08)
  );
  margin: var(--sp-5) 0;
  position: relative;
  overflow: hidden;
}
.roi-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgba(124, 58, 237, 0.15),
    transparent
  );
  pointer-events: none;
}
.roi-box p {
  position: relative;
  font-size: var(--fs-base);
  line-height: 1.9;
}
.roi-box strong { color: var(--clr-accent); }

/* ============================================
   20. BTN PRIMARY (زر CTA مستقل)
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-primary);
  color: #fff !important;
  padding: 0.9rem var(--sp-5);
  border-radius: var(--radius-pill);
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: scale(1.03);
  text-decoration: none;
}

/* ============================================
   21. SEC TITLE (عناوين أقسام المقال)
   ============================================ */
.sec { padding: var(--sp-5) 0; }
.sec-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--clr-text-strong);
  margin-bottom: var(--sp-1);
}
.sec-title::after {
  content: '';
  display: block;
  width: 44px; height: 3px;
  background: var(--grad-primary);
  border-radius: 2px;
  margin-top: var(--sp-1);
}

/* ============================================
   22. CTA WRAP (للمقالات — بديل cta-block)
   ============================================ */
.cta-wrap {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  position: relative;
}
.cta-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgba(124, 58, 237, 0.18),
    transparent
  );
  pointer-events: none;
}
.cta-wrap h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--clr-text-strong);
  margin-bottom: var(--sp-2);
  position: relative;
}
.cta-wrap p {
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-base);
  position: relative;
}

/* ============================================
   23. RESPONSIVE — ADDITIONS
   ============================================ */
@media (max-width: 640px) {
  .stats-row      { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid  { grid-template-columns: 1fr; }
  .diff-grid      { grid-template-columns: 1fr; }
  .roi-box        { padding: var(--sp-3); }
}