@import url('../fonts/vazir.css');

/* ============================================================
   صفحه‌ی عمومی (لندینگ) — املاک۴۲
   طراحی مدرن، سرمه‌ای/آبی، هماهنگ با پوسته‌ی سامانه
   ============================================================ */
:root {
    --navy: #0b1a30;
    --navy-2: #122c50;
    --blue: #2563eb;
    --blue-l: #3b78ff;
    --blue-d: #1d4ed8;
    --sky: #7fb0ff;
    --ink: #0f1e34;
    --muted: #5b6b82;
    --line: #e7ebf3;
    --bg: #f5f8fd;
    --surface: #ffffff;
    --surface-2: #f2f5fb;
    --ok: #16a34a;
    --ok-bg: #eafaf0;
    --err: #dc2626;
    --err-bg: #fdeeee;
    --ai-dur: 11s;   /* مدتِ نمایشِ هر نمونه‌ی هوش مصنوعی (تایمرِ خودکار) */
    --radius: 16px;
    --shadow-sm: 0 6px 20px rgba(17, 34, 64, .07);
    --shadow-md: 0 18px 44px rgba(17, 34, 64, .12);
    --shadow-lg: 0 30px 70px rgba(9, 20, 42, .22);
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Vazir', sans-serif;
    background: var(--bg);
    color: var(--ink);
    direction: rtl;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.ic {
    width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -.22em;
    stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- دکمه‌ها ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: 'Vazir'; font-weight: 700; font-size: 15px; cursor: pointer;
    padding: 13px 24px; border-radius: 12px; border: 1.5px solid transparent;
    transition: transform .15s, box-shadow .2s, background .2s, filter .2s, border-color .2s;
    white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(37, 99, 235, .42); filter: brightness(1.05); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #eaf1ff; border-color: rgba(255, 255, 255, .2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-light { background: var(--surface); color: var(--blue-d); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--blue-d); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); background: var(--surface-2); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   نوار بالا (Navbar)
   ============================================================ */
.lp-nav {
    position: sticky; top: 0; z-index: 50;
    /* گرادیانِ سرمه‌ای→آبی + هاله‌ی آبی، هم‌رنگِ هیرو.
       (قبلاً شیشه‌ای بود و در بالای صفحه روی بدنه‌ی روشن، خاکستریِ گِل‌آلود می‌شد.) */
    background:
        radial-gradient(680px 320px at 82% -35%, rgba(47, 107, 255, .5), transparent 62%),
        linear-gradient(105deg, #0b1a30 0%, #122c50 60%, #0c1f38 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #eaf1ff;
    transition: background .3s, box-shadow .3s;
}
.lp-nav.scrolled {
    background: linear-gradient(105deg, #0a1526 0%, #0e2140 60%, #0a1a30 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.lp-nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-badge {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--blue-l), var(--blue-d)); color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .45);
}
.nav-badge .ic { width: 24px; height: 24px; }
.nav-brand b { font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.nav-brand small { display: block; font-size: 10.5px; color: rgba(234, 241, 255, .6); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    padding: 8px 15px; border-radius: 9px; font-size: 14.5px; font-weight: 600;
    color: rgba(234, 241, 255, .82); transition: background .18s, color .18s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: transparent; border: none; color: #eaf1ff; cursor: pointer; padding: 6px; }
.nav-toggle .ic { width: 26px; height: 26px; }

/* ============================================================
   هیرو
   ============================================================ */
.lp-hero {
    position: relative; overflow: hidden; color: #eaf1ff;
    background:
        radial-gradient(1200px 640px at 88% -8%, rgba(47, 107, 255, .42), transparent 55%),
        radial-gradient(900px 700px at -6% 108%, rgba(56, 189, 248, .18), transparent 55%),
        linear-gradient(160deg, #0b1a30 0%, #122c50 58%, #0c1f38 100%);
    padding: 70px 0 90px;
}
.lp-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(130% 110% at 80% 0%, #000 30%, transparent 72%);
    mask-image: radial-gradient(130% 110% at 80% 0%, #000 30%, transparent 72%);
}
.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--sky);
}
.hero-eyebrow .ic { width: 16px; height: 16px; }
.hero-copy h1 { font-size: 46px; line-height: 1.4; font-weight: 800; letter-spacing: -.5px; }
.hero-copy h1 span { color: var(--sky); position: relative; }
.hero-copy p { margin-top: 20px; font-size: 17px; line-height: 2; color: rgba(234, 241, 255, .76); max-width: 52ch; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: rgba(234, 241, 255, .68); }
.hero-trust .ic { width: 17px; height: 17px; color: var(--sky); }

/* کارت ورود در هیرو */
.login-card {
    background: var(--surface); color: var(--ink);
    border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, .5);
}
.login-card .lc-head { text-align: right; margin-bottom: 22px; }
.login-card .lc-badge {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
    background: linear-gradient(140deg, var(--blue), var(--blue-d)); color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .3);
}
.login-card .lc-badge .ic { width: 26px; height: 26px; }
.login-card h3 { font-size: 21px; font-weight: 800; }
.login-card .lc-sub { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.lc-field { margin-bottom: 14px; text-align: right; }
.lc-field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; }
.lc-field input {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px;
    font-family: 'Vazir'; font-size: 14.5px; background: var(--surface-2); color: var(--ink);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.lc-field input::placeholder { color: var(--muted); opacity: .7; }
.lc-field input:focus { outline: none; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.lc-pw { position: relative; }
.lc-pw input { padding-left: 62px; }
.lc-pw-toggle {
    position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; color: var(--blue); font-family: 'Vazir';
    font-size: 12px; font-weight: 700; cursor: pointer; padding: 5px 8px; border-radius: 8px;
}
.lc-pw-toggle:hover { background: rgba(37, 99, 235, .1); }
.lc-btn {
    width: 100%; border: none; cursor: pointer; font-family: 'Vazir'; margin-top: 4px;
    background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff;
    padding: 14px; border-radius: 12px; font-size: 15.5px; font-weight: 800;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .3); transition: transform .15s, box-shadow .2s, filter .2s;
}
.lc-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(37, 99, 235, .42); filter: brightness(1.05); }
.lc-btn:disabled { opacity: .7; cursor: default; transform: none; }
.lc-alt { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.lc-alt a { color: var(--blue); font-weight: 700; }
.lc-alt a:hover { text-decoration: underline; }
.lc-msg { margin-top: 12px; font-size: 13px; border-radius: 10px; padding: 10px 13px; display: none; text-align: right; }
.lc-msg.err { display: block; background: var(--err-bg); color: var(--err); border: 1px solid rgba(220, 38, 38, .28); }
.lc-msg.ok { display: block; background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(22, 163, 74, .3); }
.lc-back { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; cursor: pointer; margin-top: 12px; }
.lc-back:hover { color: var(--blue); }

/* ============================================================
   نوار آمار
   ============================================================ */
.lp-stats { margin-top: -46px; position: relative; z-index: 2; }
.stats-wrap {
    background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-md);
    border: 1px solid var(--line); padding: 30px 22px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat-cell { text-align: center; padding: 8px 10px; position: relative; }
.stat-cell:not(:last-child)::after {
    content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line);
}
.stat-ico {
    width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(140deg, rgba(37, 99, 235, .12), rgba(37, 99, 235, .05)); color: var(--blue);
}
.stat-ico .ic { width: 24px; height: 24px; }
.stat-num { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.5px; }
.stat-lbl { font-size: 13.5px; color: var(--muted); margin-top: 6px; font-weight: 600; }

/* ============================================================
   بخش‌های عمومی
   ============================================================ */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
    background: rgba(37, 99, 235, .1); color: var(--blue-d);
    padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 700;
}
.section-tag .ic { width: 16px; height: 16px; }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.4px; line-height: 1.4; }
.section-head p { margin-top: 14px; font-size: 16px; color: var(--muted); line-height: 1.9; }

/* ============================================================
   بخش هوش مصنوعی (قبل/بعد)
   ============================================================ */
.ai-section { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.ai-compare {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch;
}
.ai-doc {
    border-radius: 18px; padding: 26px 24px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
    display: flex; flex-direction: column;
}
.ai-doc.before { border-top: 4px solid var(--err); }
.ai-doc.after { border-top: 4px solid var(--blue); }
.ai-doc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ai-doc-tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
    font-size: 12.5px; font-weight: 700;
}
.ai-doc.before .ai-doc-tag { background: var(--err-bg); color: var(--err); }
.ai-doc.after .ai-doc-tag { background: rgba(37, 99, 235, .1); color: var(--blue-d); }
.ai-doc-tag .ic { width: 16px; height: 16px; }
.ai-clause {
    background: var(--surface-2); border-radius: 12px; padding: 18px 18px; font-size: 14.5px;
    line-height: 2.15; color: #33465f; border: 1px dashed var(--line); flex: 1;
}
.ai-doc.before .ai-clause { border-color: rgba(220, 38, 38, .3); }
.ai-doc.after .ai-clause { border-color: rgba(37, 99, 235, .35); background: linear-gradient(180deg, rgba(37, 99, 235, .05), var(--surface-2)); }
.ai-clause .bad { background: rgba(220, 38, 38, .14); color: #b91c1c; border-bottom: 2px solid var(--err); border-radius: 3px; padding: 1px 3px; font-weight: 600; }
.ai-clause .good { background: rgba(22, 163, 74, .16); color: #15803d; border-bottom: 2px solid var(--ok); border-radius: 3px; padding: 1px 3px; font-weight: 600; }
.ai-note {
    margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.9;
    padding: 12px 14px; border-radius: 11px;
}
.ai-doc.before .ai-note { background: var(--err-bg); color: #a52626; }
.ai-doc.after .ai-note { background: var(--ok-bg); color: #15703c; }
.ai-note .ic { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.ai-arrow {
    align-self: center; display: grid; place-items: center; gap: 8px;
}
.ai-arrow-badge {
    width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--blue-l), var(--blue-d)); color: #fff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .45); animation: floaty 3s ease-in-out infinite;
}
.ai-arrow-badge .ic { width: 30px; height: 30px; }
.ai-arrow small { font-size: 12px; font-weight: 700; color: var(--blue-d); white-space: nowrap; }
@keyframes floaty { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }

/* برچسبِ هر قابلیتِ هوش مصنوعی */
.ai-cap-label { display: flex; align-items: center; justify-content: center; gap: 11px; font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 24px; text-align: center; }
.ai-cap-label.cap-2 { margin-top: 60px; }
.ai-cap-label .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 6px 16px rgba(37, 99, 235, .3); flex-shrink: 0; }

/* نمایشِ زنده: تولیدِ بند از توضیحِ ساده */
.ai-gen { max-width: 740px; margin: 0 auto; }
.gen-head { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.gen-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.gen-ic .ic { width: 17px; height: 17px; }
.gen-ic.in { background: var(--surface-2); color: var(--muted); }
.gen-ic.out { background: rgba(37, 99, 235, .12); color: var(--blue); }
.gen-box { border-radius: 14px; padding: 17px 18px; font-size: 15px; line-height: 2; min-height: 64px; border: 1.5px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.gen-prompt { background: var(--surface-2); border-style: dashed; color: #33465f; font-style: italic; }
.gen-output { color: var(--ink); }
.gen-out { opacity: .45; transition: opacity .45s ease; }
.ai-gen.generated .gen-out { opacity: 1; }
.ai-gen.generated .gen-output { border-color: rgba(37, 99, 235, .4); background: linear-gradient(180deg, rgba(37, 99, 235, .05), var(--surface)); box-shadow: 0 12px 32px rgba(37, 99, 235, .12); }

/* میانه: خط + دکمه‌ی تبدیل */
.gen-mid { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.gen-line { flex: 1; min-width: 20px; height: 2px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.gen-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 100px; background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff; font-weight: 800; font-size: 13.5px; box-shadow: 0 10px 24px rgba(37, 99, 235, .35); white-space: nowrap; }
.gen-btn .ic { width: 17px; height: 17px; }
.gb-face { display: inline-flex; align-items: center; gap: 8px; }
.gb-load { display: none; }
.gen-btn.loading { animation: gen-pulse 1s ease-in-out infinite; }
.gen-btn.loading .gb-idle { display: none; }
.gen-btn.loading .gb-load { display: inline-flex; }
@keyframes gen-pulse { 0%, 100% { box-shadow: 0 10px 24px rgba(37, 99, 235, .35); } 50% { box-shadow: 0 12px 32px rgba(37, 99, 235, .65); transform: translateY(-1px); } }
.gb-spin { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: gen-spin .7s linear infinite; }
@keyframes gen-spin { to { transform: rotate(360deg); } }

/* کرسرِ تایپ */
.gen-prompt-text.caret::after, .gen-output-text.caret::after { content: '▍'; color: var(--blue); font-weight: 400; margin-inline-start: 1px; animation: gen-blink 1s step-end infinite; }
@keyframes gen-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* اسلایدرِ نمونه‌های هوش مصنوعی */
.ai-slider { max-width: 1000px; margin: 0 auto; }
.ai-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.ai-tab {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 100px;
    border: 1.5px solid var(--line); background: var(--surface); color: var(--muted);
    font-family: 'Vazir'; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: .2s;
}
.ai-tab-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; transition: .2s; }
.ai-tab:hover { border-color: rgba(37, 99, 235, .4); color: var(--ink); }
.ai-tab.active { border-color: transparent; background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.ai-tab.active .ai-tab-n { background: rgba(255, 255, 255, .25); color: #fff; }

.ai-progress { height: 4px; width: 100%; max-width: 320px; margin: 0 auto 24px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.ai-progress i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-d)); animation: ai-fill var(--ai-dur, 11s) linear; animation-play-state: paused; }
@keyframes ai-fill { from { width: 0; } to { width: 100%; } }

.ai-slides { position: relative; }
.ai-slide { display: none; }
.ai-slide.active { display: block; animation: ai-slide-in .5s cubic-bezier(.22, .61, .36, 1); }
@keyframes ai-slide-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    /* بدونِ انیمیشن → تایمرِ خودکار غیرفعال؛ کاربر با تب‌ها جابه‌جا می‌شود */
    .ai-progress i { animation: none; }
    .ai-slide.active { animation: none; }
}

/* ============================================================
   قابلیت‌ها
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px;
    box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, .35); }
.feature-ico {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
    background: linear-gradient(140deg, var(--blue), var(--blue-d)); color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .28);
}
.feature-ico .ic { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 9px; }
.feature-card p { font-size: 14.5px; color: var(--muted); line-height: 1.95; }

/* ============================================================
   مراحلِ کار
   ============================================================ */
.steps-section { background: var(--surface); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; padding: 30px 24px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.step-num {
    counter-increment: step; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 16px;
    background: linear-gradient(140deg, var(--blue-l), var(--blue-d)); box-shadow: 0 8px 20px rgba(37, 99, 235, .3);
}
.step-num::before { content: counter(step); }
.step-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.9; }

/* ============================================================
   مسیرِ یک معامله — هفت گام (۴ + ۳)
   ============================================================ */
.journey-section { background: var(--bg); }
.journey { display: flex; flex-direction: column; gap: 38px; }
.jrow { position: relative; display: grid; gap: 20px; }
.jrow.four { grid-template-columns: repeat(4, 1fr); }
.jrow.three { grid-template-columns: repeat(3, 1fr); max-width: 76%; margin: 0 auto; }

/* خطِ چین‌دارِ متحرک — جریان از راست به چپ */
.jpath {
    position: absolute; top: 34px; height: 2px; z-index: 0; opacity: .45;
    background-image: linear-gradient(to left, var(--blue) 55%, transparent 0);
    background-size: 14px 2px; background-repeat: repeat-x;
    animation: j-flow 18s linear infinite;
}
.jrow.four .jpath { right: 12.5%; left: 12.5%; }
.jrow.three .jpath { right: 16.66%; left: 16.66%; }
@keyframes j-flow { to { background-position-x: -420px; } }

.jstep { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.jbadge {
    width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    font-size: 19px; font-weight: 800; color: #fff;
    background: linear-gradient(140deg, var(--blue-l), var(--blue-d));
    border: 5px solid var(--bg); box-shadow: 0 10px 24px rgba(37, 99, 235, .3);
    transition: transform .18s ease;
}
.jstep:hover .jbadge { transform: scale(1.06); }
.jcard {
    display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 22px 18px; box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.jstep:hover .jcard { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow-md); }
.jcard b { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.jcard b .ic { width: 18px; height: 18px; color: var(--blue); }
.jcard small { font-size: 13px; line-height: 1.85; color: var(--muted); }

/* ============================================================
   بخش پایانی (CTA)
   ============================================================ */
.cta-section { padding: 70px 0; }
.cta-wrap {
    position: relative; overflow: hidden; border-radius: 26px; padding: 56px 40px; text-align: center; color: #eaf1ff;
    background:
        radial-gradient(700px 380px at 85% -20%, rgba(56, 189, 248, .3), transparent 60%),
        linear-gradient(140deg, #0b1a30, #143163 70%, #0d2140);
    box-shadow: var(--shadow-lg);
}
.cta-wrap::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px); background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000 20%, transparent 70%);
    mask-image: radial-gradient(120% 120% at 50% 0%, #000 20%, transparent 70%);
}
.cta-wrap > * { position: relative; z-index: 1; }
.cta-wrap h2 { font-size: 34px; font-weight: 800; letter-spacing: -.4px; }
.cta-wrap p { margin: 14px auto 30px; font-size: 16.5px; color: rgba(234, 241, 255, .78); max-width: 46ch; line-height: 1.9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   فوتر
   ============================================================ */
.lp-footer { background: var(--navy); color: rgba(234, 241, 255, .72); padding: 54px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand .nav-brand { color: #eaf1ff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.9; max-width: 38ch; }
.footer-col h4 { color: #eaf1ff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col a, .footer-col div { display: block; font-size: 14px; padding: 5px 0; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-phone { display: inline-flex; align-items: center; gap: 8px; color: #eaf1ff; font-weight: 700; letter-spacing: .5px; }
.footer-phone .ic { width: 18px; height: 18px; color: var(--sky); }
.footer-bottom { padding-top: 22px; text-align: center; font-size: 13px; color: rgba(234, 241, 255, .5); }

/* ============================================================
   انیمیشنِ ظاهرشدن هنگام اسکرول
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   واکنش‌گرا
   ============================================================ */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .login-card { max-width: 440px; }
    .hero-copy h1 { font-size: 40px; }
    .ai-compare { grid-template-columns: 1fr; }
    .ai-arrow { transform: rotate(90deg); margin: 4px 0; }
    .feature-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .jrow.four, .jrow.three { grid-template-columns: repeat(2, 1fr); max-width: none; }
    .jpath { display: none; }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 72px; right: 0; left: 0;
        background: rgba(9, 20, 40, .98); padding: 12px 20px 18px; gap: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    }
    .nav-toggle { display: inline-flex; }
    .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 720px) {
    .section { padding: 62px 0; }
    .hero-copy h1 { font-size: 33px; }
    .hero-copy p { font-size: 15.5px; }
    .section-head h2, .cta-wrap h2 { font-size: 27px; }
    .stats-wrap { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
    .stat-cell:nth-child(2)::after { display: none; }
    .stat-num { font-size: 30px; }
    .feature-grid, .steps-grid { grid-template-columns: 1fr; }
    .jrow.four, .jrow.three { grid-template-columns: 1fr; }
    .journey { gap: 22px; }
    .footer-top { grid-template-columns: 1fr; gap: 26px; }
    .cta-wrap { padding: 42px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .ai-arrow-badge { animation: none; }
    .jpath { animation: none; }
    .jstep:hover .jcard, .jstep:hover .jbadge { transform: none; }
}
