@charset "UTF-8";
/* =============================================================================
   ژی گروپ — سیستم طراحی
   -----------------------------------------------------------------------------
   ساختار: توکن‌ها → پایه → طرح‌بندی → تایپوگرافی → اجزا → صفحات → واکنش‌گرا
   قاعدهٔ کنتراست: هر رنگ متنی روی زمینه‌اش حداقل ۴٫۵ به ۱ است. مقادیر
   محاسبه‌شده در کامنت کنار هر توکن آمده؛ اگر رنگی اضافه می‌کنید، بسنجید.
   ========================================================================== */

/* ── فونت ──────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── توکن‌ها ───────────────────────────────────────────────────────────── */

:root {
  /* سطوح روشن */
  --paper:        #faf8f4;
  --sand:         #f0ebe2;
  --sand-deep:    #e7e0d3;
  --line:         #ded7ca;
  --line-soft:    #ebe5da;

  /* سطوح تیره */
  --ink:          #0f1720;
  --ink-2:        #18222d;
  --ink-3:        #243040;
  --ink-line:     #2b3644;

  /* متن روی زمینهٔ روشن */
  --text:         #141a21;   /* 16.51 روی paper */
  --muted:        #5c6672;   /*  5.50 روی paper */

  /* رنگ‌های برند */
  --ember:        #c0703a;   /* فقط پرکننده روی زمینهٔ روشن */
  --ember-text:   #8f4a1c;   /*  6.26 روی paper — متن تأکیدی */
  --ember-light:  #e09a61;   /*  7.70 روی ink */
  --teal:         #115c63;   /*  7.24 روی paper */
  --teal-light:   #4fb3b8;   /*  7.28 روی ink */

  /* معنایی — داخل بخش تیره بازتعریف می‌شوند */
  --bg:           var(--paper);
  --fg:           var(--text);
  --fg-muted:     var(--muted);
  --rule:         var(--line);
  --accent:       var(--ember-text);
  --accent-fill:  var(--ember);
  --link:         var(--teal);
  --surface:      #ffffff;
  --surface-2:    var(--sand);

  /* فاصله و شعاع */
  --gap:          clamp(1.5rem, 1rem + 2vw, 2.5rem);
  --pad-x:        clamp(1.125rem, 0.5rem + 3.2vw, 2.75rem);
  --band-y:       clamp(3.5rem, 2rem + 7vw, 7.5rem);
  --r-sm:         6px;
  --r:            10px;
  --r-lg:         18px;

  --maxw:         1200px;
  --maxw-text:    68ch;

  --shadow-sm:    0 1px 2px rgba(15, 23, 32, .05), 0 4px 14px rgba(15, 23, 32, .05);
  --shadow:       0 2px 4px rgba(15, 23, 32, .05), 0 14px 38px rgba(15, 23, 32, .09);

  --ease:         cubic-bezier(.2, .7, .3, 1);

  color-scheme: light;
}

/* بخش‌های تیره: فقط توکن‌های معنایی عوض می‌شوند، نه اجزا */
.band--ink,
.band--ink-2 {
  --bg:          var(--ink);
  --fg:          #f2efe9;      /* 15.72 */
  --fg-muted:    #a8b3be;      /*  8.47 */
  --rule:        var(--ink-line);
  --accent:      var(--ember-light);
  --accent-fill: var(--ember-light);
  --link:        var(--teal-light);
  --surface:     var(--ink-2);
  --surface-2:   var(--ink-3);
  color-scheme: dark;
}
.band--ink-2 { --bg: var(--ink-2); --surface: var(--ink-3); }

/* ── پایه ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 2.02;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .28em; }

:focus-visible {
  outline: 2px solid var(--accent-fill);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--ember); color: #fff; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
  z-index: 999; border-radius: 0 0 var(--r) var(--r);
}
.skip:focus { inset-inline-start: 0; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── طرح‌بندی ──────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap--narrow { max-width: 880px; }

.band {
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--band-y);
  position: relative;
}
.band--tight  { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.band--sand   { --bg: var(--sand); --surface: #fff; }
.band + .band--sand,
.band--sand + .band { border-top: 1px solid var(--line-soft); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ستون متن + ستون کناری — الگوی تکرارشوندهٔ سایت */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* ── تایپوگرافی ────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.006em;
  color: var(--fg);
  text-wrap: balance;
}

.display {
  font-size: clamp(2.05rem, 1.1rem + 3.5vw, 3.85rem);
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -.018em;
}
h1 { font-size: clamp(1.9rem, 1.15rem + 2.9vw, 3.1rem); line-height: 1.34; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.4rem); line-height: 1.38; }
h3 { font-size: clamp(1.2rem, 1.05rem + .65vw, 1.5rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.08rem, 1rem + .5vw, 1.28rem);
  line-height: 1.95;
  color: var(--fg-muted);
  font-weight: 400;
  max-width: var(--maxw-text);
}
.prose { max-width: var(--maxw-text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  margin: 0 0 1.1rem;
  text-transform: none;
}
.eyebrow::before {
  content: '';
  width: 1.6rem; height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}

.kicker {
  font-size: .8rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: .02em;
}

.muted { color: var(--fg-muted); }
.small { font-size: .875rem; line-height: 1.9; }
.tnum  { font-variant-numeric: tabular-nums; }

/* عنوان بخش با خط راهنما */
.section-head { margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); max-width: 46rem; }
.section-head .lead { margin-top: 1rem; }

/* ── دکمه ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .82rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font: inherit;
  font-weight: 600;
  font-size: .97rem;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ember);
  color: #0f1720;              /* 4.83 روی ember */
  border-color: var(--ember);
}
.btn--primary:hover { background: #ad6231; border-color: #ad6231; }

.band--ink .btn--primary,
.band--ink-2 .btn--primary {
  background: var(--ember-light);
  border-color: var(--ember-light);
  color: #14100b;
}
.band--ink .btn--primary:hover,
.band--ink-2 .btn--primary:hover { background: #eeab74; border-color: #eeab74; }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }

.btn--sm { padding: .55rem 1.1rem; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* پیوند با فلش */
.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .95rem;
  color: var(--accent);
}
.arrow-link svg { width: 1em; height: 1em; transition: transform .2s var(--ease); flex: none; }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover svg { transform: translateX(-.22em); }

/* ── سربرگ ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand { margin-inline-end: auto; }   /* فضای آزاد را می‌گیرد تا nav و اکشن‌ها ته خط بنشینند */
.brand__mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 750; font-size: 1.06rem; letter-spacing: -.01em; }
.brand__sub  { font-size: .68rem; color: var(--muted); letter-spacing: .06em; font-weight: 500; }

.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  color: var(--text);
  font-size: .93rem;
  font-weight: 500;
  padding: .5rem .72rem;
  border-radius: var(--r-sm);
  position: relative;
  white-space: nowrap;
}
.nav a:hover { text-decoration: none; background: var(--sand); }
.nav a[aria-current="page"] { color: var(--ember-text); font-weight: 650; }

.header-actions { display: flex; align-items: center; gap: .55rem; flex: none; }
@media (max-width: 430px) {
  .header-actions .btn { padding-inline: .85rem; font-size: .82rem; }
  .brand__sub { display: none; }
}
.lang-link {
  font-size: .82rem; font-weight: 600; color: var(--muted);
  padding: .4rem .6rem; border-radius: var(--r-sm); letter-spacing: .03em;
}
.lang-link:hover { color: var(--text); background: var(--sand); text-decoration: none; }

.menu-btn {
  display: none;
  width: 2.6rem; height: 2.6rem;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; color: var(--text);
}
.menu-btn svg { width: 1.15rem; height: 1.15rem; }

/* ── قهرمان صفحهٔ اول ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
  background: var(--paper);
}
.hero::before {
  content: '';
  position: absolute;
  inset-block-start: -30%;
  inset-inline-start: -10%;
  width: 65%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
              rgba(192, 112, 58, .1), rgba(192, 112, 58, 0) 62%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset-block-end: -40%;
  inset-inline-end: -15%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
              rgba(17, 92, 99, .09), rgba(17, 92, 99, 0) 62%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero__lead { margin-top: 1.6rem; font-size: clamp(1.1rem, 1rem + .6vw, 1.32rem); }
.hero .btn-row { margin-top: 2.2rem; }

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }

/* نوار اعداد */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}
.fact { background: var(--bg); padding: 1.5rem clamp(1rem, 2vw, 1.75rem); }
.fact__n {
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--fg);
}
.fact__l { font-size: .875rem; line-height: 1.75; color: var(--fg-muted); margin-top: .3rem; }

/* ── کارت ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}
.card--hover:hover {
  border-color: color-mix(in srgb, var(--accent-fill) 45%, var(--rule));
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.card h3 { line-height: 1.5; }
.card p { color: var(--fg-muted); font-size: .97rem; line-height: 1.95; margin: 0; }

.card__icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent-fill) 13%, transparent);
  color: var(--accent);
  flex: none;
}
.card__icon svg { width: 1.4rem; height: 1.4rem; }

/* کارت شماره‌دار (اصول) */
.principle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, .5rem + 2vw, 2.25rem);
  padding-block: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.principle:last-child { border-bottom: 1px solid var(--rule); }
.principle__n {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
  padding-top: .15rem;
  min-width: 2.6rem;
}
.principle h3 { margin-bottom: .7rem; }
.principle p { color: var(--fg-muted); margin: 0; max-width: var(--maxw-text); }

/* ── فهرست نشانه‌دار ───────────────────────────────────────────────────── */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ticks li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  font-size: .96rem;
  line-height: 1.9;
  color: var(--fg-muted);
}
.ticks li::before {
  content: '';
  width: .42rem; height: .42rem;
  border-radius: 50%;
  background: var(--accent-fill);
  margin-top: .78em;
  flex: none;
}

.dash { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.dash li {
  padding-inline-start: 1.15rem;
  border-inline-start: 2px solid var(--rule);
  color: var(--fg-muted);
  font-size: .97rem;
  line-height: 1.95;
}

/* ── جدول تعریف (شناسنامه) ─────────────────────────────────────────────── */

.deflist { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.deflist > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 1rem;
  padding-block: .95rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.deflist dt { color: var(--fg-muted); font-size: .9rem; margin: 0; }
.deflist dd { margin: 0; font-weight: 550; }

/* ── خط زمانی ──────────────────────────────────────────────────────────── */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  inset-block: .9rem 1rem;
  inset-inline-start: calc(.42rem - 1px);
  width: 2px;
  background: var(--rule);
}
.timeline li {
  position: relative;
  padding-inline-start: 2.1rem;
  padding-block: 0 1.9rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: .78rem;
  width: .85rem; height: .85rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-fill);
}
.timeline b { display: block; font-weight: 700; font-size: .95rem; color: var(--accent); }
.timeline span { color: var(--fg-muted); font-size: .97rem; }

/* ── دیوار مشتریان ─────────────────────────────────────────────────────── */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: .75rem;
}
.logo-cell {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  min-height: 6.75rem;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 1.3rem 1rem;
  gap: .28rem;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.logo-cell:hover {
  border-color: color-mix(in srgb, var(--accent-fill) 45%, var(--rule));
  transform: translateY(-2px);
}
.logo-cell img {
  max-height: 2.6rem; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .85;
}
.logo-cell:hover img { filter: none; opacity: 1; }
.logo-cell__name {
  font-weight: 650;
  font-size: .99rem;
  line-height: 1.6;
  color: var(--fg);
  letter-spacing: -.005em;
}
.logo-cell__sector { font-size: .74rem; color: var(--fg-muted); line-height: 1.6; }

/* ── کارت برند ─────────────────────────────────────────────────────────── */

.brand-card {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.brand-card:last-of-type { border-bottom: 1px solid var(--rule); }
.brand-card__id { display: flex; flex-direction: column; gap: .5rem; }
.brand-card__name {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.brand-card__latin {
  font-size: .82rem; letter-spacing: .1em; color: var(--fg-muted);
  font-weight: 600; direction: ltr; text-align: start;
}
.brand-card__sector {
  font-size: .84rem; color: var(--accent); font-weight: 600;
}
.brand-card__art { margin-top: .5rem; border-radius: var(--r); overflow: hidden; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.tag {
  font-size: .78rem;
  padding: .26rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── چیپ پشتهٔ فناوری ──────────────────────────────────────────────────── */

.stack-group + .stack-group { margin-top: 1.75rem; }
.stack-group h4 { color: var(--accent); font-size: .88rem; margin-bottom: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  font-size: .82rem;
  padding: .34rem .8rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--fg-muted);
  background: var(--surface);
  direction: ltr;
  line-height: 1.75;
}
.chip:lang(fa) { direction: rtl; }

/* ── کارت مقاله ────────────────────────────────────────────────────────── */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent-fill) 40%, var(--rule));
  text-decoration: none;
}
.post-card__cover { aspect-ratio: 16 / 9; background: var(--sand); overflow: hidden; }
.post-card__cover img,
.post-card__cover svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card__cat {
  font-size: .76rem; font-weight: 650; color: var(--accent); letter-spacing: .01em;
}
.post-card__title {
  font-size: 1.08rem; font-weight: 650; line-height: 1.72; color: var(--fg);
  letter-spacing: -.005em;
}
.post-card__sum { font-size: .9rem; line-height: 1.88; color: var(--fg-muted); margin: 0; }
.post-card__meta {
  margin-top: auto; padding-top: .9rem;
  display: flex; gap: .6rem; align-items: center;
  font-size: .78rem; color: var(--fg-muted);
  border-top: 1px solid var(--line-soft);
}
.post-card__meta span + span::before { content: '·'; margin-inline-end: .6rem; opacity: .6; }

/* مقالهٔ شاخص */
.post-feature {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.post-feature:hover { border-color: color-mix(in srgb, var(--accent-fill) 40%, var(--rule)); box-shadow: var(--shadow); text-decoration: none; }
.post-feature__cover { aspect-ratio: 4 / 3; height: 100%; }
.post-feature__cover img, .post-feature__cover svg { width: 100%; height: 100%; object-fit: cover; }
.post-feature__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); padding-inline-start: 0; display: flex; flex-direction: column; gap: .85rem; }

/* فیلتر دسته */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.filter {
  font: inherit; font-size: .88rem; font-weight: 550;
  padding: .42rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.filter:hover { border-color: var(--fg); color: var(--fg); }
.filter[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #f2efe9;
}

/* ── متن مقاله ─────────────────────────────────────────────────────────── */

.article { max-width: var(--maxw-text); margin-inline: auto; }
.article > * + * { margin-top: 1.35rem; }
.article h2 {
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem);
  margin-top: 2.75rem;
  line-height: 1.55;
}
.article h3 { font-size: 1.15rem; margin-top: 2rem; line-height: 1.7; }
.article h4 { margin-top: 1.5rem; }
.article p { line-height: 2.15; margin: 0; }
.article ul, .article ol { margin: 0; padding-inline-start: 1.4rem; }
.article li { margin-bottom: .6rem; line-height: 2.1; }
.article li::marker { color: var(--accent); }
.article a { text-decoration: underline; text-underline-offset: .25em; }
.article blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-inline-start: 3px solid var(--ember);
  background: var(--sand);
  border-radius: 0 var(--r) var(--r) 0;
}
.article blockquote p { margin: 0; font-size: 1.05rem; }
.article .callout {
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.article figure { margin: 2rem 0; }
.article figure img { border-radius: var(--r); }
.article figcaption { font-size: .84rem; color: var(--muted); margin-top: .6rem; text-align: center; }
.article pre {
  background: var(--ink); color: #f2efe9; padding: 1.1rem 1.25rem;
  border-radius: var(--r); overflow-x: auto; direction: ltr; text-align: left;
  font-size: .86rem; line-height: 1.8;
}
.article code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .88em; direction: ltr; unicode-bidi: isolate;
}
.article :not(pre) > code {
  background: var(--sand-deep); padding: .1em .4em; border-radius: 4px;
}

.table-wrap { overflow-x: auto; margin: 1.75rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: .7rem .9rem; border: 1px solid var(--line); text-align: start; }
th { background: var(--sand); font-weight: 650; }

.article-head { text-align: center; max-width: 46rem; margin-inline: auto; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center;
  font-size: .84rem; color: var(--muted); margin-top: 1.1rem;
}
.article-meta span + span::before { content: '·'; margin-inline-end: .55rem; opacity: .6; }
.article-cover {
  margin: clamp(2rem, 1rem + 3vw, 3rem) auto 0;
  max-width: 62rem; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.article-cover img, .article-cover svg { width: 100%; display: block; }

/* ── فرم ───────────────────────────────────────────────────────────────── */

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .9rem; font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--muted); line-height: 1.75; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .97rem;
  padding: .78rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--text);
  width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.95; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(192, 112, 58, .16);
}
.field--half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; }

.alert {
  padding: .95rem 1.2rem;
  border-radius: var(--r);
  border: 1px solid;
  font-size: .93rem;
  line-height: 1.85;
}
.alert--err { background: #fdf1ec; border-color: #e8c2ae; color: #7d3b16; }
.alert--ok  { background: #eef6f2; border-color: #b6d6c6; color: #1c5c40; }

/* ── فراخوان پایانی ────────────────────────────────────────────────────── */

.cta-band { text-align: center; }
.cta-band .display { max-width: 20ch; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; margin-top: 1.25rem; }
.cta-band .btn-row { justify-content: center; margin-top: 2.2rem; }

/* ── پانوشت ────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: #f2efe9;
  --fg: #f2efe9;
  --fg-muted: #a8b3be;
  --rule: var(--ink-line);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr));
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--ink-line);
}
.site-footer .brand { color: #f2efe9; }
.site-footer .brand__sub { color: #a8b3be; }
.footer-about { font-size: .92rem; line-height: 1.95; color: #a8b3be; margin-top: 1.1rem; max-width: 34ch; }
.footer-col h4 { font-size: .85rem; color: #f2efe9; margin-bottom: .95rem; letter-spacing: .01em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer-col li { color: #a8b3be; font-size: .91rem; padding-block: .38rem; }
/* پیوند با margin منفی روی padding آیتم می‌نشیند: هدف لمسی به ~۳۸ پیکسل
   می‌رسد بدون اینکه ارتفاع ردیف بیشتر شود. آیتم‌های بدون پیوند هم
   همان فاصله را دارند. */
.footer-col li > a {
  display: block;
  margin-block: -.38rem;
  padding-block: .38rem;
}
.footer-col a { color: #a8b3be; font-size: .91rem; }
.footer-col a:hover { color: #f2efe9; }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: .82rem; color: #a8b3be;
}
.footer-bottom a { color: #a8b3be; }
.footer-bottom a:hover { color: #f2efe9; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* ── وضعیت خالی (نوشن وصل نیست) ────────────────────────────────────────── */

.empty {
  border: 1px dashed var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  text-align: center;
  color: var(--fg-muted);
  background: var(--surface);
}
.empty h3 { color: var(--fg); margin-bottom: .6rem; }

/* ── صفحهٔ انگلیسی ─────────────────────────────────────────────────────── */

.ltr {
  direction: ltr;
  text-align: left;
}
.ltr body, body.ltr { line-height: 1.72; }
body.ltr h1, body.ltr h2, body.ltr h3 { line-height: 1.18; letter-spacing: -.022em; }
body.ltr .display { line-height: 1.08; }
body.ltr p { line-height: 1.75; }
body.ltr .lead { line-height: 1.68; }
body.ltr .card p, body.ltr .ticks li { line-height: 1.72; }
body.ltr .fact__l { line-height: 1.5; }
body.ltr .footer-about { line-height: 1.7; }

/* ── واکنش‌گرا ─────────────────────────────────────────────────────────── */

@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; order: 9; flex: none; }
  .header-actions { order: 8; }

  .nav.is-open {
    display: flex;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: .6rem var(--pad-x) 1rem;
    box-shadow: var(--shadow);
    margin: 0;
  }
  .nav.is-open a { padding: .8rem .5rem; border-radius: var(--r-sm); font-size: 1rem; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { max-width: min(78vw, 24rem); margin-inline: auto; }
  .split, .split--even { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
  .brand-card { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .post-feature { grid-template-columns: minmax(0, 1fr); }
  .post-feature__body { padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.25rem); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .deflist > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; padding-block: .85rem; }
  .principle { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .field--half { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .footer-bottom { justify-content: flex-start; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .btn, .cta-band .btn { width: 100%; }
  .header-actions .btn { width: auto; }
}

@media print {
  .site-header, .site-footer, .btn-row, .filters { display: none; }
  body { background: #fff; font-size: 11pt; }
  .band { padding-block: 1rem; }
}
