@font-face {
  font-family: "Doran";
  src:
    url("Doran-Regular.woff") format("woff"),
    url("Doran-Regular.woff2") format("woff2");
}

:root {
  --primary: #e11d48;
  --primary-hover: #f43f5e;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #f8fafc;
  /*--text-muted: #64748b;*/
  --text-muted: #50565e;
  --text-main: #334155;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Doran", Tahoma, sans-serif;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--light);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Navigation (هدر شیشه‌ای و مدرن)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  max-width: 1280px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Hero Section (بخش هیرو)
   ========================================================================== */
.hero {
  background:
    radial-gradient(
      circle at top left,
      rgba(225, 29, 72, 0.15) 0%,
      transparent 40%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px; /* افزایش فاصله برای عدم تداخل با ناو بار در موبایل */
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  width: 100%;
}

/* موکاپ موبایل فوق حرفه‌ای CSS */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: #000;
  border: 12px solid #2e2e2e;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  margin: auto;
  overflow: hidden;
}

.phone-mockup .notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  background: #2e2e2e;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-mockup .screen-content {
  width: 100%;
  height: 100%;
  background: #fff url("mobile-screenshot.webp") center / cover no-repeat; /* اصلاح آدرس‌دهی پوشه assets */
}

/* ==========================================================================
   Admin Section & MacBook Mockup (بخش مدیریت)
   ========================================================================== */
/* ==========================================================================
   Admin Section & MacBook Mockup (بخش مدیریت)
   ========================================================================== */
.admin-section {
  background: #0f172a;
  color: white;
  padding: 100px 0;
}

.macbook-mockup {
  max-width: 750px;
  margin: 50px auto 0;
  padding: 0 20px;
  width: 100%;
}

.macbook-screen {
  position: relative;
  background: #000;
  border: 14px solid #1e1e1e;
  border-radius: 16px 16px 0 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 2; /* تضمین قرارگیری روی بیس */
}

.macbook-screen .web-content {
  width: 100%;
  height: 100%;
  background: #f8fafc url("macbook-screenshot.webp") center / cover no-repeat;
}

.macbook-base {
  position: relative;
  width: 112%;
  height: 12px;
  background: #d1d5db;
  /* راهکار قطعی برای تراز وسط دقیق در ساختار RTL */
  margin-right: -6%;
  margin-left: -6%;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.macbook-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #9ca3af;
  border-radius: 0 0 4px 4px;
}

/* ==========================================================================
   Feature Cards & Sections (کارت‌های ویژگی‌ها)
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.05),
    0 2px 4px -2px rgb(0 0 0 / 0.05);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(225, 29, 72, 0.15);
}

.feature-card i {
  background: rgba(225, 29, 72, 0.08);
  padding: 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
}

.feature-card:hover i {
  background: var(--primary);
  color: white !important;
}

/* ==========================================================================
   VS Section (مقایسه)
   ========================================================================== */
.vs-section {
  background: #ffffff;
}

.vs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.vs-card {
  padding: 40px 30px;
  border-radius: 24px;
  position: relative;
}

.vs-card.old {
  background: #f1f5f9;
  border-right: 5px solid #94a3b8;
}

.vs-card.new {
  background: rgba(225, 29, 72, 0.02);
  border-right: 5px solid var(--primary);
}

.vs-list {
  list-style: none;
  margin-top: 20px;
}

.vs-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vs-list li i {
  margin-top: 6px;
  flex-shrink: 0; /* جلوگیری از تغییر سایز آیکون در متن‌های طولانی */
}

/* ==========================================================================
   Contact Form Section (فرم تماس اختصاصی)
   ========================================================================== */
#contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(225, 29, 72, 0.2);
  border-bottom: 1px solid rgba(225, 29, 72, 0.2);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.85);
}

#contact::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(225, 29, 72, 0.08) 0%,
    transparent 60%
  );
  animation: spotlightMove 12s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes spotlightMove {
  0% {
    transform: translate(-15%, -15%) rotate(0deg);
  }
  50% {
    transform: translate(15%, 15%) rotate(180deg);
  }
  100% {
    transform: translate(-15%, -15%) rotate(360deg);
  }
}

#contact > div {
  position: relative;
  z-index: 2;
}

.contact-form input[type="tel"] {
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: white !important;
  transition: var(--transition-smooth) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(4px);
}

.contact-form input[type="tel"]:focus {
  border-color: var(--primary) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 0 30px rgba(225, 29, 72, 0.4) !important;
  transform: translateY(-2px);
}

.contact-form input[type="tel"]::placeholder {
  color: #94a3b8 !important;
  opacity: 0.7;
}

.contact-form button[type="submit"] {
  position: relative;
  animation: buttonPulse 3s infinite;
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 10px 20px -10px rgba(225, 29, 72, 0.5);
  }
  50% {
    box-shadow: 0 10px 25px 0px rgba(225, 29, 72, 0.7);
  }
  100% {
    box-shadow: 0 10px 20px -10px rgba(225, 29, 72, 0.5);
  }
}

.contact-form button:disabled {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  animation: none !important;
  opacity: 0.6;
}

/* ==========================================================================
   Buttons & General Components (دکمه‌ها و المان‌های عمومی)
   ========================================================================== */
.btn-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  color: white;
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  box-shadow: 0 10px 20px -10px rgba(225, 29, 72, 0.5);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(225, 29, 72, 0.65);
}

.btn-secondary {
  color: white;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: white;
  color: var(--dark);
  border-color: white;
}

.btn-support {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 160px;
}

.btn-support:hover {
  background: white;
  color: var(--dark);
  border-color: white;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Footer Section (بخش فوتر)
   ========================================================================== */
.footer {
  background: #090d16;
  color: white;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-container {
  max-width: 1280px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

/* ==========================================================================
   Media Queries & Responsiveness (واکنش‌گرایی همه‌جانبه)
   ========================================================================== */
@media (max-width: 991px) {
  .hero {
    padding-top: 130px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .hero-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .hero-grid div style {
    justify-content: center !important; /* اعمال تراز وسط برای دکمه‌های هیرو در تبلت و موبایل */
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 12px 15px;
  }
  .nav-container span {
    font-size: 1.2rem !important; /* جلوگیری از لانگ‌تکست شدن و شکستن تایتل لوگو */
  }
  .btn-support {
    display: none; /* مخفی کردن دکمه پشتیبانی تلفنی هدر در تبلت و موبایل برای جلوگیری از اورفلو */
  }
  .macbook-mockup {
    max-width: 100%;
    padding: 0;
  }
  .macbook-screen {
    border-width: 8px;
  }
  .macbook-base {
    width: 108%;
    margin-left: -4%;
  }
  .section {
    padding: 70px 0; /* تعادل پدینگ سکشن‌ها در موبایل */
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-form {
    flex-direction: column;
    width: 100%;
  }
  .contact-form input,
  .contact-form button {
    width: 100% !important;
    border-radius: 30px !important; /* ظاهر ارگونومیک‌تر فرم در موبایل */
  }
  .hero h1 {
    font-size: 2rem !important; /* جلوگیری از بیرون زدگی تایتل‌های بزرگ */
  }
  .hero p {
    font-size: 1.1rem !important;
  }
}

/* ==========================================================================
   New FAQ Accordion Styling
   ========================================================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  background: #ffffff;
  border-color: rgba(225, 29, 72, 0.2);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 22px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  user-select: none;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding: 0 30px 25px 30px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ==========================================================================
   Two-Column Contact & Steps Layout
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.badge-mini {
  background: rgba(225, 29, 72, 0.15);
  color: #fda4af;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 20px;
  border: 1px solid rgba(225, 29, 72, 0.25);
}

/* تایم‌لاین مراحل کار */
.step-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(225, 29, 72, 0.3);
}

.step-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.step-text p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* باکس فرم مدرن */
.form-wrapper {
  background: rgba(30, 41, 59, 0.7);
  padding: 45px 40px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

/* واکش‌گرایی سکشن جدید */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .steps-column {
    text-align: center;
  }
  .step-card {
    text-align: right;
    max-width: 550px;
    margin: auto;
  }
}

@media (max-width: 480px) {
  .form-wrapper {
    padding: 30px 20px;
  }
  .faq-question {
    padding: 18px 20px;
    font-size: 1rem;
  }
  .faq-answer p {
    padding: 0 20px 20px 20px;
  }
}

/* مخفی کردن دکمه همبرگری در دسکتاپ */
.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 5px;
}

.nav-actions-desktop {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* استایل منوی تمام‌صفحه موبایل */
.mobile-overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95); /* رنگ تیره متناسب با لندینگ پیج */
  backdrop-filter: blur(10px); /* افکت شیشه‌ای بلور */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

/* کلاس فعال‌سازی منو با افکت */
.mobile-overlay-menu.active {
  opacity: 1;
  visibility: visible;
}

/* دکمه ضربدر بستن منو */
.close-menu-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-menu-btn:hover {
  transform: rotate(90deg);
}

/* محتوای داخل منو */
.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 80%;
  max-width: 320px;
  text-align: center;
  transform: translateY(30px);
  transition: transform 0.4s ease;
}

.mobile-overlay-menu.active .overlay-content {
  transform: translateY(0);
}

.overlay-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.2rem !important;
  padding: 18px !important;
  border-radius: 50px !important;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* اعمال استایل ریسپانسیو در موبایل */
@media (max-width: 768px) {
  .nav-actions-desktop {
    display: none; /* مخفی کردن دکمه‌های عادی */
  }

  .menu-toggle-btn {
    display: block; /* نمایش دکمه همبرگری */
  }
}

/* فعال‌سازی افکت شماره تلفن، صرفاً روی دستگاه‌هایی که ماوس دارند (دسکتاپ) */
@media (hover: hover) {
  /* اعمال افکت فقط روی دکمه پشتیبانی دسکتاپ و جلوگیری از تاثیر روی منوی موبایل */
  .nav-actions-desktop .btn-support:hover span {
    display: none;
  }

  .nav-actions-desktop .btn-support:hover::after {
    content: "0901-007-4134";
    font-family: Tahoma, sans-serif;
    letter-spacing: 0.5px;
  }
}

/* بهینه‌سازی ظاهر دکمه پشتیبانی در منوی تمام‌صفحه موبایل برای خوانایی بهتر */
.overlay-content .btn-support {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* جلوگیری از بهم ریختگی پوزیشن صفحه توسط انیمیشن‌ها */
html, body {
    overflow-x: hidden;
    position: relative;
}

/* حل مشکل بالا رفتن هدر در موبایل قبل از اسکرول */
@media (max-width: 767px) {
    .vs-section {
        /* مطمئن می‌شویم که این بخش جریان کلی صفحه را خراب نمی‌کند */
        clear: both; 
    }
    
    /* اگر منوی همبرگری داخل هدر fixed یا absolute است، مطمئن می‌شویم همیشه رو قرار دارد */
    header, .header, .nav-menu {
        z-index: 9999 !important;
        position: fixed; /* یا absolute بسته به طراحی شما */
        top: 0;
        left: 0;
        right: 0;
    }
}