:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #f59e0b;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fb;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
}

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

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

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn--ghost:hover {
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--color-text);
}
.logo span { color: var(--color-primary); }
.logo--light { color: #fff; }
.logo--light span { color: var(--color-accent); }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
}
.nav a:hover { color: var(--color-primary); }
.nav-cta { white-space: nowrap; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.badge--soft {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #eef3ff 0%, #ffffff 100%);
  padding: 80px 0 60px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__text h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.5;
}
.hero__text p {
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero__card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 18px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero__card--2, .hero__card--3 { margin-top: 28px; }

/* Section */
.section { padding: 80px 0; }
.section--alt { background: var(--color-bg-alt); }
.section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.section__head h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin: 0 0 12px;
}
.section__head p { color: var(--color-text-muted); margin: 0; }

/* Grid / Cards */
.grid {
  display: grid;
  gap: 24px;
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card--plain { background: #fff; }
.card__icon { font-size: 32px; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--color-text-muted); font-size: 15px; }

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split--reverse .split__text { order: 2; }
.split--reverse .split__art { order: 1; }
.split__text h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.5;
}
.split__text p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.check-list { margin-bottom: 28px; }
.check-list li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 12px;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.glow-card {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
  box-shadow: var(--shadow);
}
.glow-card--alt {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.glow-card__row {
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
}
.glow-card__row:last-child { margin-bottom: 0; }

/* Pricing table */
.pricing-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  text-align: center;
}
.pricing-table th,
.pricing-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}
.pricing-table thead th {
  background: var(--color-bg-alt);
  font-weight: 800;
  font-size: 18px;
}
.pricing-table__feature {
  text-align: right;
  font-weight: 700;
  color: var(--color-text-muted);
}
.pricing-table tbody td:first-child {
  text-align: right;
  font-weight: 500;
}
.pricing-table__plan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pricing-table__plan--featured { color: var(--color-primary); }
.pricing-table .price-card__tag {
  position: static;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-primary);
  font-weight: 800;
}
.cross {
  color: var(--color-text-muted);
  font-weight: 700;
}
.pricing-table tfoot td { border-bottom: none; padding-top: 28px; }

@media (max-width: 720px) {
  .pricing-table th, .pricing-table td { padding: 14px 12px; font-size: 14px; }
}

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
}
.cta h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 12px; font-weight: 800; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.cta .btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* Footer */
.footer {
  background: #111827;
  color: rgba(255,255,255,0.75);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 920px) {
  .hero__inner, .split { grid-template-columns: 1fr; }
  .split--reverse .split__text,
  .split--reverse .split__art { order: initial; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(1, 1fr); }
}

@media (max-width: 720px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .header.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
  }
  .header.is-open .nav-cta {
    display: inline-flex;
    margin: 0 24px 20px;
  }
  .grid--4 { grid-template-columns: 1fr; }
  .hero__art { grid-template-columns: 1fr; }
  .hero__card--2, .hero__card--3, .hero__card--4 { margin-top: 0; }
}
