:root {
  --primary: #fb3449;
  --primary-fg: #ffffff;
  --secondary: #00bfd6;
  --bg: #ffffff;
  --fg: #292b46;
  --muted: #f5f5f9;
  --muted-fg: #797c8c;
  --border: #e7e7ee;
  --surface: #faf9fb;
  --dark: #14152b;
  --dark-2: #1c1e3d;
  --dark-fg: #fafafa;
  --whatsapp: #25d366;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 2px 14px rgba(20, 21, 43, 0.07);
  --shadow-lift: 0 16px 40px rgba(20, 21, 43, 0.16);
  --font-body: Vazirmatn, Tahoma, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.9;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease var(--delay, 0s), transform .7s ease var(--delay, 0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--primary); text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; font-family: inherit;
  border-radius: var(--radius); padding: 14px 26px;
  font-size: 14px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 10px 24px rgba(251,52,73,.35); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(251,52,73,.42); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.32); }
.btn-outline { background: rgba(255,255,255,.06); color: var(--dark-fg); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(4px); }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-mark {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 18px; font-family: var(--font-mono);
}
.logo-dot {
  position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--secondary); box-shadow: 0 0 0 2px #fff;
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .6; } }
.site-nav { display: none; flex: 1; gap: 26px; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--muted-fg); position: relative; padding-bottom: 4px; }
.site-nav a::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .2s ease;
}
.site-nav a:hover { color: var(--fg); }
.site-nav a:hover::after { width: 100%; }
.header-cta {
  margin-right: auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--whatsapp); color: #fff; font-weight: 700; font-size: 12px;
  padding: 10px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(37,211,102,.3);
  transition: transform .2s ease;
}
.header-cta:hover { transform: translateY(-1px); }
.wa-ico { font-size: 14px; }

/* ---------- promo slider ---------- */
.promo-slider {
  position: relative; overflow: hidden; background: var(--dark);
  height: 460px;
}
.promo-track { display: flex; height: 100%; transition: transform .65s cubic-bezier(.65,0,.35,1); will-change: transform; }
.promo-slide {
  min-width: 100%; height: 100%; position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.promo-slide-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px 16px;
  display: grid; gap: 18px; align-items: center;
}
.promo-bg { position: absolute; inset: 0; z-index: 0; }
.promo-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(65% 90% at 85% 30%, #000 0%, transparent 75%);
}
.promo-badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff;
}
.promo-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulseDot 1.6s ease-in-out infinite; }
.promo-title { margin-top: 12px; font-size: 21px; font-weight: 800; line-height: 1.45; color: #fff; }
.promo-sub { margin-top: 10px; font-size: 13.5px; line-height: 1.85; color: rgba(255,255,255,.85); max-width: 460px; }
.promo-cta {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; font-size: 13.5px; font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.promo-cta:hover { transform: translateY(-2px); }
.promo-visual { position: relative; z-index: 1; display: none; place-items: center; }
.promo-visual svg { width: 100%; max-width: 220px; height: auto; }

/* اسلاید ۱ — استخدام بازاریاب */
.promo-slide--recruit .promo-bg { background: radial-gradient(120% 130% at 85% 10%, #a4103a 0%, #5c0f2a 45%, #1c0a17 100%); }
.promo-slide--recruit .promo-badge { color: #ffd36e; background: rgba(255,211,110,.14); border-color: rgba(255,211,110,.35); }
.promo-cta--recruit { background: linear-gradient(135deg, #ffd36e, #ff9a3d); color: #2a1300; box-shadow: 0 12px 26px rgba(255,154,61,.4); }
.stat-commission {
  display: flex; align-items: baseline; gap: 10px; margin-top: 12px;
}
.stat-commission b {
  font-family: var(--font-mono); font-size: 38px; font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, #ffd36e, #ff6f52);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-commission span { font-size: 12.5px; color: rgba(255,255,255,.8); max-width: 220px; line-height: 1.6; }
.promo-note {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: #ffe4b8;
}

/* اسلاید ۲ — کانال تلگرام */
.promo-slide--telegram .promo-bg { background: radial-gradient(120% 130% at 85% 15%, #35a8e8 0%, #1f7fc4 45%, #0f3a63 100%); }
.promo-slide--telegram .promo-badge { color: #eaf6ff; }
.promo-cta--telegram { background: #fff; color: #1f7fc4; box-shadow: 0 12px 26px rgba(0,0,0,.22); }

/* اسلاید ۳ — ابزارآلات ساختمانی */
.promo-slide--tools .promo-bg { background: radial-gradient(120% 130% at 85% 15%, #3a3f47 0%, #23262c 45%, #121317 100%); }
.promo-slide--tools .promo-badge { color: #ffc46b; background: rgba(255,196,107,.14); border-color: rgba(255,196,107,.3); }
.promo-cta--tools { background: linear-gradient(135deg, #ffc46b, #ff8a3d); color: #2a1600; box-shadow: 0 12px 26px rgba(255,138,61,.36); }

/* کنترل‌ها */
.promo-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff;
  cursor: pointer; transition: background .2s ease;
}
.promo-arrow:hover { background: rgba(255,255,255,.26); }
.promo-prev { right: 16px; }
.promo-next { left: 16px; }
.promo-dots { position: absolute; bottom: 16px; right: 50%; transform: translateX(50%); z-index: 3; display: flex; gap: 8px; }
.promo-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); border: 0; cursor: pointer; padding: 0; transition: all .2s ease; }
.promo-dot.active { width: 22px; border-radius: 4px; background: #fff; }

@media (min-width: 640px) {
  .promo-slider { height: 400px; }
}
@media (min-width: 768px) {
  .promo-slider { height: 380px; }
  .promo-slide-inner { grid-template-columns: 1fr auto; text-align: right; }
  .promo-visual { display: grid; }
  .promo-title { font-size: 25px; }
}
@media (min-width: 1024px) {
  .promo-slider { height: 380px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 15% 0%, #263066 0%, #171933 55%, #101128 100%);
  color: var(--dark-fg);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 70% at 20% 20%, #000 0%, transparent 75%);
}
.hero-signal { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
#signalPath { animation: dashMove 8s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -160; } }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; padding: 64px 0; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 6px 14px 6px 16px; font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,.06);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 8px var(--secondary); }
.hero h1 { margin-top: 20px; font-size: 30px; font-weight: 800; line-height: 1.5; letter-spacing: -.01em; }
.hero h1 span {
  display: block; margin-top: 4px;
  background: linear-gradient(90deg, var(--secondary), #7ee8d8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin-top: 18px; max-width: 520px; font-size: 14px; color: rgba(250,250,250,.82); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.stats { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px 10px; text-align: center; }
.stat dt { font-size: 18px; font-weight: 800; color: var(--secondary); font-family: var(--font-mono); }
.stat dd { margin-top: 4px; font-size: 11px; color: rgba(250,250,250,.75); }

.code-card {
  position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lift);
}
.dots { display: flex; gap: 8px; padding-bottom: 16px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.dots span:nth-child(1) { background: var(--primary); }
.dots span:nth-child(2) { background: var(--secondary); }
.dots span:nth-child(3) { background: rgba(250,250,250,.4); }
.code-card pre {
  direction: ltr; overflow-x: auto; border-radius: 14px;
  background: rgba(9,10,22,.75); padding: 16px; color: #d8dae8;
  font-size: 12px; line-height: 1.9; font-family: var(--font-mono);
}
.tok-str { color: #7ee8d8; }
.tok-fn { color: #ffb677; }
.tok-cm { color: #7c7f9c; }
.code-tags { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; font-size: 12px; }
.code-tags div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 8px 12px; color: rgba(250,250,250,.88); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--surface); }
h2.section-title { margin-top: 12px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
p.section-sub { margin: 12px 0 0; max-width: 640px; font-size: 14px; color: var(--muted-fg); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-card); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card-hover:hover { box-shadow: var(--shadow-lift); transform: translateY(-5px); border-color: transparent; }

.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ---------- services ---------- */
.service { padding: 26px; }
.service .icon-badge {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 15px; background: linear-gradient(160deg, rgba(251,52,73,.1), rgba(0,191,214,.1));
  border: 1px solid var(--border);
}
.service .icon-badge svg { width: 26px; height: 26px; }
.service h3 { margin-top: 18px; font-size: 17px; }
.service p { margin-top: 8px; font-size: 14px; color: var(--muted-fg); }
.service ul { margin-top: 16px; list-style: none; font-size: 13.5px; display: grid; gap: 6px; }
.service li { color: var(--muted-fg); display: flex; align-items: center; gap: 8px; }
.service li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.service .more { margin-top: 18px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--primary); }
.service .more:hover { gap: 8px; }

/* ---------- portfolio ---------- */
.filters { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--border); background: #fff; color: var(--muted-fg);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all .2s ease;
}
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter.active { background: linear-gradient(135deg, var(--primary), #ff6f52); border-color: transparent; color: #fff; }
.project { overflow: hidden; }
.project .thumb {
  height: 150px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #23254a 0%, #2f3a6b 55%, #196b83 100%);
}
.project .thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(60% 60% at 80% 10%, #000, transparent 70%);
}
.project .thumb svg { width: 74%; height: 74%; position: relative; z-index: 1; }
.project .body { padding: 22px; }
.project .cat { font-size: 12px; font-weight: 700; color: var(--secondary); }
.project h3 { margin-top: 8px; font-size: 16px; }
.project p { margin-top: 8px; font-size: 14px; color: var(--muted-fg); }
.tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--muted); color: var(--muted-fg); border-radius: 6px; padding: 4px 8px; font-size: 11px; }

/* ---------- process ---------- */
.steps-row { position: relative; }
.step { padding: 26px; position: relative; }
.step .n {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
  font-size: 15px; font-weight: 800; font-family: var(--font-mono);
}
.step h3 { margin-top: 16px; font-size: 16px; }
.step p { margin-top: 8px; font-size: 14px; color: var(--muted-fg); }

/* ---------- order form ---------- */
.order-grid { display: grid; gap: 32px; }
.form-card { padding: 26px; }
.form-card h2 { margin-top: 10px; font-size: 24px; font-weight: 800; }
.form-card > p { margin-top: 12px; font-size: 14px; color: var(--muted-fg); }
form.order { margin-top: 24px; display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--fg);
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  padding: 11px 12px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(251,52,73,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.error { margin-top: 6px; font-size: 12px; color: var(--primary); min-height: 14px; }
.counter { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-fg); }
.success {
  margin-top: 12px; border-radius: 10px; padding: 10px 12px;
  background: rgba(0,191,214,.13); border: 1px solid rgba(0,191,214,.25); font-size: 14px;
}
.hidden { display: none; }
aside.contact { padding: 26px; height: fit-content; }
aside.contact h3 { font-size: 17px; }
.wa-row {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.2); border-radius: 14px; padding: 12px 16px;
  font-size: 14px; font-weight: 700; transition: transform .2s ease;
}
.wa-row:hover { transform: translateY(-2px); }
aside.contact ul { margin-top: 22px; list-style: none; font-size: 14px; color: var(--muted-fg); display: grid; gap: 12px; }
aside.contact li { display: flex; align-items: flex-start; gap: 10px; }
.li-ico {
  flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%; background: rgba(0,191,214,.15); color: var(--secondary); font-size: 11px; font-weight: 800;
}

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-fg); padding: 44px 0; }
.site-footer .container { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: 14px; }
.footer-mark { margin-bottom: 4px; }
.site-footer .strong { font-weight: 800; }
.site-footer .dim { color: rgba(250,250,250,.7); }
.site-footer .tiny { font-size: 12px; color: rgba(250,250,250,.5); }

/* ---------- float whatsapp ---------- */
.wa-float {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 60;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; font-size: 26px; box-shadow: var(--shadow-lift);
  animation: floatBob 3s ease-in-out infinite;
}
@keyframes floatBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .wa-float, .logo-dot, #signalPath { animation: none; }
}

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--secondary); outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  form.order { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .form-card { padding: 34px; }
}
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .header-cta { margin-right: 0; font-size: 14px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; padding: 100px 0; }
  .hero h1 { font-size: 44px; }
  .hero p.lead { font-size: 16px; }
  .stat dt { font-size: 24px; }
  h2.section-title { font-size: 32px; }
  section { padding: 84px 0; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .order-grid { grid-template-columns: 1.2fr .8fr; }
}

/* ================================================================
   ارتقاء نسخه ۲ — بخش‌های جدید، حالت تاریک و تعاملات پیشرفته
   (این بخش فقط اضافه می‌شود؛ هیچ قانون قبلی حذف/بازنویسی نشده،
    مگر جایی که صراحتاً برای فعال‌سازی دارک‌مود لازم بوده است)
   ================================================================ */

/* ---------- متغیرهای تکمیلی ---------- */
:root {
  --card-bg: #ffffff;
  --input-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, .85);
  --star: #ffb648;
  --ok: #17b26a;
}

/* ---------- حالت تاریک ---------- */
:root[data-theme="dark"] {
  --bg: #0d0e1e;
  --fg: #eceefb;
  --muted: #15162c;
  --muted-fg: #9a9dc2;
  --border: #262850;
  --surface: #121328;
  --card-bg: #171833;
  --input-bg: #171833;
  --header-bg: rgba(13, 14, 30, .85);
  --dark: #08091a;
  --dark-2: #0f1030;
}
body { transition: background-color .35s ease, color .35s ease; }
:root[data-theme="dark"] .site-header { background: var(--header-bg); border-color: var(--border); }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .filter,
:root[data-theme="dark"] .tech-badge,
:root[data-theme="dark"] .pricing-card,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .nav-toggle,
:root[data-theme="dark"] .back-to-top,
:root[data-theme="dark"] .loader-overlay { background: var(--card-bg); border-color: var(--border); }
:root[data-theme="dark"] .loader-overlay { background: var(--bg); }
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea { background: var(--input-bg); border-color: var(--border); color: var(--fg); }
:root[data-theme="dark"] .tags span { background: var(--surface); }
:root[data-theme="dark"] .skill-track { background: var(--surface); }
:root[data-theme="dark"] .site-nav { background: var(--bg); border-color: var(--border); }
:root[data-theme="dark"] .nav-toggle span { background: var(--fg); }

/* ---------- Loader ---------- */
.loader-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; gap: 4px;
  background: var(--bg); transition: opacity .5s ease, visibility .5s ease;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid; place-items: center; color: #fff; font-family: var(--font-mono); font-size: 20px;
  animation: loaderPulse 1.1s ease-in-out infinite;
}
@keyframes loaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.loader-bar { margin-top: 14px; width: 140px; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.loader-bar::after {
  content: ""; display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* ---------- نوار پیشرفت اسکرول ---------- */
.scroll-progress {
  position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 70;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
}

/* ---------- هدر: دکمه تم و منوی موبایل ---------- */
.header-inner { transition: height .25s ease; }
.site-header.scrolled .header-inner { height: 58px; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(20, 21, 43, .08); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-right: auto; }
@media (min-width: 768px) { .header-tools { margin-right: 0; } }

.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card-bg); cursor: pointer;
  color: var(--fg); transition: transform .25s ease, background .2s ease; flex: none;
}
.theme-toggle:hover { transform: rotate(20deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: grid; gap: 4px; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card-bg); cursor: pointer; flex: none;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

@media (max-width: 767px) {
  .site-nav {
    position: fixed; top: 68px; inset-inline: 0; z-index: 49;
    flex-direction: column; padding: 10px 16px 18px; gap: 2px;
    border-bottom: 1px solid var(--border);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.open { display: flex; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
}

/* ---------- دکمه بازگشت به بالا ---------- */
.back-to-top {
  position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 59;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--fg);
  box-shadow: var(--shadow-card); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--muted); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- ریپل دکمه‌ها ---------- */
.btn { position: relative; }
.btn-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: scale(0); animation: rippleAnim .6s ease-out; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(2.8); opacity: 0; } }

/* ---------- درباره من ---------- */
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-avatar-wrap { display: flex; justify-content: center; }
.about-avatar {
  width: 168px; height: 168px; border-radius: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid; place-items: center; color: #fff; font-family: var(--font-mono);
  font-size: 50px; font-weight: 800; box-shadow: var(--shadow-lift); position: relative;
}
.about-avatar::after { content: ""; position: absolute; inset: -10px; border-radius: 40px; border: 1px dashed var(--border); z-index: -1; }
.about-text h3 { font-size: 19px; margin-top: 2px; }
.about-text > p { margin-top: 14px; font-size: 14px; color: var(--muted-fg); }
.about-lists { margin-top: 26px; display: grid; gap: 20px; }
.about-list h4 { font-size: 13.5px; margin-bottom: 10px; color: var(--primary); }
.about-list ul { list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted-fg); }
.about-list li { display: flex; gap: 8px; align-items: flex-start; }
.about-list li::before { content: "◆"; color: var(--primary); font-size: 8px; margin-top: 6px; flex: none; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: .8fr 1.2fr; }
  .about-lists { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- چرا من؟ ---------- */
.why-card { padding: 24px; text-align: center; }
.why-card .why-ico {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(251, 52, 73, .12), rgba(0, 191, 214, .12)); font-size: 19px;
}
.why-card h3 { margin-top: 14px; font-size: 14.5px; }
.why-card p { margin-top: 6px; font-size: 12.5px; color: var(--muted-fg); }

/* ---------- مهارت‌ها ---------- */
.skills-list { margin-top: 40px; display: grid; gap: 18px; }
.skill-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.skill-head span.pct { color: var(--primary); font-family: var(--font-mono); font-weight: 700; }
.skill-track { height: 8px; border-radius: 6px; background: var(--muted); overflow: hidden; }
.skill-fill { height: 100%; border-radius: 6px; width: 0%; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 768px) { .skills-list { grid-template-columns: repeat(2, 1fr); column-gap: 44px; } }

/* ---------- آمار حرفه‌ای ---------- */
.stats-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-box { padding: 26px 16px; text-align: center; }
.stat-box .num { font-family: var(--font-mono); font-size: 30px; font-weight: 800; background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box .lbl { margin-top: 6px; font-size: 12.5px; color: var(--muted-fg); }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- نظرات مشتریان ---------- */
.testi-wrap { position: relative; margin-top: 40px; overflow: hidden; }
.testi-track { display: flex; transition: transform .5s cubic-bezier(.65, 0, .35, 1); }
.testi-slide { min-width: 100%; padding: 4px; }
.testi-card { padding: 26px; height: 100%; }
.testi-stars { color: var(--star); font-size: 13px; letter-spacing: 2px; }
.testi-text { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--fg); min-height: 96px; }
.testi-who { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.testi-name { font-size: 13px; font-weight: 700; }
.testi-role { font-size: 11.5px; color: var(--muted-fg); }
.testi-dots { margin-top: 8px; display: flex; justify-content: center; gap: 8px; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: 0; cursor: pointer; padding: 0; transition: all .2s ease; }
.testi-dot.active { width: 22px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
@media (min-width: 768px) { .testi-slide { min-width: 50%; } }
@media (min-width: 1024px) { .testi-slide { min-width: 33.333%; } }

/* ---------- نمونه‌کار: overlay + دکمه‌ها ---------- */
.project-overlay {
  position: absolute; inset: 0; background: rgba(10, 11, 26, .78);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity .25s ease; z-index: 2; flex-wrap: wrap; padding: 10px;
}
.project:hover .project-overlay, .project:focus-within .project-overlay { opacity: 1; }
.project-overlay .btn { padding: 8px 14px; font-size: 11.5px; }

/* ---------- تکنولوژی‌های استفاده‌شده ---------- */
.tech-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tech-badge { padding: 18px 8px; text-align: center; border: 1px solid var(--border); border-radius: 14px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.tech-badge:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tech-mono { font-family: var(--font-mono); font-weight: 800; font-size: 12.5px; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tech-badge .tech-name { display: block; margin-top: 8px; font-size: 11px; color: var(--muted-fg); }
@media (min-width: 640px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- روند انجام پروژه (تایم‌لاین) ---------- */
.timeline-row { position: relative; }
@media (min-width: 1024px) {
  .timeline-row::before {
    content: ""; position: absolute; top: 21px; right: 12%; left: 12%; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary)); opacity: .25; z-index: 0;
  }
  .timeline-row .step { z-index: 1; }
}

/* ---------- اعتمادسازی ---------- */
.trust-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trust-card { padding: 20px; text-align: center; }
.trust-card .trust-ico { font-size: 21px; }
.trust-card h4 { margin-top: 10px; font-size: 13px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- پکیج قیمت ---------- */
.pricing-grid { margin-top: 40px; display: grid; gap: 20px; }
.pricing-card { padding: 30px 24px; text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lift); }
.pricing-badge { position: absolute; top: -12px; right: 50%; transform: translateX(50%); background: linear-gradient(135deg, var(--primary), #ff6f52); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.pricing-name { font-size: 13.5px; font-weight: 700; color: var(--muted-fg); }
.pricing-price { margin-top: 10px; font-size: 25px; font-weight: 800; font-family: var(--font-mono); }
.pricing-price span { font-size: 12px; font-weight: 500; color: var(--muted-fg); }
.pricing-list { margin-top: 20px; list-style: none; display: grid; gap: 10px; font-size: 13px; text-align: right; }
.pricing-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted-fg); }
.pricing-list li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.pricing-card .btn { margin-top: 24px; width: 100%; justify-content: center; }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } .pricing-card.featured { transform: scale(1.03); } }

/* ---------- سوالات متداول ---------- */
.faq-list { margin-top: 40px; display: grid; gap: 12px; max-width: 760px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; background: transparent; border: 0; cursor: pointer; text-align: right;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--fg);
}
.faq-q .plus { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; font-size: 14px; transition: transform .25s ease, background .25s ease, color .25s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 20px 18px; font-size: 13.5px; color: var(--muted-fg); line-height: 1.9; }

/* ---------- تماس سریع ---------- */
.quick-contact { background: var(--surface); }
.quick-form { margin-top: 24px; display: grid; gap: 12px; max-width: 560px; }
.quick-form .row { display: grid; gap: 12px; }
@media (min-width: 640px) { .quick-form .row { grid-template-columns: 1fr 1fr; } }

/* ---------- فوتر حرفه‌ای ---------- */
.footer-grid { display: grid; gap: 30px; text-align: center; width: 100%; }
.footer-brand p { max-width: 320px; margin-inline: auto; }
.footer-col h4 { font-size: 13.5px; margin-bottom: 12px; color: rgba(250, 250, 250, .92); }
.footer-col ul { list-style: none; display: grid; gap: 9px; font-size: 13px; color: rgba(250, 250, 250, .65); }
.footer-col ul a:hover { color: #fff; }
.footer-social { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; transition: background .2s ease, transform .2s ease; }
.footer-social a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.footer-bottom { margin-top: 4px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); width: 100%; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; text-align: right; }
  .footer-brand p { margin-inline: 0; }
  .footer-social { justify-content: flex-start; }
}

/* ---------- افکت تیلت/پارالاکس هرو (JS-driven) ---------- */
.hero-bg { will-change: transform; }

/* ---------- بهبود دسترسی‌پذیری تعاملات جدید ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader-mark, .loader-bar::after, .btn-ripple, .skill-fill { animation: none !important; transition: none !important; }
  .testi-track, .faq-a { transition: none !important; }
}

/* ---------- ریسپانسیو تکمیلی برای بخش‌های جدید ---------- */
@media (min-width: 768px) {
  .about-avatar { width: 200px; height: 200px; font-size: 58px; }
}

/* ---------- رفع فشردگی هدر در موبایل ---------- */
@media (max-width: 767px) {
  .header-inner { gap: 8px; }
  .logo { font-size: 15px; gap: 6px; }
  .logo-mark { width: 32px; height: 32px; font-size: 15px; }
  .header-cta { padding: 8px 10px; font-size: 11px; gap: 5px; white-space: nowrap; }
  .header-cta .ltr { display: none; }
  .header-tools { gap: 6px; }
}
@media (max-width: 359px) {
  .logo span:last-child { display: none; }
}
