/* ============================================
   کافی نت آنلاین محله - استایل اصلی
   ============================================ */

/* === ریست === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* === اسکرول‌بار === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* === کانتینر === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === سکشن‌ها === */
section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.section-title .gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* === دکمه‌ها === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.btn svg {
  width: 1.2em;
  height: 1.2em;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(var(--primary-rgb), 0.5);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(var(--accent-rgb), 0.5);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* === نوبار === */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--navbar-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--glass-bg);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-heading);
  flex-shrink: 0;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: var(--gradient-primary);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  gap: 3px;
}

.logo-text small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(20deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 22px;
  height: 22px;
  transition: all var(--transition);
}

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

.nav-download {
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-alt);
  place-items: center;
  color: var(--text);
  border: 1px solid var(--border);
}

.nav-toggle svg { width: 24px; height: 24px; }

/* === Hero === */
.hero {
  padding-top: calc(var(--navbar-height) + 3rem);
  padding-bottom: 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--pattern-color) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: var(--blob-1);
  top: -100px;
  left: -100px;
  animation: floatBlob 14s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--blob-2);
  bottom: -100px;
  right: -80px;
  animation: floatBlob 18s ease-in-out infinite reverse;
}

.blob-3 {
  width: 320px;
  height: 320px;
  background: var(--blob-3);
  top: 40%;
  right: 30%;
  animation: floatBlob 20s ease-in-out infinite;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.9); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 1.8rem;
  letter-spacing: -0.02em;
}

.hero h1 .gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 2.2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--success);
  flex-shrink: 0;
}

/* === موکاپ گوشی === */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 300px;
  height: 620px;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-xl), inset 0 0 0 2px rgba(255,255,255,0.05);
  position: relative;
  animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 0 0 18px 18px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 48px;
}

.app-statusbar .icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.app-statusbar .icons span {
  width: 14px;
  height: 8px;
  background: var(--text);
  border-radius: 2px;
  opacity: 0.7;
}

.app-header {
  padding: 8px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header .greeting {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.app-header .name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-heading);
}

.app-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.app-search {
  margin: 0 18px 14px;
  padding: 10px 14px;
  background: var(--surface-alt);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.app-search svg {
  width: 16px;
  height: 16px;
}

.app-banner {
  margin: 0 18px 14px;
  padding: 16px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.app-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.app-banner-title {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 4px;
  position: relative;
}

.app-banner-desc {
  font-size: 0.68rem;
  opacity: 0.9;
  position: relative;
}

.app-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 18px 14px;
}

.app-service-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.app-service-mini .icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}

.app-service-mini .icon-box svg { width: 18px; height: 18px; }

.app-service-mini span {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
}

.app-chat-preview {
  margin: auto 18px 18px;
  padding: 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.chat-msg {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: flex-end;
}

.chat-msg:last-child { margin-bottom: 0; }

.chat-msg.sent {
  flex-direction: row-reverse;
}

.chat-bubble {
  max-width: 75%;
  padding: 7px 11px;
  border-radius: 14px;
  font-size: 0.7rem;
  line-height: 1.5;
}

.chat-msg.received .chat-bubble {
  background: var(--surface);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.chat-msg.sent .chat-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
}

.chat-msg.sent .chat-avatar {
  background: var(--primary);
}

/* عناصر شناور دور موکاپ */
.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.floating-card .fc-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.floating-card .fc-icon svg { width: 20px; height: 20px; }

.fc-1 {
  top: 8%;
  right: -30px;
  animation: floatCard 5s ease-in-out infinite;
}
.fc-1 .fc-icon { background: var(--gradient-primary); }

.fc-2 {
  bottom: 18%;
  left: -40px;
  animation: floatCard 6s ease-in-out infinite 1s;
}
.fc-2 .fc-icon { background: var(--gradient-accent); }

.fc-3 {
  bottom: 5%;
  right: 10%;
  animation: floatCard 7s ease-in-out infinite 0.5s;
}
.fc-3 .fc-icon { background: linear-gradient(135deg, #10B981, #059669); }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* === آمار === */
.stats {
  padding: 3.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding: 0 1rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -1rem;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 0.3rem;
}

/* === خدمات === */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: var(--primary-light);
  border-radius: 50%;
  transform: translate(40px, -40px);
  opacity: 0;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 0.6;
  transform: translate(30px, -30px) scale(1.3);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 1.3rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

.service-card .service-tag {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  margin-top: auto;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.services-more {
  text-align: center;
  margin-top: 3rem;
}

.services-more-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  background: var(--primary-light);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.services-more-badge svg {
  width: 24px;
  height: 24px;
}

/* === نحوه کار === */
.how-it-works {
  background: var(--bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: repeating-linear-gradient(to left, var(--border-strong) 0, var(--border-strong) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.2rem;
  background: var(--surface);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  position: relative;
}

.step-card:hover .step-number {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.08) rotate(5deg);
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 0 0.5rem;
}

/* === امکانات === */
.features {
  background: var(--bg);
}

.features-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.features-visual {
  position: relative;
}

.features-visual .phone-mockup {
  margin: 0 auto;
  transform: scale(0.9);
}

.features-visual .floating-card {
  position: absolute;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-item:hover {
  transform: translateX(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* === چرا ما === */
.why-us {
  background: var(--bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  text-align: center;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.3rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  position: relative;
}

.why-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px dashed var(--primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.why-icon svg { width: 32px; height: 32px; }

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* === نظرات === */
.testimonials {
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card .quote-mark {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.15;
  font-family: serif;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: #FBBF24;
}

.testimonial-stars svg { width: 18px; height: 18px; }

.testimonial-text {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-info strong {
  display: block;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.testimonial-info span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

/* === سوالات متداول === */
.faq {
  background: var(--bg-alt);
}

.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-heading);
  font-size: 1.02rem;
  transition: color var(--transition-fast);
  width: 100%;
  text-align: right;
  background: transparent;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.6rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.faq-item.open .faq-answer {
  padding: 0 1.6rem 1.4rem;
  max-height: 600px;
}

/* === CTA دانلود === */
.download-cta {
  background: var(--bg);
  padding: 4rem 0;
}

.cta-box {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-box::before,
.cta-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.cta-box::before {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -80px;
}

.cta-box::after {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -60px;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
  position: relative;
}

.cta-box p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-actions .btn {
  background: #fff;
  color: var(--primary);
}

.cta-actions .btn:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-3px);
}

.cta-actions .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.cta-actions .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.cta-meta {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cta-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cta-meta svg { width: 16px; height: 16px; }

/* === فوتر === */
.footer {
  background: var(--bg-alt);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 1.3rem;
}

.footer-about {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  max-width: 360px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-social svg { width: 20px; height: 20px; }

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.3rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

.footer-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.trust-text {
  flex: 1;
  min-width: 200px;
}

.trust-text strong {
  display: block;
  color: var(--text-heading);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.trust-text span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.enamad-badge {
  flex-shrink: 0;
}

.enamad-badge img {
  height: 90px;
  width: auto;
  border-radius: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* === دکمه بازگشت به بالا === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

.back-to-top svg { width: 24px; height: 24px; }

/* === انیمیشن reveal === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* fallback: اگر JS غیرفعال باشد، عناصر reveal باید visible باشند */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* === منوی موبایل === */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--surface);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--border);
}

.mobile-menu-close svg { width: 22px; height: 22px; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mobile-menu nav a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.mobile-menu nav a:hover,
.mobile-menu nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-menu .btn {
  margin-top: auto;
}
