@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #120e1e;
  --surface: #1b1530;
  --surface-2: #231b3d;
  --line: #342a55;
  --text: #f4f0fd;
  --muted: #bdb4d6;
  --accent: #a78bfa;
  --accent-strong: #8b5cf6;
  --on-accent: #1a1230;
  --good: #5ee0a0;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

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

a { color: inherit; }
img, svg { max-width: 100%; }

.container {
  width: min(1080px, 100%);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-fill { fill: currentColor; stroke: none; }

/* ───── header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 14, 30, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.2px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: var(--surface); }

/* ───── buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #b9a2fc; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }

/* ───── hero ───── */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(700px 360px at 5% 10%, rgba(167, 139, 250, 0.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.45; margin: 18px 0 16px; font-weight: 800; }
h1 span { color: var(--accent); }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 28px; max-width: 56ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.summary {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.summary h2 { margin: 0 0 14px; font-size: 1.1rem; color: var(--accent); }
.summary dl { margin: 0; display: grid; gap: 14px; }
.summary dt { color: var(--muted); font-size: 0.88rem; }
.summary dd { margin: 0; font-weight: 600; }

/* ───── sections ───── */
section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
h2.title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 10px; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; }
.alt { background: linear-gradient(180deg, rgba(27, 21, 48, 0.55), rgba(27, 21, 48, 0.2)); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(167, 139, 250, 0.6); transform: translateY(-3px); }
.card h3 { margin: 12px 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.card .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(167, 139, 250, 0.14);
  color: var(--accent);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-weight: 600;
  direction: ltr;
}
.chip.more { direction: rtl; color: var(--muted); font-weight: 500; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.steps li::before {
  content: counter(step, persian);
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.note {
  margin-top: 22px;
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(94, 224, 160, 0.08);
  border: 1px solid rgba(94, 224, 160, 0.28);
  border-radius: 14px;
  padding: 14px 18px;
  color: #d6f6e6;
  font-size: 0.97rem;
}
.note .icon { color: var(--good); margin-top: 4px; }

/* ───── contact ───── */
.contact-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.contact-card .label { color: var(--muted); font-size: 0.88rem; }
.contact-card .value { font-weight: 700; font-size: 1.1rem; }
.ltr { direction: ltr; unicode-bidi: plaintext; text-align: right; }

/* ───── terms ───── */
.doc { max-width: 780px; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-top: 0; }
.doc { counter-reset: sec; }
.doc h2 { counter-increment: sec; font-size: 1.25rem; margin: 34px 0 8px; color: var(--accent); display: flex; align-items: center; gap: 12px; }
.doc h2::before {
  content: counter(sec, persian);
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(167, 139, 250, 0.16);
  font-size: 0.95rem; font-weight: 800;
}
.doc p, .doc li { color: #e2dcf2; }
.doc ul { padding-inline-start: 22px; }
.doc .updated { color: var(--muted); font-size: 0.9rem; }

/* ───── footer ───── */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 0.93rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

.preview-badge {
  position: fixed; inset-inline-start: 12px; bottom: 12px; z-index: 200;
  background: #ffcf5a; color: #3a2a00; font-weight: 800; font-size: 0.8rem;
  padding: 6px 12px; border-radius: 999px; direction: ltr;
}

@media (max-width: 860px) {
  .hero { padding: 44px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 48px 0; }
  .nav a { padding: 6px 9px; font-size: 0.9rem; }
  .site-header .container { padding-block: 8px; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 16px; }
  .site-header { position: static; }
  .site-header .container { flex-direction: column; align-items: stretch; gap: 4px; padding-block: 10px 8px; }
  .nav { justify-content: space-between; gap: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .nav a { padding: 6px 8px; }
}
@media (max-width: 520px) {
  .cta .btn { width: 100%; }
  .brand { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.note.note-info { background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.35); color: #e6dfff; }
.note.note-info .icon { color: var(--accent); }
