/* سبک کمکی خیلی سبک، هماهنگ با home2.css  :contentReference[oaicite:2]{index=2} */

/* ===== Font: Vazirmatn ===== */

html,
body {
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* هدینگ‌ها */
h1, h2, h3, h4, h5, h6,
.section-title,
.about-feature-title {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* Explicit sizes to avoid UA heading defaults (Chrome deprecation: H1UserAgentFontSizeInSection) */
.section-title {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  line-height: 1.3;
}

/* متن‌ها */
p,
.section-description,
.about-feature-description,
.about-tab-pill {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 400;
}

/* دکمه‌ها */
button,
.btn {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 600;
}


.ai-section {
  padding: 2rem 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .ai-section {
    padding: 3rem 0;
  }
}

.ai-hero {
  background: linear-gradient(
      135deg,
      rgba(40, 171, 136, 0.03) 0%,
      transparent 50%
    ),
    linear-gradient(225deg, rgba(1, 51, 102, 0.04) 0%, transparent 50%), #0f0a2e;
}

.ai-solution,
.ai-helps,
.ai-characters {
  background: #0f0a2e;
}

.ai-section .section-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.ai-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.ai-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  color: #e8e8f5;
}

.ai-card-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 8px;
}

.ai-card-desc,
.ai-muted {
  color: #b7b9d6;
  font-size: 0.92rem;
  line-height: 1.8rem;
}

.ai-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ai-solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 14px;
}

.ai-solution-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.ai-mini-title {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.ai-list {
  margin: 0;
  padding: 0 18px 0 0;
  color: #d1d5db;
  line-height: 1.9rem;
}

.ai-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.ai-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.ai-step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  flex-shrink: 0;
}

/* responsive */
@media (min-width: 768px) {
  .ai-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-solution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ai-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ========== Feature Showcase (new, minimal) ========== */
.fx-showcase {
  padding: 2.5rem 0;
  overflow-x: clip;
}

@media (min-width: 768px) {
  .fx-showcase {
    padding: 3.5rem 0;
  }
}

.fx-head {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .fx-head {
    padding: 0;
    margin-bottom: 2.5rem;
  }
}

.fx-title {
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.35;
  margin: 0 0 0.65rem 0;
  color: #fff;
  font-size: clamp(1.8rem, 1.4rem + 2.2vw, 3.0rem);
}

.fx-subtitle {
  margin: 0 auto;
  max-width: 860px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
  font-size: 0.9rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .fx-subtitle {
    font-size: 1rem;
    padding: 0;
  }
}

.fx-stage {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: start;
  max-width: 100%;
  margin: 0 auto;
}

.fx-preview-group {
  position: relative;
  width: 100%;
}

@media (min-width: 992px) {
  .fx-stage {
    display: flex;
    grid-template-columns: none;
    gap: 24px;
    padding-inline-start: clamp(16px, 7vw, 110px);
  }

  .fx-preview-group {
    width: min(100%, 920px);
  }
}

.fx-preview {
  position: relative;
  border-radius: 22px;
  padding: 10px;
  background-color: #ffffff0d;
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(100px);
  width: 100%;
  min-height: 400px;
  height: auto;
  background: rgba(255, 255, 255, 0.03);
  transition: filter 400ms ease;
  filter: blur(3px);
  cursor: pointer;

}

/* Hint برای کلیک - طراحی مینیمال و شیک */
.fx-preview-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  white-space: nowrap;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* حالت فقط آیکون (بدون متن) */
.fx-preview-hint:has(.fx-preview-hint-icon:only-child),
.fx-preview-hint:not(:has(.fx-preview-hint-text)) {
  padding: 16px;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 4px rgba(255, 255, 255, 0.05);
}

.fx-preview-hint-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex-shrink: 0;
  stroke-width: 2.5;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* آیکون بزرگ‌تر در حالت فقط آیکون */
.fx-preview-hint:has(.fx-preview-hint-icon:only-child) .fx-preview-hint-icon,
.fx-preview-hint:not(:has(.fx-preview-hint-text)) .fx-preview-hint-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.fx-preview-hint-text {
  line-height: 1.4;
  font-weight: 600;
}

/* وقتی روی خود عکس هاور می‌کنه، blur بره (فقط اگر blur داشته باشه) */
.fx-preview:not(.has-active):hover {
  filter: blur(0px);
}

/* وقتی روی عکس هاور می‌کنه، caption هم blur بره (فقط اگر blur داشته باشه) */
.fx-preview:not(.has-active):hover .fx-caption {
  filter: blur(0px);
}

/* وقتی هاور روی عکس می‌کنه، hint رو نشون بده */
.fx-preview:hover .fx-preview-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fx-preview:hover .fx-preview-hint-icon {
  transform: scale(1.05);
}

/* انیمیشن برای حالت فقط آیکون */
.fx-preview:hover .fx-preview-hint:has(.fx-preview-hint-icon:only-child) .fx-preview-hint-icon,
.fx-preview:hover .fx-preview-hint:not(:has(.fx-preview-hint-text)) .fx-preview-hint-icon {
  transform: scale(1.1) rotate(5deg);
}

/* فقط وقتی هاور روی آیتم هست، hint رو نشون نده */
.fx-stage:has(.fx-item:hover) .fx-preview:hover .fx-preview-hint {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

@media (min-width: 768px) {
  .fx-preview {
    height: 500px;
  }
}

@media (min-width: 992px) {
  .fx-preview {
    height: 600px;
  }
}

.fx-preview-img {
  width: 100%;
  border-radius: 22px;
  height: 100%;
  min-height: 340px;
  transition: opacity 180ms ease, transform 350ms ease;
  opacity: 1;
  object-fit: cover;
}

/* اسلایدر موبایل */
@media (max-width: 768px) {
  .fx-preview {
    position: relative;
    overflow: hidden;
  }
  
  /* مخفی کردن hint در موبایل */
  .fx-preview-hint {
    display: none !important;
  }
  
  .fx-preview-slider {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 380px;
    max-height: 500px;
    overflow: hidden;
    border-radius: 24px;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.3),
      0 8px 24px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
  }
  
  .fx-preview-slide {
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s ease 0.4s;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    transform: scale(0.95) translateY(8px);
    pointer-events: none;
    will-change: opacity, transform;
  }
  
  .fx-preview-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s;
  }
  
  .fx-preview-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    filter: brightness(1.02) contrast(1.05);
    transition: filter 0.3s ease;
  }
  
  .fx-preview-slide.active img {
    filter: brightness(1) contrast(1);
  }
  
  /* Gradient overlay برای عمق بیشتر */
  .fx-preview-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 40%,
      transparent 100%
    );
    border-radius: 0 0 24px 24px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  .fx-preview-slide.active::after {
    opacity: 1;
  }
  
  /* دکمه‌های ناوبری اسلایدر - طراحی مدرن و زیبا */
  .fx-slider-nav {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 20;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 60px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.5),
      0 2px 8px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    min-width: fit-content;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    transition: all 0.3s ease;
  }
  
  .fx-slider-nav:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 12px 40px rgba(0, 0, 0, 0.6),
      0 4px 12px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  
  .fx-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    box-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.3),
      inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }
  
  .fx-slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
  }
  
  .fx-slider-dot:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
    box-shadow: 
      0 4px 8px rgba(0, 0, 0, 0.4),
      0 0 0 2px rgba(255, 255, 255, 0.1),
      inset 0 1px 1px rgba(255, 255, 255, 0.2);
  }
  
  .fx-slider-dot:hover::before {
    width: 100%;
    height: 100%;
  }
  
  .fx-slider-dot.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-color: rgba(255, 255, 255, 1);
    width: 32px;
    height: 8px;
    border-radius: 10px;
    box-shadow: 
      0 4px 12px rgba(255, 255, 255, 0.5),
      0 2px 6px rgba(255, 255, 255, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transform: scale(1);
  }
  
  .fx-slider-dot.active::before {
    width: 0;
    height: 0;
  }
  
  /* Progress indicator برای auto-slide */
  .fx-slider-dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, 
      rgba(255, 255, 255, 0.6) 0%, 
      rgba(255, 255, 255, 0.3) 50%, 
      rgba(255, 255, 255, 0.6) 100%);
    border-radius: 10px;
    animation: shimmer 4s infinite;
    opacity: 0.5;
  }
  
  @keyframes shimmer {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }
  
  /* موبایل‌های کوچک‌تر - قاب‌بندی بهتر */
  @media (max-width: 480px) {
    .fx-preview {
      padding: 10px;
      min-height: 360px;
    }
    
    .fx-preview-slider {
      min-height: 360px;
      border-radius: 20px;
      box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .fx-preview-slide img {
      border-radius: 20px;
    }
    
    .fx-preview-slide::after {
      border-radius: 0 0 20px 20px;
    }
    
    .fx-slider-nav {
      bottom: 22px;
      padding: 14px 20px;
      gap: 8px;
      border-radius: 50px;
    }
    
    .fx-slider-dot {
      width: 7px;
      height: 7px;
      border-width: 2px;
    }
    
    .fx-slider-dot.active {
      width: 28px;
      height: 7px;
    }
  }
  
  /* موبایل‌های خیلی کوچک */
  @media (max-width: 360px) {
    .fx-preview {
      padding: 8px;
      min-height: 340px;
    }
    
    .fx-preview-slider {
      min-height: 340px;
    }
    
    .fx-slider-nav {
      padding: 10px 16px;
      gap: 8px;
      bottom: 18px;
    }
    
    .fx-slider-dot {
      width: 6px;
      height: 6px;
    }
    
    .fx-slider-dot.active {
      width: 20px;
      height: 6px;
    }
  }
}

/* وقتی هاور روی آیتم‌ها میشه، preview و caption واضح بشن */
.fx-stage:has(.fx-item:hover) .fx-preview,
.fx-stage:has(.fx-item:hover) .fx-caption {
  filter: blur(0px);
}

.fx-preview.has-active,
.fx-preview.has-active .fx-caption {
  filter: blur(0px);
}

.fx-preview-overlay {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.fx-hint {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.fx-preview.has-active .fx-hint {
  opacity: 0;
  transform: translateY(-6px);
  transition: 220ms ease;
  pointer-events: none;
}

.fx-hint-badge {
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.fx-hint-text {
  font-size: 0.95rem;
  line-height: 1.7;
}

.fx-caption {
  width: auto;
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 16px;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  transition: filter 400ms ease;
  filter: blur(8px);
}

@media (min-width: 768px) {
  .fx-caption {
    width: 60%;
    left: auto;
  }
}

/* مخفی کردن caption در موبایل */
@media (max-width: 768px) {
  .fx-caption {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .fx-caption {
    width: 50%;
  }
}

.fx-caption-title {
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.fx-caption-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Floating badges on preview */
.floating-card {
  position: absolute;
  background: rgba(50, 50, 50, 0.369);
  border: 1px solid rgba(90, 90, 90, 0.344);
  border-radius: 14px;
  padding: 10px 14px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  min-width: 138px;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.floating-card img{
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.floating-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  opacity: 0.35;
  pointer-events: none;
}

.floating-card-1 {
  position: absolute;
  top: 14px;
  right: auto;
  left: calc(100% + 10px);
  animation: float3D 8s ease-in-out infinite;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  z-index: 10;
  opacity: 1 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  will-change: transform;
  transform: translateZ(0);
  padding: 10px 14px;
  border-radius: 14px;
  min-width: 138px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fx-preview .floating-card-1 {
  filter: none !important;
}

.floating-card-1::after {
  display: none !important;
  content: none !important;
}

.floating-card-1 img {
  filter: none !important;
  opacity: 1 !important;
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.floating-card-1 * {
  filter: none !important;
  opacity: 1 !important;
}

/* اطمینان از شفاف بودن کارت در همه حالات، حتی hover */
.floating-card-1:hover,
.floating-card-1:hover *,
.floating-card-1:hover img,
.fx-stage:has(.fx-item:hover) .floating-card-1,
.fx-stage:has(.fx-item:hover) .floating-card-1 *,
.fx-stage:has(.fx-item:hover) .floating-card-1 img,
.fx-preview:hover ~ .floating-card-1,
.fx-preview:hover ~ .floating-card-1 *,
.fx-preview:hover ~ .floating-card-1 img,
.fx-stage:hover .floating-card-1,
.fx-stage:hover .floating-card-1 *,
.fx-stage:hover .floating-card-1 img {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.floating-card-2 {
  bottom: -30px;
  left: -50px;
  animation: float3D 9s ease-in-out infinite;
  animation-delay: 1.6s;
}

.floating-card-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.1px;
}

.floating-card-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

@keyframes float3D {
  0% { transform: translate3d(0,0,0) scale(1); }
  25% { transform: translate3d(6px,-4px,0) scale(1.02); }
  50% { transform: translate3d(-6px,-10px,0) scale(1.04); }
  75% { transform: translate3d(-8px,-6px,0) scale(1.02); }
  100% { transform: translate3d(0,0,0) scale(1); }
}

/* Inline stats under card */
.hero-stats-inline {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid-inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .stats-grid-inline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 2px;
  transition: transform 160ms ease;
}

.stat-card-inline:hover {
  transform: translateX(-3px);
}

.stat-icon-inline {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.stat-icon-inline svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.stat-icon-inline.stat-icon-green { background: linear-gradient(135deg, #10b981, #059669); }
.stat-icon-inline.stat-icon-blue  { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.stat-icon-inline.stat-icon-purple{ background: linear-gradient(135deg, #28ab88, #013366); }
.stat-icon-inline.stat-icon-orange{ background: linear-gradient(135deg, #f97316, #dc2626); }

.stat-content-inline { display: flex; flex-direction: column; gap: 2px; flex: none; }
.stat-value-inline { font-size: 1.3rem; font-weight: 700; color: #fff; }
.stat-label-inline { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }

@media (max-width: 768px) {
  .floating-card {
    padding: 8px 12px;
    min-width: 120px;
  }

  .floating-card-1 { top: 14px; right: 14px; }
  .floating-card-2 { bottom: 14px; left: 14px; }

  .hero-stats-inline { margin-top: 16px; padding-top: 12px; }
  .stats-grid-inline { gap: 12px; grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox - فول اسکرین */
.fx-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fx-lightbox.is-open { 
  display: flex; 
}

.fx-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: pointer;
}

.fx-lightbox-body {
  position: relative;
  max-width: 95%;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.fx-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.fx-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #209b81;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Floating card */
.fx-card {
    color: #000;
    position: relative;
    left: auto;
    transform: none;
    top: auto;
    border-radius: 22px;
    padding: 18px 16px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(100px);
    margin-top: 16px;
}

@media (min-width: 992px) {
  .fx-card {
    position: absolute;
    left: -200px;
    transform: translateY(-50%);
    top: 50%;
    width: 31%;
    margin-top: 0;
  }
}


@media (min-width: 1500px) {
  .fx-card {
    width: 34%;
  }
}


.fx-content{
  background: #ffffffcf;
  padding: 18px 16px;
  border-radius: 22px;
 
}

.fx-card-title {
  font-weight: 900;
  color: #222;
  margin-bottom: 12px;
}

.fx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

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

.fx-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 500ms ease, background 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
  text-align: center;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* حالت عادی - وقتی نه active هست و نه focus */
.fx-item:not(.is-active):not(:focus) {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

.fx-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(58, 143, 89, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* وقتی نه active هست و نه focus و نه hover - برگشت به حالت عادی */
.fx-item:not(.is-active):not(:focus):not(:hover) {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.10);
}

/* استایل focus برای کیبورد - استایل یکسان با active */
.fx-item:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  border-color: #1b15b9;
  box-shadow: 0 4px 16px rgba(100, 116, 255, 0.3), 0 0 0 3px rgba(100, 116, 255, 0.15);
  transform: translateY(-1px);
}

.fx-item:focus:hover {
  background: rgba(255, 255, 255, 0.75);
 
  border-color: #1b15b9;

  box-shadow: 0 4px 20px rgba(100, 116, 255, 0.4), 0 0 0 3px rgba(100, 116, 255, 0.2);
}

/* حالت active برای آیتم کلیک‌شده - دقیقا مثل focus */
.fx-item.is-active {
  background: rgba(255, 255, 255, 0.7);
  border-color: #1b15b9;

  box-shadow: 0 4px 16px rgba(100, 116, 255, 0.3), 0 0 0 3px rgba(100, 116, 255, 0.15);
  transform: translateY(-1px);
}

.fx-item.is-active:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: #1b15b9;
  box-shadow: 0 4px 20px rgba(100, 116, 255, 0.4), 0 0 0 3px rgba(100, 116, 255, 0.2);
}

/* وقتی هم focus و هم active هست */
.fx-item.is-active:focus {
  background: rgba(255, 255, 255, 0.7);
  border-color: #1b15b9;
  box-shadow: 0 4px 16px rgba(100, 116, 255, 0.3), 0 0 0 3px rgba(100, 116, 255, 0.15);
}

 
.fx-item-icon {
  padding: 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.fx-item-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

/* رنگ‌های آیکون‌ها */
.fx-item:nth-child(1) .fx-item-icon { background: linear-gradient(135deg, #e91e63, #c2185b); }
.fx-item:nth-child(2) .fx-item-icon { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
.fx-item:nth-child(3) .fx-item-icon { background: linear-gradient(135deg, #ff6f00, #e65100); }
.fx-item:nth-child(4) .fx-item-icon { background: linear-gradient(135deg, #1976d2, #1565c0); }
.fx-item:nth-child(5) .fx-item-icon { background: linear-gradient(135deg, #0288d1, #01579b); }
.fx-item:nth-child(6) .fx-item-icon { background: linear-gradient(135deg, #7b1fa2, #4a148c); }
.fx-item:nth-child(7) .fx-item-icon { background: linear-gradient(135deg, #ffa726, #f57c00); }
.fx-item:nth-child(8) .fx-item-icon { background: linear-gradient(135deg, #00897b, #004d40); }
.fx-item:nth-child(9) .fx-item-icon { background: linear-gradient(135deg, #ab47bc, #6a1b9a); }
.fx-item:nth-child(10) .fx-item-icon { background: linear-gradient(135deg, #29b6f6, #0277bd); }
.fx-item:nth-child(11) .fx-item-icon { background: linear-gradient(135deg, #00bcd4, #00838f); }
.fx-item:nth-child(12) .fx-item-icon { background: linear-gradient(135deg, #f44336, #c62828); }

.fx-item-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.fx-item-name {
  font-weight: 600;
  font-size: 10px;
  line-height: 1.3;
  color: #222;
  word-break: break-word;
}

.fx-item-mini {
  display: none;
}

.fx-cta-wrapper {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.fx-cta {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(40, 171, 136, 0.2);
}

.fx-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 171, 136, 0.3);
}

.fx-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(40, 171, 136, 0.2);
}

.fx-cta-register {
  background: linear-gradient(135deg, #28ab88, #0f766e);
}

.fx-cta-arrow {
  display: inline-block;
  transform: translateY(-1px);
  transition: transform 0.25s ease;
  font-size: 0.9em;
}

.fx-cta:hover .fx-cta-arrow {
  transform: translateX(-2px) translateY(-1px);
}

@media (max-width: 520px) {
  .fx-cta-wrapper {
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }
  
  .fx-cta {
    width: 100%;
    min-width: 100%;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}


@media (min-width: 992px) and (max-width: 1199px) {
  .fx-stage {
    padding-inline-start: 48px;
  }

  .iphone-mockup {
    left: 8px;
    transform: translateY(-50%) scale(0.78);
  }

  .floating-card-1 {
    display: none;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .fx-preview-group {
    width: min(100%, 860px);
  }

  .fx-card {
    left: -72px;
  }
}

/* Layout like screenshot on desktop: image + floating card on right */
@media (min-width: 992px) {
  .fx-preview-img {
    min-height: 480px;
  }
}

/* Tablet: 3 columns */
@media (max-width: 768px) {
  .fx-preview {
    min-height: 380px;
    width: 100%;
    padding: 12px;
    /* حذف blur در موبایل */
    filter: blur(0px) !important;
    margin: 0 auto;
    max-width: 100%;
  }
  
  .fx-preview-img {
    filter: blur(0px) !important;
  }
  
  .fx-caption {
    filter: blur(0px) !important;
  }
  
  .floating-card {
    display: none;
  }

  /* مخفی کردن کارت کلیک‌شدنی در موبایل */
  .fx-card {
    display: none !important;
  }

  .fx-stage{
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .fx-showcase {
    padding: 2rem 0;
  }
  
  .fx-showcase .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .fx-head {
    padding: 0;
    margin-bottom: 2rem;
  }
  
  .fx-preview {
    margin: 0;
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .floating-card-1 {
    display: none;
  }
}

/* Mobile: card comes under preview, grid becomes 2 columns */
@media (max-width: 520px) {
  .fx-item {
    padding: 8px 6px;
    gap: 4px;
  }

  .fx-item-icon {
    width: 32px;
    height: 32px;
  }

  .fx-item-icon svg {
    width: 16px;
    height: 16px;
  }

  .fx-item-name {
    font-size: 0.7rem;
  }

  .fx-item-mini {
    display: none;
  }
  
  .floating-card {
    display: none;
  }
}

/* ===== About Tabs (new, minimal) ===== */
.about.about-tabs {
  background: #fff;
  padding: 64px 0 80px;
}

.about-tabs-bar {
  display: flex;
  justify-content: center;   /* بالا-وسط */
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 4px 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  -webkit-overflow-scrolling: touch;
}

.about-tab-pill {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.about-tab-pill:hover {
  transform: translateY(-1px);
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.18);
}

.about-tab-pill.is-active {
  background: #0f766e;
  color: #fff;
  border-color: transparent;
}

.about-tabs-panels .about-tab-panel {
  display: none;
}

.about-tabs-panels .about-tab-panel.is-active {
  display: block;
  animation: aboutTabFade .28s ease;
}

@keyframes aboutTabFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* موبایل: تب‌ها اسکرول نرم */
@media (max-width: 768px) {
  .about-tabs-bar {
    justify-content: flex-start;
  }
}

/* ===== About Tabs (segmented / connected) ===== */

.about-tabs-bar{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 48px auto 40px;
  padding: 0%;
  border-radius: 50px;
  width: fit-content;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.about-tabs-bar::-webkit-scrollbar{ 
  height: 0; 
}

/* دکمه‌ها: استایل مدرن */
.about-tab-pill{
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  border-radius: 50px;
  transition:
    all 0.25s ease,
    flex-grow 0.3s ease;
  flex-grow: 0;
  flex-shrink: 0;
}

/* hover روی تب‌های غیرفعال */
.about-tab-pill:hover:not(.is-active){
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
}

/* active: تب با گرادیانت و فضای بیشتر */
.about-tab-pill.is-active{
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: #fff;
  font-weight: 700;

  flex-grow: 1;
  text-align: center;
}

/* hover روی تب فعال */
.about-tab-pill.is-active:hover{
  box-shadow: 
    0 6px 16px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

/* موبایل: مرکز نباشه، از راست شروع کن */
@media (max-width: 768px){
  .about-tabs-bar{
    justify-content: flex-start;
    width: 100%;
    gap: 6px;
    padding: 5px;
  }
  
  .about-tab-pill{
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/* ===== Fix Layout for About Tabs Section ===== */
.about.about-tabs .about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about.about-tabs .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .about.about-tabs .about-grid {
    gap: 4rem;
  }
}

/* Fix image container - should use full grid column width */
.about.about-tabs .about-image {
  width: 100%;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  transform: none !important;
}

/* Fix image sizing - should be responsive within container */
.about.about-tabs .about-image-background {
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: brightness(0.9);
  border-radius: 2rem;
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Fix content container - should use full grid column width */
.about.about-tabs .about-content {
  width: 100%;
  min-width: 0;
  opacity: 1 !important;
  transform: none !important;
}

/* Remove fixed width constraints that conflict with grid */
@media (min-width: 768px) {
  .about.about-tabs .about-content {
    width: 100%;
  }
  
  .about.about-tabs .about-image {
    width: 100%;
  }
}

/* Fix feature items width and visibility */
.about.about-tabs .about-feature {
  width: 100%;
  opacity: 1 !important;
  transform: none !important;
}

@media (min-width: 768px) {
  .about.about-tabs .about-feature {
    width: 100%;
    max-width: 100%;
  }
}

/* Ensure proper alignment */
.about.about-tabs .about-content .section-header {
  text-align: right;
  margin-bottom: 1.5rem;
}

.about.about-tabs .about-content .section-title {
  text-align: right;
}

.about.about-tabs .about-content .section-description {
  text-align: right;
  width: 100%;
  max-width: 100%;
}

/* ===== AI Teamwork Section (new) ===== */

.ai-teamwork{
  position: relative;
  padding: 3rem 0;
  color: #eef2ff;
  overflow: hidden;
  background-color: #0f0a2e;
  isolation: isolate; /* keep blend layers inside */
}

@media (min-width: 768px) {
  .ai-teamwork{
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .ai-teamwork{
    padding: 72px 0;
  }
}

/* soft noise */
.ai-teamwork::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.10;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.ai-teamwork .ai-teamwork-head{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

@media (min-width: 900px) {
  .ai-teamwork .ai-teamwork-head{
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.ai-teamwork .ai-teamwork-title{
  margin: 0 0 10px 0;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.3;
  font-size: clamp(1.9rem, 1.25rem + 1.9vw, 3.0rem);
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.ai-teamwork .ai-teamwork-subtitle{
  margin: 0 0 14px 0;
  color: rgba(238,242,255,.78);
  line-height: 1.9;
  max-width: 740px;
  font-size: clamp(1.02rem, .92rem + .45vw, 1.22rem);
}

.ai-teamwork .ai-teamwork-steps{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 100%;
}

@media (min-width: 640px) {
  .ai-teamwork .ai-teamwork-steps{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .ai-teamwork .ai-teamwork-steps{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
  }
}

.ai-teamwork .ai-step-pill{
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  color: rgba(238,242,255,.90);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.75;
  min-height: 76px;
  box-shadow: 0 14px 38px rgba(0,0,0,.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ai-teamwork .ai-step-pill::before{
  /* subtle sheen (keeps it premium, not noisy) */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 140px at 20% 20%, rgba(59,130,246,.18), transparent 65%),
    radial-gradient(420px 140px at 80% 80%, rgba(20,184,166,.14), transparent 65%),
    linear-gradient(120deg, rgba(255,255,255,.14), rgba(255,255,255,0) 40%);
  opacity: .32;
}

.ai-teamwork .ai-step-num{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}

.ai-teamwork .ai-step-pill > *{
  position: relative;
  z-index: 1;
}

.ai-teamwork .ai-step-pill:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
  background: rgba(255,255,255,.08);
}

.ai-teamwork .ai-step-pill:active{
  transform: translateY(-1px);
}

/* Right-side preview container: "app screenshot + chat on top" (CSS only, no HTML changes) */
.ai-teamwork .ai-teamwork-mini{
  position: relative;
  border-radius: 22px;
  padding: 52px 14px 14px; /* top space for fake window bar */
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(9,14,34,.86) 0%, rgba(9,14,34,.34) 55%, rgba(9,14,34,.78) 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}

.ai-teamwork .ai-teamwork-mini::before{
  /* fake window chrome + dots */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 40px;
  background:
    radial-gradient(circle at 28px 20px, rgba(239,68,68,.95) 0 5px, transparent 6px),
    radial-gradient(circle at 48px 20px, rgba(245,158,11,.95) 0 5px, transparent 6px),
    radial-gradient(circle at 68px 20px, rgba(34,197,94,.95) 0 5px, transparent 6px),
    rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

.ai-teamwork .ai-teamwork-mini > *{
  position: relative;
  z-index: 1;
}

/* mini session preview */
.ai-teamwork .ai-mini-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
  padding: 14px;
}

.ai-teamwork .ai-mini-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-bottom: 10px;
}
.ai-teamwork .ai-mini-badge{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59,130,246,.18);
  border: 1px solid rgba(59,130,246,.35);
  font-weight: 900;
  font-size: .85rem;
}
.ai-teamwork .ai-mini-row{ margin-top: 10px; }
.ai-teamwork .ai-mini-label{
  font-weight: 800;
  font-size: .85rem;
  color: rgba(238,242,255,.72);
  margin-bottom: 6px;
}
.ai-teamwork .ai-mini-box{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(238,242,255,.84);
  line-height: 1.75;
  font-size: .92rem;
}
.ai-teamwork .ai-mini-out{
  background: rgba(20,184,166,.12);
  border-color: rgba(20,184,166,.25);
}
.ai-teamwork .ai-mini-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ai-teamwork .ai-mini-tag{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(238,242,255,.78);
  font-weight: 700;
  font-size: .82rem;
}

/* cards */
.ai-teamwork .ai-cards-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .ai-teamwork .ai-cards-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .ai-teamwork .ai-cards-grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 28px;
  }
}

@media (min-width: 1200px) {
  .ai-teamwork .ai-cards-grid{
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 28px;
  }
}

.ai-teamwork .ai-card{
  position: relative;
  border-radius: 16px;
  min-height: 460px;
  height: 460px;
  perspective: 1000px;
  outline: none;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-teamwork .ai-card:hover{
  transform: translateY(-8px);
}

.ai-teamwork .ai-card-face{
  position:absolute;
  inset:0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.95) 0%, rgba(15, 15, 22, 0.98) 100%);
  backdrop-filter: blur(24px);
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0,0,0,.3),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 1px 0 rgba(255,255,255,.05) inset;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-teamwork .ai-card:hover .ai-card-face{
  border-color: rgba(255,255,255,.12);
  box-shadow: 
    0 12px 40px rgba(0,0,0,.4),
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 1px 0 rgba(255,255,255,.1) inset;
}

.ai-teamwork .ai-card-front{
  display:flex;
  flex-direction: column;
  opacity: 1;
  height: 100%;
}

.ai-teamwork .ai-card-meta{
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  order: 1;
  position: relative;
  z-index: 2;
}

.ai-teamwork .ai-card-photo{
  width: 100%;
  flex: 1;
  overflow: visible;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  order: 2;
  padding: 0 24px 24px;
  min-height: 0;
}
.ai-teamwork .ai-card-photo::after{
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center bottom, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}
.ai-teamwork .ai-card:hover .ai-card-photo::after{
  opacity: 1;
}
.ai-teamwork .ai-card-photo::before{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(15, 15, 22, 0.95) 0%, rgba(15, 15, 22, 0.5) 50%, transparent 100%);
  z-index: 3;
  pointer-events: none;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-teamwork .ai-card:hover .ai-card-photo::before{
  opacity: 0.7;
}
.ai-teamwork .ai-card-photo img{
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  filter: 
    contrast(1.12) 
    saturate(1.15) 
    brightness(1.05)
    blur(0.5px)
    drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), 
              filter 400ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 400ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 400ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  will-change: transform, filter;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.ai-teamwork .ai-card:hover .ai-card-photo img{
  transform: scale(1.05) translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  filter: 
    contrast(1.15) 
    saturate(1.2) 
    brightness(1.08)
    blur(0.3px)
    drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.ai-teamwork .ai-card-name{
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  margin: 0;
}

.ai-teamwork .ai-card-role{
  color: rgba(238,242,255,.65);
  font-weight: 400;
  font-size: .92rem;
  margin: 0;
  line-height: 1.6;
}

.ai-teamwork .ai-card-rating{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-top: 4px;
}
.ai-teamwork .ai-stars{
  display:inline-flex;
  gap: 2px;
  font-size: 14px;
  line-height: 1;
}
.ai-teamwork .ai-star{ 
  opacity:.4; 
  color: #ffc107;
}
.ai-teamwork .ai-rate-num{
  font-weight: 600;
  color: rgba(238,242,255,.85);
  font-size: .9rem;
}

.ai-teamwork .ai-card-hint{
  margin-top: 16px;
  font-size: .78rem;
  color: rgba(238,242,255,.45);
  line-height: 1.6;
  font-weight: 400;
}

/* back face */
.ai-teamwork .ai-card-back{
  padding: 20px;
  transform: rotateY(180deg);
  opacity: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.ai-teamwork .ai-card-back-top{
  display:flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.ai-teamwork .ai-card-back-title{
  font-weight: 700;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}
.ai-teamwork .ai-card-back-sub{
  color: rgba(238,242,255,.7);
  font-weight: 500;
  font-size: .9rem;
  line-height: 1.4;
  margin: 0;
}

.ai-teamwork .ai-card-bio{
  margin: 0 0 14px 0;
  color: rgba(238,242,255,.75);
  line-height: 1.65;
  font-size: .87rem;
  flex-shrink: 0;
}

.ai-teamwork .ai-skill-list{
  list-style:none;
  padding:0;
  margin: 0 0 14px 0;
  display:grid;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.ai-teamwork .ai-skill-item{
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  padding: 10px 12px;
  flex-shrink: 0;
}
.ai-teamwork .ai-skill-item strong{
  display:block;
  font-weight: 600;
  color: rgba(238,242,255,.95);
  margin-bottom: 4px;
  font-size: .88rem;
  line-height: 1.3;
}
.ai-teamwork .ai-skill-item span{
  color: rgba(238,242,255,.7);
  font-size: .83rem;
  line-height: 1.5;
  display: block;
}

.ai-teamwork .ai-card-close{
  margin-top: auto;
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(238,242,255,.9);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: all 200ms ease;
  flex-shrink: 0;
}
.ai-teamwork .ai-card-close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}

/* flip on hover / active */
.ai-teamwork .ai-card:hover .ai-card-front,
.ai-teamwork .ai-card.is-active .ai-card-front{
  transform: rotateY(180deg);
  opacity: 0;
}
.ai-teamwork .ai-card:hover .ai-card-back,
.ai-teamwork .ai-card.is-active .ai-card-back{
  transform: rotateY(0deg);
  opacity: 1;
}

/* focus */
.ai-teamwork .ai-card:focus-visible .ai-card-face{
  box-shadow: 0 0 0 3px rgba(59,130,246,.35);
}

/* responsive - consolidated above */
@media (max-width: 1200px){
  .ai-teamwork .ai-card{ min-height: 440px; height: 440px; }
  .ai-teamwork .ai-card-photo img{ 
    max-height: 280px;
    border-radius: 20px;
    border-width: 2px;
  }
  .ai-teamwork .ai-card-meta{ padding: 24px 24px 20px; }
}

@media (max-width: 900px){
  .ai-teamwork .ai-teamwork-mini{ padding-top: 48px; }
  .ai-teamwork .ai-card{ min-height: 420px; height: 420px; }
  .ai-teamwork .ai-card-photo{ padding: 0 20px 20px; }
  .ai-teamwork .ai-card-photo img{ 
    max-height: 240px;
    border-radius: 18px;
    border-width: 1.5px;
  }
  .ai-teamwork .ai-card-meta{ padding: 24px 24px 20px; }
  .ai-teamwork .ai-card-back{ padding: 16px; }
  .ai-teamwork .ai-card-back-title{ font-size: 1.05rem; }
  .ai-teamwork .ai-card-back-sub{ font-size: .85rem; }
  .ai-teamwork .ai-card-bio{ font-size: .83rem; margin-bottom: 10px; }
  .ai-teamwork .ai-skill-list{ gap: 7px; margin-bottom: 12px; }
  .ai-teamwork .ai-skill-item{ padding: 9px 11px; }
  .ai-teamwork .ai-skill-item strong{ font-size: .85rem; }
  .ai-teamwork .ai-skill-item span{ font-size: .8rem; }
}

@media (max-width: 640px){
  .ai-teamwork .ai-cards-grid{ 
    gap: 18px;
    padding: 0 4px;
  }
  .ai-teamwork .ai-card{ min-height: 400px; height: 400px; }
  .ai-teamwork .ai-card-photo{ padding: 0 16px 16px; }
  .ai-teamwork .ai-card-photo img{ 
    max-height: 220px;
    border-radius: 16px;
    border-width: 1.5px;
  }
  .ai-teamwork .ai-card-meta{ padding: 20px 20px 16px; }
  .ai-teamwork .ai-card-name{ font-size: 1.1rem; }
  .ai-teamwork .ai-card-back{ padding: 14px; }
  .ai-teamwork .ai-card-back-title{ font-size: 1rem; }
  .ai-teamwork .ai-card-back-sub{ font-size: .83rem; }
  .ai-teamwork .ai-card-back-top{ margin-bottom: 10px; }
  .ai-teamwork .ai-card-bio{ font-size: .81rem; margin-bottom: 10px; line-height: 1.6; }
  .ai-teamwork .ai-skill-list{ gap: 6px; margin-bottom: 10px; }
  .ai-teamwork .ai-skill-item{ padding: 8px 10px; }
  .ai-teamwork .ai-skill-item strong{ font-size: .83rem; margin-bottom: 3px; }
  .ai-teamwork .ai-skill-item span{ font-size: .78rem; line-height: 1.4; }
  .ai-teamwork .ai-card-close{ padding: 9px 12px; font-size: .85rem; }
}

@media (max-width: 520px){
  .ai-teamwork .ai-cards-grid{ 
    gap: 16px;
    padding: 0 2px;
  }
  .ai-teamwork .ai-card{ min-height: 380px; height: 380px; }
  .ai-teamwork .ai-card-photo{ padding: 0 12px 12px; }
  .ai-teamwork .ai-card-photo img{ 
    max-height: 200px;
    border-radius: 14px;
    border-width: 1px;
  }
  .ai-teamwork .ai-card-meta{ padding: 18px 18px 14px; }
  .ai-teamwork .ai-card-name{ font-size: 1.05rem; }
  .ai-teamwork .ai-card-role{ font-size: .88rem; }
  .ai-teamwork .ai-card-back{ padding: 12px; }
  .ai-teamwork .ai-card-back-title{ font-size: .95rem; }
  .ai-teamwork .ai-card-back-sub{ font-size: .8rem; }
  .ai-teamwork .ai-card-back-top{ margin-bottom: 8px; gap: 3px; }
  .ai-teamwork .ai-card-bio{ font-size: .79rem; margin-bottom: 8px; line-height: 1.55; }
  .ai-teamwork .ai-skill-list{ gap: 5px; margin-bottom: 8px; }
  .ai-teamwork .ai-skill-item{ padding: 7px 9px; }
  .ai-teamwork .ai-skill-item strong{ font-size: .81rem; margin-bottom: 2px; }
  .ai-teamwork .ai-skill-item span{ font-size: .76rem; line-height: 1.4; }
  .ai-teamwork .ai-card-close{ padding: 8px 10px; font-size: .83rem; }
}

@media (prefers-reduced-motion: reduce){
  .ai-teamwork .ai-card,
  .ai-teamwork .ai-card-face,
  .ai-teamwork .ai-card-close{
    transition: none !important;
  }
  .ai-teamwork .ai-card:hover{
    transform: none !important;
  }
}


/* ===== AI Chat Preview (white, real chat look) ===== */

.ai-teamwork .ai-chat-preview{
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.60);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}

/* generic message */
.ai-teamwork .ai-chat-message{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* progressive reveal: looks like real chat messages coming from bottom */
.ai-teamwork .ai-chat-preview.ai-chat-animated .ai-chat-message{
  opacity: 0;
  transform: translateY(20px) scale(.98);
  filter: blur(2px);
  will-change: transform, opacity, filter;
}

.ai-teamwork .ai-chat-preview.ai-chat-animated.is-playing .ai-chat-message{
  animation: ai-chat-message-in 620ms cubic-bezier(.22,.92,.33,1) forwards;
  animation-delay: calc((var(--chat-order, 0) * 0.45s) + 0.15s);
}

/* user */
.ai-teamwork .ai-chat-user{
  justify-content: flex-end;
}

.ai-teamwork .ai-chat-user .ai-chat-bubble{
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-radius: 14px 14px 4px 14px;
}

/* ai */
.ai-teamwork .ai-chat-ai{
  justify-content: flex-start;
}

.ai-teamwork .ai-chat-avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.8);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

/* bubble */
.ai-teamwork .ai-chat-bubble{
  background: #f3f4f6;
  color: #111827;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  font-size: .9rem;
  line-height: 1.8;
  max-width: 100%;
}

.ai-teamwork .ai-chat-bubble strong{
  font-weight: 900;
}

@keyframes ai-chat-message-in{
  0%{
    opacity: 0;
    transform: translateY(24px) scale(.98);
    filter: blur(2px);
  }
  62%{
    opacity: 1;
    transform: translateY(-3px) scale(1);
    filter: blur(0);
  }
  100%{
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* mobile */
@media (max-width: 900px){
  .ai-teamwork .ai-chat-preview{
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce){
  .ai-teamwork .ai-chat-preview.ai-chat-animated .ai-chat-message{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}


/* ===== FAQ Tabs (NEW) ===== */

.faq-tabs{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 36px auto 28px;
  padding: 0px;
  max-width: 980px;
  border-radius: 50px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

@media (min-width: 640px) {
  .faq-tabs{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .faq-tabs{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* each tab */
.faq-tab{
  appearance: none;
  border: none;
  background: transparent;
  padding: 14px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-weight: 800;
  color: #64748b;
  transition:
    all 0.25s ease;
  position: relative;
  min-height: 72px;
  border-radius: 50px;
}

/* icon sizing */
.faq-tab-icon{
  display: none; /* حذف دایره‌ها و آیکن‌های سبز، فقط متن دسته‌بندی بماند */
}
/* اگر جایی svg مستقیم داخل تب بود، اندازه‌اش را خیلی کوچک و متن‌محور می‌کنیم */
.faq-tab svg{
  width: 20px;
  height: 20px;
}

.faq-tab-label{
  font-size: 0.95rem;
}

/* active */
.faq-tab.is-active{
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: #ffffff;
}

.faq-tab.is-active::after{
  content: none; /* حذف خط زیر تب فعال؛ خود پس‌زمینه تب سبز/آبی است */
}

/* hover فقط برای تب‌های غیرفعال - با انیمیشن لطیف */
.faq-tab:hover:not(.is-active){
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
}

/* hover روی تب فعال: فقط یک پالس نرم بدون تغییر رنگ اصلی */
.faq-tab.is-active:hover{
  transform: scale(1.02);
}

/* mobile: horizontal scroll */
@media (max-width: 640px){
  .faq-tabs{
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    padding: 4px 8px;
    margin: 24px 0 20px;
    border-radius: 16px;
    max-width: 100%;
    width: 100%;
  }
  
  .faq-tabs::-webkit-scrollbar{ 
    display: none; /* Chrome, Safari, Edge */
    height: 0; 
    width: 0;
  }
  
  .faq-tab{
    min-width: 130px;
    flex: 0 0 auto;
    padding: 10px 16px;
    min-height: 44px;
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 700;
  }
  
  .faq-tab-label{
    font-size: 0.8rem;
  }
  
  /* اضافه کردن فضای اضافی در انتهای اسکرول */
  .faq-tabs::after {
    content: '';
    flex: 0 0 8px;
  }
}

/* hide helper for filtering */
.faq-item.is-hidden{
  display: none !important;
}

/* ============================================
   TABLET RESPONSIVE STYLES (768px - 1024px)
   ============================================ */

/* Tablet: fx-showcase section */
@media (min-width: 768px) and (max-width: 1024px) {
  .fx-showcase {
    padding: 3rem 0;
  }

  .fx-head {
    margin-bottom: 2.5rem;
    padding: 0 1.5rem;
  }

  .fx-title {
    font-size: clamp(2rem, 2.5vw, 2.5rem);
  }

  .fx-subtitle {
    font-size: 0.95rem;
    padding: 0 1.5rem;
  }

  .fx-stage {
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }

  .fx-preview {
    width: 65%;
    height: 500px;
    min-height: 500px;
    filter: blur(2px);
  }

  .fx-preview-img {
    min-height: 480px;
  }

  .fx-card {
    display: block !important;
    position: relative;
    width: 35%;
    margin-top: 0;
    left: auto;
    top: auto;
    transform: none;
  }

  .fx-content {
    padding: 20px 18px;
  }

  .fx-card-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }

  .fx-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .fx-item {
    padding: 14px 10px;
    gap: 8px;
  }

  .fx-item-icon {
    padding: 12px;
  }

  .fx-item-icon svg {
    width: 18px;
    height: 18px;
  }

  .fx-item-name {
    font-size: 0.75rem;
  }

  .fx-cta-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .fx-cta {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.9rem;
  }
}

/* Tablet: About tabs section */
@media (min-width: 768px) and (max-width: 1024px) {
  .about.about-tabs {
    padding: 48px 0 64px;
  }

  .about-tabs-bar {
    margin: 40px auto 32px;
    padding: 0 1rem;
    gap: 6px;
  }

  .about-tab-pill {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .about-tabs-panels {
    padding: 0 1rem;
  }

  .about-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-feature {
    padding: 20px;
  }

  .about-feature-icon {
    width: 48px;
    height: 48px;
  }

  .about-feature-title {
    font-size: 1.1rem;
  }

  .about-feature-description {
    font-size: 0.9rem;
  }
}

/* Tablet: AI sections */
@media (min-width: 768px) and (max-width: 1024px) {
  .ai-section {
    padding: 2.5rem 0;
  }

  .ai-section .section-header {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
  }

  .ai-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .ai-card {
    padding: 18px;
  }

  .ai-card-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }

  .ai-card-desc {
    font-size: 0.9rem;
  }

  .ai-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ai-teamwork .ai-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .ai-teamwork .ai-card {
    min-height: 420px;
    height: 420px;
  }

  .ai-teamwork .ai-card-photo {
    padding: 0 20px 20px;
  }

  .ai-teamwork .ai-card-photo img {
    max-height: 260px;
  }

  .ai-teamwork .ai-card-meta {
    padding: 22px 22px 18px;
  }

  .ai-teamwork .ai-card-name {
    font-size: 1.15rem;
  }

  .ai-teamwork .ai-card-back {
    padding: 18px;
  }
}


/* ============================================
   iPhone 17 Pro Max Mockup Styles
   ============================================ */

.iphone-mockup {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

@media (min-width: 992px) {
  .iphone-mockup {
    display: block;
  }
}

.iphone-frame {
  position: relative;
  width: 260px;
  height: 530px;
  background: linear-gradient(135deg, 
    #2d2d2f 0%, 
    #1c1c1e 20%, 
    #2d2d2f 40%, 
    #1c1c1e 60%, 
    #2d2d2f 80%, 
    #1c1c1e 100%);
  border-radius: 52px;
  padding: 10px;
  box-shadow: 
    /* لبه تیتانیومی */
    0 0 0 1px #4a4a4c,
    0 0 0 3px #1c1c1e,
    /* انعکاس نور */
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3),
    /* سایه اصلی */
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 15px 25px rgba(0, 0, 0, 0.3),
    0 5px 10px rgba(0, 0, 0, 0.2);
}

/* دکمه Silent/Action */
.iphone-button-silent {
  position: absolute;
  right: -2px;
  top: 100px;
  width: 3px;
  height: 26px;
  background: linear-gradient(180deg, #3a3a3c 0%, #2c2c2e 50%, #3a3a3c 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: inset 1px 0 1px rgba(255, 255, 255, 0.08);
}

/* دکمه Volume Up */
.iphone-button-volume-up {
  position: absolute;
  right: -2px;
  top: 145px;
  width: 3px;
  height: 45px;
  background: linear-gradient(180deg, #3a3a3c 0%, #2c2c2e 50%, #3a3a3c 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: inset 1px 0 1px rgba(255, 255, 255, 0.08);
}

/* دکمه Volume Down */
.iphone-button-volume-down {
  position: absolute;
  right: -2px;
  top: 200px;
  width: 3px;
  height: 45px;
  background: linear-gradient(180deg, #3a3a3c 0%, #2c2c2e 50%, #3a3a3c 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: inset 1px 0 1px rgba(255, 255, 255, 0.08);
}

/* دکمه Power */
.iphone-button-power {
  position: absolute;
  left: -2px;
  top: 160px;
  width: 3px;
  height: 65px;
  background: linear-gradient(180deg, #3a3a3c 0%, #2c2c2e 50%, #3a3a3c 100%);
  border-radius: 0 2px 2px 0;
  box-shadow: inset -1px 0 1px rgba(255, 255, 255, 0.08);
}

/* صفحه نمایش */
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island - طراحی واقعی */
.iphone-dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 97px;
  height: 29px;
  background: #000000;
  border-radius: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

/* دوربین جلو - Face ID */
.dynamic-island-camera {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 35% 35%, 
    #1a1a2e 0%, 
    #0d0d1a 40%, 
    #000005 70%,
    #0a0a15 100%);
  border-radius: 50%;
  position: relative;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    0 0 0 1.5px #1a1a2a,
    0 0 3px rgba(0, 0, 0, 0.5);
}

/* افکت لنز دوربین */
.dynamic-island-camera::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(100, 100, 180, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

/* سنسورهای Face ID */
.iphone-dynamic-island::before {
  content: '';
  position: absolute;
  left: 12px;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #1a1a2e 0%, #0a0a15 100%);
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Status Bar */
.iphone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  z-index: 50;
}

.status-bar-left {
  display: flex;
  align-items: center;
}

.status-time {
  font-weight: 700;
  font-size: 15px;
}

.status-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.status-battery {
  width: 21px;
  height: 12px;
  border: 2px solid #000;
  border-radius: 3px;
  position: relative;
  margin-left: 2px;
}

.status-battery::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 5px;
  background: #000;
  border-radius: 0 1px 1px 0;
}

.battery-level {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: #bfc3c0;
  border-radius: 1px;
  width: calc(100% - 2px);
}

/* محتوای داخل گوشی */
.iphone-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 5px;
  padding-top: 3px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.iphone-content::-webkit-scrollbar {
  display: none;
}

/* Home Indicator */
.iphone-home-indicator {
  width: 100px;
  height: 4px;
  background: #000;
  border-radius: 100px;
  margin: 6px auto 10px;
  opacity: 0.25;
}

/* تنظیمات کارت داخل گوشی */
.fx-card-in-phone {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px !important;
  border-radius: 16px !important;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
}

.fx-card-in-phone .fx-content {
  background: rgba(255, 255, 255, 0.98) !important;
  padding: 12px !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fx-card-in-phone .fx-card-title {
  font-size: 0.8rem !important;
  margin-bottom: 8px !important;
  text-align: center;
}

.fx-card-in-phone .fx-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 5px !important;
}

.fx-card-in-phone .fx-item {
  padding: 6px 3px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.fx-card-in-phone .fx-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%) !important;
  transform: translateY(-2px) !important;
}

.fx-card-in-phone .fx-item-icon {
  width: 27px !important;
  height: 26px !important;
}

.fx-card-in-phone .fx-item-icon svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #ffff !important;
}

.fx-card-in-phone .fx-item-name {
  font-size: 0.58rem !important;
  color: #374151 !important;
  line-height: 1.2 !important;
}

.fx-card-in-phone .fx-cta-wrapper {
  margin-top: 10px !important;
  gap: 6px !important;
  flex-direction: column !important;
}

.fx-card-in-phone .fx-cta {
  padding: 8px 12px !important;
  font-size: 0.7rem !important;
  border-radius: 10px !important;
  width: 100% !important;
  text-align: center !important;
}

/* Responsive برای تبلت */
@media (min-width: 992px) and (max-width: 1200px) {
  .iphone-mockup {
    left: -60px;
    transform: translateY(-50%) scale(0.85);
  }
}

@media (min-width: 1201px) and (max-width: 1400px) {
  .iphone-mockup {
    left: -70px;
    transform: translateY(-50%) scale(0.92);
  }
}

@media (min-width: 1401px) {
  .iphone-mockup {
    left: -80px;
    transform: translateY(-50%);
  }
}

@media (min-width: 1600px) {
  .iphone-mockup {
    left: -90px;
    transform: translateY(-50%);
  }
}

/* حذف fx-card قدیمی در دسکتاپ چون داخل گوشی است */
@media (min-width: 992px) {
  .fx-stage > .fx-card:not(.fx-card-in-phone) {
    display: none;
  }
}

/* در موبایل، کارت عادی نمایش داده شود */
@media (max-width: 991px) {
  .iphone-mockup {
    display: none !important;
  }
  
  .fx-preview {
    display: none !important;
  }
}

/* ============================================
   اسلایدر اسکرین‌شات موبایل - طراحی حرفه‌ای
   ============================================ */
.fx-card-mobile {
  display: none;
}

@media (max-width: 991px) {
  .fx-card-mobile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    border: none !important;
    backdrop-filter: none !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  
  .fx-card-mobile .fx-content {
    background: transparent !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0;
  }
  
  /* اسلایدر اصلی */
  .fx-mobile-slider {
    width: 100%;
    padding: 0 0 24px;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }
  
  .fx-screenshots-swiper {
    width: 100%;
    padding-bottom: 50px;
    overflow: visible;
  }
  
  .fx-screenshots-swiper .swiper-wrapper {
    align-items: center;
    display: flex;
    padding: 10px 0;
  }
  
  .fx-screenshot-slide {
    width: min(86vw, 290px) !important;
    flex-shrink: 0;
    height: auto;
    opacity: 0.45;
    transform: scale(0.86) translateY(8px);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    filter: blur(1px);
  }
  
  .fx-screenshot-card {
    width: 100%;
    margin: 0 auto;
  }
  
  .fx-screenshot-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2;
    filter: blur(0);
  }
  
  .fx-screenshot-slide.swiper-slide-prev,
  .fx-screenshot-slide.swiper-slide-next {
    opacity: 0.55;
    transform: scale(0.88) translateY(6px);
    z-index: 1;
    filter: blur(0.5px);
  }
  
  /* کارت اسکرین‌شات */
  .fx-screenshot-card {
    background: linear-gradient(145deg, 
      rgba(255, 255, 255, 0.98) 0%, 
      rgba(250, 252, 255, 1) 100%);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 
      0 12px 45px rgba(0, 0, 0, 0.14),
      0 5px 15px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
  }
  
  .fx-screenshot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 171, 136, 0.03) 0%, rgba(13, 148, 136, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
  }
  
  .swiper-slide-active .fx-screenshot-card {
    box-shadow: 
      0 25px 70px rgba(0, 0, 0, 0.22),
      0 10px 30px rgba(0, 0, 0, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(40, 171, 136, 0.3);
  }
  
  .swiper-slide-active .fx-screenshot-card::before {
    opacity: 1;
  }
  
  /* تصویر اسکرین‌شات */
  .fx-screenshot-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  }
  
  .fx-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
  }
  
  .swiper-slide-active .fx-screenshot-img {
    transform: scale(1.03);
  }
  
  /* اطلاعات اسکرین‌شات */
  .fx-screenshot-info {
    padding: 20px 22px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(250, 252, 255, 0.5) 100%);
  }
  
  .fx-screenshot-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 9px;
    line-height: 1.45;
    transition: color 0.3s ease;
  }
  
  .swiper-slide-active .fx-screenshot-title {
    color: #0f172a;
  }
  
  .fx-screenshot-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
  }
  
  .swiper-slide-active .fx-screenshot-desc {
    color: #475569;
  }
  
  /* پیجینیشن */
  .fx-screenshots-pagination {
    bottom: 0 !important;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
  }
  
  .fx-screenshots-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }
  
  .fx-screenshots-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 5px;
    background: linear-gradient(90deg, #28ab88 0%, #0d9488 100%);
    box-shadow: 0 3px 10px rgba(40, 171, 136, 0.4);
  }
  
  /* دکمه‌های CTA */
  .fx-card-mobile .fx-cta-wrapper {
    display: flex;
    gap: 14px;
    padding: 0 20px;
    margin-top: 12px;
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
  
  .fx-card-mobile .fx-cta {
    flex: 1;
    padding: 15px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
  }
  
  .fx-card-mobile .fx-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .fx-card-mobile .fx-cta:active::before {
    width: 300px;
    height: 300px;
  }
  
  .fx-card-mobile .fx-cta:not(.fx-cta-register) {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .fx-card-mobile .fx-cta:not(.fx-cta-register):hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
  
  .fx-card-mobile .fx-cta.fx-cta-register {
    background: linear-gradient(135deg, #28ab88 0%, #0d9488 100%);
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(40, 171, 136, 0.4);
  }
  
  .fx-card-mobile .fx-cta.fx-cta-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 171, 136, 0.5);
  }
  
  .fx-card-mobile .fx-cta:active {
    transform: scale(0.96) translateY(0);
  }
}

/* تبلت */
@media (min-width: 600px) and (max-width: 991px) {
  .fx-screenshot-slide {
    width: min(72vw, 380px) !important;
  }
  
  .fx-screenshot-card {
    border-radius: 26px;
  }
  
  .fx-screenshot-info {
    padding: 24px 26px;
  }
  
  .fx-screenshot-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .fx-screenshot-desc {
    font-size: 0.92rem;
    line-height: 1.7;
  }
  
  .fx-card-mobile .fx-cta-wrapper {
    padding: 0 28px;
    gap: 18px;
    max-width: 440px;
    margin-top: 16px;
  }
  
  .fx-card-mobile .fx-cta {
    padding: 17px 26px;
    font-size: 1.05rem;
    border-radius: 17px;
  }
  
  .fx-screenshots-swiper {
    padding-bottom: 55px;
  }
  
  .fx-screenshots-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
  
  .fx-screenshots-pagination .swiper-pagination-bullet-active {
    width: 32px;
  }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  .fx-screenshot-slide {
    width: min(82vw, 270px) !important;
  }
  
  .fx-mobile-slider {
    padding: 0 0 20px;
  }
  
  .fx-card-mobile .fx-cta-wrapper {
    flex-direction: column;
    gap: 11px;
    padding: 0 16px;
    max-width: 290px;
  }
  
  .fx-screenshot-card {
    border-radius: 18px;
  }
  
  .fx-screenshot-info {
    padding: 16px 18px;
  }
  
  .fx-screenshot-title {
    font-size: 0.95rem;
    margin-bottom: 7px;
  }
  
  .fx-screenshot-desc {
    font-size: 0.8rem;
    line-height: 1.6;
  }
  
  .fx-card-mobile .fx-cta {
    padding: 14px 20px;
    font-size: 0.88rem;
    border-radius: 13px;
  }
  
  .fx-screenshots-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  
  .fx-screenshots-pagination .swiper-pagination-bullet-active {
    width: 26px;
  }
}

/* موبایل خیلی کوچک */
@media (max-width: 360px) {
  .fx-screenshot-slide {
    width: min(84vw, 250px) !important;
  }
  
  .fx-card-mobile .fx-cta-wrapper {
    max-width: 270px;
    gap: 10px;
    padding: 0 12px;
  }
  
  .fx-screenshot-info {
    padding: 14px 16px;
  }
  
  .fx-screenshot-title {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }
  
  .fx-screenshot-desc {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    line-height: 1.55;
  }
  
  .fx-card-mobile .fx-cta {
    padding: 13px 18px;
    font-size: 0.82rem;
    border-radius: 12px;
  }
  
  .fx-screenshots-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    gap: 8px;
  }
  
  .fx-screenshots-pagination .swiper-pagination-bullet-active {
    width: 24px;
  }
}

@media (min-width: 992px) {
  .fx-card-mobile {
    display: none !important;
  }
}
