/* ═══════════════════════════════════════════════════════════════
   الف‌سرور — دیزاین‌سیستم لایت | بنفش / آبی / نارنجی
   Pure HTML + CSS — بدون جاوااسکریپت
   ═══════════════════════════════════════════════════════════════ */

/* ─── فونت دستخط (متغیر) — میزبانی محلی ───
   Dastkhat v1.210 — SIL OFL 1.1 — بر پایه وزیرمتن
   https://github.com/dastyar-io/dastkhat-font */
@font-face {
  font-family: 'Dastkhat';
  src: url('../fonts/Dastkhat-Variable.woff2') format('woff2-variations'),
       url('../fonts/Dastkhat-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* پالت برند */
  --purple-700: #6D28D9;
  --purple-600: #7C3AED;
  --purple-500: #8B5CF6;
  --purple-400: #A78BFA;
  --purple-100: #EDE9FE;
  --purple-50:  #F5F3FF;

  --blue-700:   #1D4ED8;
  --blue-600:   #2563EB;
  --blue-500:   #3B82F6;
  --blue-400:   #60A5FA;
  --blue-100:   #DBEAFE;
  --blue-50:    #EFF6FF;

  --orange-600: #EA580C;
  --orange-500: #F97316;
  --orange-400: #FB923C;
  --orange-100: #FFEDD5;
  --orange-50:  #FFF7ED;

  --ink-900: #17123B;
  --ink-800: #241D55;
  --ink-700: #3B3480;
  --ink-500: #6E68A0;
  --ink-400: #8E89B5;

  --bg:      #FAFAFF;
  --surface: #FFFFFF;
  --line:    #EAE8F8;
  --line-2:  #F1EFFB;

  --grad-main: linear-gradient(120deg, var(--purple-600), var(--blue-600));
  --grad-vivid: linear-gradient(120deg, var(--purple-500), var(--blue-500) 55%, var(--orange-400));
  --grad-orange: linear-gradient(120deg, var(--orange-500), #FDBA74);

  --shadow-sm: 0 2px 10px rgba(99, 74, 214, .07);
  --shadow-md: 0 10px 30px -8px rgba(99, 74, 214, .16);
  --shadow-lg: 0 24px 60px -16px rgba(99, 74, 214, .25);
  --shadow-glow-purple: 0 12px 34px -8px rgba(124, 58, 237, .45);
  --shadow-glow-blue:   0 12px 34px -8px rgba(37, 99, 235, .40);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
}

/* ─────────────── ریست ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Dastkhat', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }

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

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--purple-50); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--purple-500), var(--blue-600)); border-radius: 8px; }

:focus-visible { outline: 3px solid var(--purple-400); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ═══════════════ نوار خبر (تایکر) ═══════════════ */
.ticker-bar {
  background: linear-gradient(90deg, var(--purple-700), var(--blue-700) 60%, var(--orange-600));
  color: #fff;
  font-size: .82rem;
  overflow: hidden;
  white-space: nowrap;
}

/* مکانیک مارکی در RTL: ترک از سمت چپ لنگر می‌شود تا حلقه بی‌نهایت پر بماند */
.ticker-bar { direction: ltr; }
.ticker-item { direction: rtl; }

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  padding: 8px 21px;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-item { display: inline-flex; align-items: center; gap: 8px; opacity: .95; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 21px)); }
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot-green  { background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulse 1.8s ease-out infinite; }
.dot-orange { background: var(--orange-400); box-shadow: 0 0 0 0 rgba(251,146,60,.5); animation: pulse 1.8s .6s ease-out infinite; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ═══════════════ هدر ═══════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

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

.brand-mark { filter: drop-shadow(0 6px 14px rgba(124,58,237,.35)); transition: transform .4s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--purple-700), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.5px;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color .25s, background .25s;
  position: relative;
}

.nav-link:hover { color: var(--purple-700); background: var(--purple-50); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: 14px; }

/* برگر — موبایل */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  background: var(--purple-50);
  cursor: pointer;
}
.burger span {
  width: 22px; height: 2.5px;
  border-radius: 4px;
  background: var(--purple-700);
  transition: transform .35s var(--ease-out), opacity .25s;
}
.nav-toggle:checked ~ .nav { max-height: 560px; }
.nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════════ دکمه‌ها ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-spring), box-shadow .3s, background .3s, color .3s, border-color .3s;
}

.btn-lg { padding: 15px 32px; font-size: 1.02rem; border-radius: 16px; }
.btn-sm { padding: 9px 18px; font-size: .88rem; border-radius: 12px; }

.btn-primary {
  background: var(--grad-main);
  background-size: 150% 150%;
  color: #fff;
  box-shadow: var(--shadow-glow-purple);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -10px rgba(124, 58, 237, .55);
  background-position: 100% 100%;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(160%);
  transition: transform .7s ease;
}
.btn-primary:hover::after { transform: translateX(-160%); }

.btn-ghost {
  background: var(--surface);
  color: var(--purple-700);
  border: 1.5px solid var(--purple-200, #DDD6FE);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--purple-400);
  background: var(--purple-50);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-400);
}
.btn-outline:hover { background: var(--blue-50); transform: translateY(-3px); }

.btn-white {
  background: #fff;
  color: var(--purple-700);
  box-shadow: 0 10px 26px -8px rgba(23, 18, 59, .35);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -8px rgba(23,18,59,.4); }

.btn-outline-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }

/* ═══════════════ هیرو ═══════════════ */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: drift 16s ease-in-out infinite alternate;
}
.blob-purple { width: 480px; height: 480px; background: rgba(139, 92, 246, .28); top: -140px; inset-inline-start: -120px; }
.blob-blue   { width: 420px; height: 420px; background: rgba(59, 130, 246, .26); top: 60px; inset-inline-end: -100px; animation-delay: -5s; }
.blob-orange { width: 300px; height: 300px; background: rgba(249, 115, 22, .18); bottom: -80px; inset-inline-start: 30%; animation-delay: -9s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}
.pill-hero {
  background: linear-gradient(90deg, var(--purple-100), var(--blue-100));
  color: var(--purple-700);
  border: 1px solid rgba(139, 92, 246, .25);
  box-shadow: var(--shadow-sm);
}
.pill-ico { color: var(--orange-500); animation: spark 2.4s ease-in-out infinite; }
@keyframes spark {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.25) rotate(-8deg); }
}

.pill-light {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 900;
  line-height: 1.5;
  margin: 20px 0 18px;
  color: var(--ink-900);
}

/* چرخش کلمات — CSS خالص */
.rotator {
  display: inline-block;
  height: 1.55em;
  overflow: hidden;
  vertical-align: bottom;
}
.rotator-list {
  display: block;
  animation: rotor 9s var(--ease-out) infinite;
}
.rotator-list span {
  display: block;
  height: 1.55em;
  line-height: 1.55;
  background: var(--grad-vivid);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

@keyframes rotor {
  0%, 16%    { transform: translateY(0); }
  20%, 36%   { transform: translateY(-20%); }
  40%, 56%   { transform: translateY(-40%); }
  60%, 76%   { transform: translateY(-60%); }
  80%, 100%  { transform: translateY(-80%); }
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--ink-500);
  max-width: 54ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-700);
}
.hero-trust li { display: flex; align-items: center; gap: 7px; }

.tick {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--blue-500));
  color: #fff;
  font-size: .6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* ─── پنل داشبورد (هنر CSS) ─── */
.hero-art { position: relative; padding: 26px 8px; }

.orbit {
  position: absolute;
  border: 1.5px dashed rgba(139, 92, 246, .3);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-1 { width: 105%; height: 88%; top: 0; inset-inline-start: -2%; animation: spin 40s linear infinite; }
.orbit-2 { width: 78%; height: 62%; top: 13%; inset-inline-start: 11%; animation: spin 55s linear infinite reverse; border-color: rgba(59, 130, 246, .28); }

@keyframes spin { to { transform: rotate(360deg); } }

.dash {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dashIn 1s var(--ease-out) both, bob 7s 1s ease-in-out infinite alternate;
}

@keyframes dashIn {
  from { opacity: 0; transform: translateY(40px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

.dash-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(90deg, var(--purple-50), var(--blue-50));
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 11px; height: 11px; border-radius: 50%; }
.dash-dots i:nth-child(1) { background: #FC8181; }
.dash-dots i:nth-child(2) { background: #F6C344; }
.dash-dots i:nth-child(3) { background: #4ADE80; }
.dash-title { font-size: .85rem; font-weight: 700; color: var(--ink-700); flex: 1; }
.dash-badge {
  font-size: .72rem;
  font-weight: 700;
  color: #16A34A;
  background: #DCFCE7;
  padding: 4px 12px;
  border-radius: 999px;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 20px 6px;
}
.metric {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px 14px;
}
.metric-num {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-lbl { font-size: .72rem; color: var(--ink-400); }
.metric-bar {
  display: block;
  height: 6px;
  background: var(--purple-100);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.metric-bar i {
  display: block;
  height: 100%;
  width: var(--w, 40%);
  border-radius: 99px;
  background: var(--grad-main);
  animation: grow 1.4s var(--ease-out) both .4s;
}
@keyframes grow { from { width: 0; } to { width: var(--w, 40%); } }

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 110px;
  padding: 16px 20px 8px;
}
.dash-chart span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--blue-400), var(--purple-500));
  transform-origin: bottom;
  animation: barPulse 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  opacity: .85;
}
.dash-chart span:nth-child(odd) { background: linear-gradient(180deg, var(--purple-400), var(--blue-600)); }
@keyframes barPulse {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(.72); }
}

.dash-list { padding: 8px 20px 20px; }
.dash-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-700);
  padding: 7px 12px;
  border-radius: 10px;
  transition: background .25s;
}
.dash-list li:hover { background: var(--purple-50); }

/* چیپ‌های شناور */
.float-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-700);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: chipFloat 5.5s ease-in-out infinite alternate;
  z-index: 3;
}
.fc-1 { top: 4%;  inset-inline-start: -6%;  animation-delay: 0s;   color: var(--orange-600); }
.fc-2 { top: 26%; inset-inline-end: -7%;    animation-delay: -1.6s; color: var(--blue-700); }
.fc-3 { bottom: 24%; inset-inline-start: -9%; animation-delay: -3s; color: var(--purple-700); }
.fc-4 { bottom: 2%;  inset-inline-end: -3%; animation-delay: -4.4s; color: var(--ink-700); }

@keyframes chipFloat {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-14px) rotate(1.5deg); }
}

/* ─── برندها ─── */
.brands { margin-top: 70px; position: relative; }
.brands-title {
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-400);
  margin-bottom: 18px;
}

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { direction: ltr; }
.brand-chip { direction: rtl; }
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 26s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 8px)); }
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  white-space: nowrap;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .45s ease, opacity .45s ease, transform .45s var(--ease-spring), border-color .3s;
}
.brand-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
  border-color: var(--bc, var(--purple-400));
  box-shadow: 0 10px 26px -10px var(--bc, rgba(124,58,237,.5));
}
.brand-logo b { font-size: 1.02rem; font-weight: 800; color: var(--bc, var(--ink-700)); }
.brand-mark-svg { display: flex; color: var(--bc, var(--purple-600)); }
.brand-mark-svg svg { width: 24px; height: 24px; }
.brand-logo img { max-height: 32px; width: auto; display: block; }

/* ═══════════════ آمار — شمارنده CSS ═══════════════ */
.stats { padding: 30px 0 10px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 38px 30px;
  position: relative;
  overflow: hidden;
}
.stats-grid::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--purple-500), var(--blue-500), var(--orange-500));
}

.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--line);
}

.stat-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  direction: ltr;
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.stat-num small { font-size: 1rem; font-weight: 700; margin-inline-start: 6px; }

.odo {
  display: inline-block;
  height: 1.25em;
  overflow: hidden;
  line-height: 1.25;
}
.odo-strip {
  display: flex;
  flex-direction: column;
  animation: odoCount 1.6s var(--ease-out) both;
}
.odo-strip i {
  display: block;
  height: 1.25em;
  font-style: normal;
  line-height: 1.25;
  /* گرادیان مستقیم روی رقم‌ها — چون متن داخل المان transformشده
     background-clip والد را نمی‌گیرد */
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.odo-sep { transform: translateY(-.12em); }

@keyframes odoCount {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(var(--n, 0) * -1.25em)); }
}

.stat-num .odo:nth-of-type(2) .odo-strip { animation-delay: .12s; }
.stat-num .odo:nth-of-type(3) .odo-strip { animation-delay: .24s; }
.stat-num .odo:nth-of-type(4) .odo-strip { animation-delay: .36s; }
.stat-num .odo:nth-of-type(5) .odo-strip { animation-delay: .48s; }

.stat-lbl { margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-500); }

/* ═══════════════ سکشن‌ها ═══════════════ */
.section { padding: 88px 0; position: relative; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head.right { text-align: right; margin-inline: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--purple-700);
  background: var(--purple-100);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-orange);
  animation: pulse 2s infinite;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.55;
  color: var(--ink-900);
}

.grad-text {
  background: linear-gradient(90deg, var(--purple-600), var(--blue-600), var(--orange-500), var(--purple-600));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradMove 7s linear infinite;
}
@keyframes gradMove {
  from { background-position: 0% 50%; }
  to   { background-position: 300% 50%; }
}

.section-lead { color: var(--ink-500); margin-top: 12px; font-size: .98rem; }

.center-cta { text-align: center; margin-top: 40px; }

/* ═══════════════ سرویس‌ها ═══════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .4s var(--ease-spring), box-shadow .4s, border-color .4s;
  position: relative;
  overflow: hidden;
}

.svc-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--grad-main);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease-out);
}
.svc-card:hover::before { transform: scaleY(1); }

.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-200, #DDD6FE);
}

.svc-ico {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s var(--ease-spring);
}
.svc-card:hover .svc-ico { transform: scale(1.1) rotate(-6deg); }

.ico-purple { background: var(--purple-100); color: var(--purple-600); }
.ico-blue   { background: var(--blue-100);   color: var(--blue-600); }
.ico-orange { background: var(--orange-100); color: var(--orange-500); }
.ico-violet { background: linear-gradient(135deg, var(--purple-100), var(--blue-100)); color: var(--purple-700); }

.svc-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--ink-900); line-height: 1.6; }
.svc-card p  { font-size: .87rem; color: var(--ink-500); flex: 1; }

.svc-link {
  font-size: .87rem;
  font-weight: 700;
  color: var(--purple-700);
  transition: gap .3s, color .3s;
}
.svc-card:hover .svc-link { color: var(--orange-500); }

/* ═══════════════ محصولات ═══════════════ */
.products { background: linear-gradient(180deg, transparent, var(--purple-50) 30%, var(--purple-50) 70%, transparent); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.p-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  position: relative;
  transition: transform .4s var(--ease-spring), box-shadow .4s, border-color .4s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.p-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(139,92,246,.09), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.p-card:hover::after { opacity: 1; }

.p-card:hover {
  transform: translateY(-7px) perspective(700px) rotateX(2.5deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-200, #DDD6FE);
}

.badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  font-size: .7rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-orange { background: var(--orange-100); color: var(--orange-600); }
.badge-purple { background: var(--purple-100); color: var(--purple-700); }
.badge-blue   { background: var(--blue-100);   color: var(--blue-700); }

.p-ico {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600);
  transition: transform .4s var(--ease-spring), background .3s, color .3s;
  margin-top: 18px;
}
.p-card:hover .p-ico {
  transform: scale(1.12) rotate(-8deg);
  background: var(--grad-main);
  color: #fff;
}

.p-card h3 { font-size: 1rem; font-weight: 800; }
.p-card p  { font-size: .85rem; color: var(--ink-500); flex: 1; }

/* ═══════════════ تعرفه‌ها — تب CSS ═══════════════ */
.tabs input { position: absolute; opacity: 0; pointer-events: none; }

.tab-labels {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  width: max-content;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}

.tab-labels label {
  padding: 11px 34px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-500);
  cursor: pointer;
  transition: all .3s var(--ease-out);
  user-select: none;
}
.tab-labels label:hover { color: var(--purple-700); background: var(--purple-50); }

#ptab-1:checked ~ .tab-labels label[for="ptab-1"],
#ptab-2:checked ~ .tab-labels label[for="ptab-2"],
#ptab-3:checked ~ .tab-labels label[for="ptab-3"] {
  background: var(--grad-main);
  color: #fff;
  box-shadow: var(--shadow-glow-purple);
}

.tab-panel { display: none; }

#ptab-1:checked ~ #panel-1,
#ptab-2:checked ~ #panel-2,
#ptab-3:checked ~ #panel-3 {
  display: block;
  animation: fadeUp .5s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .4s var(--ease-spring), box-shadow .4s, border-color .4s;
  position: relative;
}
.plan:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-400);
}

.plan h3 { font-size: 1.12rem; font-weight: 800; }
.plan-tag { font-size: .78rem; color: var(--ink-400); font-weight: 600; }

.plan-price { margin: 16px 0 18px; display: flex; flex-direction: column; gap: 2px; }
.plan-price b {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--ink-900);
}
.plan-price span { font-size: .78rem; color: var(--ink-400); font-weight: 600; }

.plan-feats { margin: 4px 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-feats li {
  font-size: .87rem;
  color: var(--ink-700);
  font-weight: 500;
  padding-inline-start: 26px;
  position: relative;
}
.plan-feats li::before {
  content: "✔";
  position: absolute;
  inset-inline-start: 0;
  top: .1em;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: .58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-500), var(--blue-500));
}

.plan .btn { justify-content: center; }

.plan-featured {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-vivid) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.plan-featured:hover { box-shadow: 0 30px 70px -18px rgba(124, 58, 237, .4); }

.plan-featured .plan-price b {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-badge { top: -14px; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow-md); white-space: nowrap; }

/* ═══════════════ لوکیشن‌ها ═══════════════ */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.loc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: transform .4s var(--ease-spring), box-shadow .4s, border-color .4s;
  position: relative;
  overflow: hidden;
}
.loc-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-400);
}

.loc-flag {
  font-size: 2.1rem;
  display: inline-block;
  animation: flagBob 4s ease-in-out infinite;
}
.loc-card:nth-child(odd) .loc-flag { animation-delay: -2s; }
@keyframes flagBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.loc-card h3 { font-size: 1.05rem; font-weight: 800; margin: 10px 0 6px; }
.loc-card p  { font-size: .82rem; color: var(--ink-500); min-height: 3.4em; }

.loc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.loc-ping {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 4px 12px;
  border-radius: 999px;
}

.loc-status { font-size: .75rem; font-weight: 700; color: #16A34A; display: flex; align-items: center; gap: 6px; }

/* ═══════════════ چرا الف‌سرور ═══════════════ */
.why { background: linear-gradient(180deg, var(--blue-50), var(--bg) 85%); overflow: hidden; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.why-art { position: relative; height: 460px; }

.why-ring {
  position: absolute;
  inset: 10% 6%;
  border: 2px dashed rgba(139, 92, 246, .35);
  border-radius: 50%;
  animation: spin 50s linear infinite;
}

.why-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  text-align: center;
  animation: chipFloat 6s ease-in-out infinite alternate;
}
.why-card b    { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ink-900); }
.why-card small { font-size: .72rem; color: var(--ink-400); font-weight: 600; }

.wc-main {
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  width: 210px;
  padding: 30px 24px;
  background: linear-gradient(150deg, var(--purple-600), var(--blue-600));
  color: #fff;
  border: none;
  animation: none;
  box-shadow: var(--shadow-glow-purple);
}
.wc-main svg { margin: 0 auto 12px; }
.wc-main b   { color: #fff; font-size: 1.2rem; }
.wc-main small { color: rgba(255,255,255,.75); }

.wc-1 { top: 2%;  inset-inline-end: 6%;  animation-delay: -1s; }
.wc-2 { bottom: 8%; inset-inline-end: 0; animation-delay: -2.5s; }
.wc-3 { bottom: 18%; inset-inline-start: 2%; animation-delay: -4s; }

.why-list { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }

.why-list li {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.why-list li:hover { transform: translateX(-6px); box-shadow: var(--shadow-md); border-color: var(--purple-400); }

.why-ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.why-list h3 { font-size: .98rem; font-weight: 800; }
.why-list p  { font-size: .84rem; color: var(--ink-500); }

/* ═══════════════ بنرها ═══════════════ */
.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.banner {
  border-radius: var(--r-xl);
  padding: 42px 38px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
}

.banner-cdn  { background: linear-gradient(130deg, var(--blue-700), var(--blue-500) 55%, var(--purple-500)); }
.banner-paas { background: linear-gradient(130deg, var(--purple-700), var(--purple-500) 55%, var(--orange-500)); }

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.14) 0 60px, transparent 61px),
    radial-gradient(circle at 92% 75%, rgba(255,255,255,.1) 0 36px, transparent 37px),
    radial-gradient(circle at 70% 90%, rgba(255,255,255,.08) 0 22px, transparent 23px);
}

.banner-copy { position: relative; z-index: 2; max-width: 75%; }
.banner-copy h3 { font-size: 1.45rem; font-weight: 900; margin: 14px 0 8px; line-height: 1.6; }
.banner-copy p  { font-size: .9rem; opacity: .85; margin-bottom: 20px; }

.banner-art { position: absolute; inset-inline-end: 24px; top: 0; bottom: 0; width: 160px; }

.globe {
  position: absolute;
  top: 50%; inset-inline-end: 8px;
  transform: translateY(-50%);
  width: 130px; height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.4), transparent 55%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 24px, rgba(255,255,255,.22) 24px 25px);
  border: 1.5px solid rgba(255,255,255,.45);
  animation: spinGlobe 18s linear infinite;
  box-shadow: inset -12px -12px 34px rgba(23,18,59,.3), 0 14px 30px -8px rgba(23,18,59,.4);
}
@keyframes spinGlobe {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 0 480px; }
}

.sat {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #FDBA74;
  box-shadow: 0 0 0 0 rgba(251, 146, 60, .6);
  animation: satPing 2.2s ease-out infinite;
}
.s1 { top: 18%; inset-inline-end: 120px; animation-delay: 0s; }
.s2 { bottom: 16%; inset-inline-end: 130px; animation-delay: 1.1s; background: var(--purple-200, #DDD6FE); box-shadow: 0 0 0 0 rgba(221,214,254,.7); }
@keyframes satPing {
  0%  { box-shadow: 0 0 0 0 rgba(251,146,60,.6); }
  80% { box-shadow: 0 0 0 14px rgba(251,146,60,0); }
  100%{ box-shadow: 0 0 0 0 rgba(251,146,60,0); }
}

.cube {
  position: absolute;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(3px);
  animation: chipFloat 5s ease-in-out infinite alternate;
}
.c1 { width: 64px; height: 64px; top: 14%; inset-inline-end: 22px; }
.c2 { width: 44px; height: 44px; top: 52%; inset-inline-end: 92px; animation-delay: -1.8s; }
.c3 { width: 34px; height: 34px; top: 78%; inset-inline-end: 30px; animation-delay: -3.2s; background: rgba(251,146,60,.4); }

/* ═══════════════ پشتیبانی ═══════════════ */
.support-hero {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(circle at 8% 20%, var(--purple-100), transparent 55%),
    radial-gradient(circle at 95% 80%, var(--orange-100), transparent 50%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 46px 44px;
  margin-bottom: 34px;
}

.support-copy .section-lead { margin-bottom: 26px; }

.support-badge {
  width: 190px; height: 190px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: var(--shadow-glow-purple);
  position: relative;
  flex: none;
}
.support-badge b { font-size: 2.1rem; font-weight: 900; }
.support-badge small { font-size: .74rem; opacity: .85; font-weight: 600; }
.support-badge::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(139, 92, 246, .4);
  animation: spin 24s linear infinite;
}
.support-avatar {
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.s-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: transform .4s var(--ease-spring), box-shadow .4s;
}
.s-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }

.s-ico { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.s-card h3 { font-size: .98rem; font-weight: 800; margin-bottom: 6px; }
.s-card p  { font-size: .83rem; color: var(--ink-500); }

/* ═══════════════ نظرات ═══════════════ */
.testimonials { background: linear-gradient(180deg, var(--bg), var(--purple-50) 40%, var(--bg)); overflow: hidden; }

.t-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.t-marquee, .t-track { direction: ltr; }
.t-card { direction: rtl; }

.t-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: tmove 52s linear infinite;
  padding: 10px 0 20px;
}

/* حلقه بی‌نقص: جبران نصف gap تا پرش نداشته باشیم */
@keyframes tmove {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 10px)); }
}

.t-card {
  width: 360px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--purple-400); }

.t-card blockquote {
  font-size: .88rem;
  color: var(--ink-700);
  line-height: 1.9;
  flex: 1;
}
.t-card blockquote::before { content: "❝"; display: block; font-size: 1.6rem; color: var(--orange-400); line-height: 1; margin-bottom: 8px; }

.t-card figcaption { display: flex; align-items: center; gap: 12px; }
.t-card figcaption b { display: block; font-size: .88rem; }
.t-card figcaption small { color: var(--ink-400); font-size: .76rem; }

.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  flex: none;
}
.ta-1 { background: linear-gradient(135deg, var(--purple-500), var(--purple-700)); }
.ta-2 { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.ta-3 { background: linear-gradient(135deg, var(--orange-400), var(--orange-600)); }
.ta-4 { background: linear-gradient(135deg, #6366F1, var(--purple-600)); }
.ta-5 { background: linear-gradient(135deg, var(--blue-400), var(--purple-500)); }
.ta-6 { background: linear-gradient(135deg, var(--orange-500), #F43F5E); }

/* ═══════════════ بلاگ ═══════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.b-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--ease-spring), box-shadow .4s;
}
.b-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.b-cover {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.b-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.22) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  animation: dotsMove 14s linear infinite;
}
@keyframes dotsMove { to { background-position: 220px 110px; } }
.b-cover svg { position: relative; transition: transform .45s var(--ease-spring); }
.b-card:hover .b-cover svg { transform: scale(1.22) rotate(-7deg); }

.cov-purple { background: linear-gradient(135deg, var(--purple-600), var(--blue-600)); }
.cov-blue   { background: linear-gradient(135deg, var(--blue-600), #0EA5E9); }
.cov-orange { background: linear-gradient(135deg, var(--orange-500), #F43F5E); }

.b-body { padding: 22px; }
.b-meta { font-size: .72rem; font-weight: 700; color: var(--ink-400); }
.b-body h3 { font-size: .98rem; font-weight: 800; margin: 8px 0; line-height: 1.7; }
.b-body p { font-size: .82rem; color: var(--ink-500); }
.b-link { display: inline-block; margin-top: 14px; font-size: .85rem; font-weight: 700; color: var(--purple-700); }
.b-card:hover .b-link { color: var(--orange-500); }

/* ═══════════════ سوالات متداول ═══════════════ */
.faq-wrap { max-width: 820px; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-list details[open] { border-color: var(--purple-400); box-shadow: var(--shadow-md); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: .96rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: color .3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--purple-700); }

.chev {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--purple-50);
  flex: none;
  position: relative;
  transition: transform .35s var(--ease-out), background .3s;
}
.chev::before, .chev::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 2px;
  border-radius: 2px;
  background: var(--purple-700);
  transform: translate(-50%, -50%);
}
.chev::after { transform: translate(-50%, -50%) rotate(90deg); }

details[open] .chev { transform: rotate(180deg); background: var(--grad-main); }
details[open] .chev::before, details[open] .chev::after { background: #fff; }
details[open] .chev::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-list details p {
  padding: 0 24px 22px;
  color: var(--ink-500);
  font-size: .9rem;
  animation: fadeUp .4s var(--ease-out) both;
}

/* ═══════════════ CTA پایانی ═══════════════ */
.cta-panel {
  background: linear-gradient(130deg, var(--purple-700), var(--blue-700) 55%, var(--purple-600));
  border-radius: var(--r-xl);
  padding: 56px 52px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.05fr .92fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: right;
}
.cta-panel h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; margin-bottom: 14px; line-height: 1.6; }
.cta-panel p  { opacity: .85; max-width: 52ch; margin-bottom: 30px; font-size: 1rem; }
.cta-actions { justify-content: flex-start; }

.cta-art { position: relative; padding: 14px 10px 8px; }
.cta-art .dash {
  animation: bob 7s 0.4s ease-in-out infinite alternate;
  box-shadow: 0 34px 80px -26px rgba(23, 18, 59, .55);
}
.cta-art .float-chip { z-index: 3; }
.cfa-1 { top: -12px; inset-inline-start: -12px; }
.cfa-2 { bottom: -8px; inset-inline-end: -10px; }

.cta-grad {
  background: linear-gradient(90deg, var(--orange-400), #FDBA74, var(--orange-400));
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradMove2 4s linear infinite;
}
@keyframes gradMove2 {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }

.cta-ring {
  position: absolute;
  border: 1.5px dashed rgba(255,255,255,.25);
  border-radius: 50%;
  pointer-events: none;
}
.r1 { width: 480px; height: 480px; top: -240px; inset-inline-start: -140px; animation: spin 30s linear infinite; }
.r2 { width: 380px; height: 380px; bottom: -200px; inset-inline-end: -110px; animation: spin 40s linear infinite reverse; }

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: linear-gradient(120deg, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 60%);
}

/* ═══════════════ فوتر ═══════════════ */
.footer {
  background: linear-gradient(180deg, var(--bg), var(--purple-50));
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 36px;
}

.f-brand p { font-size: .87rem; color: var(--ink-500); margin: 18px 0; }

.f-contact { display: flex; flex-direction: column; gap: 10px; font-size: .87rem; font-weight: 600; color: var(--ink-700); }
.f-contact li { display: flex; align-items: center; gap: 10px; }
.f-contact li span {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--purple-100);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  transition: all .3s var(--ease-spring);
}
.f-social a:hover {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) rotate(-6deg);
  box-shadow: var(--shadow-glow-purple);
}

.f-col h4 { font-size: .95rem; font-weight: 800; margin-bottom: 16px; color: var(--ink-900); }
.f-col a {
  display: block;
  font-size: .85rem;
  color: var(--ink-500);
  padding: 5px 0;
  transition: color .25s, transform .25s;
}
.f-col a:hover { color: var(--purple-700); transform: translateX(-4px); }

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .82rem;
  color: var(--ink-400);
}

.f-flags { display: flex; gap: 10px; }
.f-flags i {
  font-style: normal;
  font-size: .74rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-500);
}

/* ═══════════════ بازگشت به بالا ═══════════════ */
.to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-purple);
  z-index: 50;
  transition: transform .3s var(--ease-spring);
}
.to-top:hover { transform: translateY(-5px); }

/* ═══════════════ نمایان‌شدن هنگام اسکرول (CSS خالص) ═══════════════ */
@supports (animation-timeline: view()) {
  .reveal {
    animation: riseUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes riseUp {
    from { opacity: 0; transform: translateY(42px) scale(.965); }
    to   { opacity: 1; transform: none; }
  }
}

/* ═══════════════ ریسپانسیو ═══════════════ */
@media (max-width: 1120px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-art { max-width: 560px; margin: 40px auto 0; }
  .fc-1, .fc-3 { inset-inline-start: 0; }
  .fc-2, .fc-4 { inset-inline-end: 0; }

  .services-grid, .products-grid, .loc-grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan-featured { order: -1; grid-column: span 2; }

  .why-grid { grid-template-columns: 1fr; gap: 30px; }
  .why-art { max-width: 560px; margin-inline: auto; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .f-brand { grid-column: span 2; }
}

@media (max-width: 920px) {
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 74px;
    inset-inline: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 0 24px;
    gap: 6px;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease-out), padding .45s var(--ease-out);
  }
  .nav-toggle:checked ~ .nav {
    max-height: 560px;
    padding: 18px 24px 26px;
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-lg);
  }
  .nav-link { padding: 13px 14px; font-size: 1rem; }
  .nav-item.has-mega > .nav-link { width: 100%; justify-content: space-between; }
  .nav-actions { margin: 14px 0 0; }
  .nav-actions .btn { flex: 1; justify-content: center; }

  /* مگامنو فقط برای دسکتاپ است */
  .mega, .has-mega::after { display: none !important; }
}

@media (max-width: 720px) {
  .container { width: min(1200px, 100% - 36px); }

  .section { padding: 62px 0; }
  .hero { padding-top: 56px; }
  .hero-title { font-size: 1.7rem; }
  .rotator { height: 1.4em; }
  .rotator-list span { height: 1.4em; line-height: 1.4; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; padding: 28px 18px; }
  .stat:not(:last-child)::after { display: none; }
  .stat-num { font-size: 1.9rem; }

  .tab-labels { width: 100%; }
  .tab-labels label { flex: 1; padding: 11px 10px; text-align: center; font-size: .85rem; }

  .plans { grid-template-columns: 1fr; }
  .plan-featured { grid-column: span 1; order: 0; }

  .services-grid, .products-grid, .loc-grid, .support-grid, .blog-grid, .banners-grid { grid-template-columns: 1fr; }

  .support-hero { grid-template-columns: 1fr; padding: 32px 26px; }
  .support-badge { margin-inline: auto; }

  .banner-copy { max-width: 100%; }
  .banner-art { display: none; }
  .banner { min-height: 0; }

  .why-art { height: 400px; }
  .wc-main { width: 180px; }

  .t-card { width: 300px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .f-brand { grid-column: span 1; }
  .footer-bottom { justify-content: center; text-align: center; }

  .to-top { width: 42px; height: 42px; bottom: 86px; inset-inline-start: 16px; }

  /* جا برای باتم‌نویگیشن */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

  .ticker-bar { font-size: .74rem; }
  .ticker-track { padding: 6px 14px; gap: 30px; }

  .cta-panel { padding: 52px 24px; }
  .banner { padding: 34px 26px; }
  .support-hero { padding: 30px 22px; }
  .plan { padding: 26px 20px; }
  .consult-form { padding: 26px 20px; }
}
}

/* ═══════════════ کاهش حرکت ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   صفحات داخلی — هیروی صفحه، جدول‌ها، فرم‌ها و…
   ═══════════════════════════════════════════════════════════════ */

.nav-link.active { color: var(--purple-700); background: var(--purple-100); font-weight: 700; }

/* ─── هیروی صفحه داخلی ─── */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 64px; }

.page-hero-inner { position: relative; text-align: center; max-width: 760px; margin-inline: auto; }

.page-hero h1 {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 16px;
}

.page-hero p { color: var(--ink-500); font-size: 1rem; margin-bottom: 28px; }
.page-hero .hero-cta { justify-content: center; margin-top: 0; }

.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--ink-400);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.crumbs a { color: var(--purple-700); font-weight: 600; transition: color .25s; }
.crumbs a:hover { color: var(--orange-500); }
.crumbs b { color: var(--ink-700); font-weight: 700; }

/* ─── نوار ویژگی زیرساخت ─── */
.infra { padding: 46px 0 0; }

.infra-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}
.infra-strip::before {
  content: "";
  position: absolute;
  top: 0; inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--blue-500), var(--purple-500));
}

.infra-item { display: flex; align-items: center; gap: 14px; }
.infra-ico {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.infra-item b    { display: block; font-size: .95rem; font-weight: 800; }
.infra-item small { color: var(--ink-400); font-size: .78rem; font-weight: 600; }

/* ─── پلن‌های ۳تایی ─── */
.plans-3 { grid-template-columns: repeat(3, 1fr); }

.loc-note {
  text-align: center;
  color: var(--ink-500);
  font-weight: 600;
  font-size: .92rem;
  background: var(--surface);
  border: 1px dashed var(--purple-400);
  border-radius: 999px;
  padding: 12px 28px;
  display: inline-block;
}

/* ─── جدول‌ها ─── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.atable { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .88rem; }

.atable th {
  background: linear-gradient(90deg, var(--purple-50), var(--blue-50));
  color: var(--ink-700);
  font-weight: 800;
  text-align: right;
  padding: 16px 18px;
  white-space: nowrap;
}

.atable td {
  padding: 15px 18px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-700);
  white-space: nowrap;
}

.atable tbody tr { transition: background .25s; }
.atable tbody tr:hover { background: var(--purple-50); }
.atable tr.hl { background: linear-gradient(90deg, var(--purple-50), transparent 70%); }
.atable tr.hl:hover { background: var(--purple-100); }

.atable td.price { font-weight: 800; color: var(--purple-700); font-size: .95rem; }

.atable .ok {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--blue-500));
  color: #fff;
  font-size: .62rem;
  align-items: center;
  justify-content: center;
}

.atable th:first-child { border-start-start-radius: var(--r-lg); }
.atable th:last-child  { border-start-end-radius: var(--r-lg); }

/* ─── جستجوی دامنه ─── */
.search-domain { padding-bottom: 0; }

.d-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 10px;
  max-width: 720px;
  margin-inline: auto;
  transition: border-color .3s, box-shadow .3s;
}
.d-search:focus-within { border-color: var(--purple-400); box-shadow: var(--shadow-lg); }

.d-search-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  color: var(--purple-600);
}

.d-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  min-width: 0;
}
.d-search input::placeholder { color: var(--ink-400); }

.d-search select {
  border: none;
  outline: none;
  background: var(--purple-50);
  color: var(--purple-700);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 14px;
  margin-inline-start: 8px;
  cursor: pointer;
  font-family: inherit;
}

.d-search .btn { flex: none; }

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

.d-hint {
  text-align: center;
  margin-top: 16px;
  color: var(--ink-400);
  font-size: .84rem;
  font-weight: 600;
}

/* ─── مراحل ثبت ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  text-align: center;
  position: relative;
  transition: transform .4s var(--ease-spring), box-shadow .4s, border-color .4s;
}
.step-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--purple-400); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: var(--shadow-glow-purple);
  margin-bottom: 16px;
  animation: pulseNum 3s ease-in-out infinite;
}
@keyframes pulseNum {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,.35); }
  50%      { box-shadow: 0 0 0 12px rgba(124,58,237,0); }
}

.step-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; }
.step-card p  { font-size: .86rem; color: var(--ink-500); }

/* ─── فرم مشاوره ─── */
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.consult-copy .section-lead { margin-bottom: 22px; }

.consult-points { display: flex; flex-direction: column; gap: 14px; }
.consult-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .92rem; color: var(--ink-700); }

.consult-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
}
.consult-form::before {
  content: "";
  position: absolute;
  top: 0; inset-inline: 0;
  height: 4px;
  background: var(--grad-vivid);
}

.f-row { margin-bottom: 18px; }

.f-row label {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.f-row label em { color: var(--orange-500); font-style: normal; }

.f-row input, .f-row textarea, .f-row select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 13px 16px;
  font-size: .92rem;
  background: var(--bg);
  outline: none;
  font-family: inherit;
  transition: border-color .3s, box-shadow .3s, background .3s;
  resize: vertical;
}
.f-row input:focus, .f-row textarea:focus {
  border-color: var(--purple-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .12);
}
.f-row input::placeholder, .f-row textarea::placeholder { color: var(--ink-400); }

.f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn-block { width: 100%; }

.form-note {
  text-align: center;
  font-size: .76rem;
  color: var(--ink-400);
  margin-top: 14px;
}

/* ─── ریسپانسیو صفحات داخلی ─── */
@media (max-width: 1120px) {
  .infra-strip { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .plans-3 { grid-template-columns: repeat(2, 1fr); }
  .plans-3 .plan-featured { order: -1; grid-column: span 2; }
  .consult-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .plans-3 { grid-template-columns: 1fr; }
  .plans-3 .plan-featured { grid-column: span 1; order: 0; }
  .infra-strip { grid-template-columns: 1fr; padding: 22px; }
  .infra-item small { display: none; }
  .f-cols { grid-template-columns: 1fr; }
  .d-search { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .d-search input { min-width: 100%; order: 2; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
  .d-search-ico { display: none; }
  .d-search select { margin-inline-start: 0; order: 1; }
  .d-search .btn { order: 3; flex: 1; }
  .consult-form { padding: 26px 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   مگامنو (دسکتاپ) — الهام از ساختار محصولات
   ═══════════════════════════════════════════════════════════════ */
.nav-item.has-mega { display: flex; }

.nav-link .caret {
  width: 8px; height: 8px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-inline-start: 7px;
  transition: transform .3s var(--ease-out);
  display: inline-block;
}
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(225deg) translateY(-2px); }

.mega {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -18px rgba(99, 74, 214, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s .35s;
  z-index: 80;
}
.mega::before {
  content: "";
  position: absolute;
  top: -14px;
  inset-inline: 0;
  height: 14px;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .mega:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s 0s;
}

.mega-inner {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
  padding: 24px 0 30px;
  display: grid;
  gap: 22px;
}

.mega-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.mega-quick {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 13px 16px;
  transition: border-color .25s, background .25s, transform .25s;
}
.mega-quick:hover { border-color: var(--purple-400); background: var(--purple-50); transform: translateY(-2px); }
.mega-quick b { display: block; font-size: .88rem; color: var(--ink-800); }
.mega-quick small { font-size: .74rem; color: var(--ink-400); font-weight: 600; }

.mega-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.3fr;
  gap: 22px;
}

.mega-col h5 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .92rem;
  font-weight: 800;
  color: var(--ink-900);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.mega-col h5 svg { width: 18px; height: 18px; flex: none; }
.mega-col:nth-child(1) h5 svg { color: var(--purple-600); }
.mega-col:nth-child(2) h5 svg { color: var(--blue-600); }
.mega-col:nth-child(3) h5 svg { color: var(--orange-500); }
.mega-col:nth-child(4) h5 svg { color: var(--purple-700); }

.mega-col a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-500);
  padding: 6.5px 10px;
  border-radius: 10px;
  transition: color .25s, background .25s, transform .25s;
}
.mega-col a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple-300, #C4B5FD);
  transition: background .25s, transform .25s;
  flex: none;
}
.mega-col a:hover { color: var(--purple-700); background: var(--purple-50); transform: translateX(-3px); }
.mega-col a:hover::before { background: var(--orange-500); transform: scale(1.4); }

.mini-badge {
  font-size: .62rem;
  font-weight: 800;
  background: var(--orange-100);
  color: var(--orange-600);
  padding: 2px 9px;
  border-radius: 999px;
  margin-inline-start: auto;
}

.mega-promo {
  background: linear-gradient(145deg, var(--purple-700), var(--blue-600));
  border-radius: 18px;
  padding: 24px 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .35s var(--ease-spring), box-shadow .35s;
}
.mega-promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow-purple); }
.mega-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.5px, transparent 1.6px);
  background-size: 20px 20px;
  mask-image: linear-gradient(120deg, #000, transparent 65%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 65%);
}
.mega-promo > * { position: relative; }
.mega-promo-badge {
  align-self: flex-start;
  background: var(--grad-orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.mega-promo b { font-size: 1.08rem; font-weight: 900; }
.mega-promo p { font-size: .8rem; opacity: .85; line-height: 1.9; }
.mega-promo-link { margin-top: auto; font-size: .85rem; font-weight: 800; color: #FDBA74; }

/* ═══════════════════════════════════════════════════════════════
   باتم‌نویگیشن موبایل
   ═══════════════════════════════════════════════════════════════ */
.bottom-nav { display: none; }
.bn-ck { position: absolute; opacity: 0; pointer-events: none; }
.bn-sheet, .bn-backdrop { display: none; }

@media (max-width: 720px) {
  /* ── نوار اصلی: جمع‌وجور ── */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 90;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 28px rgba(99, 74, 214, .1);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    gap: 4px;
  }

  .bn-item {
    flex: 1;
    max-width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 5px 4px;
    border-radius: 15px;
    color: var(--ink-400);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .3s, background .3s, box-shadow .4s, transform .35s var(--ease-spring);
  }

  .bn-ico {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background .3s, color .3s;
  }
  .bn-ico svg { width: 19px; height: 19px; }

  .bn-lbl { font-size: .64rem; font-weight: 700; letter-spacing: -.2px; }

  /* نشانگر «این آیتم پنل باز می‌کند» */
  .bn-item.bn-sheet-item::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline-start: 50%;
    transform: translateX(50%) rotate(45deg);
    width: 7px; height: 7px;
    border-top: 2px solid var(--orange-400);
    border-inline-start: 2px solid var(--orange-400);
    border-start-start-radius: 2px;
    transition: transform .35s var(--ease-out), border-color .3s;
  }

  /* ── حالت فعال: کپسول گرادیانی با درخشش متحرک ── */
  .bn-item.active,
  #bn-contact:checked ~ .bottom-nav label[for="bn-contact"],
  #bn-services:checked ~ .bottom-nav label[for="bn-services"] {
    background: linear-gradient(115deg, var(--purple-600), var(--blue-600), var(--purple-600));
    background-size: 220% 220%;
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(124, 58, 237, .55);
    animation: bnGlow 5s ease-in-out infinite;
  }
  .bn-item.active .bn-ico,
  #bn-contact:checked ~ .bottom-nav label[for="bn-contact"] .bn-ico,
  #bn-services:checked ~ .bottom-nav label[for="bn-services"] .bn-ico {
    background: rgba(255, 255, 255, .17);
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 9px;
  }
  .bn-item.active .bn-lbl,
  #bn-contact:checked ~ .bottom-nav label[for="bn-contact"] .bn-lbl,
  #bn-services:checked ~ .bottom-nav label[for="bn-services"] .bn-lbl {
    color: #fff;
    font-weight: 800;
  }
  .bn-item.active.bn-sheet-item::before,
  #bn-contact:checked ~ .bottom-nav label[for="bn-contact"]::before,
  #bn-services:checked ~ .bottom-nav label[for="bn-services"]::before {
    transform: translateX(50%) rotate(225deg);
    border-color: transparent;
    border-bottom: 2px solid var(--orange-400);
    border-inline-end: 2px solid var(--orange-400);
    border-start-start-radius: 0;
  }

  @keyframes bnGlow {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 8px 20px -6px rgba(124, 58, 237, .5); }
    50%      { background-position: 100% 50%; box-shadow: 0 10px 26px -6px rgba(37, 99, 235, .6); }
  }

  .bn-item:active { background: var(--purple-50); transform: scale(.94); }
}

/* ── باتم‌شیت‌ها (تماس با ما / خدمات ما) ── */
@media (max-width: 720px) {
  .bn-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(23, 18, 59, .48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  #bn-contact:checked ~ .bn-bd-contact,
  #bn-services:checked ~ .bn-bd-services { opacity: 1; pointer-events: auto; }

  .bn-sheet {
    display: block;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 96;
    background: var(--surface);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -24px 70px rgba(23, 18, 59, .3);
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform .45s var(--ease-out);
    max-height: 76vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #bn-contact:checked ~ #sheet-contact,
  #bn-services:checked ~ #sheet-services { transform: translateY(0); }

  .bn-handle {
    display: block;
    width: 44px; height: 5px;
    border-radius: 99px;
    background: var(--line);
    margin: 2px auto 14px;
  }
  .bn-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .bn-sheet-head b { font-size: 1.02rem; font-weight: 900; color: var(--ink-900); }
  .bn-close {
    width: 36px; height: 36px;
    border-radius: 12px;
    background: var(--purple-50);
    color: var(--purple-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .25s, transform .25s;
  }
  .bn-close:active { background: var(--purple-100); transform: rotate(90deg); }

  .bn-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 10px;
    transition: border-color .25s, background .25s, transform .25s;
  }
  .bn-row:hover, .bn-row:active { border-color: var(--purple-400); background: var(--purple-50); }
  .bn-row-ico {
    width: 42px; height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
  }
  .bn-row-body { flex: 1; min-width: 0; }
  .bn-row-body b { display: block; font-size: .87rem; color: var(--ink-900); }
  .bn-row-body small {
    display: block;
    color: var(--ink-400);
    font-size: .78rem;
    font-weight: 600;
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
  }
  .bn-row-go { margin-inline-start: auto; color: var(--purple-500); font-weight: 800; font-size: .9rem; flex: none; }

  .bn-sheet h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 800;
    color: var(--ink-800);
    margin: 16px 2px 10px;
  }
  .bn-sheet h5::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--grad-orange);
  }
  .bn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .bn-chips a {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink-700);
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 9px 16px;
    border-radius: 999px;
    transition: all .25s;
  }
  .bn-chips a:active, .bn-chips a:hover {
    color: var(--purple-700);
    border-color: var(--purple-400);
    background: var(--purple-50);
    transform: translateY(-1px);
  }

  .bn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    background: var(--grad-main);
    color: #fff;
    font-weight: 800;
    font-size: .92rem;
    box-shadow: var(--shadow-glow-purple);
  }
}

/* ═══════════════════════════════════════════════════════════════
   فوتر کامل (لیست خدمات) — نسخه بازطراحی‌شده
   ═══════════════════════════════════════════════════════════════ */
.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.05fr;
  gap: 0;
  align-items: start;
  background:
    radial-gradient(circle at 92% 8%, rgba(139, 92, 246, .10), transparent 46%),
    radial-gradient(circle at 6% 92%, rgba(59, 130, 246, .10), transparent 46%),
    var(--surface);
  border: 1px solid var(--purple-100);
  border-radius: var(--r-xl);
  padding: 34px 34px 30px;
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
}
.footer-top::before {
  content: "";
  position: absolute;
  top: 0; inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--blue-500), var(--purple-500));
}
.footer-top > * + * {
  border-inline-start: 1px dashed rgba(139, 92, 246, .28);
}
.f-brand { padding-inline-end: 30px; }
.f-quick  { padding-inline: 30px; }
.f-status { padding-inline-start: 30px; }

.f-quick-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 14px;
}
.f-quick-title::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-orange);
}

.f-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--purple-100);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: transform .3s var(--ease-spring), box-shadow .3s, border-color .3s;
}
.f-mini:hover {
  transform: translateY(-2px);
  border-color: var(--purple-400);
  box-shadow: var(--shadow-md);
}
.f-mini-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.f-mini-body b { display: block; font-size: .85rem; color: var(--ink-900); }
.f-mini-body small { color: var(--ink-400); font-size: .78rem; font-weight: 700; direction: ltr; unicode-bidi: plaintext; }

.f-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.f-status .f-status-head { margin-bottom: 4px; }
.f-status-row {
  background: var(--bg);
  border: 1px solid var(--purple-100);
  border-radius: 12px;
  padding: 10px 14px;
}
.f-status-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .95rem; color: var(--ink-800); }
.f-status-row { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--ink-500); font-weight: 600; }
.f-status-row b { color: #16A34A; display: flex; align-items: center; gap: 7px; }
.f-status-row + .f-status-row { border-top: 1px dashed var(--purple-100); padding-top: 10px; }
.f-status .f-btn {
  align-self: flex-start;
  font-size: .8rem;
  font-weight: 700;
  color: var(--purple-700);
  background: var(--surface);
  border: 1px solid var(--purple-200, #DDD6FE);
  padding: 7px 16px;
  border-radius: 999px;
  transition: background .25s, transform .25s;
}
.f-status .f-btn:hover { background: var(--purple-100); transform: translateY(-2px); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 18px;
}

.footer-links .f-col h4 { font-size: .9rem; margin-bottom: 12px; }
.footer-links .f-col a { font-size: .8rem; padding: 3.5px 0; }

/* ═══════════════════════════════════════════════════════════════
   بلاگ — آرشیو و مقاله
   ═══════════════════════════════════════════════════════════════ */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -20px 0 44px;
}
.cat-chips a {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-500);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 20px;
  border-radius: 999px;
  transition: all .3s var(--ease-out);
}
.cat-chips a:hover { color: var(--purple-700); border-color: var(--purple-400); transform: translateY(-2px); }
.cat-chips a.on {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-purple);
}

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.b-card .badge { position: static; align-self: flex-start; margin: 18px 18px 0; }

.b-card .b-body .badge { margin: 0 0 10px; align-self: flex-start; }

.b-grid-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* مقاله ویژه */
.feat-post {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 46px;
  transition: box-shadow .35s, transform .35s;
}
.feat-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feat-cover {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.feat-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  animation: dotsMove 14s linear infinite;
}
.feat-cover svg { position: relative; width: 84px; height: 84px; filter: drop-shadow(0 10px 22px rgba(23,18,59,.35)); }
.feat-body { padding: 34px 34px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.feat-body h3 { font-size: 1.35rem; font-weight: 900; line-height: 1.7; }
.feat-body p { font-size: .92rem; color: var(--ink-500); }
.b-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .76rem; font-weight: 700; color: var(--ink-400); margin-top: 6px; }
.b-meta-row span { display: inline-flex; align-items: center; gap: 6px; }

/* خبرنامه */
.newsletter {
  background: linear-gradient(140deg, var(--purple-700), var(--blue-600));
  border-radius: var(--r-xl);
  padding: 46px 40px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: linear-gradient(120deg, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 60%);
}
.newsletter h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; position: relative; }
.newsletter p { opacity: .85; font-size: .92rem; margin-bottom: 24px; position: relative; }
.nl-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin-inline: auto;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  padding: 8px;
  position: relative;
  backdrop-filter: blur(6px);
}
.nl-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: .92rem;
  padding: 10px 14px;
  min-width: 0;
}
.nl-form input::placeholder { color: rgba(255,255,255,.65); }

/* صفحه‌بندی */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.pagination a {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: .92rem;
  color: var(--ink-500);
  transition: all .3s var(--ease-out);
}
.pagination a:hover, .pagination a.on {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-2px);
}
.pagination a.pg-nav { width: auto; padding: 0 20px; }

/* ─── صفحه داخلی مقاله ─── */
.article-wrap { max-width: 780px; margin-inline: auto; }

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 18px 0 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-400);
}
.article-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .a-author { display: inline-flex; align-items: center; gap: 9px; }
.article-meta .a-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
}
.article-title { text-align: center; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; line-height: 1.7; }

.article-cover {
  height: 320px;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 28px 0 34px;
  box-shadow: var(--shadow-lg);
}
.article-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  animation: dotsMove 16s linear infinite;
}
.article-cover svg { position: relative; width: 72px; height: 72px; }

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink-900);
  margin: 38px 0 16px;
  padding-inline-start: 16px;
  position: relative;
}
.article-body h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .2em;
  bottom: .2em;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--purple-500), var(--blue-500));
}
.article-body h3 { font-size: 1.08rem; font-weight: 800; margin: 26px 0 12px; color: var(--ink-800); }
.article-body p { color: var(--ink-700); font-size: .95rem; line-height: 2.1; margin: 14px 0; }
.article-body ul { margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.article-body ul li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--ink-700);
  font-size: .93rem;
  line-height: 2;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: .72em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad-orange);
  box-shadow: 0 0 0 4px var(--orange-100);
}
.article-body blockquote {
  background: linear-gradient(140deg, var(--purple-50), var(--blue-50));
  border: 1px solid var(--purple-100);
  border-inline-start: 5px solid var(--purple-500);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: .93rem;
  color: var(--ink-700);
  line-height: 2;
}
.article-body blockquote b { color: var(--purple-700); }

.a-tipbox {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 24px 0;
}
.a-tipbox svg { flex: none; color: var(--orange-500); margin-top: 3px; }
.a-tipbox p { margin: 0; font-size: .9rem; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 26px; padding-top: 26px; border-top: 1px dashed var(--line); }
.tags a {
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-500);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 999px;
  transition: all .3s;
}
.tags a:hover { color: var(--orange-600); border-color: var(--orange-400); background: var(--orange-50); }

.share-row { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.share-row b { font-size: .88rem; color: var(--ink-700); margin-inline-end: 4px; }
.share-row a {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  transition: all .3s var(--ease-spring);
}
.share-row a:hover { background: var(--grad-main); color: #fff; border-color: transparent; transform: translateY(-4px) rotate(-6deg); box-shadow: var(--shadow-glow-purple); }

.author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin-bottom: 34px;
}
.author-box .a-avatar-lg {
  width: 74px; height: 74px;
  border-radius: 22px;
  background: var(--grad-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  flex: none;
  box-shadow: var(--shadow-glow-purple);
}
.author-box b { display: block; font-size: 1rem; }
.author-box small { color: var(--orange-600); font-weight: 700; font-size: .78rem; }
.author-box p { font-size: .86rem; color: var(--ink-500); margin: 8px 0 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 60px; }
.post-nav a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.post-nav a:hover { border-color: var(--purple-400); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-nav a small { font-size: .74rem; font-weight: 700; color: var(--ink-400); }
.post-nav a b { font-size: .9rem; color: var(--ink-800); line-height: 1.7; }
.post-nav a.pn-prev { text-align: start; }
.post-nav a.pn-next { text-align: end; }
.post-nav a.pn-prev small { color: var(--purple-700); }
.post-nav a.pn-next small { color: var(--orange-600); }

/* ریسپانسیو بلاگ و مقاله و فوتر جدید */
@media (max-width: 1120px) {
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > * + * { border-inline-start: none; }
  .f-brand, .f-quick, .f-status { padding: 0; }
  .f-quick, .f-status { border-top: 1px dashed rgba(139,92,246,.28); padding-top: 20px; }
  .mega-body { grid-template-columns: repeat(4, 1fr); }
  .mega-promo { grid-column: span 4; }
}

@media (max-width: 720px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .footer-top { grid-template-columns: 1fr; padding: 24px 22px 20px; margin-bottom: 28px; }
  .footer-top > * + * { border-inline-start: none; }
  .f-brand, .f-quick, .f-status { padding: 0; }
  .f-quick, .f-status { border-top: 1px dashed rgba(139,92,246,.28); padding-top: 18px; }
  .f-status { padding: 18px; }

  .feat-post { grid-template-columns: 1fr; }
  .feat-cover { min-height: 200px; }
  .feat-body { padding: 24px 22px; }
  .feat-body h3 { font-size: 1.15rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .b-grid-pad { grid-template-columns: 1fr; }
  .cat-chips { gap: 8px; }
  .cat-chips a { padding: 8px 15px; font-size: .8rem; }
  .newsletter { padding: 36px 22px; }
  .nl-form { flex-direction: column; }
  .nl-form .btn { width: 100%; justify-content: center; }

  .article-cover { height: 210px; }
  .article-cover svg { width: 52px; height: 52px; }
  .article-body h2 { font-size: 1.15rem; }
  .post-nav { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; }
  .pagination a { width: 38px; height: 38px; font-size: .85rem; }
  .pagination .pg-dots { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   سازگاری با وردپرس
   ═══════════════════════════════════════════════════════════════ */
.alef-site img { max-width: 100%; height: auto; }

/* هدر چسبان زیر نوار مدیریت وردپرس */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }

/* تصاویر واقعی داخل کاور کارت‌های بلاگ */
.b-cover img, .article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* صفحه‌بندی وردپرس */
.pagination .page-numbers {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800; font-size: .92rem;
  color: var(--ink-500);
  transition: all .3s var(--ease-out);
  margin-inline: 2px;
  text-decoration: none;
}
.pagination .page-numbers:hover, .pagination .page-numbers.current {
  background: var(--grad-main); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-glow-purple); transform: translateY(-2px);
}
.pagination .page-numbers.prev, .pagination .page-numbers.next { width: auto; padding: 0 20px; }

/* محتوای مقاله در single */
.article-body > * { max-width: 100%; }
.article-body a { color: var(--purple-700); font-weight: 700; }
.article-body img { border-radius: 16px; }
.article-body code { background: var(--purple-50); border: 1px solid var(--purple-100); border-radius: 8px; padding: 2px 8px; font-size: .85em; }

/* آواتار نویسنده وردپرس */
.author-box img { width: 74px; height: 74px; border-radius: 22px; flex: none; box-shadow: var(--shadow-glow-purple); }

/* تگ‌های نوشته */
.article-body .tagcloud a, .tags a { text-decoration: none; }

/* اعلان فرم مشاوره در فرانت */
.alef-form-notice { margin-bottom: 16px; padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.alef-form-notice.ok { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.alef-form-notice.err { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }

/* مگامنو — ستون‌های رنگی با کلاس جدید */
.mega-col.mega-c1 h5 svg { color: var(--purple-600); }
.mega-col.mega-c2 h5 svg { color: var(--blue-600); }
.mega-col.mega-c3 h5 svg { color: var(--orange-500); }
.mega-col.mega-c4 h5 svg { color: var(--purple-700); }

/* ═══════════════ لوگوی سفارشی هدر ═══════════════ */
.brand-mark img.alef-logo-img {
  max-height: 44px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
@media (max-width: 720px) {
  .brand-mark img.alef-logo-img { max-height: 38px; max-width: 150px; }
}

/* ─── CTA دو ستونه — ریسپانسیو ─── */
@media (max-width: 920px) {
  .cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-copy { text-align: center; }
  .cta-copy p { margin-inline: auto; }
  .cta-actions { justify-content: center; }
  .cta-art { max-width: 430px; margin-inline: auto; }
}
