:root {
  --brand-primary: #060d24;
  --brand-secondary: #0b2c5e;
  --brand-accent: #0ea5e9;
  --brand-accent-2: #a855f7;
  --text-muted: #6b7280;
}

* {
  font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 116, 144, 0.16), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(148, 163, 184, 0.18), transparent 50%),
    #030712;
  color: #0f172a;
}

[dir='rtl'] {
  letter-spacing: 0.01em;
}

.page-shell {
  background: #f8fafc;
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.6);
  margin: 24px auto;
  min-height: calc(100vh - 48px);
  width: min(1200px, calc(100% - 32px));
}

@media (max-width: 768px) {
  .page-shell {
    width: calc(100% - 16px);
    border-radius: 20px;
    margin: 10px auto;
  }
}

.hero-gradient {
  background: linear-gradient(135deg, #040719 0%, #0b2c5e 40%, #0f172a 100%);
}

.shadow-soft {
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.25);
}

.glass-panel {
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.22);
}

.glass-panel-dark {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 80, 0.95));
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.7);
  color: #f8fafc;
}

.section-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 720px;
}

.chip {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #0f172a;
  font-size: 0.85rem;
  padding: 0.35rem 0.95rem;
}

.pill-accent {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(14, 116, 144, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #0369a1;
}

.badge-lucid {
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.12);
  border: 1px solid rgba(248, 250, 252, 0.3);
  color: #f9fafb;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #f9fafb;
  border: none;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.6);
}

.cta-secondary {
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.7);
  color: #f9fafb;
}

.card-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-spark {
  position: relative;
  padding-left: 2.2rem;
}

.stat-spark::before {
  content: '';
  position: absolute;
  left: 0.7rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--brand-accent), transparent);
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin: 0.2rem;
  background: rgba(14, 165, 233, 0.12);
  color: #0f172a;
  font-size: 0.82rem;
}

.blog-prose h2,
.blog-prose h3 {
  scroll-margin-top: 100px;
}

.blog-prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
}

.blog-prose h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
}

.blog-prose blockquote {
  border-inline-start: 4px solid #0ea5e9;
  padding-inline-start: 1rem;
  font-style: italic;
  color: #334155;
}
