@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand: #1f6fb2;
  --brand-dark: #17578c;
  --brand-soft: #eef4fa;
  --ink: #16202b;
  --muted: #55606d;
  --line: #dde5ee;
  --bg: #ffffff;
  --radius: 14px;
  --wrap: 1080px;
  --shadow: 0 1px 2px rgba(22, 32, 43, .06), 0 8px 24px rgba(22, 32, 43, .06);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.45; margin: 0 0 .6rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid #8ab6dd;
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip:focus { inset-inline-start: 0; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 1rem; }
.brand-text span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: inline-block;
  padding: .45rem .75rem;
  border-radius: 9px;
  color: var(--ink);
  font-size: .95rem;
}
.site-nav ul a:hover { background: var(--brand-soft); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 11px 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .72rem 1.35rem;
  border-radius: 11px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }

/* hero */
.hero {
  background: linear-gradient(180deg, var(--brand-soft), #fff 78%);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: .85rem;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid #cfe0f0;
  border-radius: 999px;
  padding: .25rem .85rem;
  margin-bottom: 1rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.7rem 0 2.2rem; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-stats li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem 1.1rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  box-shadow: var(--shadow);
}
.hero-stats strong { font-size: 1.3rem; color: var(--brand); }
.hero-stats span { font-size: .88rem; color: var(--muted); }

/* sections */
.section { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.section-alt { background: #f8fafc; border-block: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 62ch; margin-bottom: 2rem; }

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.card-feature { border-color: #bcd6ec; }
.card-badge {
  align-self: flex-start;
  font-size: .75rem;
  background: #e4f2e8;
  color: #1d6b38;
  border-radius: 999px;
  padding: .1rem .6rem;
}
.badge-muted { background: #eef1f5; color: var(--muted); }
.card p { color: var(--muted); font-size: .97rem; }
.card-link { margin-top: auto; font-weight: 500; font-size: .95rem; }

.steps {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: none;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: .7rem;
}
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
.note {
  font-size: .92rem;
  color: var(--muted);
  border-inline-start: 3px solid #cfe0f0;
  padding-inline-start: .9rem;
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .95rem;
  color: var(--ink);
}

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .2rem 1.1rem;
}
.faq summary {
  cursor: pointer;
  padding: .8rem 0;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: left;
  color: var(--brand);
  font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: .96rem; margin: 0 0 .9rem; }

/* contact */
.contact {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem 1.1rem;
}
.contact-list span { color: var(--muted); font-size: .9rem; min-width: 3.5rem; }
.contact-list a { font-weight: 500; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #f8fafc; padding: 1.6rem 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: .92rem;
  color: var(--muted);
}
.footer-brand { margin: 0; color: var(--ink); }
.footer-inner nav ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.copy { margin: 0; }

/* mobile */
@media (max-width: 780px) {
  .contact { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    margin: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: .6rem .4rem; }
  .site-nav .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (prefers-color-scheme: dark) {
  /* صفحه عمداً روشن می‌ماند تا با هویت برند یکی باشد */
}
