/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6C5CE0;
  --primary-dark: #5747c9;
  --accent: #00C9A7;
  --ink: #1E1B33;
  --ink-soft: #6B6880;
  --bg: #FBFAFF;
  --bg-alt: #F3F1FC;
  --border: #E7E4F5;
  --white: #FFFFFF;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(108, 92, 224, 0.25);
  --shadow-sm: 0 10px 25px -12px rgba(30, 27, 51, 0.15);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

input, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 800; color: var(--ink); line-height: 1.35; }

svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8B7CF6);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(108,92,224,0.45); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-light {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 35px -16px rgba(0,0,0,0.3); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.btn-block { width: 100%; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Topbar ===== */
.topbar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--white);
  text-align: center;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 8px 24px -18px rgba(30,27,51,0.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-name { font-size: 1.3rem; font-weight: 800; color: var(--ink); }

.main-nav ul { display: flex; align-items: center; gap: 30px; }
.nav-link { font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; position: relative; }
.nav-link:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.25; pointer-events: none; }
.hero-blob { position: absolute; top: -120px; left: -140px; width: 640px; height: 640px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--primary-dark);
  background: var(--bg-alt);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-content h1 { font-size: 2.7rem; margin-bottom: 20px; }
.text-grad {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text { font-size: 1.05rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 32px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-meta { display: flex; align-items: center; gap: 14px; }
.hero-meta p { font-size: 0.9rem; color: var(--ink-soft); }
.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 0.85rem;
  border: 3px solid var(--bg);
  margin-inline-start: -10px;
}
.avatars span:first-child { margin-inline-start: 0; }

.hero-visual { position: relative; min-height: 380px; }

.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.card-1 { top: 0; right: 0; width: 320px; }
.hc-head { display: flex; gap: 6px; margin-bottom: 16px; }
.hc-dot { width: 9px; height: 9px; border-radius: 50%; }
.hc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hc-row:last-of-type { border-bottom: none; }
.hc-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hc-icon svg { width: 18px; height: 18px; }
.hc-row strong { display: block; font-size: 0.88rem; }
.hc-row small { color: var(--ink-soft); font-size: 0.78rem; }
.hc-progress { height: 7px; background: var(--bg-alt); border-radius: 100px; margin-top: 14px; overflow: hidden; }
.hc-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 100px; }

.card-2 {
  bottom: 10px;
  left: 0;
  width: 210px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-2 svg { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.card-2 strong { display: block; font-size: 1.15rem; color: var(--ink); }
.card-2 small { color: var(--ink-soft); font-size: 0.78rem; }

/* ===== Stats ===== */
.stats { background: var(--ink); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item { text-align: center; color: var(--white); }
.stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--accent);
  margin-bottom: 14px;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.stat-label { color: rgba(255,255,255,0.65); font-size: 0.88rem; }

/* ===== Section generic ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: 2.1rem; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }
.section-head .eyebrow { margin-bottom: 14px; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ===== Products / modules track ===== */
.product-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
}
.product-card {
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  color: var(--white);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); }
.product-card svg { width: 30px; height: 30px; color: var(--white); }
.product-card h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.product-card p { font-size: 0.9rem; opacity: 0.9; }

/* ===== Process ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
}
.step-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--ink-soft); font-size: 0.9rem; }

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.testi-stars { color: #FFB800; letter-spacing: 3px; margin-bottom: 14px; font-size: 0.95rem; }
.testi-card p { color: var(--ink); font-size: 0.96rem; margin-bottom: 22px; }
.testi-user { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700;
  flex-shrink: 0;
}
.testi-user strong { display: block; font-size: 0.92rem; }
.testi-user small { color: var(--ink-soft); font-size: 0.8rem; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 80px 0;
}
.cta-inner { text-align: center; color: var(--white); }
.cta-inner h2 { font-size: 2rem; margin-bottom: 14px; color: var(--white); }
.cta-inner p { margin-bottom: 30px; opacity: 0.92; font-size: 1.02rem; }

/* ===== Contact ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.contact-info h2 { font-size: 1.9rem; margin: 14px 0; }
.contact-info p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 0.94rem; }
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 19px; height: 19px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.form-group input, .form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group input.invalid, .form-group textarea.invalid { border-color: #E5484D; }
.form-error { display: block; min-height: 18px; color: #E5484D; font-size: 0.78rem; margin-top: 6px; }
.form-success {
  display: none;
  margin-top: 16px;
  text-align: center;
  color: #0F9D6B;
  background: #E4F9F3;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { margin: 16px 0 20px; font-size: 0.9rem; max-width: 280px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.social-links a:hover { background: var(--primary); }
.social-links svg { width: 17px; height: 17px; color: var(--white); }

.footer-col h4 { color: var(--white); font-size: 0.98rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }

.footer-bottom { text-align: center; padding: 24px 0; font-size: 0.82rem; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; margin-top: 40px; }
  .card-1 { width: 280px; }
  .features-grid, .process-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .product-track { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    height: 100vh;
    width: min(78%, 320px);
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 100px 30px 30px;
    box-shadow: -20px 0 40px rgba(0,0,0,0.15);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .menu-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .hero { padding: 50px 0 50px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-visual { display: none; }

  .section { padding: 64px 0; }
  .section-head h2 { font-size: 1.6rem; }

  .features-grid, .process-grid, .testi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-links { justify-content: center; }
  .footer-brand p { margin-inline: auto; }
  .contact-list li { justify-content: center; text-align: right; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.7rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cta-inner h2 { font-size: 1.5rem; }
  .contact-form { padding: 26px 20px; }
}
