/**
 * ===================================================================
 * YAZDAN SERVER | یزدان سرور
 * استایل اختصاصی، مدرن و پرفورمنس‌محور فرانت‌اند (CSS3)
 * طراحی شده مطابق هویت بصری، رنگ‌ها و خطوط هندسی کتابچه برند
 * ===================================================================
 */

/* ===================================================================
   ۱. بارگذاری فونت محلی فارسی (Vazirmatn) - بدون وابستگی به CDN
   =================================================================== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2 supports variations'),
       url('../fonts/Vazirmatn-Variable.woff2') format('woff2-variations'),
       url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===================================================================
   ۲. متغیرهای سراسری (CSS Custom Properties)
   =================================================================== */
:root,
[data-theme="dark"] {
  /* پالت رنگی قالب لوکس و مدرن Elegant Dark بر پایه کتابچه هویت بصری یزدان سرور */
  --color-brand-cyan: #00F5FF;
  --color-brand-cyan-light: #52F8FF;
  --color-brand-cyan-glow: rgba(0, 245, 255, 0.28);
  --color-brand-blue: #3B82F6;
  --color-brand-blue-deep: #1D4ED8;
  --color-brand-charcoal: #1E293B;

  /* سیستم رنگ‌های تیره و صنعتی مدرن Elegant Dark */
  --color-bg-base: #0B0E14;
  --color-bg-surface: rgba(255, 255, 255, 0.02);
  --color-bg-surface-elevated: #111722;
  --color-bg-card: rgba(255, 255, 255, 0.025);
  --color-bg-subtle: #080B10;

  /* مرزها و خطوط هندسی */
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(0, 245, 255, 0.35);
  --color-border-active: #00F5FF;

  /* سیستم تایپوگرافی و کنتراست بالا */
  --color-text-white: #F8FAFC;
  --color-text-body: #94A3B8;
  --color-text-muted: #64748B;
  --color-text-dim: #475569;
  
  /* وضعیت‌ها */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* تایپوگرافی */
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Century Gothic', 'CenturyGothic', -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* ابعاد و شبکه‌بندی */
  --container-max-width: 1220px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-pill: 9999px;

  /* سایه‌ها و نورپردازی نرم */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-cyan-glow: 0 0 25px rgba(0, 245, 255, 0.28);
  
  /* ترنزیشن استاندارد */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================================
   قالب روشن (Light Theme) با کنتراست بالا و رعایت دقیق اصول طراحی
   =================================================================== */
[data-theme="light"] {
  --color-brand-cyan: #0284C7;
  --color-brand-cyan-light: #0EA5E9;
  --color-brand-cyan-glow: rgba(2, 132, 199, 0.2);
  --color-brand-blue: #2563EB;
  --color-brand-blue-deep: #1D4ED8;
  --color-brand-charcoal: #334155;

  --color-bg-base: #F8FAFC;
  --color-bg-surface: #FFFFFF;
  --color-bg-surface-elevated: #F1F5F9;
  --color-bg-card: #FFFFFF;
  --color-bg-subtle: #F1F5F9;

  --color-border-subtle: rgba(148, 163, 184, 0.25);
  --color-border-hover: rgba(2, 132, 199, 0.45);
  --color-border-active: #0284C7;

  --color-text-white: #0F172A;
  --color-text-body: #334155;
  --color-text-muted: #64748B;
  --color-text-dim: #94A3B8;

  --shadow-subtle: 0 4px 20px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.07), 0 0 1px 1px rgba(15, 23, 42, 0.05);
  --shadow-cyan-glow: 0 0 25px rgba(2, 132, 199, 0.15);
}

/* ===================================================================
   ۳. بازنشانی پایه (CSS Reset) و قواعد دسترسی‌پذیری
   =================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

html[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .header-brand {
  direction: ltr;
}

html[dir="ltr"] .header-actions {
  direction: rtl;
}

html[dir="ltr"] .lang-switcher-menu {
  direction: ltr;
}

html[dir="ltr"] .nav-link::after {
  right: auto;
  left: 0;
}

html[dir="ltr"] .founder-story-quote {
  padding: 18px 16px 18px 22px;
  border-right: 0;
  border-left: 2px solid var(--color-brand-cyan);
}

html[dir="ltr"] .founder-story-quote-mark {
  right: auto;
  left: 18px;
}

html[dir="ltr"] .footer-col-title::after {
  right: auto;
  left: 0;
}

html[dir="ltr"] .floating-contact-wrapper {
  left: auto;
  right: 20px;
}

html[dir="ltr"] .form-input,
html[dir="ltr"] .form-select,
html[dir="ltr"] .form-textarea {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .form-input[type="tel"],
html[dir="ltr"] .contact-value,
html[dir="ltr"] [data-contact-text] {
  direction: ltr;
  text-align: left !important;
}

html[dir="ltr"] .process-detail {
  right: auto;
  left: 36px;
}

html[dir="ltr"] .process-progress-fill {
  transform-origin: left center;
}

html[dir="ltr"] .footer-link:hover {
  transform: translateX(4px);
}

html[dir="ltr"] .contact-direct-card,
html[dir="ltr"] .footer-contact-item {
  text-align: left;
}

body {
  font-family: var(--font-fa);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-body);
  background-color: var(--color-bg-base);
  background-image: 
    radial-gradient(circle at 10% 10%, #161e2e 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, #082f49 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-locked {
  overflow: hidden;
}

/* کانتینر ایزوله پس‌زمینه که مانع هرگونه سرریز و اسکرول افقی روی موبایل می‌شود */
.bg-decorations-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* درخشش اتمسفریک سبک Elegant Dark با ابعاد ایمن */
.ambient-glow-orb {
  position: absolute;
  top: 60px;
  right: -80px;
  width: min(480px, 90vw);
  height: min(480px, 90vw);
  background: rgba(0, 245, 255, 0.06);
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-orb-secondary {
  position: absolute;
  top: 900px;
  left: -120px;
  width: min(420px, 85vw);
  height: min(420px, 85vw);
  background: rgba(59, 130, 246, 0.05);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* حلقه فوکوس کیبورد برای دسترسی‌پذیری */
:focus-visible {
  outline: 2px solid var(--color-brand-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* پس‌زمینه شبکه مهندسی / خطوط ایزومتریک برگرفته از گایدلاین برند */
.tech-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(32, 178, 206, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32, 178, 206, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
  z-index: 0;
}

/* ===================================================================
   ۴. کانتینر و ساختار کلی صفحه
   =================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }
}

@media (max-width: 640px) {
  .entry-banner-wrapper.container {
    width: calc(100% - 32px);
    padding-inline: 0;
  }

  .entry-banner,
  .entry-banner-content,
  .entry-text {
    max-width: 100%;
    min-width: 0;
  }

  .entry-banner {
    overflow: hidden;
  }

  .entry-text {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* جلوگیری از سرریز فلکس و گرید در نمایشگرهای کوچک */
.hero-grid > *,
.services-grid > *,
.compare-container > *,
.about-grid > *,
.contact-grid > *,
.hero-content,
.hero-visual-wrapper,
.hero-visual-container {
  min-width: 0;
  max-width: 100%;
}

.section-spacing {
  padding-block: 96px;
  position: relative;
}

@media (max-width: 768px) {
  .section-spacing {
    padding-block: 64px;
  }
}

/* هدر بخش‌ها */
.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background-color: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-cyan);
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.section-tag-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-brand-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-brand-cyan);
}

.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--color-text-white);
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-description {
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  color: var(--color-text-body);
  line-height: 1.8;
}

/* ===================================================================
   ۵. دکمه‌ها و عناصر تعاملی (CTA)
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  min-height: 48px;
  border-radius: var(--radius-md);
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
}

.btn-primary {
  background: var(--color-brand-cyan);
  color: #0B0E14;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 245, 255, 0.22);
  border: 1px solid rgba(0, 245, 255, 0.4);
}

.btn-primary:hover {
  background: #38F8FF;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 245, 255, 0.4);
  color: #0B0E14;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.35);
  color: var(--color-brand-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-brand-cyan);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: var(--radius-pill);
}

.btn-outline:hover {
  background-color: rgba(0, 245, 255, 0.1);
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.2);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #041B0B;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background-color: #2AE26F;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42);
  transform: translateY(-2px);
}

/* آیکون دکمه */
.btn-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  flex-shrink: 0;
}

/* ===================================================================
   ۶. هدر سایت و منوی ناوبری چسبان (Header & Navigation)
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.site-header.header-scrolled {
  background-color: rgba(11, 14, 20, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* لوگو در هدر */
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  height: 44px;
  width: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.header-brand-name {
  color: var(--color-text-white);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.header-brand:hover .header-brand-name {
  color: var(--color-brand-cyan);
}

/* لینک‌های منو */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: #94A3B8;
  position: relative;
  padding: 8px 2px;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00F5FF, #3B82F6);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: #00F5FF;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* دکمه CTA هدر با استایل Elegant Dark */
.header-actions .btn-primary {
  background: transparent;
  border: 1px solid rgba(0, 245, 255, 0.4);
  color: #00F5FF;
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.header-actions .btn-primary:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: #00F5FF;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.25);
  transform: translateY(-1px);
}

/* دکمه منوی موبایل (همبرگر) */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(22, 32, 46, 0.7);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-white);
  cursor: pointer;
}

.hamburger-icon {
  width: 22px;
  height: 22px;
}

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-theme-item,
.primary-nav .mobile-nav-cta {
  display: none;
}

/* واکنش‌گرایی هدر برای موبایل و تبلت */
@media (max-width: 960px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 24px 20px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-smooth);
    z-index: 95;
  }

  .primary-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav .nav-link {
    font-size: 16.5px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  .primary-nav .nav-link:hover,
  .primary-nav .nav-link.active {
    background-color: rgba(32, 178, 206, 0.08);
  }

  .mobile-theme-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    margin-top: 8px;
  }

  .primary-nav .mobile-nav-cta {
    display: block;
    margin-top: 8px;
  }

  .mobile-backdrop.backdrop-visible {
    display: block;
    opacity: 1;
  }
}

/* بهینه‌سازی ابعاد هدر و دکمه‌ها برای موبایل‌های باریک */
@media (max-width: 640px) {
  .site-header {
    height: 68px;
  }

  .header-inner {
    height: 68px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .header-logo-img {
    height: 34px;
    width: auto;
  }

  .header-brand {
    gap: 8px;
    min-width: 0;
  }

  .header-brand-name {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 4px;
    min-width: 0;
    justify-content: flex-end;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }

  .entry-banner-content,
  .entry-text {
    width: 100%;
    min-width: 0;
  }

  .entry-text {
    overflow-wrap: anywhere;
  }

  .primary-nav {
    top: 68px;
  }
}

/* ===================================================================
   ۷. پیام ویژه ورود (Special Entry Message)
   =================================================================== */
.entry-banner-wrapper {
  margin-top: 24px;
  margin-bottom: 16px;
}

.entry-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.entry-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background-color: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-brand-cyan);
  white-space: nowrap;
}

.entry-text {
  font-size: 14.5px;
  color: var(--color-text-body);
  line-height: 1.6;
}

.entry-text strong {
  color: var(--color-text-white);
  font-weight: 600;
}

.entry-banner-action {
  flex-shrink: 0;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-brand-cyan);
  transition: gap var(--transition-fast);
}

.entry-link:hover {
  color: var(--color-brand-cyan-light);
  gap: 10px;
}

@media (max-width: 768px) {
  .entry-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px;
    gap: 14px;
  }
  .entry-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .entry-banner-action {
    align-self: flex-start;
  }
}

/* ===================================================================
   ۸. بخش هیرو (Hero Section)
   =================================================================== */
.hero-section {
  padding-top: 48px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* برچسب تجربه و موسس */
.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  color: var(--color-text-body);
  margin-bottom: 24px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta-founder {
  color: var(--color-brand-cyan);
  font-weight: 700;
}

.hero-meta-divider {
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.hero-headline {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 900;
  color: var(--color-text-white);
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin-bottom: 22px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-headline .text-gradient-cyan {
  background: linear-gradient(135deg, #00F5FF 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(15.5px, 1.3vw, 18.5px);
  color: var(--color-text-body);
  line-height: 1.85;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-cta-group .btn {
  padding: 15px 30px;
  font-size: 16.5px;
}

/* شاخص‌های سریع در هیرو */
.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--color-brand-cyan);
  flex-shrink: 0;
}

.trust-item-text {
  font-size: 13.5px;
  color: var(--color-text-body);
  font-weight: 500;
}

/* ویژوال اختصاصی و مهندسی هیرو */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-visual-container {
  width: 100%;
  max-width: 540px;
  min-width: 0;
  position: relative;
}

.hero-visual-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.22) 0%, rgba(59, 130, 246, 0.1) 60%, transparent 80%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-tech-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.65));
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
    max-width: 100%;
    min-width: 0;
  }
  .hero-headline {
    margin-inline: auto;
    font-size: clamp(26px, 6vw, 42px);
  }
  .hero-description {
    margin-inline: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-trust-bar {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
  }
  .hero-visual-wrapper {
    order: -1;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 24px;
    padding-bottom: 56px;
  }
  .hero-grid {
    gap: 28px;
  }
  .hero-meta-badge {
    font-size: 12px;
    padding: 6px 12px;
    gap: 8px;
    border-radius: var(--radius-md);
    line-height: 1.5;
  }
  .hero-headline {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.35;
    margin-bottom: 16px;
  }
  .hero-description {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 26px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
  }
  .hero-trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
  }
  .hero-visual-wrapper {
    max-width: 100%;
    padding-inline: 0;
  }
}

/* ===================================================================
   ۹. کارت‌های خدمات (۴ کارت اصلی)
   =================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 245, 255, 0.12);
}

.service-card:hover .service-title {
  color: var(--color-brand-cyan);
}

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: var(--color-brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

/* تنوع اکسنت کارت‌های خدمات مطابق طراحی Elegant Dark */
.services-grid .service-card:nth-child(2) .service-icon-wrapper {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  color: #60A5FA;
}

.services-grid .service-card:nth-child(3) .service-icon-wrapper {
  background-color: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #C084FC;
}

.services-grid .service-card:nth-child(4) .service-icon-wrapper {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.service-icon {
  width: 30px;
  height: 30px;
}

.service-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 14px;
  transition: color var(--transition-fast);
}

.service-desc {
  font-size: 15.5px;
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-subtle);
}

.service-tag-item {
  font-size: 12.5px;
  color: #94A3B8;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card {
    padding: 28px 22px;
  }
}

/* ===================================================================
   ۱۰. بخش بسیار مهم: وردپرس در برابر توسعه اختصاصی (WordPress vs Custom)
   =================================================================== */
.compare-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.compare-box {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  position: relative;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border-subtle);
}

/* کارت وردپرس */
.compare-box.box-wordpress {
  border-top: 3px solid #38BDF8;
}

/* کارت توسعه اختصاصی */
.compare-box.box-custom {
  border-top: 3px solid var(--color-brand-cyan);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 245, 255, 0.02) 100%);
  border-color: rgba(0, 245, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 245, 255, 0.08);
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.compare-badge {
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.box-wordpress .compare-badge {
  background-color: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.box-custom .compare-badge {
  background-color: rgba(0, 245, 255, 0.12);
  color: var(--color-brand-cyan);
  border: 1px solid rgba(0, 245, 255, 0.35);
}

.compare-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-text-white);
  margin-bottom: 14px;
}

.compare-desc {
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: 28px;
}

.compare-list-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.compare-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text-body);
}

.compare-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.box-wordpress .compare-check {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
}

.box-custom .compare-check {
  background-color: rgba(0, 245, 255, 0.18);
  color: var(--color-brand-cyan);
}

/* پیام نتیجه‌گیری مهم زیر بخش مقایسه */
.compare-conclusion-banner {
  margin-top: 40px;
  text-align: center;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
}

.compare-conclusion-text {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--color-text-white);
  line-height: 1.7;
}

.compare-conclusion-sub {
  font-size: 14.5px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

@media (max-width: 840px) {
  .compare-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .compare-box {
    padding: 32px 24px;
  }
}

/* ===================================================================
   ۱۱. بخش نمونه‌کارها (Portfolio / Projects)
   =================================================================== */
.portfolio-wrapper {
  margin-top: 24px;
}

.portfolio-empty-state {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  background: var(--color-bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 56px 36px;
}

.portfolio-empty-icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: 20px;
  color: var(--color-brand-cyan);
  background-color: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-empty-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 12px;
}

.portfolio-empty-desc {
  font-size: 15.5px;
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: 28px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
}

/* ===================================================================
   ۱۲. داستان بنیان‌گذار (Founder Story)
   =================================================================== */
.founder-story-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 112px 96px;
  background: linear-gradient(135deg, rgba(16, 23, 35, 0.48), rgba(11, 14, 20, 0));
}

.founder-story-aura {
  position: absolute;
  width: min(52vw, 760px);
  aspect-ratio: 1;
  top: -36%;
  left: -12%;
  background: radial-gradient(circle, rgba(32, 178, 206, 0.13), transparent 68%);
  pointer-events: none;
}

.founder-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  grid-template-areas: 'visual copy' 'points points';
  column-gap: clamp(40px, 6vw, 88px);
  row-gap: 62px;
  align-items: center;
}

.founder-story-copy { grid-area: copy; position: relative; z-index: 2; }

.founder-story-title {
  max-width: 560px;
  margin: 0 0 20px;
  color: var(--color-text-white);
  font-size: clamp(30px, 3.35vw, 46px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.founder-story-lead {
  max-width: 600px;
  margin-bottom: 26px;
  color: var(--color-text-body);
  font-size: 16.5px;
  line-height: 1.95;
}

.founder-story-quote {
  position: relative;
  max-width: 590px;
  margin: 0 0 24px;
  padding: 18px 22px 18px 16px;
  border-right: 2px solid var(--color-brand-cyan);
  background: rgba(32, 178, 206, 0.07);
}

.founder-story-quote::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(32, 178, 206, 0.42), transparent);
}

.founder-story-quote-mark {
  position: absolute;
  top: -12px;
  right: 18px;
  color: var(--color-brand-cyan);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  opacity: .26;
}

.founder-story-quote p {
  position: relative;
  margin: 0;
  color: var(--color-text-white);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.9;
}

.founder-story-detail {
  max-width: 590px;
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.founder-story-visual {
  grid-area: visual;
  position: relative;
  min-height: 445px;
  perspective: 1100px;
  will-change: transform;
}

.founder-story-frame {
  position: absolute;
  inset: 34px -26px -22px 42px;
  border: 1px solid rgba(32, 178, 206, .38);
  border-radius: 32px 12px 32px 12px;
  pointer-events: none;
}

.founder-story-frame::before,
.founder-story-frame::after {
  content: '';
  position: absolute;
  width: 62px;
  height: 62px;
}

.founder-story-frame::before { top: -1px; left: -1px; border-top: 2px solid var(--color-brand-cyan); border-left: 2px solid var(--color-brand-cyan); }
.founder-story-frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--color-brand-cyan); border-right: 2px solid var(--color-brand-cyan); }

.founder-story-image-wrap {
  position: absolute;
  inset: 0 12px 20px 0;
  overflow: hidden;
  border-radius: 10px 34px 10px 34px;
  background: #152230;
  box-shadow: 18px 28px 54px rgba(0, 0, 0, .28);
  transform: translateZ(0);
}

.founder-story-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10, 26, 42, .22), transparent 45%, rgba(32, 178, 206, .1));
  pointer-events: none;
}

.founder-story-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: translateY(var(--story-parallax, 0px));
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
}

.founder-story-caption {
  position: absolute;
  bottom: -6px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--color-brand-cyan);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.founder-story-caption-line { width: 34px; height: 1px; background: currentColor; }

.story-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(.16, 1, .3, 1), transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.story-reveal.story-visible { opacity: 1; transform: translateY(0); }
.founder-story-title.story-reveal { transition-delay: 70ms; }
.founder-story-lead.story-reveal { transition-delay: 130ms; }
.founder-story-quote.story-reveal { transition-delay: 190ms; }
.founder-story-detail.story-reveal { transition-delay: 250ms; }
.founder-story-visual.story-reveal { transform: translateY(18px) scale(.96); transition-duration: 900ms; }
.founder-story-visual.story-reveal.story-visible { transform: translateY(0) scale(1); }

.founder-story-points {
  grid-area: points;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.founder-story-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  min-height: 150px;
  padding: 21px 20px;
  border-top: 1px solid var(--color-border-subtle);
  background: rgba(255, 255, 255, .025);
  transition: opacity 700ms cubic-bezier(.16, 1, .3, 1), transform 700ms cubic-bezier(.16, 1, .3, 1), background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.founder-story-point:nth-child(2) { margin-top: 18px; }
.founder-story-point:nth-child(3) { margin-top: 36px; }
.founder-story-point:nth-child(1).story-reveal { transition-delay: 120ms; }
.founder-story-point:nth-child(2).story-reveal { transition-delay: 190ms; }
.founder-story-point:nth-child(3).story-reveal { transition-delay: 260ms; }

.founder-story-number {
  color: var(--color-brand-cyan);
  font-family: var(--font-en);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition-normal), color var(--transition-normal);
}

.founder-story-point h3 { margin: 0 0 7px; color: var(--color-text-white); font-size: 17px; font-weight: 800; }
.founder-story-point p { margin: 0; color: var(--color-text-muted); font-size: 13.5px; line-height: 1.75; }

@media (hover: hover) and (pointer: fine) {
  .founder-story-point:hover { transform: translateY(-4px); background: rgba(32, 178, 206, .07); border-color: var(--color-border-hover); box-shadow: 0 14px 26px rgba(0, 0, 0, .12); }
  .founder-story-point:hover .founder-story-number { color: var(--color-brand-cyan-light); transform: translateY(-2px); }
  .founder-story-visual:hover .founder-story-image { transform: translateY(var(--story-parallax, 0px)) scale(1.025); }
}

@media (max-width: 900px) {
  .founder-story-section { padding-block: 82px 70px; }
  .founder-story-layout { grid-template-columns: 1fr; grid-template-areas: 'copy' 'visual' 'points'; row-gap: 42px; }
  .founder-story-visual { width: min(100%, 620px); min-height: 420px; margin-inline: auto; }
  .founder-story-points { gap: 12px; }
}

@media (max-width: 640px) {
  .founder-story-section { padding-block: 68px 60px; }
  .founder-story-title { font-size: clamp(29px, 8vw, 36px); }
  .founder-story-lead { font-size: 15.5px; }
  .founder-story-visual { min-height: 280px; }
  .founder-story-frame { inset: 20px -8px -14px 20px; border-radius: 24px 8px 24px 8px; }
  .founder-story-image-wrap { inset: 0 4px 12px 0; border-radius: 8px 25px 8px 25px; }
  .founder-story-caption { right: 8px; font-size: 8px; }
  .founder-story-points { grid-template-columns: 1fr; }
  .founder-story-point, .founder-story-point:nth-child(2), .founder-story-point:nth-child(3) { min-height: auto; margin-top: 0; }
}

/* ===================================================================
   ۱۳. فرآیند همکاری تعاملی (Process Experience)
   =================================================================== */
.process-section {
  position: relative;
  overflow: hidden;
  padding-block: 112px 104px;
}

.process-container { max-width: var(--container-max-width); }

.process-heading { margin-bottom: 42px; }

.process-heading-row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, .65fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: end;
}

.process-title {
  margin: 0;
  color: var(--color-text-white);
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.process-intro {
  max-width: 590px;
  margin: 0;
  color: var(--color-text-body);
  font-size: 16px;
  line-height: 1.9;
}

.process-stage {
  position: relative;
  padding: 12px 12px 0 0;
  perspective: 1200px;
  transition: transform 500ms cubic-bezier(.16, 1, .3, 1);
}

.process-stage-frame {
  position: absolute;
  inset: 0 0 18px 22px;
  border: 1px solid rgba(32, 178, 206, .34);
  border-radius: 16px 4px 16px 4px;
  pointer-events: none;
  transform: translateY(var(--process-frame-depth, 0px));
}

.process-stage-frame::before,
.process-stage-frame::after {
  content: '';
  position: absolute;
  width: 54px;
  height: 1px;
  background: var(--color-brand-cyan);
}

.process-stage-frame::before { top: -1px; right: 0; }
.process-stage-frame::after { bottom: -1px; left: 0; }

.process-image-shell {
  --focus-x: 15%;
  --focus-y: 72%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px 18px 6px 18px;
  background: #152230;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .3);
  transform: translateY(var(--process-image-depth, 0px));
}

.process-image-shell[data-active-step="0"] { --focus-x: 13%; --focus-y: 73%; }
.process-image-shell[data-active-step="1"] { --focus-x: 35%; --focus-y: 73%; }
.process-image-shell[data-active-step="2"] { --focus-x: 55%; --focus-y: 42%; }
.process-image-shell[data-active-step="3"] { --focus-x: 64%; --focus-y: 78%; }

.process-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #14212e;
  transition: filter 450ms ease, transform 800ms cubic-bezier(.16, 1, .3, 1);
}

.process-image-shell.has-active-step .process-image { filter: saturate(.92) brightness(.88); }

.process-focus {
  position: absolute;
  left: var(--focus-x);
  top: var(--focus-y);
  width: clamp(86px, 11vw, 150px);
  aspect-ratio: 1;
  border: 1px solid rgba(89, 205, 226, .72);
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(7, 19, 31, .24), inset 0 0 0 999px rgba(57, 160, 190, .07);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.82);
  transition: left 500ms cubic-bezier(.16, 1, .3, 1), top 500ms cubic-bezier(.16, 1, .3, 1), opacity 300ms ease, transform 500ms cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
  z-index: 2;
}

.process-image-shell.has-active-step .process-focus { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.process-hotspot {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px 6px 7px;
  border: 1px solid rgba(226, 232, 240, .32);
  border-radius: 10px;
  background: rgba(9, 18, 29, .82);
  color: #F8FAFC;
  font-family: var(--font-fa);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.process-hotspot::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 1px;
  background: rgba(226, 232, 240, .48);
  transition: background-color var(--transition-normal), opacity var(--transition-normal);
}

.process-hotspot-1 { left: 7%; top: 55%; }
.process-hotspot-1::after { left: 100%; top: 58%; transform: rotate(32deg); transform-origin: left; }
.process-hotspot-2 { left: 27%; top: 70%; }
.process-hotspot-2::after { right: 100%; top: 50%; transform: rotate(-20deg); transform-origin: right; }
.process-hotspot-3 { left: 49%; top: 23%; }
.process-hotspot-3::after { right: 100%; top: 70%; transform: rotate(34deg); transform-origin: right; }
.process-hotspot-4 { left: 61%; top: 70%; }
.process-hotspot-4::after { left: 100%; top: 50%; transform: rotate(-22deg); transform-origin: left; }

.process-hotspot-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(89, 205, 226, .58);
  border-radius: 7px;
  color: #7DD3E5;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
}

.process-hotspot-label { font-size: 13px; font-weight: 700; white-space: nowrap; }

.process-hotspot:hover,
.process-hotspot:focus-visible,
.process-hotspot.is-active {
  border-color: rgba(89, 205, 226, .9);
  background: rgba(10, 31, 48, .94);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .24);
  transform: translateY(-2px);
}

.process-hotspot:hover::after,
.process-hotspot:focus-visible::after,
.process-hotspot.is-active::after { background: #7DD3E5; opacity: 1; }

.process-detail {
  position: absolute;
  z-index: 5;
  top: 36px;
  right: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  width: min(390px, calc(100% - 72px));
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  background: rgba(9, 18, 29, .88);
  color: #F8FAFC;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(.16, 1, .3, 1);
}

.process-detail.is-visible { opacity: 1; transform: translateY(0); }
.process-detail-number { color: #7DD3E5; font-family: var(--font-en); font-size: 22px; font-weight: 800; }
.process-detail-title { margin: 0 0 5px; color: #FFFFFF; font-size: 16px; font-weight: 800; }
.process-detail-text { margin: 0; color: #CBD5E1; font-size: 13.5px; line-height: 1.75; }

.process-navigator {
  --process-progress-scale: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 38px;
}

.process-progress {
  position: absolute;
  top: 20px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: var(--color-border-subtle);
  overflow: hidden;
}

.process-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-brand-cyan);
  transform: scaleX(var(--process-progress-scale));
  transform-origin: right center;
  transition: transform 450ms cubic-bezier(.16, 1, .3, 1);
}

.process-nav-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-fa);
  cursor: pointer;
}

.process-nav-step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  background: var(--color-bg-base);
  color: var(--color-text-muted);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  transition: color var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal), transform var(--transition-normal);
}

.process-nav-step strong { font-size: 13px; font-weight: 700; transition: color var(--transition-normal); }
.process-nav-step:hover span,
.process-nav-step:focus-visible span,
.process-nav-step.is-active span { color: var(--color-brand-cyan); border-color: var(--color-brand-cyan); background: rgba(32, 178, 206, .08); transform: translateY(-2px); }
.process-nav-step:hover strong,
.process-nav-step:focus-visible strong,
.process-nav-step.is-active strong { color: var(--color-text-white); }

.process-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.16, 1, .3, 1), transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.process-reveal.process-visible { opacity: 1; transform: translateY(0); }
.process-title.process-reveal { transition-delay: 60ms; }
.process-intro.process-reveal { transition-delay: 120ms; }
.process-stage.process-reveal { transform: translateY(20px) scale(.97); transition-duration: 900ms; transition-delay: 150ms; }
.process-stage.process-reveal.process-visible { transform: translateY(0) scale(1); }
.process-hotspot-1.process-reveal { transition-delay: 320ms; }
.process-hotspot-2.process-reveal { transition-delay: 390ms; }
.process-hotspot-3.process-reveal { transition-delay: 460ms; }
.process-hotspot-4.process-reveal { transition-delay: 530ms; }
.process-navigator.process-reveal { transition-delay: 300ms; }

@media (max-width: 1100px) {
  .process-section { padding-block: 92px 86px; }
  .process-hotspot { gap: 5px; padding-inline: 8px 6px; }
  .process-hotspot-label { font-size: 11.5px; }
  .process-hotspot::after { width: 22px; }
}

@media (max-width: 900px) {
  .process-heading-row { grid-template-columns: 1fr; gap: 16px; }
  .process-intro { max-width: 680px; }
  .process-stage { padding: 8px 8px 0 0; }
  .process-stage-frame { inset: 0 0 12px 14px; }
  .process-hotspot { width: 44px; padding: 6px; justify-content: center; }
  .process-hotspot-label, .process-hotspot::after { display: none; }
  .process-detail { position: relative; top: auto; right: auto; width: 100%; min-height: 98px; margin-top: 18px; background: var(--color-bg-card); color: var(--color-text-white); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .process-detail.is-visible { pointer-events: auto; }
  .process-detail-title { color: var(--color-text-white); }
  .process-detail-text { color: var(--color-text-body); }
  html[dir="ltr"] .process-stage { padding: 8px 0 0 8px; }
  html[dir="ltr"] .process-detail { left: auto; }
}

@media (max-width: 640px) {
  .process-section { padding-block: 72px 68px; }
  .process-heading { margin-bottom: 30px; }
  .process-title { font-size: clamp(30px, 9vw, 40px); }
  .process-intro { font-size: 15px; line-height: 1.85; }
  .process-stage { padding: 0; }
  .process-stage-frame, .process-hotspot { display: none; }
  .process-image-shell { aspect-ratio: 4 / 3; border-radius: 6px 14px 6px 14px; box-shadow: 0 18px 38px rgba(0, 0, 0, .2); }
  .process-image { width: 133.333%; max-width: none; object-fit: cover; object-position: 54% center; transform: translateX(10%); }
  .process-focus { width: 82px; }
  .process-detail { order: 2; min-height: 122px; margin-top: 16px; padding: 16px; }
  .process-navigator { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: 26px; }
  .process-progress { right: 12.5%; left: 12.5%; }
  .process-nav-step { min-width: 0; padding-inline: 2px; }
  .process-nav-step span { width: 44px; height: 44px; }
  .process-nav-step strong { font-size: 11px; white-space: nowrap; }
  .process-reveal { transform: translateY(10px); transition-duration: 520ms; }
}

@media (max-width: 380px) {
  .process-nav-step strong { font-size: 11px; }
  .process-nav-step span { width: 42px; height: 42px; }
}

/* ===================================================================
   ۱۴. دعوت به اقدام نهایی (Final CTA Banner)
   =================================================================== */
.final-cta-section {
  padding-block: 48px;
}

.final-cta-card {
  background: linear-gradient(135deg, rgba(22, 30, 46, 0.85) 0%, rgba(8, 47, 73, 0.5) 50%, #0B0E14 100%);
  border: 1px solid rgba(0, 245, 255, 0.28);
  border-radius: var(--radius-2xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 245, 255, 0.12);
}

.final-cta-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  color: var(--color-text-white);
  margin-bottom: 18px;
}

.final-cta-desc {
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: var(--color-text-body);
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 36px;
  line-height: 1.85;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 640px) {
  .final-cta-card {
    padding: 36px 20px;
  }
  .final-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .final-cta-actions .btn {
    width: 100%;
  }
}

/* ===================================================================
   ۱۴. سیستم فرم مشاوره واتساپ (Contact Form & Direct Channels)
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-form-wrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-header-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 8px;
}

.form-header-desc {
  font-size: 14.5px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-white);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-text-white);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.06);
}

.form-input.input-invalid,
.form-select.input-invalid,
.form-textarea.input-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-error {
  font-size: 12.5px;
  color: var(--color-error);
  margin-top: 4px;
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background-color: #0B0E14;
  color: #fff;
  padding: 8px;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

.form-status {
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

.form-status.error {
  color: var(--color-error);
}

.form-status.success {
  color: var(--color-success);
}

/* کارت‌های اطلاعات ارتباطی مستقیم */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-direct-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--transition-normal);
}

.contact-direct-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.contact-direct-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(0, 245, 255, 0.1);
  color: var(--color-brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-direct-card.card-phone .contact-direct-icon {
  background-color: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
}

.contact-direct-card.card-telegram .contact-direct-icon {
  background-color: rgba(34, 158, 217, 0.15);
  color: #229ED9;
}

.contact-direct-card.card-whatsapp .contact-direct-icon {
  background-color: rgba(37, 211, 102, 0.15);
  color: #25D366;
}

.contact-direct-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 4px;
}

.contact-direct-info p {
  font-size: 14px;
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===================================================================
   ۱۵. دکمه شناور تماس در موبایل (Floating Contact Button)
   =================================================================== */
.floating-contact-wrapper {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 80;
  transition: all var(--transition-normal);
}

.floating-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--color-brand-cyan);
  color: #0B0E14;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 255, 0.4);
  border: 1px solid rgba(0, 245, 255, 0.6);
  cursor: pointer;
}

.floating-contact-wrapper.floating-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

@media (max-width: 768px) {
  .floating-contact-wrapper {
    display: block;
  }
}

/* ===================================================================
   ۱۶. فوتر سایت (Footer)
   =================================================================== */
.site-footer {
  background-color: #070A0F;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 60px;
  padding-bottom: 36px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-grid-container {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.3fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-brand-cyan);
  border-radius: var(--radius-pill);
}

.footer-tagline {
  font-size: 14.5px;
  color: #F8FAFC;
  font-weight: 700;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background-color: rgba(32, 178, 206, 0.08);
  border: 1px solid rgba(32, 178, 206, 0.22);
  border-radius: var(--radius-pill);
  margin-top: 12px;
}

.founder-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-brand-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-brand-cyan);
}

.footer-founder-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-brand-cyan);
}

.footer-brand-mission {
  font-size: 13.5px;
  line-height: 1.8;
  color: #94A3B8;
  margin-top: 14px;
  max-width: 320px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: #94A3B8;
  font-size: 14px;
  transition: all var(--transition-fast);
  display: inline-block;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-brand-cyan);
  transform: translateX(-4px);
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background-color: rgba(32, 178, 206, 0.08);
  border: 1px solid rgba(32, 178, 206, 0.2);
  color: var(--color-brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-label {
  font-size: 12px;
  color: #64748B;
}

.contact-value {
  font-size: 13.5px;
  font-weight: 600;
  color: #E2E8F0;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.contact-value:hover {
  color: var(--color-brand-cyan);
}

.footer-address-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.address-icon-wrapper {
  color: var(--color-brand-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.address-label {
  display: block;
  font-size: 12px;
  color: #64748B;
  margin-bottom: 4px;
}

.address-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: #E2E8F0;
  font-weight: 500;
  margin: 0;
}

.footer-meeting-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94A3B8;
  padding: 10px 14px;
  background-color: rgba(32, 178, 206, 0.04);
  border: 1px dashed rgba(32, 178, 206, 0.2);
  border-radius: var(--radius-sm);
}

.footer-meeting-note p {
  margin: 0;
  line-height: 1.6;
}

.meeting-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #34D399;
  letter-spacing: 0.5px;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.footer-en-brand {
  font-family: var(--font-en);
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .footer-grid-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .footer-grid-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================================================================
   ۱۷. انیمیشن‌های ظریف ظهور و بهینه‌سازی حرکتی
   =================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* احترام به تنظیمات کاربری جهت عدم ایجاد سرگیجه یا مصرف باتری */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===================================================================
   ۲۰. Language Switcher
   =================================================================== */
.lang-switcher {
  position: relative;
  display: inline-flex;
  z-index: 200;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  color: var(--color-brand-cyan);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.lang-current-flag,
.lang-option img {
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(127, 147, 170, .28);
}

.lang-switcher-btn:hover,
.lang-switcher-btn:focus-visible {
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 16px var(--color-brand-cyan-glow);
}

.lang-switcher-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.lang-switcher-btn[aria-expanded="true"] .lang-switcher-arrow {
  transform: rotate(180deg);
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: 168px;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition-fast);
  z-index: 300;
  overflow: hidden;
}

.lang-switcher-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-body);
  font-size: 13.5px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
  font-family: var(--font-fa);
}

.lang-option:hover,
.lang-option:focus-visible {
  background-color: rgba(0, 245, 255, 0.08);
  color: var(--color-brand-cyan);
}

.lang-option[aria-current="page"] {
  background-color: rgba(0, 245, 255, 0.12);
  color: var(--color-brand-cyan);
}

@media (max-width: 640px) {
  .lang-switcher-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 6px 8px;
    font-size: 11px;
  }
  .lang-switcher-menu {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    inset-inline-end: 12px;
    width: 168px;
  }
}

/* ===================================================================
   ۱۸. دکمه تغییر تم روشن / تاریک (Theme Toggle)
   =================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  color: var(--color-brand-cyan);
  cursor: pointer;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 16px var(--color-brand-cyan-glow);
  transform: translateY(-1px) scale(1.04);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

/* حالت تاریک (پیش‌فرض): آیکون خورشید نمایش داده می‌شود تا کاربر به تم روشن سوئیچ کند */
:root:not([data-theme="light"]) .theme-icon-moon,
[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root:not([data-theme="light"]) .theme-icon-sun,
[data-theme="dark"] .theme-icon-sun {
  display: block;
}

/* حالت روشن: آیکون ماه نمایش داده می‌شود تا کاربر به تم تاریک سوئیچ کند */
[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

/* ردیف تغییر حالت نمایشی در منوی موبایل */
.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  margin-top: 12px;
}

.mobile-theme-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-white);
}

/* ===================================================================
   ۱۹. استایل‌های اختصاصی قالب روشن (Light Theme Overrides)
   =================================================================== */
[data-theme="light"] body {
  background-color: #F8FAFC;
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 88% 85%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
  color: #334155;
}

[data-theme="light"] .tech-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 30%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 50%, transparent 85%);
}

[data-theme="light"] .ambient-glow-orb {
  background: rgba(2, 132, 199, 0.05);
}

[data-theme="light"] .ambient-glow-orb-secondary {
  background: rgba(59, 130, 246, 0.04);
}

[data-theme="light"] .site-header {
  background-color: rgba(248, 250, 252, 0.88);
  border-bottom-color: rgba(226, 232, 240, 0.9);
}

[data-theme="light"] .site-header.header-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom-color: #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0284C7;
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .header-actions .btn-primary {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border: 1px solid #0284C7 !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.28);
  font-weight: 800;
}

[data-theme="light"] .btn-primary *,
[data-theme="light"] .header-actions .btn-primary * {
  color: #FFFFFF !important;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .header-actions .btn-primary:hover {
  background: #0369A1 !important;
  color: #FFFFFF !important;
  border-color: #0369A1 !important;
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.38);
}

[data-theme="light"] .btn-secondary {
  background-color: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .btn-secondary:hover {
  background-color: #F8FAFC;
  border-color: #0284C7;
  color: #0284C7;
}

[data-theme="light"] .entry-banner {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .entry-badge {
  background-color: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284C7;
}

[data-theme="light"] .hero-meta-badge {
  background-color: #FFFFFF;
  border-color: #E2E8F0;
  color: #475569;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .hero-meta-divider {
  background-color: #CBD5E1;
}

[data-theme="light"] .hero-headline .text-gradient-cyan {
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-trust-bar {
  border-top-color: #E2E8F0;
}

[data-theme="light"] .trust-icon-box {
  background-color: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284C7;
}

[data-theme="light"] .hero-visual-glow {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.16) 0%, rgba(59, 130, 246, 0.08) 60%, transparent 80%);
}

[data-theme="light"] .service-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .service-card:hover {
  border-color: rgba(2, 132, 199, 0.45);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08), 0 0 20px rgba(2, 132, 199, 0.1);
}

[data-theme="light"] .service-tag-item {
  background-color: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}

[data-theme="light"] .compare-box {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .compare-box.box-custom {
  background: #FFFFFF;
  border-top-color: #0284C7;
  border-color: #0284C7;
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.09);
}

[data-theme="light"] .compare-conclusion-banner {
  background-color: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .portfolio-empty-state {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .founder-story-section {
  background: linear-gradient(135deg, #F1F5F9, #FFFFFF 68%);
}

[data-theme="light"] .founder-story-aura {
  background: radial-gradient(circle, rgba(2, 132, 199, .1), transparent 68%);
}

[data-theme="light"] .founder-story-quote {
  background: rgba(2, 132, 199, .06);
  border-right-color: #0284C7;
}

[data-theme="light"] .founder-story-frame { border-color: rgba(2, 132, 199, .34); }
[data-theme="light"] .founder-story-frame::before,
[data-theme="light"] .founder-story-frame::after { border-color: #0284C7; }
[data-theme="light"] .founder-story-point { background: rgba(255, 255, 255, .78); border-top-color: #CBD5E1; }
[data-theme="light"] .founder-story-point:hover { background: #FFFFFF; border-color: #0284C7; box-shadow: 0 14px 28px rgba(15, 23, 42, .08); }

[data-theme="light"] .process-stage-frame { border-color: rgba(2, 132, 199, .32); }
[data-theme="light"] .process-image-shell { box-shadow: 0 24px 54px rgba(15, 23, 42, .15); }
[data-theme="light"] .process-nav-step span { background: #F8FAFC; }
[data-theme="light"] .process-detail { border-color: rgba(148, 163, 184, .34); }

@media (max-width: 900px) {
  [data-theme="light"] .process-detail { background: #FFFFFF; }
}

[data-theme="light"] .contact-form-wrapper {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
  background-color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .form-select option {
  background-color: #FFFFFF;
  color: #0F172A;
}

[data-theme="light"] .contact-direct-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .contact-direct-card:hover {
  border-color: #0284C7;
}

[data-theme="light"] .mobile-menu-toggle {
  color: #0F172A;
}

[data-theme="light"] .primary-nav {
  background-color: #FFFFFF;
  border-bottom-color: #E2E8F0;
}

/* استایل آیتم تغییر تم در منوی موبایل */
.mobile-theme-item {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.mobile-theme-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-body);
}

.mobile-theme-btn {
  width: 38px;
  height: 38px;
}

[data-theme="light"] .mobile-theme-item {
  background-color: #F1F5F9;
  border-color: #E2E8F0;
}

[data-theme="light"] .mobile-theme-label {
  color: #334155;
}

/* حفظ ظاهر پرکنتراست و جذاب بنر اقدام نهایی (CTA) در هر دو تم */
[data-theme="light"] .final-cta-card .final-cta-title {
  color: #F8FAFC;
}

[data-theme="light"] .final-cta-card .final-cta-desc {
  color: #CBD5E1;
}

[data-theme="light"] .final-cta-card .btn-primary {
  background: #00F5FF;
  color: #0B0E14;
  border-color: #00F5FF;
}

[data-theme="light"] .final-cta-card .btn-primary:hover {
  background: #38F8FF;
  color: #0B0E14;
}

[data-theme="light"] .final-cta-card .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .final-cta-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #00F5FF;
  border-color: #00F5FF;
}

[data-theme="light"] .site-footer {
  background-color: #F1F5F9;
  border-top-color: #E2E8F0;
  color: #475569;
}

[data-theme="light"] .footer-grid-container {
  border-bottom-color: #E2E8F0;
}

[data-theme="light"] .site-footer .footer-col-title {
  color: #0F172A;
}

[data-theme="light"] .site-footer .footer-tagline {
  color: #0F172A;
}

[data-theme="light"] .site-footer .footer-founder-badge {
  background-color: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
}

[data-theme="light"] .site-footer .footer-founder-note {
  color: #0284C7;
}

[data-theme="light"] .site-footer .footer-brand-mission {
  color: #64748B;
}

[data-theme="light"] .site-footer .footer-link {
  color: #475569;
}

[data-theme="light"] .site-footer .footer-link:hover {
  color: #0284C7;
}

[data-theme="light"] .site-footer .contact-icon {
  background-color: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
  color: #0284C7;
}

[data-theme="light"] .site-footer .contact-label {
  color: #64748B;
}

[data-theme="light"] .site-footer .contact-value {
  color: #0F172A;
}

[data-theme="light"] .site-footer .contact-value:hover {
  color: #0284C7;
}

[data-theme="light"] .site-footer .footer-address-card {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .site-footer .address-icon-wrapper {
  color: #0284C7;
}

[data-theme="light"] .site-footer .address-label {
  color: #64748B;
}

[data-theme="light"] .site-footer .address-text {
  color: #0F172A;
}

[data-theme="light"] .site-footer .footer-meeting-note {
  background-color: #FFFFFF;
  border-color: rgba(2, 132, 199, 0.3);
  color: #475569;
}

[data-theme="light"] .site-footer .footer-bottom {
  color: #64748B;
}

[data-theme="light"] .site-footer .footer-bottom p {
  color: #64748B;
}

/* ===================================================================
   ۱۹. ارتقای موشن دیزاین و تعاملات پیشرفته (Premium Motion & Animation Engine)
   =================================================================== */

/* --- ۱. کرسر تعاملی اختصاصی دسکتاپ (Custom Cursor) --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: normal;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--color-brand-cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 0 10px var(--color-brand-cyan);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 245, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s ease,
              background-color 0.2s ease;
}

body.cursor-hover .cursor-dot {
  width: 10px;
  height: 10px;
  background-color: #38BDF8;
}

body.cursor-hover .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: rgba(56, 189, 248, 0.7);
  background-color: rgba(0, 245, 255, 0.06);
}

body.cursor-active .cursor-ring {
  width: 26px;
  height: 26px;
  border-color: var(--color-brand-cyan);
  background-color: rgba(0, 245, 255, 0.15);
}

/* --- ۲. ظهور هیرو و کلمه به کلمه عنوان اصلی --- */
.header-brand .header-logo-img {
  transition: transform var(--transition-normal), filter var(--transition-normal);
  will-change: transform;
}

.header-brand:hover .header-logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.3));
}

.hero-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 4px;
}

.hero-word {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
  will-change: transform, opacity;
}

.hero-word.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.hero-entrance-meta,
.hero-entrance-desc,
.hero-entrance-cta,
.hero-entrance-trust,
.hero-entrance-visual {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-entrance-meta.is-visible,
.hero-entrance-desc.is-visible,
.hero-entrance-cta.is-visible,
.hero-entrance-trust.is-visible,
.hero-entrance-visual.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* درخشش پرتوان دکمه اصلی هیرو همراه با موج نور بازتابی */
.hero-btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.28), 0 0 35px rgba(0, 245, 255, 0.15);
  animation: heroCtaBreath 3.5s ease-in-out infinite;
}

@keyframes heroCtaBreath {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 245, 255, 0.28), 0 0 30px rgba(0, 245, 255, 0.12);
  }
  50% {
    box-shadow: 0 6px 28px rgba(0, 245, 255, 0.45), 0 0 45px rgba(0, 245, 255, 0.25);
  }
}

.hero-btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: transform 0.75s ease;
}

.hero-btn-glow:hover::after {
  transform: rotate(25deg) translateX(360%);
}

/* --- ۳. انیمیشن‌های محیط زنده هیرو و المان‌های وکتور --- */
.hero-visual-container {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* خطوط انتقال داده با پالس نئونی پیوسته */
.flow-pulse-line-1 {
  animation: dashPulse 2.8s linear infinite;
}
.flow-pulse-line-2 {
  animation: dashPulse 3.4s linear infinite reverse;
}
.flow-pulse-line-3 {
  animation: dashPulse 4s linear infinite;
}

@keyframes dashPulse {
  to {
    stroke-dashoffset: -40;
  }
}

/* مکان‌نمای ترمینال کدنویسی */
.code-terminal-cursor {
  animation: terminalBlink 1.05s steps(2, start) infinite;
}

@keyframes terminalBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* نشانگر وضعیت زنده ترمینال */
.live-status-dot {
  animation: beaconPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes beaconPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

/* موتیف هندسی لوگوی یزدان سرور */
.yazdan-facet {
  transition: filter 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hero-brand-facets-group {
  animation: facetsSubtleGlow 4s ease-in-out infinite alternate;
}

@keyframes facetsSubtleGlow {
  0% {
    filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.35));
  }
  100% {
    filter: drop-shadow(0 0 16px rgba(0, 245, 255, 0.65));
  }
}

/* بج‌های شناور هیرو با حرکت نرم و شناور */
.hero-floating-badge {
  transform-origin: center;
  will-change: transform;
}

.badge-float-1 {
  animation: floatingBadge1 5.5s ease-in-out infinite;
}

.badge-float-2 {
  animation: floatingBadge2 6.8s ease-in-out infinite;
}

.badge-float-3 {
  animation: floatingBadge3 6.2s ease-in-out infinite;
}

@keyframes floatingBadge1 {
  0%, 100% { transform: translate(335px, 20px); }
  50% { transform: translate(335px, 12px); }
}

@keyframes floatingBadge2 {
  0%, 100% { transform: translate(18px, 305px); }
  50% { transform: translate(18px, 314px); }
}

@keyframes floatingBadge3 {
  0%, 100% { transform: translate(315px, 335px); }
  50% { transform: translate(315px, 326px); }
}

/* --- ۴. تعاملات سه‌بعدی و شناور کارت‌های خدمات (Tilt & Glow) --- */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 245, 255, 0.38);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 245, 255, 0.12);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-brand-cyan), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrapper {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.3);
}

/* --- ۵. پیش‌نمایش گرافیکی مقایسه وردپرس در مقابل توسعه اختصاصی --- */
.compare-visual-preview {
  margin-block: 22px;
  padding: 16px;
  background-color: rgba(11, 15, 22, 0.65);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

[data-theme="light"] .compare-visual-preview {
  background-color: #F8FAFC;
  border-color: #E2E8F0;
}

/* استک ماژولار وردپرس */
.preview-wp-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wp-module-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.wp-module-card:hover {
  transform: translateX(-4px);
  border-color: #38BDF8;
}

.wp-module-card .module-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #38BDF8;
  box-shadow: 0 0 6px #38BDF8;
  flex-shrink: 0;
}

.wp-module-card .module-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wp-module-card .module-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-white);
}

.wp-module-card .module-spec {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--color-text-muted);
}

.wp-module-card .module-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background-color: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ماتریس معماری مهندسی اختصاصی */
.preview-custom-matrix {
  padding: 14px;
}

.custom-arch-pipeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-layer {
  padding: 10px 14px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.arch-layer:hover {
  transform: translateX(-4px);
  border-color: var(--color-brand-cyan);
}

.arch-layer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.arch-layer-header .layer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-brand-cyan);
  box-shadow: 0 0 6px var(--color-brand-cyan);
}

.arch-layer-header .layer-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-white);
}

.layer-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-techs .tech-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  background-color: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.18);
  color: var(--color-brand-cyan);
  border-radius: var(--radius-xs);
}

.arch-data-conduit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  padding-block: 2px;
}

.conduit-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: dashed 1px var(--color-border-subtle);
  z-index: 1;
}

.conduit-packet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34D399;
  box-shadow: 0 0 8px #34D399;
  z-index: 2;
  animation: packetFlow 2.2s ease-in-out infinite alternate;
}

@keyframes packetFlow {
  0% { transform: translateY(-3px); }
  100% { transform: translateY(3px); }
}

.conduit-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--color-text-muted);
  background-color: var(--color-bg-body);
  padding: 1px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* --- ۶. کارت‌های پروژه‌ها با ریویل سینمایی و شماتیک معماری --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 245, 255, 0.12);
}

.portfolio-visual-box {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #0D1420 0%, #111A28 100%);
  border-bottom: 1px solid var(--color-border-subtle);
  overflow: hidden;
}

[data-theme="light"] .portfolio-visual-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.portfolio-schematic-bg {
  padding: 16px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-schematic-bg {
  transform: scale(1.04);
}

.schematic-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.schematic-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #64748B;
}

.schematic-title {
  font-family: var(--font-en);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-brand-cyan);
  margin-inline-start: 6px;
}

.row-metrics {
  display: flex;
  gap: 14px;
  margin-block: 8px;
}

.metric-block {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  background-color: rgba(0, 245, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.14);
  border-radius: var(--radius-xs);
}

.metric-block .m-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #38BDF8;
}

.metric-block .m-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #94A3B8;
}

.schematic-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0.3;
}

.s-line {
  height: 3px;
  border-radius: 2px;
  background-color: var(--color-brand-cyan);
}

.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }

.portfolio-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background-color: rgba(0, 245, 255, 0.15);
  border: 1px solid rgba(0, 245, 255, 0.35);
  color: var(--color-brand-cyan);
  backdrop-filter: blur(8px);
}

.portfolio-badge.badge-wp {
  background-color: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
}

.portfolio-badge.badge-app {
  background-color: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34D399;
}

.portfolio-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 8px;
  line-height: 1.45;
}

.portfolio-desc {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.portfolio-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-body);
  transition: all 0.2s ease;
}

.portfolio-card:hover .tech-tag {
  border-color: rgba(0, 245, 255, 0.25);
  color: var(--color-brand-cyan);
}

[data-theme="light"] .tech-tag {
  background-color: #F1F5F9;
  border-color: #E2E8F0;
  color: #334155;
}

/* --- ۷. بهینه‌سازی دسترسی‌پذیری و کنترل موشن (Reduced Motion) --- */
@media (prefers-reduced-motion: reduce) {
  .custom-cursor {
    display: none !important;
  }
  .hero-word {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .hero-entrance-meta,
  .hero-entrance-desc,
  .hero-entrance-cta,
  .hero-entrance-trust,
  .hero-entrance-visual {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .hero-btn-glow {
    animation: none !important;
  }
  .badge-float-1,
  .badge-float-2,
  .badge-float-3,
  .hero-brand-facets-group,
  .flow-pulse-line-1,
  .flow-pulse-line-2,
  .flow-pulse-line-3,
  .conduit-packet {
    animation: none !important;
  }
  .service-card,
  .portfolio-card,
  .wp-module-card,
  .arch-layer {
    transition: none !important;
    transform: none !important;
  }
}
