@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; }
@font-face { font-family: Vazirmatn; src: url(/fonts/Vazirmatn-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --navy: #0b2a4a;
  --navy-2: #123b66;
  --teal: #0fa39a;
  --teal-dark: #0b8079;
  --amber: #f5a524;
  --ink: #1b2533;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 74, .08);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.5; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; right: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Keep Latin/number runs (card numbers, IBAN, emails, URLs) in their own direction */
.ltr, [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
.hero-card .ltr { display: inline-block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff !important; font-weight: 700;
  padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--teal-dark); text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 7px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand b { color: var(--teal); }
.brand-light { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink); padding: 6px 12px; border-radius: 8px; font-weight: 500; }
.site-nav a:not(.btn):hover { background: var(--bg-soft); text-decoration: none; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--teal-dark); font-weight: 700; }
.site-nav .btn { margin-right: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 70px; right: 0; left: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 12px; }
  .site-nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(15,163,154,.35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #dbe6f3; padding: 90px 0 100px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { font-size: 1.15rem; max-width: 620px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; }
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 20px;
  padding: 22px; color: #fff; backdrop-filter: blur(6px);
}
.hero-card + .hero-card { margin-top: 14px; margin-right: 40px; }
.hero-card small { color: #a9bfd8; display: block; }
.hero-card strong { font-size: 1.3rem; }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pill { font-size: .8rem; padding: 2px 12px; border-radius: 999px; background: rgba(15,163,154,.25); color: #7fe6dc; }
.page-hero { padding: 64px 0 70px; }
.page-hero .lead { max-width: 760px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  .hero-card + .hero-card { margin-right: 0; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; color: var(--teal-dark); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 700; }
.product-card { display: flex; flex-direction: column; }
.product-card ul { padding: 0 18px 0 0; margin: 14px 0 0; color: var(--muted); }
.product-card .more { margin-top: auto; padding-top: 16px; }

.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(15,163,154,.12); color: var(--teal-dark); margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon { flex: none; margin: 0; }
.feature h3 { margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step, persian);
  position: absolute; top: 0; right: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-right: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; right: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E") center/12px no-repeat;
}

.code-box {
  background: #0d1b2c; color: #cfe3f7; border-radius: var(--radius); padding: 22px; direction: ltr; text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.7; overflow-x: auto;
}
.code-box .k { color: #7fe6dc; } .code-box .s { color: #f5c97a; } .code-box .c { color: #6f8aa6; }

.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #dbe6f3;
  border-radius: 24px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }
.faq-group { margin: 40px 0 16px; font-size: 1.2rem; }

/* Prose (legal pages) */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-right: 22px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* Contact */
.contact-card { text-align: center; }
.contact-card .icon { margin: 0 auto 16px; }
.contact-card a { font-weight: 700; font-size: 1.05rem; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input, .form textarea, .form select {
  font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid rgba(15,163,154,.4); border-color: var(--teal); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #071d34; color: #9fb3c8; padding: 60px 0 0; margin-top: 0; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c7d6e6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-about p { margin-top: 14px; font-size: .95rem; }
.trust-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge-slot {
  width: 110px; height: 120px; border: 1px dashed rgba(255,255,255,.25); border-radius: 12px;
  display: grid; place-items: center; text-align: center; font-size: .8rem; padding: 8px; background: rgba(255,255,255,.04);
}
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 20px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
