:root,
[theme='light'] {
  --bg-color: #f4f6f9;
  --text-color: #1e1e2d;
  --card-bg: #ffffff;
  --navbar-bg: #661fff;
  --navbar-hover: #5815e3;
  --navbar-link-color: #ffffff;
  --menu-hover-bg: rgba(255, 255, 255, 0.15);
  --border-color: #e2e8f0;
  --accent-purple: #661fff;
  --hero-gradient: linear-gradient(145deg, #7a22ff 0%, #5300e8 100%);
  --subtext-color: #64748b;
  --item-border: #f1f5f9;
}

[theme='dark'] {
  --bg-color: #121218;
  --text-color: #f1f1f1;
  --card-bg: #1e1e2a;
  --navbar-bg: #1e1538;
  --navbar-hover: #261b46;
  --navbar-link-color: #ffffff;
  --menu-hover-bg: rgba(255, 255, 255, 0.1);
  --border-color: #333346;
  --accent-purple: #8b5cf6;
  --hero-gradient: linear-gradient(145deg, #4f14b8 0%, #2f0676 100%);
  --subtext-color: #94a3b8;
  --item-border: #29293a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', sans-serif;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* =================== محتوای اصلی =================== */
.main-content {
  max-width: 900px;
  margin: 0 auto 30px auto;
  padding: 0 20px 40px 20px;
  width: 100%;
  flex: 1 0 auto;
}

.hero-banner {
  background: var(--hero-gradient);
  color: #ffffff;
  text-align: center;
  border-radius: 26px;
  padding: 42px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-banner h1 {
  font-size: 1.85rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.hero-banner p {
  font-size: 1rem;
  opacity: 0.92;
  max-width: 650px;
  margin: 0 auto 28px auto;
  line-height: 1.8;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #5b0ee8;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 34px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 35px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 6px;
  height: 22px;
  background: var(--accent-purple);
  border-radius: 4px;
  display: inline-block;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.info-card-text span {
  font-size: 0.86rem;
  color: var(--subtext-color);
  display: block;
  margin-bottom: 6px;
}

.info-card-text h3 {
  font-size: 1.12rem;
  font-weight: 800;
}

.card-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-purple {
  background: rgba(102, 31, 255, 0.12);
  color: #661fff;
}
.icon-blue {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}
.icon-green {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}
.icon-amber {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

/* =================== فوتر =================== */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--subtext-color);
}

/* =================== مدیاکوئری‌ها (ریسپانسیو) =================== */

@media screen and (min-width: 1025px) {
  .main-content {
    max-width: 960px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 1024px) {
  .main-content {
    max-width: 760px;
    padding: 0 18px 35px 18px;
    margin: 0 auto 25px auto;
  }

  .hero-banner {
    padding: 34px 20px;
  }
}

@media screen and (max-width: 600px) {
  .main-content {
    padding: 0 14px 30px 14px;
    margin: 0 auto 20px auto;
  }

  .hero-banner {
    border-radius: 20px;
    padding: 26px 16px;
  }

  .hero-banner h1 {
    font-size: 1.42rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn-download {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}
