:root {
  --bg: #f3f7fc;
  --bg-soft: #e8eef8;
  --navy: #071428;
  --navy-2: #0b2040;
  --navy-3: #123056;
  --ink: #14243c;
  --muted: #5a6d84;
  --line: rgba(16, 38, 70, 0.12);
  --blue: #1a73e8;
  --blue-deep: #1258c4;
  --sky: #7ec8ff;
  --gold: #d4a017;
  --gold-soft: #fff4d4;
  --ok: #0e9a73;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(8, 28, 58, 0.14);
  --shadow-sm: 0 10px 28px rgba(12, 32, 64, 0.08);
  --radius: 24px;
  --header: 76px;
  --container: 1140px;
  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

[dir="ltr"] {
  unicode-bidi: isolate;
  direction: ltr;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
}

button,
.btn {
  font-family: inherit;
}

.skip {
  position: absolute;
  right: 16px;
  top: -40px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 80;
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.section,
#how,
#features,
#pricing,
#faq {
  scroll-margin-top: 132px;
}

.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--navy);
  line-height: 1.4;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--blue-deep);
  background-image: linear-gradient(180deg, #2b86f5, var(--blue-deep));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 88, 196, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:visited {
  color: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-light,
a.btn-light,
a.btn-light:link,
a.btn-light:visited,
a.btn-light:hover,
a.btn-light:focus,
a.btn-light:active {
  background: #ffffff;
  color: #1258c4;
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--blue-deep);
  border: 1.5px solid rgba(18, 88, 196, 0.28);
}

.btn-block {
  width: 100%;
}

.stick {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header {
  position: relative;
  z-index: 51;
  height: var(--header);
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid transparent;
}

.stick.is-scrolled .site-header,
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(8, 28, 58, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.15;
  flex-shrink: 0;
}

.brand img {
  width: 52px;
  height: 38px;
  object-fit: contain;
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  text-decoration: none;
}

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary:focus-visible,
.site-nav a.btn-primary:visited,
.btn.btn-primary,
.btn.btn-primary:hover,
.btn.btn-primary:focus-visible,
.btn.btn-primary:visited {
  color: #ffffff !important;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  right: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.promo-bar {
  background: linear-gradient(90deg, #0b2040, #1557c7 55%, #0b2040);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
}

.promo-bar b {
  color: #ffe08a;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(50, 140, 255, 0.35), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(14, 154, 115, 0.16), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 72px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.28;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(90deg, #9ed4ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ee0ad;
  box-shadow: 0 0 0 5px rgba(62, 224, 173, 0.16);
}

.mock {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.mock::before {
  content: "";
  position: absolute;
  inset: 18% 10% auto 10%;
  height: 55%;
  background: radial-gradient(circle, rgba(80, 170, 255, 0.45), transparent 70%);
  filter: blur(18px);
  z-index: -1;
}

.mock-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(90deg, #1258c4, #1a73e8);
  color: var(--white);
}

.mock-top strong {
  display: block;
  font-size: 0.98rem;
}

.mock-top small {
  opacity: 0.8;
  font-size: 0.78rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pill-ok {
  background: rgba(14, 154, 115, 0.14);
  color: var(--ok);
}

.pill-wait {
  background: rgba(26, 115, 232, 0.12);
  color: var(--blue-deep);
}

.mock-body {
  padding: 8px 6px 12px;
}

.mock-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  margin: 6px 8px;
  border-radius: 14px;
  background: #f5f8fd;
  font-size: 0.88rem;
}

.mock-row b {
  color: var(--navy);
}

.mock-sum {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.logos {
  padding: 22px 0;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step,
.feature,
.price-card,
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover,
.feature:hover,
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step {
  padding: 28px 24px 26px;
  position: relative;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #2b86f5, var(--blue-deep));
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3,
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--navy);
}

.step p,
.feature p {
  margin: 0;
  color: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 26px 24px;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: #eaf3ff;
  color: var(--blue-deep);
}

.icon svg {
  width: 24px;
  height: 24px;
}

.pricing-note {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.trial-chip {
  background: var(--gold-soft);
  color: #7a5a00;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  max-width: 720px;
}

.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.free-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.free-tag {
  display: inline-flex;
  background: #e8f8ef;
  color: var(--ok);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.free-row-copy h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--navy);
}

.free-row-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.free-row-limits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.free-row-limits li {
  position: relative;
  padding: 4px 20px 4px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.free-row-limits li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.free-row .btn {
  white-space: nowrap;
}

.price-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: linear-gradient(180deg, #0b2040, #123056);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(7, 20, 40, 0.28);
}

.price-card.featured:hover {
  transform: translateY(-12px);
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  background: #ffe08a;
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.price-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.price-card.enterprise {
  border-color: rgba(18, 88, 196, 0.28);
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
}

.price-card .who {
  margin: 0 0 14px;
  color: var(--muted);
  min-height: 0;
}

.price-card.featured .who {
  color: rgba(255, 255, 255, 0.72);
}

.amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.35;
}

.price-card.featured .amount {
  color: var(--white);
}

.amount small {
  font-size: 0.95rem;
  font-weight: 600;
}

.subprice {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
  min-height: 0;
}

.price-card.featured .subprice {
  color: rgba(255, 255, 255, 0.7);
}

.price-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.price-card li {
  position: relative;
  padding: 8px 22px 8px 0;
}

.price-card li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.price-card.featured li::before {
  background: #3ee0ad;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: right;
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-q::after {
  content: "+";
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item.is-open .faq-q::after {
  content: "–";
}

.faq-a {
  padding: 0 22px 18px;
  color: var(--muted);
}

.cta {
  padding-bottom: 100px;
}

.cta-box {
  background: linear-gradient(135deg, #0b2040, #1557c7);
  color: var(--white);
  border-radius: 32px;
  padding: 48px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.cta-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 36px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.brand-footer {
  color: #ffffff;
}

.brand-footer small {
  color: var(--sky);
}

.site-footer a {
  color: var(--sky);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.to-top {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue-deep);
  color: var(--white);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .free-row {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .free-row .btn {
    width: 100%;
  }

  .price-card.featured {
    transform: none;
  }

  .price-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #071428;
    flex-direction: column;
    justify-content: flex-start;
    padding: 140px 22px 28px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    gap: 18px;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav a {
    color: var(--white);
    font-size: 1.15rem;
    padding: 8px 4px;
  }

  .site-nav .btn-primary,
  .site-nav a.btn-primary,
  .site-nav a.btn-primary:hover {
    margin-top: 8px;
    width: min(100%, 280px);
    color: #ffffff;
  }

  .hero-grid,
  .steps,
  .features-grid,
  .prices,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .price-card.featured:hover {
    transform: none;
  }

  .cta-box {
    display: grid;
    text-align: center;
  }

  .cta-box .btn {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }

  .prices {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .mock-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .cta-box .btn,
  .price-card .btn,
  .site-nav .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
