/* ── فونت ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* ── متغیرهای تم ──────────────────────────────────────── */
:root {
  --ease: cubic-bezier(.22, .8, .28, 1);
}
:root[data-theme='light'] {
  --bg: #eef1f6;
  --bg2: #ffffff;
  --fg: #101628;
  --muted: #5b6478;
  --card: rgba(255, 255, 255, .72);
  --card-solid: #ffffff;
  --line: rgba(15, 25, 55, .12);
  --accent: #0891b2;
  --accent2: #7c3aed;
  --glow: rgba(8, 145, 178, .22);
  --btn-fg: #ffffff;
  --shadow: 0 18px 50px rgba(20, 35, 80, .10);
}
:root[data-theme='dark'] {
  --bg: #05070d;
  --bg2: #0a0e18;
  --fg: #eaf0ff;
  --muted: #8b94ad;
  --card: rgba(16, 21, 34, .62);
  --card-solid: #101522;
  --line: rgba(255, 255, 255, .09);
  --accent: #22d3ee;
  --accent2: #a78bfa;
  --glow: rgba(34, 211, 238, .30);
  --btn-fg: #05070d;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

::selection { background: var(--accent); color: var(--btn-fg); }

img { max-width: 100%; }

/* ── لودر ─────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  transition: opacity .7s var(--ease), visibility .7s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 66px; height: 66px; border-radius: 19px;
  box-shadow: 0 14px 40px var(--glow);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.14); opacity: .7; } }
.loader-bar {
  width: 180px; height: 3px; border-radius: 99px;
  background: var(--line); overflow: hidden;
}
#loaderFill {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .3s var(--ease);
}
.loader-text { font-size: 13px; color: var(--muted); }

/* ── نوار پیشرفت ─────────────────────────────────────── */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; }
#progressBar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px var(--glow);
}

/* ── ناوبری ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 13px clamp(14px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 14px var(--glow); }
.brand-name { font-weight: 800; font-size: 17.5px; color: var(--fg); direction: ltr; letter-spacing: .2px; }
.brand-tld { font-style: normal; font-weight: 700; color: var(--accent); }
.nav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  font-size: 14px; font-weight: 500; white-space: nowrap;
  color: var(--fg); text-decoration: none;
  padding: 8px 14px; border-radius: 99px;
  transition: background .3s, color .3s;
}
.nav-link:hover { background: var(--card); color: var(--accent); }
.nav-tools { display: flex; gap: 8px; flex: 0 0 auto; }
.nav-tools {
  padding: 4px;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  border: 1px solid var(--line);
  border-radius: 99px;
}
.tool-btn {
  font-family: inherit; font-size: 14px; font-weight: 800;
  letter-spacing: .4px;
  width: 42px; height: 38px; border-radius: 99px;
  color: var(--fg); cursor: pointer;
  background: var(--card-solid);
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(15, 25, 55, .07);
  display: grid; place-items: center;
  transition: all .3s var(--ease);
}
.tool-btn:hover {
  color: var(--btn-fg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 18px var(--glow);
  transform: translateY(-1px);
}
#themeIcon { font-size: 17px; line-height: 1; }

/* ── دکمه‌ها ─────────────────────────────────────────── */
.btn {
  font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 13px 26px; border-radius: 99px;
  border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .3s var(--ease), box-shadow .3s, opacity .3s;
}
.btn.primary {
  color: var(--btn-fg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 26px var(--glow);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--glow); }
.btn.primary.disabled { opacity: .45; pointer-events: none; }
.btn.ghost {
  color: var(--fg); background: var(--card);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ── قهرمان ──────────────────────────────────────────── */
.hero-sec {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 110px 22px 70px;
  overflow: hidden;
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
.b1 {
  width: 480px; height: 480px;
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  top: -160px; inset-inline-start: -120px;
  animation: drift 16s ease-in-out infinite alternate;
}
.b2 {
  width: 420px; height: 420px;
  background: color-mix(in srgb, var(--accent2) 22%, transparent);
  bottom: -140px; inset-inline-end: -100px;
  animation: drift 19s ease-in-out infinite alternate-reverse;
}
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  max-width: 1240px;
  width: 100%;
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; text-align: start; }
.hero-inner .hero-ctas, .hero-inner .hero-stats { justify-content: flex-start; }

/* ── ترکیب بصری قهرمان ── */
.hero-visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.visual-card {
  width: min(470px, 90%);
  aspect-ratio: 4 / 4.5;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(20, 35, 80, .22), 0 0 0 8px color-mix(in srgb, var(--accent) 7%, transparent);
  transform: rotate(2.5deg);
}
.visual-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.04);
}
.mock-laptop {
  position: absolute;
  bottom: -8px;
  inset-inline-start: 0;
  width: min(385px, 80%);
  filter: drop-shadow(0 26px 40px rgba(10, 20, 50, .32));
  animation: floaty 7s ease-in-out infinite;
}
.mock-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0c0f16;
  border-radius: 15px 15px 5px 5px;
  padding: 9px 9px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.mock-screen canvas {
  position: absolute; inset: 9px 9px 11px;
  width: calc(100% - 18px); height: calc(100% - 20px);
  border-radius: 7px;
  opacity: 0;
  transition: opacity .9s var(--ease);
}
.mock-base {
  height: 13px;
  width: 116%;
  margin: 0 -8%;
  border-radius: 3px 3px 14px 14px;
  background: linear-gradient(180deg, #d8dce6, #aab1c2);
}
:root[data-theme='dark'] .mock-base { background: linear-gradient(180deg, #2a2f3d, #171b24); }
.mock-phone {
  position: absolute;
  top: 26px;
  inset-inline-end: 2%;
  width: min(122px, 26%);
  background: #0c0f16;
  border-radius: 22px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 22px 50px rgba(10, 20, 50, .32);
  animation: floaty 8.5s ease-in-out 1.2s infinite;
}
.mock-phone::before {
  content: '';
  position: absolute; top: 10px; inset-inline: 50%;
  transform: translateX(-50%);
  width: 34px; height: 5px; border-radius: 99px;
  background: rgba(255, 255, 255, .16);
  z-index: 2;
}
[dir='rtl'] .mock-phone::before { transform: translateX(50%); }
.mock-phone canvas {
  display: block; width: 100%; aspect-ratio: 180 / 380;
  border-radius: 17px;
}
@keyframes floaty { 50% { transform: translateY(-11px); } }

.float-chip {
  position: absolute;
  font-size: 12.5px; font-weight: 700;
  padding: 9px 16px; border-radius: 99px;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(10, 20, 50, .14);
  animation: floaty 6s ease-in-out infinite;
}
.fc1 { top: 4px; inset-inline-start: 6%; animation-delay: .4s; }
.fc2 { top: 44%; inset-inline-end: -6px; direction: ltr; animation-delay: 1.6s; }
.fc3 { bottom: 20%; inset-inline-end: 16%; direction: ltr; animation-delay: 2.8s; }
.hero-eyebrow {
  font-size: 14px; font-weight: 600; color: var(--accent);
  letter-spacing: .5px;
  padding: 8px 18px; border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.hero-title {
  font-size: clamp(52px, 10vw, 112px);
  font-weight: 800; line-height: 1.1;
  background: linear-gradient(160deg, var(--fg) 35%, var(--accent) 78%, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(15px, 2.3vw, 19px); color: var(--muted); line-height: 2; max-width: 640px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

.hero-typed {
  font-size: clamp(17px, 2.6vw, 23px);
  font-weight: 600;
  display: flex; align-items: baseline; gap: 10px;
  min-height: 34px;
}
.hero-typed span { color: var(--muted); font-weight: 500; }
.hero-typed b {
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.caret {
  font-style: normal; font-weight: 400; color: var(--accent);
  animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.hero-points {
  list-style: none;
  display: flex; flex-direction: column; gap: 9px;
  margin-top: 14px;
}
.hero-points li {
  font-size: 14px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.hero-points li::before {
  content: '✓';
  flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: var(--btn-fg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.scroll-hint {
  position: absolute; bottom: 24px; inset-inline: 0;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--muted);
}
.mouse {
  width: 22px; height: 36px; border: 2px solid var(--muted);
  border-radius: 12px; display: flex; justify-content: center;
}
.wheel {
  width: 3px; height: 7px; margin-top: 6px; border-radius: 99px;
  background: var(--accent);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 50% { transform: translateY(10px); opacity: .2; } }

/* ── بخش‌های عمومی ───────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 110px) clamp(18px, 5vw, 60px); max-width: 1240px; margin: 0 auto; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; margin-bottom: 12px; }
.sec-head p { font-size: clamp(14px, 2vw, 16.5px); color: var(--muted); line-height: 2; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── خدمات ───────────────────────────────────────────── */
.services-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  --sc1: #0891b2; --sc2: #7c3aed;
  border-color: color-mix(in srgb, var(--sc1) 26%, var(--line));
  padding: 28px 24px;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s var(--ease), border-color .35s;
}
.service-card:hover { border-color: color-mix(in srgb, var(--sc1) 55%, transparent); }
.service-icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; font-size: 25px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent2) 16%, transparent));
  border: 1px solid var(--line);
}
.service-card h3 { font-size: 18.5px; font-weight: 800; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.95; flex: 1; }
.service-more {
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.service-more:hover { text-decoration: underline; }

/* ── فیلتر و گرید نمونه‌کار ──────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 20px; border-radius: 99px; cursor: pointer;
  color: var(--fg); background: var(--card-solid);
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.active {
  color: var(--btn-fg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  box-shadow: 0 6px 20px var(--glow);
}

.work-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.work-more { text-align: center; margin-top: 32px; }
.work-card {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s, opacity .4s, scale .4s;
}
.work-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.work-card.hidden { display: none; }
.work-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.work-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-top { display: flex; align-items: center; justify-content: space-between; }
.work-top h3 { font-size: 17.5px; font-weight: 800; }
.chip {
  font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 99px;
  color: var(--btn-fg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  white-space: nowrap;
}
.work-body p { font-size: 13.5px; color: var(--muted); line-height: 1.9; flex: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px; font-weight: 500; direction: ltr;
  padding: 3px 10px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted);
}

/* ── بخش سه‌بعدی ─────────────────────────────────────── */
.three-sec { background: var(--bg2); border-block: 1px solid var(--line); }
.three-head { padding: clamp(64px, 8vw, 96px) 22px 10px; margin-bottom: 0; }
.stage-wrap { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.panel {
  position: absolute;
  inset-inline-start: clamp(18px, 4.5vw, 70px);
  top: 50%;
  transform: translateY(-50%);
  width: min(390px, calc(100vw - 36px));
  padding: 26px 26px 22px;
  text-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.stage.show-ui .panel { opacity: 1; visibility: visible; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.counter { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.panel-title { font-size: clamp(24px, 3.6vw, 33px); font-weight: 800; line-height: 1.3; margin-bottom: 9px; }
.panel-desc { font-size: 14px; line-height: 1.9; color: var(--muted); margin-bottom: 14px; }
.panel-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel.switch .panel-title,
.panel.switch .panel-desc,
.panel.switch .panel-tags { animation: swapIn .45s var(--ease); }
@keyframes swapIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.arrows { display: flex; gap: 8px; }
.arrow {
  font-family: inherit; font-size: 17px;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--fg); cursor: pointer;
  background: transparent; border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.arrow:hover { border-color: var(--accent); background: var(--card); }

/* دکمه خاموش/روشن لپ‌تاپ */
.power-btn {
  position: absolute;
  bottom: 88px; inset-inline-end: clamp(16px, 4vw, 60px);
  width: 52px; height: 52px; border-radius: 50%;
  font-family: inherit; font-size: 21px;
  color: var(--fg); cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(10, 20, 50, .18);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s, border-color .3s, transform .3s var(--ease);
}
.stage.show-ui .power-btn { opacity: 1; visibility: visible; }
.power-btn:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--accent); }
.power-btn.cycling {
  color: #38bdf8; border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .25), 0 10px 30px rgba(56, 189, 248, .3);
  animation: powerPulse 1.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes powerPulse { 50% { box-shadow: 0 0 0 8px rgba(56, 189, 248, .12), 0 10px 30px rgba(56, 189, 248, .3); } }

/* دکمه «کلیک کن، اسکرول کن» */
.explore-hint {
  position: absolute;
  top: 86px; inset-inline: 0;
  margin: 0 auto;
  width: fit-content; max-width: calc(100vw - 30px);
  display: flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  padding: 11px 20px; border-radius: 99px;
  color: var(--fg); cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(10, 20, 50, .16);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s, border-color .3s;
  animation: hintPulse 2.2s ease-in-out infinite;
}
.stage.show-ui .explore-hint { opacity: 1; visibility: visible; }
.explore-hint.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--glow), 0 10px 30px var(--glow);
  animation: none;
}
.eh-icon { font-size: 16px; }
@keyframes hintPulse { 50% { transform: translateY(-4px); } }

.stage.exploring #scene { cursor: ns-resize; }
.stage:not(.exploring).show-ui #scene { cursor: pointer; }

.rail {
  position: absolute; bottom: 20px; inset-inline: 0;
  display: flex; justify-content: center; gap: 8px;
  padding: 0 16px;
  overflow-x: auto; scrollbar-width: none;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.stage.show-ui .rail { opacity: 1; visibility: visible; }
.rail::-webkit-scrollbar { display: none; }
.thumb {
  flex: 0 0 auto;
  font-family: inherit; font-size: 16px;
  width: 45px; height: 45px; border-radius: 14px;
  cursor: pointer; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.thumb:hover { transform: translateY(-4px); }
.thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--glow), 0 8px 22px var(--glow);
  transform: translateY(-4px) scale(1.06);
}

/* ── تعرفه‌ها ────────────────────────────────────────── */
.pricing-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 30px 26px;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s var(--ease), border-color .35s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured {
  border: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 22px 60px var(--glow);
}
.price-badge {
  position: absolute; top: -13px; inset-inline-start: 24px;
  font-size: 11.5px; font-weight: 800;
  padding: 5px 14px; border-radius: 99px;
  color: var(--btn-fg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.price-card h3 { font-size: 19px; font-weight: 800; }
.price-amount { font-size: 22px; font-weight: 800; color: var(--accent); }
.price-period { font-size: 12.5px; color: var(--muted); margin-top: -8px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price-features li {
  font-size: 13.5px; color: var(--muted);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.7;
}
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 800; }
.pricing-note {
  text-align: center; font-size: 13.5px; color: var(--muted);
  line-height: 2; max-width: 620px; margin: 30px auto 0;
  padding: 14px 22px; border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
}

/* ── فرایند ──────────────────────────────────────────── */
.process-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: 26px 22px;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.step-num {
  position: absolute; top: 18px; inset-inline-end: 20px;
  font-size: 38px; font-weight: 800;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
}
.step-icon { font-size: 30px; }
.step-card h3 { font-size: 16.5px; font-weight: 800; }
.step-card p { font-size: 13.5px; color: var(--muted); line-height: 1.9; }

/* ── مقالات ──────────────────────────────────────────── */
.articles-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.article-card {
  padding: 26px 24px;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
  transition: transform .35s var(--ease), border-color .35s;
}
.article-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.article-icon { font-size: 32px; }
.article-card h3 { font-size: 17px; font-weight: 800; line-height: 1.7; }
.article-card p { font-size: 13.5px; color: var(--muted); line-height: 1.95; flex: 1; }
.article-meta { font-size: 12px; color: var(--muted); }
.article-read { font-size: 13.5px; font-weight: 700; color: var(--accent); }

/* ── سؤالات متداول ───────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-q {
  width: 100%;
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--fg); background: transparent; border: 0; cursor: pointer;
  padding: 19px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: start;
}
.faq-q::after { content: '＋'; font-size: 18px; color: var(--accent); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .45s var(--ease);
}
.faq-a p { padding: 0 22px 20px; font-size: 14px; color: var(--muted); line-height: 2; }

/* ── تماس ────────────────────────────────────────────── */
.contact-sec { padding: clamp(64px, 9vw, 110px) clamp(18px, 5vw, 60px); }
.contact-card {
  max-width: 860px; margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% -60px, color-mix(in srgb, var(--accent) 14%, transparent), transparent),
    var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.contact-logo { width: 58px; height: 58px; border-radius: 16px; box-shadow: 0 10px 30px var(--glow); }
.contact-card h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.contact-card p { font-size: 14.5px; color: var(--muted); line-height: 2.1; max-width: 560px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ── پابرگ ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--bg2); }
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 44px clamp(18px, 5vw, 60px) 20px;
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 13px; align-items: flex-start; }
.foot-logo { width: 42px; height: 42px; border-radius: 12px; }
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links b { font-size: 14px; margin-bottom: 4px; }
.footer-links a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; flex-direction: column; gap: 9px; }
.footer-social b { font-size: 14px; margin-bottom: 4px; }
.footer-social a {
  font-size: 13.5px; color: var(--muted); text-decoration: none;
  display: flex; align-items: center; gap: 7px;
  transition: color .3s;
}
.footer-social a:hover { color: var(--accent); }
.footer-copy {
  text-align: center; font-size: 12.5px; color: var(--muted);
  padding: 16px; border-top: 1px solid var(--line);
}

/* ── مودال مقاله ─────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.open { display: block; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 8, 16, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  position: absolute; inset-inline: 0; top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  width: min(720px, calc(100vw - 32px));
  max-height: 86vh; overflow-y: auto;
  padding: clamp(26px, 4vw, 44px);
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  animation: modalIn .4s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(calc(-50% + 26px)); } }
.modal-close {
  position: absolute; top: 18px; inset-inline-end: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  font-family: inherit; font-size: 15px;
  color: var(--fg); background: var(--card); border: 1px solid var(--line);
  cursor: pointer;
}
.modal-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.modal-title { font-size: clamp(20px, 3.4vw, 28px); font-weight: 800; line-height: 1.6; margin-bottom: 16px; }
.modal-body { display: flex; flex-direction: column; gap: 13px; margin-bottom: 24px; }
.modal-body p { font-size: 14.5px; line-height: 2.15; color: var(--muted); }
.modal-body strong { color: var(--fg); }

/* ── صفحات داخلی ─────────────────────────────────────── */
.subpage { background: var(--bg); }
.page-main { max-width: 1240px; margin: 0 auto; padding: 130px clamp(18px, 5vw, 60px) 70px; }
.page-hero { text-align: center; max-width: 660px; margin: 0 auto clamp(36px, 5vw, 54px); }
.page-hero h1 {
  font-size: clamp(30px, 5.4vw, 52px); font-weight: 800; margin-bottom: 14px;
  background: linear-gradient(160deg, var(--fg) 40%, var(--accent) 85%, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p { font-size: clamp(14px, 2vw, 16.5px); color: var(--muted); line-height: 2.1; }
.nav-link.active { background: var(--card); color: var(--accent); font-weight: 700; }
.page-grid { margin-top: 10px; }

.page-cta {
  margin-top: clamp(44px, 7vw, 80px);
  text-align: center;
  padding: clamp(34px, 5vw, 54px);
  border-radius: 28px;
  background:
    radial-gradient(500px 240px at 50% -40px, color-mix(in srgb, var(--accent) 14%, transparent), transparent),
    var(--card-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.page-cta h2 { font-size: clamp(19px, 3.2vw, 28px); font-weight: 800; }

/* کارت مرورگر (صفحه پروژه‌ها) */
.browser-card { background: #10131c; }
.bc-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 13px;
}
.bc-dots { display: flex; gap: 5px; }
.bc-dots i { width: 9px; height: 9px; border-radius: 50%; }
.bc-dots i:nth-child(1) { background: #ff5f57; }
.bc-dots i:nth-child(2) { background: #febc2e; }
.bc-dots i:nth-child(3) { background: #28c840; }
.bc-url {
  flex: 1; text-align: center;
  font-size: 11px; color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
  padding: 4px 12px; border-radius: 99px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-view { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: #fff; }
.bc-shot { width: 100%; display: block; object-fit: cover; object-position: top; height: 100%; }
.work-card:hover .bc-shot { object-position: bottom; transition: object-position 6s linear; }
.bc-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff; text-align: center;
}
.bcf-emoji { font-size: 44px; margin-bottom: 4px; }
.bc-fallback b { font-size: 21px; font-weight: 800; }
.bc-fallback i { font-style: normal; font-size: 12.5px; opacity: .8; }
.work-actions { margin-top: 4px; }
.btn.sm { padding: 9px 18px; font-size: 12.5px; }
.btn.ghost.disabled { opacity: .55; pointer-events: none; }

/* فرم تماس */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-form {
  padding: clamp(24px, 4vw, 38px);
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}
.contact-form .btn { align-self: flex-start; }
.contact-form .btn:disabled { opacity: .6; pointer-events: none; }

.form-success {
  grid-column: 1;
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
  background: var(--card-solid);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 26px;
  box-shadow: 0 20px 60px var(--glow);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.fs-icon { font-size: 46px; }
.form-success h2 { font-size: clamp(19px, 3vw, 26px); font-weight: 800; }
.form-success p { color: var(--muted); line-height: 2; max-width: 420px; }

.contact-aside { display: flex; flex-direction: column; gap: 12px; }
.contact-aside h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.way-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none; color: var(--fg);
  transition: transform .3s var(--ease), border-color .3s;
}
a.way-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.way-icon { font-size: 24px; }
.way-card b { font-size: 14.5px; display: block; }
.way-card p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* نمای کامل مقاله */
.article-full { max-width: 760px; margin: 0 auto; }
.article-back {
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--accent); background: transparent; border: 0; cursor: pointer;
  margin-bottom: 26px; padding: 8px 0;
}
.article-back:hover { text-decoration: underline; }
.af-head { margin-bottom: 26px; }
.af-icon { font-size: 44px; display: block; margin-bottom: 12px; }
.af-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.af-head h1 { font-size: clamp(24px, 4.4vw, 38px); font-weight: 800; line-height: 1.7; }
.af-body { margin-bottom: 34px; }
.af-body p { font-size: 15px; }
.af-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ── درباره ما / خدمات / پکیج‌ها ─────────────────────── */
.about-logo { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 14px 40px var(--glow); margin-bottom: 18px; }
.about-lead { font-weight: 700; color: var(--accent) !important; }
.about-story { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 54px); display: flex; flex-direction: column; gap: 18px; }
.about-story p { font-size: 15.5px; line-height: 2.3; color: var(--muted); }
.about-story b { color: var(--fg); }

.about-stats {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: 860px; margin: 0 auto clamp(40px, 6vw, 64px);
}
.astat {
  text-align: center; padding: 22px 14px;
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
}
.astat b {
  display: block; font-size: 30px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.astat span { font-size: 12.5px; color: var(--muted); }

.section-inner { margin-top: clamp(40px, 6vw, 70px); }
.inner-title { text-align: center; font-size: clamp(23px, 3.8vw, 34px); font-weight: 800; margin-bottom: 10px; }
.inner-sub { text-align: center; font-size: 14.5px; color: var(--muted); margin-bottom: 30px; }

.commit-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.commit-card {
  padding: 24px 22px;
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .3s var(--ease), border-color .3s;
}
.commit-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.commit-icon { font-size: 28px; }
.commit-card h3 { font-size: 16px; font-weight: 800; }
.commit-card p { font-size: 13.5px; color: var(--muted); line-height: 2; }

.cta-sub { font-size: 14px; color: var(--muted); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* خدمات — به زبان ساده */
.svc-list { display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin: 0 auto; }
.svc-card {
  padding: clamp(22px, 3.6vw, 32px);
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s;
}
.svc-card:hover { transform: translateY(-4px); }
.svc-card.svc-hot {
  border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 20px 60px var(--glow);
  background:
    radial-gradient(420px 200px at 85% -40px, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
    var(--card-solid);
}
.svc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.svc-icon { font-size: 32px; }
.svc-head h2 { font-size: clamp(18px, 2.8vw, 23px); font-weight: 800; flex: 1; }
.svc-simple { font-size: 14.5px; line-height: 2.2; color: var(--fg); margin-bottom: 10px; }
.svc-why { font-size: 13.5px; line-height: 2.1; color: var(--muted); }
.svc-why b { color: var(--accent); }

/* پکیج‌ها — ۴ ستون در دسکتاپ، ۲ در تبلت، ۱ در موبایل */
.package-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
@media (max-width: 1100px) { .package-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .package-grid { grid-template-columns: 1fr; } }

/* قیمت با تخفیف */
.price-line { display: flex; align-items: center; gap: 9px; min-height: 22px; }
.price-old {
  font-size: 15px; font-weight: 600; color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
}
.price-off {
  font-size: 10.5px; font-weight: 800;
  padding: 3px 9px; border-radius: 99px;
  color: #fff; background: #ef4444;
  letter-spacing: .2px;
}
.pk-head { display: flex; align-items: center; gap: 10px; }
.pk-icon { font-size: 27px; }
.pk-who {
  font-size: 12.5px; line-height: 1.9; color: var(--muted);
  padding: 10px 13px; border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent);
}
.pk-who b { color: var(--accent); display: block; margin-bottom: 2px; }
.pk-desc { font-size: 13.5px; line-height: 2; color: var(--muted); }

/* ── صفحه «چرا سایت؟» ────────────────────────────────── */
.why-hero h1 { line-height: 1.9 !important; font-size: clamp(24px, 4.4vw, 42px) !important; }
.persona-list { display: flex; flex-direction: column; gap: 20px; max-width: 880px; margin: 0 auto; }
.persona-card {
  padding: clamp(22px, 3.6vw, 34px);
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--shadow);
}
.persona-block { margin-top: 14px; padding: 14px 18px; border-radius: 16px; }
.persona-block b { display: block; font-size: 13.5px; margin-bottom: 6px; }
.persona-block p { font-size: 14px; line-height: 2.15; }
.persona-block.pain { background: color-mix(in srgb, #ef4444 7%, transparent); border: 1px solid color-mix(in srgb, #ef4444 25%, transparent); }
.persona-block.pain b { color: #ef4444; }
.persona-block.need { background: color-mix(in srgb, var(--accent) 7%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.persona-block.need b { color: var(--accent); }
.persona-block.grow { background: color-mix(in srgb, #22c55e 7%, transparent); border: 1px solid color-mix(in srgb, #22c55e 25%, transparent); }
.persona-block.grow b { color: #16a34a; }
.persona-block p { color: var(--muted); }
.persona-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.urgency {
  margin-top: clamp(44px, 7vw, 80px);
  text-align: center;
  padding: clamp(36px, 5.4vw, 60px);
  border-radius: 30px;
  background:
    radial-gradient(600px 280px at 50% -60px, color-mix(in srgb, #ef4444 12%, transparent), transparent),
    var(--card-solid);
  border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.urgency h2 { font-size: clamp(20px, 3.6vw, 30px); font-weight: 800; }
.urgency p { font-size: 14.5px; color: var(--muted); line-height: 2.2; max-width: 620px; }

/* ── مودال نمایش زنده سایت ───────────────────────────── */
.live-modal { position: fixed; inset: 0; z-index: 95; display: none; }
.live-modal.open { display: block; }
.live-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 8, 16, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.live-box {
  position: absolute; inset: 3vh 3vw;
  display: flex; flex-direction: column;
  background: #10131c;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  animation: liveIn .35s var(--ease);
}
@keyframes liveIn { from { opacity: 0; transform: scale(.97); } }
.live-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #10131c;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  flex: 0 0 auto;
}
.live-url {
  flex: 1; text-align: center;
  font-size: 12.5px; color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .08);
  padding: 6px 14px; border-radius: 99px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-open, .live-close {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: inherit; font-size: 15px;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .08);
  border: 0; cursor: pointer; text-decoration: none;
  transition: background .25s, color .25s;
}
.live-open:hover, .live-close:hover { background: var(--accent); color: #fff; }
.live-body { position: relative; flex: 1; background: #fff; }
.live-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #10131c; color: rgba(255, 255, 255, .6); font-size: 13px;
  z-index: 2;
}
.live-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ── همبرگر و منوی کشویی موبایل ───────────────────────── */
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--card-solid);
  border: 1px solid var(--line);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  box-shadow: 0 2px 8px rgba(15, 25, 55, .07);
  transition: all .3s var(--ease);
  flex: 0 0 auto;
}
.burger span {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--fg);
  transition: transform .3s var(--ease), opacity .25s;
}
.burger.on { border-color: var(--accent); }
.burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 8, 16, .5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(320px, 86vw);
  background: var(--bg2);
  border-inline-start: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column;
  padding: 18px 18px 22px;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  overflow-y: auto;
}
[dir='rtl'] .drawer-panel { transform: translateX(-100%); }
.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.drawer-logo { width: 34px; height: 34px; border-radius: 10px; }
.drawer-head .brand-name { flex: 1; font-size: 16px; }
.drawer-close {
  width: 34px; height: 34px; border-radius: 10px;
  font-family: inherit; font-size: 14px;
  color: var(--fg); background: var(--card); border: 1px solid var(--line);
  cursor: pointer;
}
.drawer-close:active { transform: scale(.94); }

.drawer-links { display: flex; flex-direction: column; gap: 3px; }
.drawer-link {
  font-size: 15.5px; font-weight: 600;
  color: var(--fg); text-decoration: none;
  padding: 13px 14px; border-radius: 13px;
  transition: background .25s, color .25s;
}
.drawer-link:active { background: var(--card); }
.drawer-link.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.drawer-tools {
  display: flex; flex-direction: column; gap: 8px;
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.drawer-tool {
  display: flex; align-items: center; gap: 11px;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--fg); cursor: pointer;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  text-align: start;
  transition: border-color .25s;
}
.drawer-tool:active { border-color: var(--accent); }
.dt-icon { font-size: 18px; line-height: 1; }

.drawer-cta {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 18px;
}
.drawer-cta .btn { width: 100%; justify-content: center; }
.drawer-social {
  font-size: 13px; color: var(--muted); text-decoration: none;
  display: flex; align-items: center; gap: 7px; justify-content: center;
}


/* ── نوار اقدام پایین (موبایل) ─────────────────────────── */
.action-bar {
  position: fixed;
  bottom: 0; inset-inline: 0;
  z-index: 70;
  display: none;
  align-items: center; gap: 9px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(10, 20, 50, .10);
  transition: transform .35s var(--ease), opacity .3s;
}
.action-bar.hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.ab-cta {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 14.5px; font-weight: 800;
  padding: 13px 16px; border-radius: 99px;
  color: var(--btn-fg); text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 20px var(--glow);
  white-space: nowrap;
}
.ab-cta:active { transform: scale(.97); }
.ab-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 19px; text-decoration: none;
  background: var(--card-solid);
  border: 1px solid var(--line);
  box-shadow: 0 3px 10px rgba(15, 25, 55, .08);
}
.ab-icon:active { transform: scale(.94); border-color: var(--accent); }


/* ── موکاپ گوشی هیرو (ناچ + نوار آدرس) ────────────────── */
.phone-notch {
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 42%; height: 22px;
  background: #0b0d12;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-bar {
  position: relative; z-index: 2;
  margin: 0 0 4px;
  padding: 30px 10px 7px;
  background: #14161d;
  border-radius: 22px 22px 0 0;
  text-align: center;
}
.phone-bar span {
  display: inline-block;
  max-width: 90%;
  font-size: 9.5px; color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.1);
  padding: 4px 12px; border-radius: 99px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-phone canvas { transition: opacity .28s var(--ease); background: #fff; }

/* ── کارت‌های خدمات: تیلت سه‌بعدی و گرادیان (ترند ۲۰۲۶) ── */
.services-grid { perspective: 1200px; }
.service-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(140deg,
    color-mix(in srgb, var(--sc1) 30%, transparent),
    color-mix(in srgb, var(--sc2) 22%, transparent) 52%,
    transparent 88%);
  opacity: .85;
  transition: opacity .4s;
  pointer-events: none;
}
.service-card::after {
  content: '';
  position: absolute;
  width: 190px; height: 190px; border-radius: 50%;
  top: -70px; inset-inline-end: -60px;
  background: radial-gradient(circle, color-mix(in srgb, var(--sc2) 55%, transparent), transparent 66%);
  filter: blur(24px);
  opacity: .85;
  transition: transform .5s var(--ease), opacity .4s;
  pointer-events: none;
}
.service-card:hover { opacity: 1; }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scale(1.35) translate(-16px, 16px); opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-card .service-icon {
  background: linear-gradient(135deg, var(--sc1), var(--sc2));
  border: 0;
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--sc1) 40%, transparent);
  transition: transform .45s var(--ease);
}
.service-card:hover .service-icon { transform: translateZ(30px) scale(1.08) rotate(-6deg); }
.service-card h3 { transition: transform .45s var(--ease); }
.service-card:hover h3 { transform: translateZ(18px); }
.service-more { transition: gap .3s; gap: 6px; }
.service-card:hover .service-more { gap: 12px; }

/* کارت‌های صفحه خدمات: همان حال‌وهوا */
.svc-list { perspective: 1400px; }
.svc-card {
  --sc1: #0891b2; --sc2: #7c3aed;
  position: relative; overflow: hidden;
  border-color: color-mix(in srgb, var(--sc1) 24%, var(--line));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
}
.svc-card::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px; border-radius: 50%;
  top: -110px; inset-inline-end: -90px;
  background: radial-gradient(circle, color-mix(in srgb, var(--sc1) 34%, transparent), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
  transition: transform .55s var(--ease);
}
.svc-card:hover::before { transform: scale(1.3) translate(-14px, 20px); }
.svc-card > * { position: relative; z-index: 1; }
.svc-card .svc-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, var(--sc1), var(--sc2));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--sc1) 38%, transparent);
  transition: transform .45s var(--ease);
}
.svc-card:hover .svc-icon { transform: scale(1.08) rotate(-6deg); }

/* ── دکمه بستن بخش سه‌بعدی ──────────────────────────── */
.stage-close {
  position: absolute;
  top: 76px; inset-inline-end: clamp(14px, 3vw, 34px);
  z-index: 6;
  width: 46px; height: 46px; border-radius: 50%;
  font-family: inherit; font-size: 17px; font-weight: 700;
  color: var(--fg); cursor: pointer;
  background: color-mix(in srgb, var(--card-solid) 72%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(10, 20, 50, .16);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s, transform .3s var(--ease), border-color .3s;
}
.stage.show-ui .stage-close { opacity: 1; visibility: visible; }
.stage-close:hover { transform: rotate(90deg) scale(1.06); border-color: var(--accent); color: var(--accent); }

/* ── آیکن‌های نوار اقدام (SVG به‌جای ایموجی) ─────────── */
.ab-icon svg { width: 21px; height: 21px; }
.ab-icon.tg { color: #229ED9; }
.ab-icon.pr { color: var(--accent); }


/* ── مودال سفارش ───────────────────────────────────────── */
.order-card { display: flex; flex-direction: column; gap: 14px; }
.order-sub { font-size: 13.5px; color: var(--muted); line-height: 1.9; margin-top: -6px; }
.order-pkg {
  display: flex; flex-direction: column; gap: 4px;
  padding: 13px 16px; border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}
.order-pkg b { font-size: 12px; color: var(--accent); }
.order-pkg span { font-size: 14.5px; font-weight: 700; }
.captcha-field label b { color: var(--accent); font-size: 15px; direction: ltr; display: inline-block; }
.field-hint { font-size: 11.5px; color: var(--muted); }
.field-err { font-size: 12.5px; color: #ef4444; font-weight: 600; }
.order-card .btn { align-self: stretch; justify-content: center; }
.order-success {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 0;
}
.order-success h3 { font-size: 19px; font-weight: 800; }
.order-success p { font-size: 14px; color: var(--muted); line-height: 1.9; }

/* ── کارت‌های ارتباطی صفحه تماس ───────────────────────── */
.way-icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
}
.way-icon svg { width: 22px; height: 22px; }
.ic-tg { color: #229ED9; background: color-mix(in srgb, #229ED9 12%, transparent); border-color: color-mix(in srgb, #229ED9 28%, transparent); }
.ic-ig { color: #E1306C; background: color-mix(in srgb, #E1306C 12%, transparent); border-color: color-mix(in srgb, #E1306C 28%, transparent); }
.ic-mail { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.ic-web { color: var(--accent2); background: color-mix(in srgb, var(--accent2) 12%, transparent); border-color: color-mix(in srgb, var(--accent2) 28%, transparent); }
.ic-clock { color: #16a34a; background: color-mix(in srgb, #16a34a 12%, transparent); border-color: color-mix(in srgb, #16a34a 28%, transparent); }
.way-txt { min-width: 0; }
.way-txt b {
  display: block; font-size: 14.5px; font-weight: 700;
  direction: ltr; text-align: start;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.way-txt p { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── ریسپانسیو ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { gap: 0; }
  .nav-link { font-size: 13px; padding: 7px 10px; }
}

@media (max-width: 900px) {
  /* نوار اقدام پایین */
  .action-bar { display: flex; }
  body { padding-bottom: 74px; }
  .footer-copy { padding-bottom: 20px; }
  /* ریل سه‌بعدی بالاتر از نوار */
  .rail { bottom: 84px !important; }
  .live-box { bottom: 0; }

  /* هیرو تک‌ستونی */
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-inner { align-items: center; text-align: center; }
  .hero-inner .hero-ctas, .hero-inner .hero-points { align-items: center; }
  .hero-points li { text-align: start; }
  .hero-visual { width: 100%; margin: 0 auto; }

  .nav { padding: 10px 16px; }
  .brand-name { font-size: 16px; }
  .brand-logo { width: 30px; height: 30px; }
  /* فقط لوگو + همبرگر */
  .nav-links, .nav-tools { display: none; }
  .burger { display: flex; }
  .page-main { padding-top: 96px; }
}

@media (max-width: 760px) {
  /* قهرمان */
  .hero-sec { padding: 110px 18px 56px; min-height: auto; }
  .hero-title { font-size: clamp(40px, 13vw, 60px); }
  .hero-sub { font-size: 14.5px; line-height: 2.1; }
  .hero-eyebrow { font-size: 12px; padding: 7px 14px; }
  .hero-typed { font-size: 16px; min-height: 28px; flex-wrap: wrap; justify-content: center; }
  .hero-points li { font-size: 13px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; min-width: 145px; justify-content: center; }
  /* هیروی موبایل: گوشی در مرکز، عکس هوش مصنوعی پشت آن */
  .hero-visual {
    width: 100%;
    min-height: 400px;
    align-items: center; justify-content: center;
    margin-top: 6px;
  }
  .visual-card {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    width: 250px; aspect-ratio: 1 / 1.15;
    border-radius: 26px;
    opacity: .55;
    box-shadow: 0 20px 50px rgba(20, 35, 80, .18), 0 0 0 6px color-mix(in srgb, var(--accent) 6%, transparent);
  }
  .mock-laptop { display: none; }
  .mock-phone {
    position: relative;
    top: auto; bottom: auto;
    inset-inline: auto;
    width: 178px;
    margin: 34px auto 0;
    border-radius: 32px; padding: 8px;
    border-width: 2px;
    box-shadow: 0 26px 55px rgba(10, 20, 50, .32);
    animation: floaty 7s ease-in-out infinite;
  }
  .mock-phone canvas { border-radius: 0 0 25px 25px; }
  .mock-phone::before { display: none; }

  /* بخش‌ها */
  .section, .contact-sec { padding: 56px 16px; }
  .page-main { padding: 92px 16px 56px; }
  .sec-head { margin-bottom: 30px; }
  .sec-head h2 { font-size: clamp(23px, 6.4vw, 30px); }
  .sec-head p, .page-hero p { font-size: 13.5px; line-height: 2; }
  .page-hero h1 { font-size: clamp(25px, 7.4vw, 34px); }
  .inner-title { font-size: clamp(20px, 5.6vw, 26px); }

  /* گریدها → تک‌ستونی */
  .services-grid, .work-grid, .articles-grid, .process-grid,
  .pricing-grid, .package-grid, .commit-grid, .about-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-card, .price-card, .article-card, .step-card,
  .commit-card, .svc-card, .persona-card { padding: 20px 18px; border-radius: 18px; }
  .work-card { border-radius: 18px; }
  .price-amount { font-size: 20px; }
  .price-features li { font-size: 13px; }
  .filters { gap: 6px; margin-bottom: 24px; }
  .filter-btn { font-size: 12.5px; padding: 8px 15px; }

  /* متن‌ها */
  .about-story p, .svc-simple { font-size: 14px; line-height: 2.1; }
  .persona-block p { font-size: 13px; line-height: 2; }
  .persona-cta { flex-direction: column; }
  .persona-cta .btn { width: 100%; justify-content: center; }
  .urgency, .page-cta { padding: 28px 20px; border-radius: 22px; }
  .urgency h2, .page-cta h2 { font-size: clamp(18px, 5vw, 23px); }
  .cta-row { width: 100%; flex-direction: column; }
  .cta-row .btn { width: 100%; justify-content: center; }

  /* فرم تماس */
  .contact-layout { gap: 16px; }
  .contact-form { padding: 20px 18px; border-radius: 20px; }
  .contact-form .btn { align-self: stretch; justify-content: center; }
  .field input, .field select, .field textarea { font-size: 15px; }
  .contact-card { padding: 32px 20px; border-radius: 22px; }
  .contact-actions { width: 100%; flex-direction: column; }
  .contact-actions .btn { width: 100%; justify-content: center; }

  /* مقاله */
  .af-body p, .modal-body p { font-size: 14px; line-height: 2.1; }
  .af-cta { flex-direction: column; }
  .af-cta .btn { width: 100%; justify-content: center; }
  .modal-card { padding: 22px 18px; max-height: 88vh; }
  .order-card { gap: 11px; }
  .order-card .field label { font-size: 13px; }
  .stage-close { top: 64px; width: 42px; height: 42px; font-size: 15px; }

  /* بخش سه‌بعدی */
  .three-head { padding: 46px 18px 8px; }
  .explore-hint { top: 68px; font-size: 12px; padding: 9px 15px; }
  .rail { bottom: 12px; justify-content: flex-start; padding: 0 12px; }
  .thumb { width: 42px; height: 42px; font-size: 15px; }

  /* مودال زنده */
  .live-box { inset: 0; border-radius: 0; }
  .live-bar { padding: 8px 10px; gap: 8px; }
  .live-url { font-size: 11px; padding: 5px 10px; }

  /* پابرگ */
  .footer-inner { flex-direction: column; gap: 22px; padding: 32px 16px 16px; }
  .btn { padding: 12px 20px; font-size: 13.5px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 36px; }
  .nav-link { font-size: 12px; padding: 6px 9px; }
  .brand-name { font-size: 14px; }
  .thumb { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .wheel, .loader-mark, .blob, .live-spin { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
