:root {
  --bg: #050509;
  --fg: #f7f7fb;
  --muted: #a1a6b6;
  --accent: #4f46e5;
  --border: #232333;
  --card: #0d0d16;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0, #141428 0, #050509 50%, #020208 100%);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: conic-gradient(from 160deg, #4f46e5, #06b6d4, #22c55e, #4f46e5);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 10px 25px rgba(15, 23, 42, 0.8);
}

.brand-inner {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background: radial-gradient(circle at 20% 0, #111827 0, #020617 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  color: #e7e9f5;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
  font-size: 13px;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.nav a:hover {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

.nav a.active {
  border-color: rgba(79, 70, 229, 0.75);
  background: rgba(79, 70, 229, 0.14);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.35);
}

.lang-toggle {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.9);
  color: #e7e9f5;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.lang-toggle:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 1);
}

.main-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 18px 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  margin-bottom: 12px;
}

h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--muted);
}

.lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 820px;
}

p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 720px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.6);
}

.button.primary {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.35), rgba(6, 182, 212, 0.25));
  border-color: rgba(79, 70, 229, 0.55);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(148, 163, 184, 0.35);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
}

.card-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.card-grid.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid:not(.card-grid-2):not(.card-grid-3) {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  border-radius: 14px;
  padding: 14px 14px 16px;
  display: grid;
  gap: 8px;
  height: 100%;
}

.mini-list {
  list-style: disc;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 4px 0 0;
}

.mini-list li {
  margin-bottom: 6px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.panel {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.05));
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.cta-panel {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.trust-note {
  margin-top: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 12px;
  font-size: 13px;
  color: #e8ebff;
  max-width: 720px;
}

.note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.beta-note {
  margin-bottom: 6px;
}

.list {
  margin: 10px 0 8px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.list li {
  margin-bottom: 6px;
}

.section-block {
  margin-bottom: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.article-section {
  max-width: 840px;
  margin: 0 auto 18px;
}

.article-section .article-intro {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
  color: var(--muted);
}

.article-section.article-model .article-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
}

.article-section.article-model .article-list li {
  margin-bottom: 1.4rem;
  line-height: 1.7;
  max-width: 820px;
}

.article-section.article-model .article-list li strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--fg);
}

.article-section.article-model .article-list li span {
  display: inline;
  color: var(--muted);
  font-size: 0.98rem;
}

.article-long {
  white-space: pre-line;
  line-height: 1.75;
  margin-top: 10px;
}

html[lang="en"] .article-section.article-model .article-list li {
  text-align: left;
}

html[lang="ar"] .article-section.article-model .article-list li {
  text-align: right;
}

@media (max-width: 768px) {
  .article-section.article-model {
    padding: 0 1.25rem;
  }
}

/* Model points legacy list */
.model-points {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0 0 18px;
}

.model-points li {
  margin-bottom: 1.3rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 840px;
}

.model-points li strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #e6e9f5;
}

html[lang="en"] .model-points li {
  text-align: left;
}

html[lang="ar"] .model-points li {
  text-align: right;
  padding-right: 1.5rem;
  padding-left: 0;
}

.contact-links {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.contact-links a {
  color: #e7e9f5;
  text-decoration: none;
}

.contact-links a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid rgba(35, 35, 51, 0.8);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.footer-group {
  display: grid;
  gap: 4px;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] .site-footer {
  text-align: right;
}

@media (max-width: 720px) {
  .page {
    padding: 18px 14px 32px;
  }

  h1 {
    font-size: clamp(24px, 6vw, 30px);
  }

  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-panel {
    flex-direction: column;
  }

  .cta-row {
    width: 100%;
  }
}
/* كونتينر للنص: عرض مريح ومركّز في النص */
.article-body {
  max-width: 720px;      /* لا تخلي السطر عريض بزيادة */
  margin: 0 auto;        /* يوسّط الكونتينر في الصفحة */
  line-height: 1.7;      /* مسافة مريحة بين الأسطر */
  font-size: 1rem;       /* عدّل حسب التصميم */
}

/* الفقرات داخل المقال – انجليزي افتراضي */
.article-body p {
  margin-bottom: 1.2rem;
  text-align: left;      /* تماشيًا مع اللغة الإنجليزية */
}

/* لو عندك نص عربي داخل المقال */
.article-body p[dir="rtl"] {
  text-align: justify;   /* أو right لو تفضّل */
}

/* على الشاشات الصغيرة خفّف العرض عشان ما يلصق بالحواف */
@media (max-width: 768px) {
  .article-body {
    padding: 0 1.25rem;
    max-width: 100%;
  }
}
.article-body p {
  margin-bottom: 1.2rem;
  text-align: justify;
  text-justify: inter-word;
}
/* كونتينر لمحتوى المقال */
.article-section {
  max-width: 840px;
  margin: 0 auto;
}

/* فقرة المقدمة تحت العنوان */
.article-section .article-intro {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
  color: var(--muted);
}

/* قائمة النقاط: بدون بوليت قوية، ومحاذاة مثل الخلفية */
.article-section .article-list {
  list-style: none;          /* نشيل الدوائر الافتراضية */
  padding-left: 0;
  margin: 0;
}

/* كل نقطة في النموذج */
.article-section .article-list li {
  margin-bottom: 1.4rem;
  line-height: 1.7;
  color: var(--muted);       /* نفس لون الباك قراوند تكست */
  position: relative;
  padding-left: 1.2rem;      /* مساحة للبوليت الخفيفة */
}

/* بوليت خفيف كأنها خلفية، مو بارز */
.article-section .article-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.3rem;
  font-size: 1.1rem;
  opacity: 0.4;              /* خفيف، ما يجذب العين بقوة */
}

/* عنوان كل نقطة */
.article-section .article-list li strong {
  display: block;
  font-weight: 600;
  color: var(--fg);          /* أو خله muted لو تبي أهدى */
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

/* نص النقطة نفسها */
.article-section .article-list li span {
  display: inline;
  font-size: 0.98rem;
}

/* موبايل: شوية تنفس من الجوانب */
@media (max-width: 768px) {
  .article-section {
    padding: 0 1.25rem;
  }
}/* هذه على الـ <ul> اللي فيه النقاط */
.article-list {
  list-style: disc;        /* أو غيره إذا تبي */
  margin: 0;
  padding-left: 1.5rem;    /* مسافة للبوليت */
}

/* كل نقطة */
.article-list li {
  margin-bottom: 1.4rem;
  line-height: 1.7;
  text-align: left;        /* محاذاة يسار للإنجليزي */
}

/* العنوان داخل النقطة يصير سطر مستقل */
.article-list li strong {
  display: block;          /* يخلي العنوان في سطر لوحده */
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* لو تبغى النص يكون اضيق شوية من الكونتينر كله (اختياري) */
.article-list li {
  max-width: 820px;        /* نفس جو الباك قراوند */
}

.references-section {
  max-width: 840px;
  margin: 0 auto;
}

.references-section .references-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  word-break: break-word;
}

.references-section .references-list li {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.references-section .references-list a {
  color: var(--fg);
  text-decoration: underline;
}

.references-section .ref-links {
  margin-top: 0.35rem;
  display: block;
}

html[lang="ar"] .references-section .references-list {
  padding-left: 0;
  padding-right: 1.25rem;
  text-align: right;
}

@media (max-width: 768px) {
  .references-section {
    padding: 0 1.25rem;
  }
}
