:root {
  --purple: #71349c;
  --purple-dark: #231f20;
  --purple-deep: #3a1650;
  --purple-soft: #f1eaf6;
  --lilac: #c7b2da;
  --ink: #231f20;
  --muted: #6b6570;
  --line: #e6e0ea;
  --paper: #fdfcfe;
  --radius: 16px;
  --wrap: 1120px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  right: -999px;
  top: 0;
}
.skip-link:focus { right: 8px; top: 8px; background: #fff; padding: 6px 12px; border-radius: 8px; z-index: 999; }

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

.ltr-block { direction: ltr; unicode-bidi: isolate; display: block; }

h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.35; font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 14px; line-height: 1.4; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.lead-muted { color: var(--muted); font-size: 17px; max-width: 720px; margin-bottom: 34px; }
.fine-print { font-size: 13px; margin-top: 18px; }

.eyebrow {
  color: var(--purple);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.eyebrow-invert { color: #d9b9e5; }
.invert { color: #fff; }
.invert-muted { color: #d7c9dd; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: #5f2a80; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-small { padding: 9px 20px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253,252,254,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; margin-inline-end: auto; }
.main-nav { display: flex; gap: 22px; margin-inline-end: auto; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink); opacity: .82; }
.main-nav a:hover { opacity: 1; color: var(--purple); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  background: var(--purple-dark);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 88px;
}
.hero-orbits {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% -10%, rgba(113,52,156,.55), transparent 45%),
    radial-gradient(circle at 100% 60%, rgba(113,52,156,.35), transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero h1 { margin-bottom: 22px; }
.hero-lead { color: #d7c9dd; font-size: 18px; max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.pill-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  direction: ltr;
  color: #f1e6f5;
}

/* Sections */
.section { padding: 84px 0; }
.section-soft { background: var(--purple-soft); }
.section-dark { background: var(--purple-dark); color: #fff; }
.section-cta { background: var(--purple-dark); color: #fff; padding-bottom: 70px; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card-open { background: transparent; border: 0; border-right: 3px solid var(--line); padding-right: 20px; }
.card-dark { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); text-align: center; }
.card-dark strong { display: block; font-size: 32px; font-weight: 800; direction: ltr; margin-bottom: 8px; }
.card-dark span { color: #d7c9dd; font-size: 13.5px; }
.num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
  direction: ltr;
}
.tag-code {
  display: inline-block;
  color: var(--purple);
  background: var(--purple-soft);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  direction: ltr;
}

.statement {
  margin-top: 40px;
  background: var(--purple-dark);
  color: #fff;
  border-radius: 20px;
  padding: 34px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.75;
}

/* Flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  min-height: 120px;
}
.flow-step strong { display: block; font-size: 17px; margin-bottom: 6px; }
.flow-step span { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* Products */
.product-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.product-block:last-child { border-bottom: 0; }
.product-block.reverse { direction: rtl; }
.product-media {
  border-radius: 20px;
  padding: 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-media-dark { background: var(--purple-dark); color: #fff; }
.product-code {
  display: inline-block;
  color: #d9b9e5;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 13px;
  margin-bottom: 18px;
  direction: ltr;
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat strong { display: block; font-size: 24px; font-weight: 800; direction: ltr; }
.stat span { color: #d7c9dd; font-size: 12px; line-height: 1.6; }
.mini-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-flow div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 12px 8px; text-align: center; }
.mini-flow b { display: block; color: #d9b9e5; font-size: 15px; margin-bottom: 6px; direction: ltr; }
.mini-flow span { color: #e3d6e8; font-size: 11.5px; }
.api-box {
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.9;
  background: rgba(0,0,0,.28);
  border-radius: 12px;
  padding: 16px;
  color: #f1e6f5;
}
.product-copy h3 { font-size: 24px; margin-bottom: 10px; }
.check-list { margin: 16px 0; }
.check-list li { padding-right: 22px; position: relative; margin-bottom: 8px; color: var(--ink); font-size: 15px; }
.check-list li::before {
  content: "";
  position: absolute;
  right: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple);
}
.text-link { color: var(--purple); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

.story-stats { margin-top: 6px; }

.guardrail {
  margin-top: 30px;
  border-right: 4px solid var(--purple);
  background: var(--purple-soft);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
}
.guardrail p { margin: 0; font-size: 14.5px; }

/* Contact */
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 26px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list b { color: #d9b9e5; font-weight: 700; }
.contact-list .address span { line-height: 1.8; }

/* Footer */
.site-footer { background: var(--purple-dark); color: #fff; padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner .muted { color: #b6a9bc; margin: 0; font-size: 13.5px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 13.5px; color: #e3d6e8; }
.footer-links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .product-block, .product-block.reverse { grid-template-columns: 1fr; direction: rtl; }
  .cta-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .main-nav { position: absolute; top: 68px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 14px 24px; border-bottom: 1px solid var(--line); display: none; gap: 14px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-inner .btn-small { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stat-row, .mini-flow { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 72px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 300px; margin: 0 auto 26px; }
  .hero-actions .btn { white-space: normal; width: 100%; }
  .contact-list li { grid-template-columns: 72px 1fr; font-size: 13px; }
}
