/* =========================================================
   پارس آموز — Design System
   Premium, light, RTL SaaS theme. Vanilla CSS3.
   ========================================================= */

/* ---------- Self-hosted Vazirmatn (no external CDN) ---------- */
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); }

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;

  /* Accents */
  --teal-500:  #14b8a6;
  --teal-600:  #0d9488;
  --violet-500:#8b5cf6;
  --violet-600:#7c3aed;
  --sky-500:   #0ea5e9;
  --amber-500: #f59e0b;
  --rose-500:  #f43f5e;
  --emerald-500:#10b981;

  /* Ink / neutrals */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;

  /* Surfaces */
  --bg:        #f6f8fc;
  --bg-soft:   #eef2f9;
  --surface:   #ffffff;
  --line:      #e6eaf2;
  --line-soft: #eef1f7;

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, #60DBE2 0%, #a6e6eb 100%);
  --grad-teal:   linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
  --grad-warm:   linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --grad-hero:   radial-gradient(1200px 600px at 85% -10%, #e0e7ff 0%, rgba(224,231,255,0) 60%),
                 radial-gradient(900px 500px at 0% 0%, #d9f6f0 0%, rgba(217,246,240,0) 55%);
  --grad-soft:   linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadow */
  --sh-xs: 0 1px 2px rgba(15,23,42,.06);
  --sh-sm: 0 2px 8px rgba(15,23,42,.06);
  --sh-md: 0 12px 30px rgba(15,23,42,.08);
  --sh-lg: 0 24px 60px rgba(15,23,42,.12);
  --sh-brand: 0 16px 40px rgba(79,70,229,.28);

  /* Type */
  --font: "Vazirmatn", -apple-system, "Segoe UI", Tahoma, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.4; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; right: -999px; top: 8px; z-index: 999;
  background: var(--brand-600); color: #fff; padding: 10px 18px; border-radius: var(--r-pill);
}
.skip-link:focus { right: 16px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 70px); }
.section--alt { background: var(--surface); }
.section--soft { background: var(--grad-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 700; color: var(--brand-600);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
h2.h-display, .h-display { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.01em; }
.lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--ink-500); margin: 0; }

.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;  }
.muted { color: var(--ink-500); }

/* AEO answer box — short quotable TL;DR under the H1 (AI Overviews / SearchGPT lift this) */
.answer-box { margin: 18px 0 22px; padding: 15px 18px; border-radius: var(--r-md); background: var(--brand-50); border: 1px solid var(--brand-100); border-inline-start: 4px solid var(--brand-500); }
.answer-box .answer-box-label { display: block; font-size: .78rem; font-weight: 800; color: var(--brand-700); margin-bottom: 5px; }
.answer-box p { margin: 0; color: var(--ink-700); font-size: 1.02rem; line-height: 1.9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(79,70,229,.36); }
.btn-ghost { background: var(--surface); color: var(--ink-800); border-color: var(--line); box-shadow: var(--sh-xs); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand-200); box-shadow: var(--sh-sm); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.btn-soft:hover { background: var(--brand-100); }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-lg { padding: 17px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(255,255,255,.62);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--sh-sm); background: rgba(255,255,255,.80); }
.nav { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink-900); font-size: 1.12rem; }
.brand .logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand); flex: none;
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--ink-500); margin-top: 2px; }
.nav-spacer { flex: 1; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-700);
  background: none; border: none; font-size: .98rem; transition: background .18s, color .18s;
}
.nav-menu > li > a:hover, .nav-trigger:hover, .nav-menu > li.is-open .nav-trigger { background: var(--brand-50); color: var(--brand-700); }
.nav-trigger svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-menu > li.is-open .nav-trigger svg { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Mega dropdown — full-width panel with thumbnails */
.has-mega { position: static; }
.mega {
  position: fixed; inset-inline: 0; top: 72px;
  background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .22s ease;
  z-index: 95;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { max-width: var(--container); margin-inline: auto; padding: 26px var(--gutter) 18px; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mega a { display: block; padding: 10px; border-radius: var(--r-md); transition: background .15s, transform .15s; }
.mega a:hover { background: var(--bg-soft); transform: translateY(-2px); }
.mega-thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10;
  border-radius: 13px; color: #fff; margin-bottom: 11px; overflow: hidden; box-shadow: var(--sh-sm);
}
.mega-thumb .mt-ico { position: relative; z-index: 1; display: grid; place-items: center; }
.mega-thumb svg { width: 30px; height: 30px; }
.mega-thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(140px 70px at 82% 0%, rgba(255,255,255,.30), transparent 70%); }
.mega-thumb::after { content: ""; position: absolute; inset-inline: 14% 14%; inset-block-end: 14%; height: 18%; border-radius: 6px; background: rgba(255,255,255,.22); }
.mega-txt b { display: block; color: var(--ink-900); font-size: .92rem; margin-bottom: 2px; }
.mega-txt span { font-size: .76rem; color: var(--ink-500); line-height: 1.5; }
.mega-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.mega-foot .all { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-600); font-weight: 700; font-size: .92rem; }
.mega-foot .all svg { width: 16px; height: 16px; }
@media (max-width: 1080px) { .mega-grid { grid-template-columns: repeat(3, 1fr); } }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-hero); overflow: hidden; padding-block: clamp(48px, 7vw, 96px); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: var(--brand-200); top: -120px; inset-inline-start: -120px; animation: float 9s ease-in-out infinite; }
.hero::after  { width: 360px; height: 360px; background: #c7f0e8; bottom: -140px; inset-inline-end: -100px; animation: float 11s ease-in-out infinite reverse; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.35; letter-spacing: -.015em; margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.04rem, 1.8vw, 1.28rem); color: var(--ink-600); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--ink-500); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--emerald-500); }

/* ---------- 3D hero (embedded Three.js scene, temporary) ---------- */
.hero-3d { position: relative; width: 100%; background: linear-gradient(135deg, #f8f5ee, #fffaf0 58%, #eee7da); }
.hero-3d-frame { display: block; width: 100%; height: clamp(540px, 86vh, 880px); border: 0; }
.hero-3d-cta { position: absolute; inset-block-end: clamp(18px, 4vh, 40px); inset-inline-end: clamp(16px, 4vw, 54px); z-index: 6; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 720px) {
  .hero-3d-frame { height: clamp(420px, 64vh, 560px); }
  .hero-3d-cta { inset-inline: 12px; inset-block-end: 12px; justify-content: center; }
  .hero-3d-cta .btn { flex: 1; }
}

/* ---------- Placeholder media (no empty visual space) ---------- */
.ph {
  position: relative; border-radius: var(--r-lg); border: 1.5px dashed var(--brand-200);
  background: linear-gradient(135deg, #ffffff, #f2f5fc);
  display: grid; place-items: center; text-align: center; color: var(--ink-500);
  padding: 26px; min-height: 220px; overflow: hidden;
}
.ph .ph-inner { position: relative; z-index: 1; max-width: 80%; }
.ph .ph-ico { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--brand-500); }
.ph b { display: block; color: var(--ink-700); font-size: .96rem; margin-bottom: 4px; }
.ph small { font-size: .8rem; color: var(--ink-400); }
.ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 80% -20%, var(--brand-50), transparent 70%); }
.ph--app { aspect-ratio: 9/16; max-width: 280px; margin-inline: auto; }
.ph--wide { min-height: 340px; }
.ph--shadow { box-shadow: var(--sh-lg); }

/* Browser mock frame */
.mock {
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #fbfcfe; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; display: inline-block; }
.mock-bar i:nth-child(1){ background:#fca5a5;} .mock-bar i:nth-child(2){ background:#fcd34d;} .mock-bar i:nth-child(3){ background:#86efac;}
.mock-bar .url { margin-inline-start: 12px; flex: 1; height: 22px; border-radius: var(--r-pill); background: #eef2f8; font-size: .72rem; color: var(--ink-400); display: flex; align-items: center; padding-inline: 12px; }
.mock-body { padding: 0; }
.mock-body .ph { border: none; border-radius: 0; min-height: 100%; }

/* ---------- Hero / image slider (handles mixed desktop + app sizes) ---------- */
.slider { position: relative; --slide-h: 560px; }
.slider-viewport { overflow: hidden; }
.slider-track { display: flex; direction: ltr; transition: transform .55s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.slide { flex: 0 0 100%; height: var(--slide-h); display: grid; place-items: center; }
/* the image alone — exact dimensions, no container/border, just centered & contained */
.slide-img { max-width: 100%; max-height: var(--slide-h); width: auto; height: auto; display: block; object-fit: contain; }
/* placeholders mimic an image's exact aspect ratio (real <img> uses its own) */
.slide > .slide-img.slide-img--desktop { width: 100%; aspect-ratio: 16 / 10; }
.slide > .slide-img.slide-img--app { height: 100%; aspect-ratio: 9 / 19; }
/* single composite hero graphic (replaces the slider on some feature pages) */
.feature-hero-img { width: 100%; height: auto; display: block; }
/* transparent composite graphic in the home hero (replaces the slider) */
.hero-composite-img { width: 100%; height: auto; display: block; }
/* exam-highlight section: make the media (image) ~1.2x by widening its column */
@media (min-width: 981px) {
  .split.exam-split { grid-template-columns: 1.5fr 1fr; align-items: center; }
}
/* keep the composite large AND give the text a comfortable width: widen the hero
   slightly and rebalance the columns (text floored so it never gets cramped) */
@media (min-width: 981px) {
  .hero .container { max-width: 1320px; }
  .hero .hero-grid { grid-template-columns: minmax(420px, 1fr) 1.7fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
  .hero .hero-composite-img { width: calc(100% + var(--gutter)); max-width: none; margin-inline-end: calc(-1 * var(--gutter)); }
}
/* enlarge the composite ~1.5x: widen its column + a small edge bleed (capped to the
   gutter so it never clips off-screen) */
@media (min-width: 981px) {
  .page-hero .split--media-lg { grid-template-columns: 0.72fr 1.5fr; align-items: center; gap: clamp(20px, 3vw, 40px); }
  .page-hero .split--media-lg .feature-hero-img { width: calc(100% + var(--gutter)); max-width: none; margin-inline-end: calc(-1 * var(--gutter)); }
}
/* <picture> wrapper must not break sizing: let the <img> inside be laid out by
   the .slide grid cell so object-fit:contain fits tall/portrait images fully (no crop) */
.slide > picture { display: contents; }
.slide > .slide-img:not(img) {
  display: grid; place-items: center; text-align: center; color: var(--ink-500); overflow: hidden;
  background: linear-gradient(150deg, #eef2ff, #e7f7f3); border-radius: 8px;
}

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.92); color: var(--ink-800); display: grid; place-items: center;
  box-shadow: var(--sh-sm); backdrop-filter: blur(6px); transition: background .15s, transform .15s, color .15s;
}
.slider-arrow:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }
.slider-arrow svg { width: 22px; height: 22px; }
.slider-prev { inset-inline-end: 12px; } /* RTL: previous lives on the right */
.slider-next { inset-inline-start: 12px; }
.slider-prev:hover { transform: translateY(-50%) scale(1.06); }
.slider-next:hover { transform: translateY(-50%) scale(1.06); }
.slider-dots { position: absolute; inset-block-end: 14px; inset-inline: 0; z-index: 4; display: flex; justify-content: center; gap: 8px; }
.slider-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 99px; background: rgba(15,23,42,.22); cursor: pointer; transition: width .25s, background .25s; }
.slider-dot.is-active { width: 26px; background: var(--brand-600); }
/* zoomable slide images open a lightbox on click */
.slide-img[data-zoomable] { cursor: zoom-in; }

/* ---------- Image lightbox / zoom popup ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,23,42,.9); display: grid; place-items: center; padding: 24px; animation: lb-fade .18s ease; }
.lightbox[hidden] { display: none; }
.lightbox-fig { margin: 0; max-width: 96vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-img { max-width: 96vw; max-height: 84vh; width: auto; height: auto; border-radius: var(--r-md); box-shadow: var(--sh-lg); background: #fff; }
.lightbox-cap { color: #e5e7eb; font-size: .9rem; line-height: 1.8; text-align: center; max-width: 70ch; }
.lightbox-close { position: absolute; top: 16px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 1.7rem; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }
@media (prefers-reduced-motion: reduce) { .slider-track { transition: none; } }
@media (max-width: 620px) {
  .slider { --slide-h: 440px; }
  .slider-arrow { width: 38px; height: 38px; }
}

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--sh-xs); transition: transform .22s ease, box-shadow .25s ease, border-color .25s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--brand-100); }
.card h3 { font-size: 1.18rem; margin-bottom: .5em; }
.card p { color: var(--ink-500); font-size: .95rem; margin: 0; }

.icon-badge { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; box-shadow: var(--sh-sm); }
.icon-badge svg { width: 27px; height: 27px; }

/* Home "یک پلتفرم…" feature cards: centered, white-bg, single-color line icons */
.feat-card .icon-badge { margin-inline: auto; background: #fff; color: var(--brand-600); border: 1px solid var(--line); box-shadow: var(--sh-xs); }
.bg-brand  { background: var(--grad-brand); }
.bg-teal   { background: var(--grad-teal); }
.bg-warm   { background: var(--grad-warm); }
.bg-violet { background: linear-gradient(135deg,#8b5cf6,#6366f1); }
.bg-sky    { background: linear-gradient(135deg,#0ea5e9,#6366f1); }
.bg-emerald{ background: linear-gradient(135deg,#10b981,#14b8a6); }
.bg-amber  { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.bg-rose   { background: linear-gradient(135deg,#f43f5e,#ec4899); }

/* Category card (linked) */
a.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand-600); font-weight: 700; font-size: .9rem; }
a.card .card-link svg { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .card-link svg { transform: translateX(-4px); }
.card .tag { position: absolute; top: 16px; inset-inline-start: 16px; font-size: .68rem; font-weight: 700; color: var(--brand-600); background: var(--brand-50); padding: 3px 10px; border-radius: var(--r-pill); }

/* ---------- Split / alternating rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split h2, .split h3 { font-size: clamp(1.4rem, 2.8vw, 2.05rem); }
.split .lead { margin-bottom: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--ink-700); }
.check-list li svg { width: 22px; height: 22px; color: var(--emerald-500); flex: none; margin-top: 3px; }
.check-list.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }

/* ---------- Trust / stats ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.stat { text-align: center; padding: 22px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-xs); flex: 1 1 180px; }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .9rem; color: var(--ink-500); }
.logos { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; align-items: center; opacity: .85; }
.logos .client-logo { height: 42px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos .client-logo:hover { filter: none; opacity: 1; }

/* ---------- Steps / How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--sh-xs); }
.step .num { width: 44px; height: 44px; border-radius: 13px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.1rem; }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .9rem; color: var(--ink-500); margin: 0; }

/* ---------- Audience tabs ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.aud { border-radius: var(--r-lg); padding: 28px 24px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--sh-md); }
.aud h3 { color: #fff; font-size: 1.18rem; }
.aud ul li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; padding: 5px 0; color: rgba(255,255,255,.92); }
.aud ul li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; opacity: .9; }
.aud .ic { width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 16px; }
.aud .ic svg { width: 26px; height: 26px; }

/* ---------- Testimonials ---------- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-xs); }
.quote p { font-size: 1.02rem; color: var(--ink-700); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who .av { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.quote .who b { display: block; color: var(--ink-900); font-size: .95rem; }
.quote .who span { font-size: .82rem; color: var(--ink-500); }
.stars { display: flex; gap: 3px; color: var(--amber-500); margin-bottom: 12px; }
.stars svg { width: 18px; height: 18px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.is-open { box-shadow: var(--sh-sm); border-color: var(--brand-200); }
.faq-q { width: 100%; text-align: start; background: none; border: none; padding: 20px 22px; font-weight: 700; font-size: 1.02rem; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .pm { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; transition: transform .25s, background .2s; }
.faq-item.is-open .faq-q .pm { transform: rotate(45deg); background: var(--brand-600); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
/* initially-open item (server-rendered) shows fully without a brittle fixed cap;
   JS sets the exact scrollHeight on interaction/load */
.faq-item.is-open .faq-a { max-height: 1500px; }
.faq-a .faq-a-inner { padding: 0 22px 20px; color: var(--ink-500); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); background: var(--grad-brand); color: #fff; text-align: center; box-shadow: var(--sh-lg); }
.cta-band::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: rgba(255,255,255,.12); top: -200px; inset-inline-start: -120px; }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.1); bottom: -180px; inset-inline-end: -80px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; margin-top: 0; }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-500); padding-block: 18px; }
.crumb a:hover { color: var(--brand-600); }
.crumb svg { width: 15px; height: 15px; color: var(--ink-300); }

/* page hero (internal) */
.page-hero { background: var(--grad-hero); padding-block: clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }

/* pillars / mini features inside feature pages */
.pillar { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-xs); transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.pillar .pi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.pillar .pi svg { width: 23px; height: 23px; }
.pillar h3 { font-size: 1.04rem; margin-bottom: .3em; }
.pillar p { font-size: .9rem; color: var(--ink-500); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1729; color: #cbd5e1; padding-block: 64px 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #94a3b8; }
.site-footer p { color: #94a3b8; font-size: .92rem; max-width: 34ch; }
.foot-col h4 { color: #fff; font-size: .98rem; margin-bottom: 16px; }
.foot-col a { display: block; color: #cbd5e1; padding: 6px 0; font-size: .9rem; transition: color .15s, padding .15s; }
.foot-col a:hover { color: #fff; padding-inline-start: 5px; }
.foot-social { display: flex; gap: 12px; margin-top: 18px; }
.foot-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; }
.foot-social a:hover { background: var(--brand-600); }
.foot-social svg { width: 20px; height: 20px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #94a3b8; font-size: .85rem; }

/* ---------- Form ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--sh-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-800); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .98rem; color: var(--ink-800);
  padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fbfcfe; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-50); }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-weight: 600; font-size: .92rem; }
.form-note.is-ok { color: var(--emerald-500); }
.form-note.is-err { color: var(--rose-500); }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.contact-info .ci { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.contact-info b { display: block; color: var(--ink-900); }
.contact-info span { color: var(--ink-500); font-size: .92rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 24px; align-items: stretch; justify-content: center; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--sh-xs); display: flex; flex-direction: column; position: relative; }
.price.is-featured { border-color: var(--brand-300, var(--brand-200)); box-shadow: var(--sh-lg); transform: scale(1.02); }
.price.is-featured::before { content: "پیشنهاد ویژه"; position: absolute; top: -13px; inset-inline-end: 24px; background: var(--grad-brand); color: #fff; font-size: .76rem; font-weight: 700; padding: 5px 14px; border-radius: var(--r-pill); box-shadow: var(--sh-brand); }
.price h3 { font-size: 1.25rem; }
.price .amount { font-size: 1.1rem; color: var(--ink-500); margin: 10px 0 18px; }
.price .amount b { font-size: 2rem; color: var(--ink-900); }
.price ul { margin-bottom: 24px; flex: 1; }
.price ul li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .92rem; color: var(--ink-700); }
.price ul li svg { width: 19px; height: 19px; color: var(--emerald-500); flex: none; margin-top: 3px; }

/* ---------- Blog / مقالات ---------- */
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-cover { display: grid; place-items: center; aspect-ratio: 16 / 8; color: #fff; }
.blog-cover svg { width: 46px; height: 46px; opacity: .95; }
.blog-cover--lg { aspect-ratio: 16 / 6; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.blog-card-body p { color: var(--ink-500); font-size: .92rem; flex: 1; margin: 0; }
.blog-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-400); font-size: .82rem; margin-top: 14px; }
.blog-meta svg { width: 15px; height: 15px; }
.tag-pill { font-size: .72rem; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 3px 10px; border-radius: var(--r-pill); }

/* Article prose */
.prose { max-width: 760px; margin-inline: auto; font-size: 1.05rem; line-height: 2.1; color: var(--ink-700); }
.prose .prose-lead { font-size: 1.18rem; color: var(--ink-600); font-weight: 600; margin-bottom: 1.4em; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.3em; }
.prose ul li { position: relative; padding-inline-start: 28px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); }
.prose a { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-700); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .hero::after { animation: none; }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

/* floating contact buttons (bottom-right) */
.float-contact { position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--sh-md); transition: transform .18s ease; }
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 26px; height: 26px; }
.fab-wa { background: #25d366; }
.fab-tg { background: #229ed2; }

/* sticky mobile CTA bar (mobile only) */
.mobile-cta { display: none; }

/* back to top */
.to-top { position: fixed; inset-block-end: 24px; inset-inline-start: 24px; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-brand); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; z-index: 90; border: none; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); opacity: 0; visibility: hidden; transition: .25s; z-index: 200; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; inset-inline-end: -340px; width: 320px; max-width: 88vw; height: 100%; background: #fff; z-index: 210; box-shadow: var(--sh-lg); transition: inset-inline-end .3s ease; overflow-y: auto; padding: 20px; }
.drawer.open { inset-inline-end: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.drawer nav a { display: block; padding: 13px 12px; border-radius: var(--r-md); font-weight: 600; color: var(--ink-700); }
.drawer nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.drawer details { border-top: 1px solid var(--line-soft); }
.drawer summary { padding: 13px 12px; font-weight: 700; color: var(--ink-900); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 18px; height: 18px; transition: transform .2s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer .sub a { font-size: .9rem; padding-inline-start: 22px; color: var(--ink-600); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.mb-0 { margin-bottom: 0; }
.flex-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; font-size: .88rem; font-weight: 600; color: var(--ink-700); box-shadow: var(--sh-xs); }
.pill svg { width: 16px; height: 16px; color: var(--brand-500); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: -1; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price.is-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  /* hide the WHOLE in-header CTA (not just the ghost) so the brand never gets
     squeezed/wrapped out of the fixed-height bar; the drawer + sticky bottom bar
     carry the CTA on mobile & tablet instead */
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .brand { white-space: nowrap; min-width: 0; }
  .form-row { grid-template-columns: 1fr; }
  /* persistent bottom CTA bar on mobile + tablet */
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 95;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(15,23,42,.08);
  }
  .mobile-cta .btn { flex: 1; padding-block: 13px; }
  .mobile-cta .btn-ghost { flex: 0 0 38%; }
  .float-contact { inset-block-end: 78px; inset-inline-end: 14px; }
  .to-top { inset-block-end: 78px; }
  body { padding-bottom: 64px; } /* room for the bar */
}
@media (max-width: 620px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .steps, .aud-grid { grid-template-columns: 1fr; }
  .check-list.cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: clamp(44px, 9vw, 64px); }
  .hero-cta .btn, .cta-band .btn { width: 100%; }
  .float-contact { inset-inline-end: 14px; }
  .fab { width: 46px; height: 46px; }
}
