/*
 * برج‌یار — استایل سایت عمومی (صفحه اصلی، فرم‌های عضویت و همکاری، پرداخت، پشتیبانی)
 * پالت: کیت فیگما (بژ #EAE9E3، کارت سفید، گوشه ۲۷px) + رنگ‌های لوگو (نارنجی #F39C12، سرمه‌ای #1F2937)
 */

:root {
    --orange: #F39C12;
    --orange-ink: #B45309;
    --orange-soft: #FDF0DC;
    --navy: #1F2937;
    --navy-2: #374151;
    --bg: #EAE9E3;
    --card: #FFFFFF;
    --soft: #F4F3EF;
    --text: #201F23;
    --muted: #596269;
    --line: #E3E1DA;
    --green: #4C6C5A;
    --green-soft: #E6EFEA;
    --err: #B42318;
    --ok: #4C6C5A;
    --accent: var(--orange);
    --accent-ink: var(--navy);
    --radius: 27px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111827;
        --card: #1F2937;
        --soft: #ffffff0d;
        --text: #F9FAFB;
        --muted: #9CA3AF;
        --line: #ffffff1a;
        --orange-ink: #FBBF24;
        --orange-soft: #F39C1226;
        --green-soft: #4C6C5A40;
        --err: #F87171;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Vazirmatn, Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-ink); }

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

/* ── سربرگ و منو ───────────────────────────────── */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 10px; }

.site-head {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow .2s;
}

.site-head.is-scrolled { box-shadow: 0 6px 24px -12px #0000003d; }

.site-head .in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-head .brand { text-decoration: none; flex-shrink: 0; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--card);
    border-radius: 999px;
    padding: 5px;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}

.site-nav a:hover { background: var(--soft); }
.site-nav a.is-active { color: var(--orange-ink); font-weight: 700; }
.site-nav a.is-cta { background: var(--navy); color: #fff; font-weight: 700; margin-inline-start: 4px; }
.site-nav a.is-cta:hover { background: var(--orange); color: var(--navy); }

.nav-toggle, .nav-cta-mobile { display: none; }

@media (max-width: 960px) {
    .nav-cta-mobile {
        display: inline-flex;
        margin-inline-start: auto;
        background: var(--navy);
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
        border-radius: 999px;
        padding: 8px 14px;
        white-space: nowrap;
    }

    .nav-toggle {
        display: grid;
        place-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 999px;
        background: var(--card);
        cursor: pointer;
        flex-shrink: 0;
    }

    .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .site-nav {
        position: absolute;
        inset-inline: 12px;
        top: calc(100% + 4px);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        border-radius: 24px;
        padding: 8px;
        box-shadow: 0 24px 48px -16px #00000040;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }

    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .site-nav a { padding: 12px 16px; font-size: 15px; }
    .site-nav a.is-cta { margin: 6px 0 0; text-align: center; }
}

@media (max-width: 380px) {
    .nav-cta-mobile { display: none; }
}

.site-foot {
    margin-top: 40px;
    background: var(--navy);
    color: #D1D5DB;
}

.site-foot .in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 16px 22px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.site-foot .foot-h { color: #fff; margin: 0 0 10px; font-size: 15px; }
.site-foot .socials { display: flex; gap: 8px; margin-top: 14px; }
.site-foot .socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; background: #ffffff14; }
.site-foot .socials svg { width: 20px; height: 20px; }
.site-foot p, .site-foot li { font-size: 14px; margin: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: #D1D5DB; text-decoration: none; }
.site-foot a:hover { color: var(--orange); }
.site-foot .copy { grid-column: 1 / -1; border-top: 1px solid #ffffff1f; padding-top: 16px; font-size: 13px; color: #9CA3AF; }

@media (max-width: 900px) {
    .site-foot .in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .site-foot .in { grid-template-columns: 1fr; }
}

/* ── صفحه اصلی ───────────────────────────────────── */
.page { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: stretch;
    padding: 18px 0 8px;
}

.hero-text {
    background: var(--card);
    border-radius: var(--radius);
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: var(--orange-soft);
    color: var(--orange-ink);
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.35;
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero h1 em { font-style: normal; color: var(--orange); }

.hero p.lead { font-size: 17px; color: var(--muted); margin: 0 0 26px; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 24px;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--orange); color: var(--navy); }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--soft); color: var(--text); }
.btn-ghost:hover { background: var(--line); }

.dot {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--navy);
}

.dot svg { width: 20px; height: 20px; }
.dot.o { background: var(--orange-soft); color: var(--orange-ink); }
.dot.g { background: var(--green-soft); color: var(--green); }

@media (prefers-color-scheme: dark) {
    .dot { color: var(--orange); }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-text { padding: 30px 22px; }
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 12px 0 0;
}

.stat {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.stat .dot { width: 48px; height: 48px; }
.stat b { display: block; font-size: 17px; }
.stat span { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
    .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .stats { grid-template-columns: 1fr; }
}

.sec { padding: 54px 0 0; }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; font-weight: 800; letter-spacing: -.3px; }
.sec-head p { color: var(--muted); margin: 4px 0 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.svc {
    background: var(--card);
    border-radius: var(--radius);
    padding: 26px;
}

.svc .dot { width: 52px; height: 52px; margin-bottom: 14px; }
.svc .dot svg { width: 24px; height: 24px; }
.svc h3 { margin: 0 0 6px; font-size: 18px; }
.svc p { margin: 0; color: var(--muted); font-size: 14.5px; }

@media (max-width: 900px) {
    .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; }
}

ol.steps { list-style: none; margin: 0; padding: 0; }

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    counter-reset: s;
}

.step {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}

.step::before {
    counter-increment: s;
    content: counter(s, persian);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
}

.step:first-child::before { background: var(--orange); color: var(--navy); }
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; }
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.panel {
    border-radius: var(--radius);
    padding: 32px;
    background: var(--card);
}

.panel.dark { background: var(--navy); color: #F9FAFB; }
.panel.dark p { color: #D1D5DB; }
.panel.orange { background: var(--orange); color: var(--navy); }
.panel.orange p { color: #3B2A0B; }
.panel h3, .panel .h3 { margin: 0 0 8px; font-size: 22px; }
.panel p { margin: 0 0 18px; color: var(--muted); }

ul.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-size: 14.5px; }
ul.ticks li::before { content: "✓"; color: var(--orange); font-weight: 800; margin-inline-end: 8px; }
.panel.orange ul.ticks li::before { color: var(--navy); }

@media (max-width: 800px) {
    .split { grid-template-columns: 1fr; }
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.contact .stat a { color: inherit; text-decoration: none; }

/* ── فرم‌ها (عضویت، همکاری) ──────────────────────── */
.wrap { max-width: 760px; margin: 0 auto; padding: 18px 16px 30px; }
.wrap.wide { max-width: 1100px; }

.wrap > header { margin-bottom: 16px; }
.wrap h1 { font-size: 26px; margin: 0 0 4px; font-weight: 800; letter-spacing: -.3px; }
.lead { color: var(--muted); margin: 0; font-size: 15px; }

.card { background: var(--card); border-radius: var(--radius); padding: 26px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.full { grid-column: 1 / -1; }

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    .card { padding: 20px 16px; }
}

label.f { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.req { color: var(--err); }

input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], textarea, select {
    width: 100%;
    font: inherit;
    color: inherit;
    background: var(--soft);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 10px 14px;
}

input:focus, textarea:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 0; background: var(--card); }
textarea { min-height: 90px; resize: vertical; }
.ltr { direction: ltr; text-align: right; }

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.trades { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }

.chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--soft);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
}

.chip:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.chip input { accent-color: var(--orange); }

.hint { color: var(--muted); font-size: 13px; margin-top: 3px; }
.err { color: var(--err); font-size: 13px; margin-top: 3px; }

.alert { border-radius: 16px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.alert.err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.alert.info { background: var(--orange-soft); }

.card button, .card .button {
    font: inherit;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color .15s, color .15s;
}

.card button:hover { background: var(--orange); color: var(--navy); }

@media (prefers-color-scheme: dark) {
    .card button { background: var(--orange); color: var(--navy); }
    .card button:hover { background: #fff; }
}

.muted { color: var(--muted); }
.center { text-align: center; }
.code { letter-spacing: 8px; font-size: 24px; text-align: center; direction: ltr; }

input.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 600px) {
    .choices { grid-template-columns: 1fr; }
}

a.choice {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color .15s;
}

a.choice:hover { border-color: var(--orange); }
a.choice .ic { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); font-size: 26px; line-height: 1; }
a.choice .ic svg { width: 26px; height: 26px; }
a.choice h2 { font-size: 18px; margin: 14px 0 4px; }
a.choice p { color: var(--muted); font-size: 14px; margin: 0; }

h2.sec { font-size: 16px; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
h2.sec:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.units { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 13px; }
.units th { text-align: right; font-weight: 600; color: var(--muted); padding: 4px; white-space: nowrap; }
.units td { padding: 3px; }
.units input { width: 100%; font: inherit; font-size: 13px; color: inherit; background: var(--soft); border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; }
.units td.n input { width: 64px; }
.card .units .del { background: transparent; color: var(--err); width: auto; padding: 4px 8px; font-size: 18px; }
.tbl { overflow-x: auto; }
.card .btn2 { background: var(--soft); border: 0; color: inherit; width: auto; font-weight: 600; font-size: 14px; padding: 8px 16px; }
.card .btn2:hover { background: var(--line); color: inherit; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.row-actions input { width: 90px; }

/* ── صفحه‌های کوچک وسط‌چین (پرداخت، پشتیبانی) ───────── */
.center-page { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 16px; }

/* ── حالت تیره: رنگ‌های سرمه‌ای روی زمینه تیره ─────────── */
@media (prefers-color-scheme: dark) {
    .site-head .by-logo > span > span:first-child { color: #fff !important; }
    .site-head .by-mark path:last-child { fill: #fff; }
    .site-nav a.is-cta, .btn-dark { background: var(--orange); color: var(--navy); }
    .site-nav a.is-cta:hover, .btn-dark:hover { background: #fff; color: var(--navy); }
    .step::before { background: #ffffff1f; }
    .panel.dark { background: #0B1220; }
}

/* ════════════════════════════════════════════════════════
   مرحله ۲۵ — موشن گرافیک، صفحه‌های داخلی، مجله، تماس
   ════════════════════════════════════════════════════════ */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-ghost-light { background: #ffffff1a; color: #fff; }
.btn-ghost-light:hover { background: #ffffff33; }
.btn svg { flex-shrink: 0; }

/* ── معرفی: موشن گرافیک ──────────────────────────── */
.hero-art {
    --ha-bg: #1F2937;
    position: relative;
    border-radius: var(--radius);
    background: var(--ha-bg);
    overflow: hidden;
    min-height: 440px;
    isolation: isolate;
    color: #fff;
}

.ha-grid {
    position: absolute;
    inset: -40px;
    background-image: radial-gradient(#ffffff26 1.2px, transparent 1.3px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at 55% 45%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 55% 45%, #000 20%, transparent 70%);
    animation: ha-drift 24s linear infinite;
    z-index: -1;
}

.ha-glow {
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    inset-inline-end: 4%;
    top: 6%;
    border-radius: 50%;
    background: radial-gradient(circle, #F39C1259 0%, #F39C1200 62%);
    animation: ha-breathe 6s ease-in-out infinite;
    z-index: -1;
}

.ha-sky {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    height: 38%;
    color: #ffffff0f;
    z-index: -1;
}

.ha-win rect { fill: #F39C12; opacity: .12; animation: ha-blink 4s ease-in-out infinite; }

.ha-stage {
    position: absolute;
    right: 9%;
    top: 47%;
    width: min(36%, 205px);
    aspect-ratio: 280 / 312;
    translate: 0 -50%;
}

.ha-mark { position: relative; width: 100%; height: 100%; overflow: visible; animation: ha-float 7s ease-in-out 2.2s infinite; }
.ha-t1, .ha-t2 { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.ha-t1 { fill: var(--orange); }
.ha-t2 { fill: #fff; }
.ha-check { fill: none; stroke: var(--ha-bg); stroke-width: 34; stroke-linejoin: miter; stroke-dasharray: 100; stroke-dashoffset: 100; }

.is-on .ha-t1 { animation: ha-rise .95s cubic-bezier(.2, .9, .25, 1.15) .25s forwards; }
.is-on .ha-t2 { animation: ha-rise .95s cubic-bezier(.2, .9, .25, 1.15) .5s forwards; }
.is-on .ha-check { animation: ha-draw .7s cubic-bezier(.65, 0, .35, 1) 1.35s forwards; }

.ha-ground {
    position: absolute;
    inset-inline: -18%;
    bottom: -6px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(ellipse, #00000066, transparent 70%);
    animation: ha-shadow 7s ease-in-out 2.2s infinite;
}

.ha-ring {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 120%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid #F39C1266;
    translate: -50% -50%;
    scale: .55;
    opacity: 0;
}

.is-on .ha-ring { animation: ha-ring 4.5s ease-out 2s infinite; }
.is-on .ha-ring:nth-child(2) { animation-delay: 3.5s; }
.is-on .ha-ring:nth-child(3) { animation-delay: 5s; }

.ha-status {
    position: absolute;
    top: 22px;
    inset-inline-end: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #E5E7EB;
    background: #ffffff14;
    border: 1px solid #ffffff1f;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.ha-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: ha-ping 1.8s infinite; }

.ha-feed {
    position: absolute;
    left: 22px;
    bottom: 22px;
    width: min(275px, calc(100% - 44px));
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ha-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--navy);
    border-radius: 18px;
    padding: 10px 12px;
    font-size: 13px;
    box-shadow: 0 18px 30px -12px #0000005e;
    transition: opacity .5s, transform .55s cubic-bezier(.2, .9, .25, 1.1), max-height .5s, margin .5s, padding .5s;
    max-height: 80px;
    transform-origin: 0 100%;
}

.ha-toast b { display: block; font-size: 14px; line-height: 1.5; }
.ha-toast small { color: #596269; display: block; line-height: 1.6; }
.ha-toast .dot { width: 38px; height: 38px; }
.ha-toast.is-enter { opacity: 0; transform: translateY(26px) scale(.94); }
.ha-toast.is-leave { opacity: 0; transform: translateY(-14px) scale(.96); max-height: 0; padding-block: 0; margin-bottom: -10px; }
.ha-toast:not(:last-child) { opacity: .78; }
.ha-toast:not(:last-child):not(.is-leave) { transform: scale(.97); }
.ha-now { position: absolute; top: 8px; inset-inline-end: 10px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--orange-ink); }
.ha-now[hidden] { display: none; }
.ha-toast:last-child .dot { animation: ha-pop .6s cubic-bezier(.2, .9, .25, 1.4); }
.is-paused * { animation-play-state: paused !important; }

@keyframes ha-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ha-draw { to { stroke-dashoffset: 0; } }
@keyframes ha-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ha-shadow { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .6; scale: .86; } }
@keyframes ha-ring { 0% { opacity: .9; scale: .55; } 100% { opacity: 0; scale: 1.35; } }
@keyframes ha-drift { to { background-position: 22px 44px; } }
@keyframes ha-breathe { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
@keyframes ha-blink { 0%, 100% { opacity: .1; } 45% { opacity: .1; } 55% { opacity: .85; } 80% { opacity: .85; } }
@keyframes ha-ping { 0% { box-shadow: 0 0 0 0 #34D39999; } 70% { box-shadow: 0 0 0 8px #34D39900; } 100% { box-shadow: 0 0 0 0 #34D39900; } }
@keyframes ha-pop { 0% { scale: .3; } 100% { scale: 1; } }

@media (max-width: 900px) {
    .hero-art { min-height: 470px; }
    .ha-stage { right: auto; left: 50%; top: 31%; translate: -50% -50%; width: min(30%, 170px); }
    .ha-feed { left: 16px; right: 16px; width: auto; bottom: 16px; }
    .ha-status { top: 16px; inset-inline-end: 16px; }
}

@media (max-width: 520px) {
    .hero-art { min-height: 430px; }
    .ha-stage { top: 30%; width: 34%; }
    .ha-toast:not(:last-child):not(:nth-last-child(2)) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-art *, .hero-art *::before { animation: none !important; transition: none !important; }
    .ha-t1, .ha-t2 { transform: none; }
    .ha-check { stroke-dashoffset: 0; }
}

/* ── نمایش تدریجی ─────────────────────────────────── */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ── سرصفحه صفحه‌های داخلی ─────────────────────────── */
.page-head { padding: 26px 0 22px; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.4; margin: 6px 0 8px; font-weight: 800; letter-spacing: -.4px; }
.page-head .lead { font-size: 16.5px; max-width: 760px; }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "‹"; margin: 0 8px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange-ink); }

.dot.big { width: 56px; height: 56px; }
.dot.big svg { width: 26px; height: 26px; }

/* ── نوار دعوت ───────────────────────────────────── */
.cta-band {
    margin-top: 48px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 32px 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    position: relative;
    overflow: hidden;
}

.cta-band::after { content: ""; position: absolute; inset-inline-start: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, #F39C1259, transparent 65%); }
.cta-band h2 { margin: 0 0 4px; font-size: 24px; }
.cta-band p { margin: 0; color: #D1D5DB; }
.cta-band .btns { position: relative; z-index: 1; }

/* ── خدمات ───────────────────────────────────────── */
.svc-list { display: grid; gap: 12px; }

.svc-row {
    background: var(--card);
    border-radius: var(--radius);
    padding: 26px 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 18px 24px;
    align-items: center;
}

.svc-row h2 { margin: 0 0 6px; font-size: 20px; }
.svc-row p { margin: 0; color: var(--muted); }
.svc-row ul.ticks { margin: 0; background: var(--soft); border-radius: 18px; padding: 14px 18px; }

@media (max-width: 860px) {
    .svc-row { grid-template-columns: auto minmax(0, 1fr); padding: 22px; }
    .svc-row ul.ticks { grid-column: 1 / -1; }
}

/* ── روند همکاری ─────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 14px; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 27px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(to bottom, var(--orange) 0 6px, transparent 6px 12px); opacity: .5; }
.timeline li { position: relative; padding-inline-start: 76px; counter-increment: t; }
.timeline li::before {
    content: counter(t, persian);
    position: absolute;
    inset-inline-start: 0;
    top: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 0 0 6px var(--bg);
}

.timeline li:first-child::before { background: var(--orange); color: var(--navy); }
.tl-card { background: var(--card); border-radius: var(--radius); padding: 22px 26px; }
.tl-card h2 { margin: 0 0 4px; font-size: 19px; }
.tl-card p { margin: 0; color: var(--muted); }

/* ── پرسش‌های پرتکرار ─────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 20px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--orange-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ── درباره ما ───────────────────────────────────── */
.about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.about-art { background: var(--navy); border-radius: var(--radius); display: grid; place-items: center; align-content: center; gap: 16px; padding: 30px; color: #fff; text-align: center; min-height: 260px; }
.about-art p { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.6; }
.about-art small { font-size: 14px; font-weight: 500; color: #D1D5DB; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.num { background: var(--card); border-radius: var(--radius); padding: 22px; text-align: center; }
.num b { display: block; font-size: 34px; font-weight: 800; color: var(--orange-ink); }
.num span { color: var(--muted); }

@media (max-width: 800px) {
    .about { grid-template-columns: 1fr; }
    .about-art { min-height: 200px; }
}

/* ── متن مقاله / متن غنی ───────────────────────────── */
.prose { font-size: 16.5px; line-height: 2.05; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 23px; margin: 1.6em 0 .5em; line-height: 1.6; scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; margin: 1.4em 0 .4em; scroll-margin-top: 90px; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--orange-ink); text-underline-offset: 4px; }
.prose img { height: auto; border-radius: 18px; margin: 8px 0; }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-inline-start: 4px solid var(--orange); background: var(--soft); border-radius: 0 14px 14px 0; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: .3em; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; }
.prose pre { overflow-x: auto; background: var(--soft); padding: 12px; border-radius: 12px; direction: ltr; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ── مجله ────────────────────────────────────────── */
.blog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-l { text-decoration: none; color: var(--text); background: var(--card); padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.chip-l:hover { background: var(--soft); }
.chip-l.is-on { background: var(--navy); color: #fff; }

.search { display: flex; align-items: center; background: var(--card); border-radius: 999px; padding: 4px; min-width: min(320px, 100%); flex: 0 1 320px; }
.search input { background: transparent; border: 0; border-radius: 999px; padding: 8px 14px; }
.search input:focus { outline: none; background: transparent; }
.search button { width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px #0000004d; }
.post-cover { display: block; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cover-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 70% 30%, #F39C1240, transparent 60%), var(--navy); }
.post-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-body h3 { margin: 0; font-size: 18px; line-height: 1.7; }
.post-body h3 a { color: var(--text); text-decoration: none; }
.post-body h3 a:hover { color: var(--orange-ink); }
.post-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta.big { font-size: 14px; margin-top: -8px; margin-bottom: 18px; }
.chip-s { display: inline-block; text-decoration: none; background: var(--orange-soft); color: var(--orange-ink); font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.chip-s.warn { background: #FEE2E2; color: #B42318; }

.post-card.is-big { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.post-card.is-big .post-cover { aspect-ratio: auto; min-height: 300px; }
.post-card.is-big .post-body { padding: 30px; justify-content: center; }
.post-card.is-big h3 { font-size: 26px; }

@media (max-width: 960px) {
    .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-card.is-big { grid-template-columns: 1fr; }
    .post-card.is-big .post-cover { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
    .posts { grid-template-columns: 1fr; }
    .post-card.is-big h3 { font-size: 21px; }
    .post-card.is-big .post-body { padding: 20px; }
}

.empty { padding: 40px 20px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.pg { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; text-decoration: none; background: var(--card); color: var(--text); font-weight: 600; }
.pg.is-on { background: var(--navy); color: #fff; }
.pg.is-off { opacity: .45; }

/* مطلب */
.article-cover { margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.article-cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; display: block; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.article-grid > .card { padding: 34px 38px; }
.article-side { display: grid; gap: 12px; position: sticky; top: 84px; }
.article-side h2 { font-size: 15px; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.toc a { color: var(--text); text-decoration: none; display: block; padding: 4px 0; }
.toc a:hover { color: var(--orange-ink); }
.toc li.sub { padding-inline-start: 14px; font-size: 13px; }
.share > div { display: flex; gap: 8px; }
.share a, .share button { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: var(--soft); color: var(--text); border: 0; padding: 0; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--orange); color: var(--navy); }
.share button.is-done { background: var(--green); color: #fff; }
.share svg { width: 20px; height: 20px; }
.card .share button { width: 42px; font-size: 0; }
.side-cta { text-align: center; }
.side-cta p { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.side-cta .btn { width: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
    .article-grid { grid-template-columns: 1fr; }
    .article-side { position: static; }
    .article-grid > .card { padding: 24px 20px; }
    .toc { order: -1; }
}

/* ── تماس ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.contact-form h2 { margin: 0 0 4px; font-size: 22px; }
.contact-form > .muted { margin: 0 0 18px; }
.contact-side { display: grid; gap: 10px; }
.c-item { text-decoration: none; color: inherit; transition: background-color .15s; }
a.c-item:hover { background: var(--soft); }
.c-item b { overflow-wrap: anywhere; }
.small-link { display: inline-block; font-size: 13px; margin-top: 4px; }
.c-social { flex-wrap: wrap; gap: 8px; }
.c-social a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); background: var(--soft); padding: 8px 12px; border-radius: 999px; font-size: 14px; }
.c-social svg { width: 18px; height: 18px; }
.map { margin-top: 12px; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.alert.ok { display: flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green); font-weight: 600; }

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
    .map iframe { height: 280px; }
}

/* ── ورود / ثبت‌نام ───────────────────────────────── */
.portal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-card { background: var(--card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.portal-card h2 { margin: 10px 0 0; font-size: 21px; }
.portal-card > p { color: var(--muted); margin: 0 0 12px; font-size: 14.5px; }
.portal-card.is-login { background: var(--navy); color: #fff; }
.portal-card.is-login > p { color: #D1D5DB; }
.portal-card .btns { margin-top: auto; }
.portal-links { display: grid; gap: 8px; margin-top: auto; }
.portal-links a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; text-decoration: none; color: var(--text); background: var(--soft); border-radius: 18px; padding: 14px 16px; transition: background-color .15s, color .15s; }
.portal-links a:hover { background: var(--navy); color: #fff; }
.portal-links b { font-size: 15px; }
.portal-links small { grid-column: 1; color: var(--muted); font-size: 12.5px; }
.portal-links a:hover small { color: #D1D5DB; }
.portal-links svg { grid-row: 1 / 3; grid-column: 2; width: 20px; height: 20px; }
.staff-link { margin-top: 22px; font-size: 14px; }
.staff-link a { color: var(--muted); }

@media (max-width: 960px) {
    .portal { grid-template-columns: 1fr; }
}

/* ── تیره ────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .hero-art { --ha-bg: #0B1220; }
    .cta-band, .about-art, .portal-card.is-login { background: #0B1220; }
    .chip-l.is-on, .pg.is-on, .search button { background: var(--orange); color: var(--navy); }
    .portal-links a:hover { background: var(--orange); color: var(--navy); }
    .timeline li::before { background: #374151; }
    .ha-toast { background: #1F2937; color: #F9FAFB; }
    .ha-toast small { color: #9CA3AF; }
    .nav-toggle span { background: #fff; }
    .nav-cta-mobile { background: var(--orange); color: var(--navy); }
    .chip-s.warn { background: #7F1D1D; color: #FCA5A5; }
}

@media print {
    .site-head, .site-foot, .article-side, .hero-art { display: none !important; }
}

/* ── دانلود برنامه ───────────────────────────────── */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.dl-platforms { display: grid; gap: 12px; }
.dl-card { position: relative; background: var(--card); border-radius: var(--radius); padding: 26px 28px; border: 2px solid transparent; transition: border-color .2s; }
.dl-card.is-android { background: var(--navy); color: #fff; }
.dl-card.is-android .dl-meta span { background: #ffffff1a; color: #E5E7EB; }
.dl-card.is-android .dl-note { color: #D1D5DB; }
.dl-card.is-recommended { border-color: var(--orange); }
.dl-rec { display: none; position: absolute; top: -12px; inset-inline-start: 24px; background: var(--orange); color: var(--navy); font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.dl-card.is-recommended .dl-rec { display: inline-block; }
.dl-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dl-card-head h2 { margin: 0; font-size: 21px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.dl-meta span { font-size: 12.5px; background: var(--soft); color: var(--muted); padding: 2px 10px; border-radius: 999px; }
.dl-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

.dl-side { display: grid; gap: 12px; justify-items: center; position: sticky; top: 90px; }
.phone { width: 270px; aspect-ratio: 9 / 18.5; border-radius: 42px; background: #0B1220; padding: 11px; box-shadow: 0 40px 70px -30px #0000006b, inset 0 0 0 2px #ffffff14; animation: ha-float 7s ease-in-out infinite; }
.phone-screen { height: 100%; border-radius: 32px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; gap: 9px; padding: 12px 12px 10px; color: var(--text); position: relative; }
.ph-status { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.ph-head { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.ph-debt { background: var(--navy); color: #fff; border-radius: 20px; padding: 14px; display: grid; gap: 2px; }
.ph-debt small { color: #D1D5DB; font-size: 11px; }
.ph-debt b { font-size: 20px; }
.ph-debt b span { font-size: 11px; font-weight: 500; }
.ph-pay { margin-top: 8px; justify-self: start; background: var(--orange); color: var(--navy); font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.ph-row { display: flex; align-items: center; gap: 9px; background: var(--card); border-radius: 16px; padding: 9px 10px; font-size: 11px; line-height: 1.6; }
.ph-row .dot { width: 30px; height: 30px; }
.ph-row .dot svg { width: 16px; height: 16px; }
.ph-row b { display: block; font-size: 12px; }
.ph-row small { color: var(--muted); }
.ph-nav { margin-top: auto; display: flex; justify-content: space-around; background: var(--card); border-radius: 999px; padding: 10px; }
.ph-nav i { width: 18px; height: 18px; border-radius: 6px; background: var(--soft); }
.ph-nav i.on { background: var(--navy); }
.qr-box { background: var(--card); border-radius: 22px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; max-width: 340px; }
.qr-box canvas { width: 104px; height: 104px; border-radius: 10px; flex-shrink: 0; }
.qr-box p { margin: 0; font-size: 13px; color: var(--muted); }

.dl-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dl-features li { background: var(--card); border-radius: 20px; padding: 16px 18px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.dl-features svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.dl-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; }
.dl-steps { margin: 0; padding: 0; list-style: none; counter-reset: d; display: grid; gap: 10px; }
.dl-steps li { counter-increment: d; display: flex; gap: 10px; align-items: flex-start; }
.dl-steps li::before { content: counter(d, persian); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); font-weight: 800; font-size: 14px; }

@media (max-width: 960px) {
    .dl-grid { grid-template-columns: 1fr; }
    .dl-side { position: static; order: -1; }
    .qr-box { display: none; }
    .phone { width: 220px; }
    .dl-features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .dl-features { grid-template-columns: 1fr; }
    .dl-card { padding: 22px 20px; }
    .phone { width: 200px; }
}

@media (prefers-color-scheme: dark) {
    .dl-card.is-android { background: #0B1220; }
    .ph-debt, .ph-nav i.on { background: #0B1220; }
}

@media (prefers-reduced-motion: reduce) {
    .phone { animation: none; }
}
