@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-light: #f0fdf4;
  --primary-border: #bbf7d0;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-light: #fff7ed;
  --accent-border: #fed7aa;
  
  --bg-page: #f8faf8;
  --bg-card: #ffffff;
  --bg-subtle: #f0f4f1;
  --bg-dark: #0f172a;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  
  --container-max: 1160px;
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography Helpers */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}

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

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

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-light);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-light);
  line-height: 1;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0;
  position: relative;
}

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

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

.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-drawer {
  display: none;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

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

.mobile-menu-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-drawer .nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-drawer .mobile-cta {
  margin-top: 1rem;
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 3rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
}

.hero-visual {
  width: 100%;
  max-width: 720px;
}

.visual-frame {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.visual-frame img {
  border-radius: calc(var(--radius-lg) - 6px);
  width: 100%;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 600px;
}

.stat-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.875rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-val {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.hero-stats .stat-item:nth-child(2) .stat-val {
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background-color: var(--bg-page);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}

.features-grid .feature-card:nth-child(2) .feature-icon-wrapper,
.features-grid .feature-card:nth-child(4) .feature-icon-wrapper {
  background-color: var(--accent-light);
  color: var(--accent);
}

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

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* App Preview Section */
.preview-section {
  padding: 4rem 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.preview-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.preview-display {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.preview-display img {
  border-radius: calc(var(--radius-lg) - 4px);
  width: 100%;
}

.preview-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.preview-item {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.preview-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.preview-item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Download Section */
.download-section {
  padding: 4.5rem 0;
  background-color: var(--bg-page);
}

.download-main-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: 2.5rem;
}

.version-pill {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.download-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.download-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.download-hint {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* Runtime Sub-section */
.runtime-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.runtime-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background-color: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.runtime-notice svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.runtime-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.runtime-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--bg-page);
}

.runtime-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.runtime-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.runtime-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* DNS Guide Section */
.dns-section {
  padding: 4rem 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.dns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.dns-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.dns-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dns-card-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.dns-grid .dns-card:nth-child(2) .dns-card-badge {
  background-color: var(--accent-light);
  color: var(--accent);
}

.dns-card-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.dns-card-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 4rem 0;
  background-color: var(--bg-page);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.is-active {
  border-color: var(--primary-border);
}

.faq-header {
  width: 100%;
  padding: 1.125rem 1.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: right;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform var(--transition);
}

.faq-item.is-active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background-color: #fafbfc;
}

.faq-content {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.875rem;
}

/* Final CTA */
.final-cta-section {
  padding: 4rem 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.final-cta-box {
  max-width: 680px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.final-cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.875rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand-title {
  color: var(--text-white);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-desc {
  line-height: 1.8;
  color: #94a3b8;
}

.footer-section-title {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.6;
}

.footer-contact-item a:hover {
  color: var(--text-white);
}

.footer-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}

.messenger-link:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Responsive Media Queries */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
  
  .runtime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .download-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dns-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .preview-details {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .mobile-nav-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
  
  .nav-actions {
    display: flex;
  }
  
  .mobile-menu-drawer {
    display: none !important;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

