/* ===========================
   Variables & Reset
   =========================== */
:root {
  --bg-primary:    #0d1117;
  --bg-secondary:  #111827;
  --bg-card:       #161d2b;
  --bg-card-hover: #1a2236;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,255,255,0.15);

  --accent:        #3b82f6;
  --accent-dark:   #2563eb;
  --accent-glow:   rgba(59,130,246,0.25);

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 60px rgba(59,130,246,0.15);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===========================
   Header
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo i {
  color: var(--accent);
  font-size: 1.3rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.btn-login {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.btn-login:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 140px 5% 100px;
  min-height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1;
  max-width: 1000px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.badge-icon {
  font-size: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

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

.hero-visual {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-8px);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}

/* Button Enhancements */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    gap: 3rem;
    padding: 120px 4% 80px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-image-wrapper {
    max-width: 550px;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding-top: 140px;
    text-align: center;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-image-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-description br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ===========================
   Section Header
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ===========================
   Features Showcase
   =========================== */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.showcase-block {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-bottom: 8rem;
}

.showcase-block.reverse {
  flex-direction: row-reverse;
}

/* Text side */
.showcase-text {
  flex: 1;
  min-width: 0;
}

.showcase-tag {
  display: inline-block;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.showcase-text h3 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.showcase-text p {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-list li i {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
  background: rgba(59,130,246,0.1);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image stack side */
.showcase-images {
  flex: 1;
  min-width: 0;
}

.img-stack {
  position: relative;
  height: 340px;
}

.img-stack .img-back {
  position: absolute;
  width: 82%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  bottom: 0;
  left: 0;
  filter: brightness(0.7);
  transition: transform var(--transition), filter var(--transition);
}

.img-stack .img-front {
  position: absolute;
  width: 82%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  top: 0;
  right: 0;
  transition: transform var(--transition);
}

.img-stack:hover .img-front {
  transform: translate(6px, -6px);
}

.img-stack:hover .img-back {
  transform: translate(-6px, 6px);
  filter: brightness(0.85);
}

/* ===========================
   Pricing
   =========================== */
.pricing-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(59,130,246,0.08), var(--bg-card));
  box-shadow: 0 0 40px rgba(59,130,246,0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features li i {
  color: var(--accent);
  font-size: 0.75rem;
}

.btn-plan {
  display: block;
  text-align: center;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-plan:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.pricing-card.featured .btn-plan {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pricing-card.featured .btn-plan:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* ===========================
   CTA
   =========================== */
.cta-section {
  padding: 7rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.1) 0%, transparent 70%);
}

.cta-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
/* ===========================
   Reveal Animation
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===========================
   Header Scrolled
   =========================== */
.site-header.scrolled {
  background: rgba(13, 17, 23, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding-top: 100px;
    text-align: center;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    width: 100%;
  }

  .showcase-block,
  .showcase-block.reverse {
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 5rem;
  }

  .img-stack {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .header-nav a:not(.btn-login) {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

body {
  font-family: 'Vazirmatn', sans-serif;
}
/* در فایل CSS */
@media (max-width: 768px) {
  .hero-title br {
    display: none;
  }
  .gradient-text {
    display: block; /* باعث می‌شود فارم‌های ماینینگ در موبایل حتماً به خط بعد برود */
    margin-top: 5px;
  }
}
