@font-face {
  font-family: "IranYekan";
  src: url("/fonts/Qs_Iranyekan.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "IranYekan";
  src: url("/fonts/Qs_Iranyekan light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "IranYekan";
  src: url("/fonts/Qs_Iranyekan medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "IranYekan";
  src: url("/fonts/Qs_Iranyekan bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "IranYekan";
  src: url("/fonts/Qs_Iranyekan extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "IranYekan";
  src: url("/fonts/Qs_Iranyekan black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

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

:root {
  --primary: #c42223;
  --primary-dark: #a01a1b;
  --primary-light: #e63946;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --nav-h: 3.5rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  overflow-x: hidden;
}

body {
  font-family: "IranYekan", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.25rem;
  }
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.icon-lg {
  width: 1.375rem;
  height: 1.375rem;
}

/* ── Nav ── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
}

.logo img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

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

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.4);
}

.mobile-menu.open {
  display: block;
}

.mobile-panel {
  position: absolute;
  inset-inline: 0;
  top: 0;
  background: var(--white);
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}

.mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-links a {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.mobile-links a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.mobile-cta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

@media (min-width: 768px) {
  .menu-btn,
  .mobile-menu {
    display: none !important;
  }

  .nav-links,
  .nav-actions {
    display: flex;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(196, 34, 35, 0.04);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(196, 34, 35, 0.08);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(1.625rem, 5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.ad-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.ad-preview-label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.03em;
  line-height: 1.2;
  background: none;
  border: none;
  padding: 0;
}

.ad-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(196, 34, 35, 0.15), rgba(196, 34, 35, 0.05));
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
}

.ad-text h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.125rem;
}

.ad-text p {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mini-stat {
  padding: 0.625rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  text-align: center;
}

.mini-stat strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary);
}

.mini-stat span {
  font-size: 0.625rem;
  color: var(--gray-500);
}

@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* ── Sections ── */
.section {
  padding-block: 3rem;
}

.section-alt {
  background: var(--gray-50);
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0.625rem;
  border-radius: 999px;
  background: rgba(196, 34, 35, 0.08);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.25rem, 3.5vw, 1.625rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  max-width: 32rem;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  gap: 0.75rem;
}

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

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

.feature-card {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  background: rgba(196, 34, 35, 0.08);
  color: var(--primary);
}

.feature-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.375rem;
}

.feature-card p {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── Steps ── */
.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.step {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  margin-inline: auto;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 800;
}

.step h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.375rem;
}

.step p {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── Stats band ── */
.stats-band {
  padding-block: 2.5rem;
  background: var(--primary);
  color: var(--white);
}

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

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

.stats-grid strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.stats-grid span {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* ── CTA ── */
.cta-card {
  padding: 2rem 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  color: var(--white);
}

.cta-card h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-card p {
  font-size: 0.8125rem;
  opacity: 0.92;
  margin-bottom: 1.25rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* ── Footer ── */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 2.5rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.625rem;
}

.footer p,
.footer a {
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--gray-400);
}

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

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.6875rem;
}

.enamad img {
  max-height: 4.5rem;
  width: auto;
}

.enamad-disabled .enamad-badge {
  display: inline-block;
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
}
