/* =====================================================================
   پارس پگاه تجارت — صفحهٔ «دربارهٔ صادرات»
   صفحهٔ دانش‌نامهٔ کوتاه: تعریف هوش مصنوعی (۶ سطر) · انواع صادرات ·
   محوریت خدمات فنی و مهندسی در شانزدهمین نمایشگاه ترکمنستان
   پیشوند این صفحه: .ae-
   ===================================================================== */

/* ---------------------------------------------------------------------
   ۱) هیروی فشرده + کارت «صادرات چیست؟» (توضیح هوش مصنوعی — ۶ سطر)
--------------------------------------------------------------------- */
.ae-hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.ae-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 46% at 82% 6%, rgba(27, 58, 42, 0.5), transparent 68%),
    radial-gradient(38% 34% at 12% 92%, rgba(16, 53, 39, 0.4), transparent 70%);
  pointer-events: none;
}

.ae-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.ae-hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(43, 224, 166, 0.22);
  background: rgba(43, 224, 166, 0.05);
  font-size: 0.8rem; font-weight: 600; color: #a8f0d8;
  letter-spacing: 0.02em;
}

.ae-hero__title { position: relative; margin-top: 20px; }

.ae-hero__latin {
  display: block;
  direction: ltr; text-align: right;
  margin-top: 12px;
  font-family: "Newsreader", serif; font-style: italic;
  font-size: clamp(0.66rem, 1.4vw, 0.8rem); font-weight: 500;
  letter-spacing: 0.32em; color: var(--muted-2);
}

.ae-hero__lead {
  margin: 14px 0 0; max-width: 52ch;
  font-size: clamp(0.95rem, 1.6vw, 1.04rem);
  color: var(--muted); line-height: 2.05;
}

.ae-hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin-top: 22px;
}

.ae-hero__meta-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--hair); background: rgba(255, 255, 255, 0.02);
  font-size: 0.76rem; color: var(--muted); letter-spacing: 0.02em;
}

.ae-hero__meta-item svg { width: 13px; height: 13px; color: var(--teal); }

.ae-hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 26px;
}

/* ── کارت توضیح هوش مصنوعی ─────────────────────────────────────── */
.ae-ai {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px -40px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

/* قاب گرادیانی زمردی–طلایی */
.ae-ai::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(43, 224, 166, 0.55), rgba(223, 181, 79, 0.35) 46%, rgba(43, 224, 166, 0.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* هالهٔ داخلی */
.ae-ai::after {
  content: "";
  position: absolute; inset: -40% -20% auto auto; width: 65%; height: 75%;
  background: radial-gradient(closest-side, rgba(43, 224, 166, 0.09), transparent);
  pointer-events: none;
}

.ae-ai__head {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--hair);
}

.ae-ai__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(43, 224, 166, 0.28);
  background: rgba(43, 224, 166, 0.07);
  color: var(--teal);
  box-shadow: 0 0 22px -6px rgba(43, 224, 166, 0.35);
}

.ae-ai__icon svg { width: 21px; height: 21px; }

.ae-ai__title { margin: 0; font-size: 1.12rem; font-weight: 800; color: var(--ink); letter-spacing: 0.01em; }

.ae-ai__sub { margin: 3px 0 0; font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.03em; }

.ae-ai__badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-inline-start: auto;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(223, 181, 79, 0.32);
  background: rgba(223, 181, 79, 0.06);
  font-size: 0.68rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.04em; white-space: nowrap;
}

.ae-ai__badge svg { width: 12px; height: 12px; }

.ae-ai__lines { position: relative; margin: 0; padding: 0; list-style: none; }

.ae-ai__line {
  display: flex; gap: 13px; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair-2);
}

.ae-ai__line:last-child { border-bottom: 0; }

.ae-ai__n {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(43, 224, 166, 0.24);
  background: rgba(43, 224, 166, 0.05);
  font-size: 0.68rem; font-weight: 800; color: #8ff5d0;
  transform: translateY(3px);
}

.ae-ai__txt { margin: 0; font-size: 0.9rem; color: #cdd4d0; line-height: 1.95; }

.ae-ai__txt b, .ae-ai__txt strong { color: var(--ink); font-weight: 700; }

.ae-ai__foot {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-size: 0.72rem; color: var(--muted-2);
}

.ae-ai__foot svg { width: 13px; height: 13px; color: var(--muted-2); flex: 0 0 auto; }

/* ---------------------------------------------------------------------
   ۲) انواع صادرات — چهار خانواده
--------------------------------------------------------------------- */
.ae-types__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}

.ae-type { display: flex; flex-direction: column; }

.ae-type__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(43, 224, 166, 0.24);
  background: rgba(43, 224, 166, 0.05);
  color: var(--teal);
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease-out);
}

.ae-type:hover .ae-type__icon {
  box-shadow: 0 0 26px -6px rgba(43, 224, 166, 0.45);
  transform: translateY(-2px);
}

.ae-type__icon svg { width: 22px; height: 22px; }

.ae-type__title { margin: 16px 0 7px; font-size: 1.04rem; font-weight: 800; color: var(--ink); }

.ae-type__desc { margin: 0 0 16px; font-size: 0.86rem; color: var(--muted); line-height: 1.9; }

.ae-type .chips { margin-top: auto; }

/* چیپ شاخصِ «خدمات فنی و مهندسی» — قلب صفحه */
.ae-chip--hot {
  border-color: rgba(43, 224, 166, 0.45);
  background: rgba(43, 224, 166, 0.09);
  color: #8ff5d0;
  font-weight: 700;
  box-shadow: 0 0 18px -8px rgba(43, 224, 166, 0.55);
}

.ae-chip--hot:hover { border-color: rgba(43, 224, 166, 0.7); }

.ae-chip--hot .dot { background: var(--teal); box-shadow: 0 0 9px var(--teal); }

.ae-types__note {
  display: flex; align-items: center; gap: 9px;
  margin-top: 22px;
  font-size: 0.76rem; color: var(--muted-2);
}

.ae-types__note svg { width: 14px; height: 14px; color: var(--muted-2); flex: 0 0 auto; }

/* ---------------------------------------------------------------------
   ۳) خدمات فنی و مهندسی — سه پیام + نوار آمار + پیوند نمایشگاه
--------------------------------------------------------------------- */
.ae-msgs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}

.ae-msg { display: flex; flex-direction: column; }

.ae-msg__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--gold);
}

.ae-msg__kicker::before {
  content: ""; width: 18px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ae-msg__num {
  margin-top: 10px;
  font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05;
  background: var(--teal-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(43, 224, 166, 0.22));
}

.ae-msg__title { margin: 10px 0 9px; font-size: 1.02rem; font-weight: 800; color: var(--ink); }

.ae-msg__desc { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.95; }

/* نوار آمار فشرده */
.ae-statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(26px, 4vw, 40px);
  padding: clamp(18px, 2.6vw, 26px) clamp(14px, 2vw, 24px);
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background: linear-gradient(90deg, rgba(43, 224, 166, 0.05), rgba(255, 255, 255, 0.012) 55%, rgba(223, 181, 79, 0.04));
}

.ae-statbar__item {
  display: flex; flex-direction: column; gap: 6px;
  padding-inline: clamp(10px, 1.6vw, 20px);
  text-align: center;
  border-inline-start: 1px solid var(--hair);
}

.ae-statbar__item:first-child { border-inline-start: 0; }

.ae-statbar__num {
  font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1;
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.ae-statbar__num--teal {
  background: var(--teal-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(43, 224, 166, 0.2));
}

.ae-statbar__cap { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.02em; line-height: 1.7; }

/* کارت پیوند نمایشگاه */
.ae-tie {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin-top: clamp(26px, 4vw, 40px);
  padding: clamp(22px, 3.2vw, 32px);
  border-radius: var(--radius);
  border: 1px solid rgba(223, 181, 79, 0.24);
  background:
    linear-gradient(120deg, rgba(223, 181, 79, 0.07), rgba(43, 224, 166, 0.05) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.ae-tie::after {
  content: "";
  position: absolute; inset: auto -12% -60% auto; width: 42%; height: 130%;
  background: radial-gradient(closest-side, rgba(223, 181, 79, 0.1), transparent);
  pointer-events: none;
}

.ae-tie__body { position: relative; }

.ae-tie__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(223, 181, 79, 0.3);
  background: rgba(223, 181, 79, 0.06);
  font-size: 0.7rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em;
}

.ae-tie__tag .pulse-dot { width: 5px; height: 5px; }

.ae-tie__text { margin: 12px 0 0; font-size: 0.9rem; color: #cdd4d0; line-height: 2; }

.ae-tie__text b, .ae-tie__text strong { color: var(--ink); }

.ae-tie__action { position: relative; flex: 0 0 auto; }

/* ---------------------------------------------------------------------
   ۴) CTA پایانی فشرده
--------------------------------------------------------------------- */
.ae-cta { text-align: center; }

.ae-cta__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 24px;
}

/* ---------------------------------------------------------------------
   واکنش‌گرایی
--------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ae-hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .ae-ai { max-width: 640px; }
  .ae-msgs__grid { grid-template-columns: 1fr 1fr; }
  .ae-msg:last-child { grid-column: 1 / -1; }
  .ae-statbar { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .ae-statbar__item:nth-child(odd) { border-inline-start: 0; }
  .ae-statbar__item:nth-child(-n+2) { border-bottom: 1px solid var(--hair); padding-bottom: 16px; }
  .ae-statbar__item:nth-child(n+3) { padding-top: 16px; }
  .ae-tie { grid-template-columns: 1fr; }
  .ae-tie__action { justify-self: start; }
}

@media (max-width: 768px) {
  .ae-types__grid { grid-template-columns: 1fr; }
  .ae-hero__actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  .ae-msgs__grid { grid-template-columns: 1fr; }
  .ae-msg:last-child { grid-column: auto; }
  .ae-ai__head { flex-wrap: wrap; row-gap: 10px; }
  .ae-ai__badge { margin-inline-start: 0; }
  .ae-statbar { grid-template-columns: 1fr; row-gap: 0; }
  .ae-statbar__item { border-inline-start: 0; border-top: 1px solid var(--hair); padding: 14px 4px; text-align: right; }
  .ae-statbar__item:first-child { border-top: 0; padding-top: 4px; }
  .ae-cta__actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   حرکت‌زدایی برای کاربران حساس
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ae-type__icon, .ae-ai__icon { transition: none; }
  .ae-type:hover .ae-type__icon { transform: none; }
}

/* ---------------------------------------------------------------------
   چاپ
--------------------------------------------------------------------- */
@media print {
  .ae-hero::before, .ae-ai::after, .ae-tie::after { display: none; }
  .ae-hero { padding: 12px 0; }
  .ae-ai, .ae-type, .ae-msg, .ae-statbar, .ae-tie {
    border-color: #ccc; background: #fff; box-shadow: none; backdrop-filter: none;
  }
  .ae-ai__txt, .ae-tie__text { color: #222; }
  .ae-statbar__num, .ae-msg__num { -webkit-text-fill-color: #111; color: #111; filter: none; }
}
