:root {
  --brand: #1e40af;
  --brand-contrast: #fff;
  --accent: #ffb703;
  --accent-ink: #1b1400;
  --ink: color-mix(in srgb, var(--brand) 35%, #050b1f);
  --radius: 1rem;
}
html { scroll-behavior: smooth; }
body { font-family: "Vazirmatn", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif; line-height: 1.85; color: #1f2937; background: #fff; }
[dir="ltr"] body { line-height: 1.65; }
a { color: var(--brand); }
.skip-link { position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }

/* Header */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #e5e7eb; }
.navbar-brand { font-weight: 800; color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .7rem; background: var(--accent); color: var(--accent-ink); font-size: 1.25rem; }
.navbar .nav-link { color: #374151; font-weight: 500; }
.navbar .nav-link:hover { color: var(--brand); }

/* Buttons */
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.btn-brand:hover, .btn-brand:focus { filter: brightness(.92); color: var(--brand-contrast); }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: var(--brand-contrast); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 .5rem 1.2rem rgba(255,183,3,.35); }
.btn-accent:hover, .btn-accent:focus { filter: brightness(.95); color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 4.5rem 0 5.5rem;
  background: radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--brand) 70%, #4f7dff) 0%, transparent 60%),
              linear-gradient(160deg, var(--ink), color-mix(in srgb, var(--brand) 55%, #07122e)); }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 1.4rem; height: 4px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--accent) 0 38px, transparent 38px 76px); }
.hero h1 { font-weight: 800; font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.35; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: rgba(255,255,255,.82); max-width: 40rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .2rem .8rem; }

/* Illustration card */
.call-card { background: #fff; color: #1f2937; border-radius: 1.2rem; padding: 1.1rem; box-shadow: 0 1.8rem 3.5rem rgba(0,0,0,.35); transform: rotate(-1.5deg); max-width: 24rem; margin-inline: auto; }
[dir="rtl"] .call-card { transform: rotate(1.5deg); }
.call-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; padding-bottom: .7rem; border-bottom: 1px dashed #e5e7eb; }
.call-head .ring { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; animation: pulse 1.8s infinite; }
.call-head .badge { margin-inline-start: auto; background: #f3f4f6; color: #6b7280; font-weight: 500; }
.call-row { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; font-size: .9rem; }
.call-row > span { width: 6.2rem; color: #6b7280; flex: none; }
.bar { display: block; height: .6rem; border-radius: 99px; background: linear-gradient(90deg, #e5e7eb, #f3f4f6); flex: 1; }
.bar.w45 { max-width: 45%; } .bar.w50 { max-width: 50%; } .bar.w60 { max-width: 60%; } .bar.w80 { max-width: 80%; }
.queue { margin-top: .4rem; padding: .7rem; border-radius: .8rem; background: #f8fafc; display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.queue .dot { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: .8rem; }
.queue .dot:nth-child(n+4) { background: #e5e7eb; color: #6b7280; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 .8rem rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: linear-gradient(180deg, #f8fafc, #eef2ff); }
.section-title { font-weight: 800; margin-bottom: 1.6rem; position: relative; padding-bottom: .8rem; color: var(--ink); }
.section-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 3.2rem; height: 4px; border-radius: 4px; background: var(--accent); }
.text-center .section-title::after { inset-inline-start: 50%; transform: translateX(-50%); }

.feature-card, .card-soft { border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 1.5rem; height: 100%; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover, .card-soft:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(30,64,175,.12); border-color: color-mix(in srgb, var(--brand) 35%, #fff); }
.feature-icon { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: .9rem; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #7aa2ff)); margin-bottom: .9rem; box-shadow: 0 .5rem 1rem rgba(30,64,175,.25); }

/* Steps */
.step { text-align: center; padding: 1rem; position: relative; }
.step-num { width: 3.6rem; height: 3.6rem; border-radius: 50%; margin: 0 auto .9rem; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 .5rem rgba(255,183,3,.2); }
@media (min-width: 992px) { .step:not(:last-child)::after { content: ""; position: absolute; top: 2.8rem; inset-inline-start: calc(50% + 2.6rem); width: calc(100% - 5.2rem); border-top: 2px dashed #cbd5e1; } }

/* CTA band */
.cta-band { color: #fff; border-radius: 1.4rem; padding: 2.5rem 1.5rem; text-align: center; margin: 0 auto;
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--brand) 70%, #07122e)); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 18rem; height: 18rem; border-radius: 50%; inset-inline-end: -6rem; top: -8rem; background: rgba(255,183,3,.18); }
.cta-band > * { position: relative; }

.gallery-item { padding: 0; border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; background: #fff; width: 100%; text-align: start; transition: box-shadow .2s, transform .2s; }
.gallery-item:hover { box-shadow: 0 1rem 2rem rgba(0,0,0,.12); transform: translateY(-3px); }
.gallery-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.release-box { border: 2px solid var(--brand); border-radius: var(--radius); padding: 1.5rem; background: color-mix(in srgb, var(--brand) 5%, #fff); }
.prose { max-width: 75ch; } .prose img { max-width: 100%; height: auto; } .prose h2 { font-size: 1.35rem; margin-top: 1.6rem; color: var(--ink); }
.article-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.accordion-button:not(.collapsed) { color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, #fff); }

.site-footer { background: var(--ink); color: rgba(255,255,255,.75); }
.site-footer h2 { color: #fff; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.75); } .site-footer a:hover { color: var(--accent); }
.site-footer .text-muted, .site-footer .small { color: rgba(255,255,255,.6) !important; }
.site-footer hr { border-color: rgba(255,255,255,.15); }
.social { font-size: 1.25rem; }
.sha { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; word-break: break-all; direction: ltr; unicode-bidi: plaintext; }
.fade-in { opacity: 0; transform: translateY(10px); animation: fadeIn .6s ease forwards; }
@keyframes fadeIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } .feature-card, .card-soft, .gallery-item, .btn-accent { transition: none; } .call-head .ring { animation: none; } }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 80%, #fff); outline-offset: 2px; }
@media (max-width: 575.98px) { .hero { padding: 3rem 0 4.5rem; } .section { padding: 3rem 0; } .call-card { transform: none !important; } }

/* ---- سازگاری با وردپرس ---- */
.admin-bar .site-header.sticky-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.sticky-top { top: 46px; } }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.form-error { color: #dc3545; font-size: .875em; margin-top: .25rem; }
.screen-reader-text { position: absolute; left: -9999px; }
