/* ==========================================================================
   صفحات عمومی سایت (صفحه اصلی / لندینگ)
   بدون بوت‌استرپ؛ توکن‌ها از nw-core.css می‌آیند.
   ========================================================================== */

:root {
    --nw-site-header-h: 68px;
    --nw-hero-from: #eef4ff;
    --nw-hero-to: #f7f9fc;
    --nw-brand-from: #1e3a8a;
    --nw-brand-to: #2563eb;
}

[data-bs-theme="dark"] {
    --nw-hero-from: #0f1a33;
    --nw-hero-to: #0b1220;
    --nw-brand-from: #1e3a8a;
    --nw-brand-to: #1d4ed8;
}

/* ---------- Reset ---------- */
.nw-site *, .nw-site *::before, .nw-site *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nw-site-header-h) + 12px); -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nw-site *, .nw-site *::before, .nw-site *::after { transition: none !important; animation: none !important; }
}

body.nw-site {
    margin: 0;
    font-family: var(--nw-font);
    font-size: 15px;
    line-height: 1.8;
    color: var(--nw-text);
    background: var(--nw-surface);
    overflow-x: hidden;
}

.nw-site h1, .nw-site h2, .nw-site h3 { margin: 0; line-height: 1.5; font-weight: 700; }
.nw-site p { margin: 0; }
.nw-site ul, .nw-site ol { margin: 0; padding: 0; list-style: none; }
.nw-site img { max-width: 100%; display: block; }
.nw-site a { color: inherit; text-decoration: none; }
.nw-site button { font: inherit; color: inherit; }
.nw-site :focus-visible { outline: 3px solid var(--nw-accent); outline-offset: 2px; border-radius: 6px; }

.nw-site-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.nw-site-container--narrow { max-width: 820px; }

.nw-site-skip {
    position: absolute; top: -60px; right: 16px; z-index: 100;
    background: var(--nw-accent); color: #fff !important; padding: 8px 14px; border-radius: 8px;
}
.nw-site-skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.nw-site-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.nw-site-btn:hover { transform: translateY(-1px); }
.nw-site-btn--lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.nw-site-btn--block { width: 100%; }
.nw-site-btn--primary { background: var(--nw-accent); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.nw-site-btn--primary:hover { background: var(--nw-accent-hover); }
.nw-site-btn--ghost { background: var(--nw-surface); color: var(--nw-text) !important; border-color: var(--nw-border-strong); }
.nw-site-btn--ghost:hover { border-color: var(--nw-accent); color: var(--nw-accent) !important; }
.nw-site-btn--light { background: #fff; color: #1e3a8a !important; }
.nw-site-btn--light:hover { background: #eef4ff; }
.nw-site-btn--outline-light { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.nw-site-btn--outline-light:hover { background: rgba(255, 255, 255, .1); }

.nw-site-icon-btn {
    width: 42px; height: 42px; display: inline-grid; place-items: center; flex-shrink: 0;
    border-radius: 12px; border: 1px solid var(--nw-border); background: var(--nw-surface); cursor: pointer;
    color: var(--nw-muted);
}
.nw-site-icon-btn:hover { color: var(--nw-accent); border-color: var(--nw-accent); }
.nw-theme-dark { display: none; }
[data-bs-theme="dark"] .nw-theme-dark { display: inline; }
[data-bs-theme="dark"] .nw-theme-light { display: none; }

.nw-site-link { display: inline-flex; align-items: center; gap: 6px; color: var(--nw-accent) !important; font-weight: 700; font-size: 14px; }
.nw-site-link i { font-size: 12px; transition: transform .15s; }
.nw-site-link:hover i { transform: translateX(-3px); }

/* ---------- Header ---------- */
.nw-site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--nw-surface) 86%, transparent);
    backdrop-filter: saturate(1.6) blur(12px);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.nw-site-header.is-scrolled { border-bottom-color: var(--nw-border); box-shadow: 0 6px 20px -14px rgba(16, 24, 40, .3); }
.nw-site-header__inner { height: var(--nw-site-header-h); display: flex; align-items: center; gap: 24px; }
.nw-site-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex-shrink: 0; }

.nw-site-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; min-width: 0; }
.nw-site-logo img { flex-shrink: 0; }
.nw-site-logo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-site-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }

.nw-site-nav { display: flex; align-items: center; gap: 4px; }
.nw-site-nav a { padding: 8px 12px; border-radius: 10px; color: var(--nw-muted); font-weight: 500; font-size: 14px; }
.nw-site-nav a:hover { color: var(--nw-accent); background: var(--nw-accent-soft); }

.nw-site-menu-btn { display: none; }
.nw-site-nav__mobile { display: none !important; }

@media (max-width: 991.98px) {
    .nw-site-menu-btn { display: inline-grid; }
    .nw-site-nav {
        position: absolute; top: var(--nw-site-header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
        background: var(--nw-surface); border-bottom: 1px solid var(--nw-border);
        box-shadow: 0 18px 30px -18px rgba(16, 24, 40, .35);
        display: none;
    }
    .nw-site-nav.is-open { display: flex; }
    .nw-site-nav a { padding: 12px; font-size: 15px; }
    .nw-site-nav:empty { display: none !important; }
    .nw-site-nav__mobile { display: flex !important; align-items: center; gap: 8px; color: var(--nw-accent) !important; font-weight: 700 !important; border-top: 1px solid var(--nw-border); border-radius: 0 !important; margin-top: 6px; }
}

@media (max-width: 575.98px) {
    .nw-site-container { padding-inline: 16px; }
    .nw-site-header__inner { gap: 10px; }
    .nw-site-header__actions { gap: 6px; }
    .nw-site-header__actions .nw-site-btn { height: 38px; padding: 0 12px; font-size: 13px; }
    .nw-site-header__actions .nw-site-btn--ghost { display: none; }
    .nw-site-icon-btn { width: 38px; height: 38px; }
    .nw-site-logo { gap: 8px; }
    .nw-site-logo span { font-size: 15px; }
    .nw-site-logo img { width: 34px; height: 34px; }
}

/* ---------- Hero ---------- */
.nw-hero {
    position: relative; overflow: hidden;
    padding: 64px 0 72px;
    background:
        radial-gradient(600px 300px at 15% 10%, rgba(37, 99, 235, .14), transparent 70%),
        radial-gradient(500px 260px at 90% 90%, rgba(249, 115, 22, .08), transparent 70%),
        linear-gradient(180deg, var(--nw-hero-from), var(--nw-hero-to));
}
.nw-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.nw-hero__badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 18px;
    border-radius: 999px; background: var(--nw-accent-soft); color: var(--nw-accent); font-size: 13px; font-weight: 700;
}
.nw-hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.45; letter-spacing: -.01em; }
.nw-hero__lead { margin-top: 18px; font-size: 17px; color: var(--nw-muted); max-width: 560px; }
.nw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.nw-hero__stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px !important; }
.nw-hero__stats li {
    display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
    padding: 10px 16px; border-radius: 14px; background: var(--nw-surface); border: 1px solid var(--nw-border);
    box-shadow: var(--nw-shadow);
}
.nw-hero__stats i { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--nw-accent-soft); color: var(--nw-accent); }
.nw-hero__stats strong { font-size: 15px; line-height: 1.4; }
.nw-hero__stats span { font-size: 12px; color: var(--nw-muted); line-height: 1.4; }

.nw-hero__visual { display: flex; justify-content: center; }
.nw-hero__image { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--nw-shadow-lg); object-fit: cover; }

/* موکاپ موبایل وقتی تصویری انتخاب نشده */
.nw-mock { position: relative; width: min(320px, 100%); }
.nw-mock__phone {
    position: relative; aspect-ratio: 300 / 560; border-radius: 40px; overflow: hidden;
    background: var(--nw-surface-2); color: var(--nw-text);
    border: 10px solid #101828; box-shadow: var(--nw-shadow-lg);
}
.nw-mock__bar { position: absolute; top: 0; left: 0; right: 0; height: 26px; display: flex; justify-content: center; z-index: 2; }
.nw-mock__bar span { width: 90px; height: 18px; border-radius: 0 0 12px 12px; background: #101828; }
.nw-mock__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.nw-mock__card {
    position: absolute; top: 40px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 16px; background: var(--nw-surface); box-shadow: 0 10px 24px -12px rgba(16, 24, 40, .4);
}
.nw-mock__card strong { display: block; font-size: 13px; line-height: 1.5; }
.nw-mock__card small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--nw-muted); }
.nw-mock__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--nw-accent-soft); color: var(--nw-accent); }
.nw-mock__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--nw-success); box-shadow: 0 0 0 3px var(--nw-success-soft); }
.nw-mock__dock {
    position: absolute; bottom: 16px; left: 14px; right: 14px; display: flex; justify-content: space-around;
    padding: 10px; border-radius: 18px; background: var(--nw-surface); box-shadow: 0 10px 24px -12px rgba(16, 24, 40, .4);
}
.nw-mock__dock span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--nw-surface-2); color: var(--nw-accent); }
.nw-mock__dock .is-red { background: var(--nw-danger-soft); color: var(--nw-danger); }
.nw-mock__toast {
    position: absolute; bottom: 120px; right: -40px; display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 700; white-space: nowrap;
    background: var(--nw-surface); border: 1px solid var(--nw-border); box-shadow: var(--nw-shadow-lg);
    animation: nw-float 4s ease-in-out infinite;
}
.nw-mock__toast i { color: var(--nw-warning); }
@keyframes nw-float { 50% { transform: translateY(-8px); } }

@media (max-width: 991.98px) {
    .nw-hero { padding: 40px 0 56px; }
    .nw-hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .nw-hero__lead { margin-inline: auto; }
    .nw-hero__actions, .nw-hero__stats { justify-content: center; }
}

@media (max-width: 575.98px) {
    .nw-hero__lead { font-size: 15px; }
    .nw-hero__actions .nw-site-btn { flex: 1 1 100%; }
    .nw-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 28px !important; }
    .nw-hero__stats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 6px; }
    .nw-hero__stats i { width: 32px; height: 32px; margin-bottom: 4px; font-size: 14px; }
    .nw-hero__stats strong { font-size: 13.5px; }
    .nw-hero__stats span { font-size: 11px; }
    .nw-mock { width: min(260px, 82%); }
    .nw-mock__toast { right: -18px; bottom: 100px; font-size: 12px; }
}

/* ---------- Sections ---------- */
.nw-section { padding: 80px 0; }
.nw-section--alt { background: var(--nw-surface-2); border-block: 1px solid var(--nw-border); }
.nw-section__head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.nw-section__head h2 { font-size: clamp(22px, 3vw, 32px); }
.nw-section__head p { margin-top: 10px; color: var(--nw-muted); font-size: 16px; }

@media (max-width: 575.98px) {
    .nw-section { padding: 56px 0; }
    .nw-section__head { margin-bottom: 30px; }
    .nw-section__head p { font-size: 14px; }
}

/* ویژگی‌ها */
.nw-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nw-feature {
    padding: 26px; border-radius: 20px; background: var(--nw-surface); border: 1px solid var(--nw-border);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.nw-feature:hover { transform: translateY(-4px); box-shadow: var(--nw-shadow-lg); border-color: transparent; }
.nw-feature__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 22px; background: var(--nw-accent-soft); color: var(--nw-accent); margin-bottom: 18px; }
.nw-feature__img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 18px; border-radius: 14px; }
.nw-feature h3 { font-size: 17px; }
.nw-feature p { margin-top: 8px; color: var(--nw-muted); font-size: 14px; }

/* محصولات */
.nw-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nw-product { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--nw-surface); border: 1px solid var(--nw-border); }
.nw-product__media {
    position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--nw-accent-soft), transparent); color: var(--nw-accent); font-size: 56px;
}
.nw-product__media img { width: 100%; height: 100%; object-fit: cover; }
.nw-product__badge {
    position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: 999px;
    background: #f97316; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.8;
}
.nw-product__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nw-product__body h3 { font-size: 17px; }
.nw-product__body p { color: var(--nw-muted); font-size: 14px; flex: 1; }

/* مراحل */
.nw-steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.nw-steps-row li { position: relative; text-align: center; padding: 10px 12px; counter-increment: step; }
.nw-steps-row__icon {
    position: relative; width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 16px;
    border-radius: 50%; font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--nw-brand-from), var(--nw-brand-to));
    box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .6);
}
.nw-steps-row__icon::after {
    content: counter(step, persian); position: absolute; top: -4px; left: -4px; width: 26px; height: 26px;
    display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700;
    background: var(--nw-surface); color: var(--nw-accent); border: 2px solid var(--nw-accent);
}
.nw-steps-row h3 { font-size: 17px; }
.nw-steps-row p { margin-top: 6px; color: var(--nw-muted); font-size: 14px; }

/* تعرفه */
.nw-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1020px; margin: 0 auto; }
.nw-price {
    position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px;
    border-radius: 22px; background: var(--nw-surface); border: 1px solid var(--nw-border);
}
.nw-price.is-featured { border: 2px solid var(--nw-accent); box-shadow: var(--nw-shadow-lg); }
.nw-price__badge { position: absolute; top: -13px; right: 24px; padding: 2px 12px; border-radius: 999px; background: var(--nw-accent); color: #fff; font-size: 12px; font-weight: 700; }
.nw-price h3 { font-size: 16px; color: var(--nw-muted); font-weight: 500; }
.nw-price__amount { font-size: 28px; font-weight: 700; line-height: 1.3; }
.nw-price__amount small { font-size: 14px; color: var(--nw-muted); font-weight: 500; }
.nw-price__note { font-size: 13px; color: var(--nw-muted); margin-top: -8px; }
.nw-price ul { display: flex; flex-direction: column; gap: 8px; padding-block: 14px !important; border-top: 1px dashed var(--nw-border); flex: 1; }
.nw-price li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.nw-price li i { color: var(--nw-success); font-size: 12px; }

/* نظرات */
.nw-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.nw-quote { margin: 0; padding: 24px; border-radius: 20px; background: var(--nw-surface-2); border: 1px solid var(--nw-border); display: flex; flex-direction: column; gap: 16px; }
.nw-quote blockquote { margin: 0; font-size: 15px; flex: 1; }
.nw-quote blockquote::before { content: "\201D"; display: block; font-size: 42px; line-height: .8; color: var(--nw-accent); }
.nw-quote figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nw-quote figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.nw-quote figcaption span { color: var(--nw-muted); font-size: 13px; }

/* بنر اپلیکیشن و دعوت به اقدام */
.nw-app-band, .nw-cta {
    position: relative; overflow: hidden; border-radius: 28px; color: #fff;
    background: radial-gradient(500px 240px at 10% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(135deg, var(--nw-brand-from), var(--nw-brand-to));
}
.nw-app-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; }
.nw-app-band h2 { font-size: clamp(20px, 2.6vw, 28px); }
.nw-app-band p { margin-top: 8px; opacity: .85; max-width: 560px; }
.nw-app-band__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nw-app-band__icon { font-size: 120px; opacity: .2; flex-shrink: 0; }

.nw-cta { text-align: center; padding: 56px 32px; }
.nw-cta h2 { font-size: clamp(22px, 3vw, 32px); }
.nw-cta p { margin: 10px auto 26px; opacity: .85; max-width: 560px; }

@media (max-width: 767.98px) {
    .nw-app-band { padding: 32px 24px; flex-direction: column; text-align: center; }
    .nw-app-band__links { justify-content: center; }
    .nw-app-band__icon { display: none; }
    .nw-cta { padding: 40px 20px; border-radius: 22px; }
    .nw-cta .nw-site-btn { width: 100%; }
}

/* پرسش‌های متداول */
.nw-faq { display: flex; flex-direction: column; gap: 12px; }
.nw-faq__item { border-radius: 16px; background: var(--nw-surface); border: 1px solid var(--nw-border); transition: border-color .15s; }
.nw-faq__item[open] { border-color: var(--nw-accent); }
.nw-faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none;
}
.nw-faq__item summary::-webkit-details-marker { display: none; }
.nw-faq__item summary i { color: var(--nw-muted); font-size: 13px; transition: transform .2s; flex-shrink: 0; }
.nw-faq__item[open] summary i { transform: rotate(180deg); color: var(--nw-accent); }
.nw-faq__item p { padding: 0 22px 20px; color: var(--nw-muted); font-size: 14px; white-space: pre-line; }

/* ---------- Footer ---------- */
.nw-site-footer { padding: 56px 0 24px; background: var(--nw-surface-2); border-top: 1px solid var(--nw-border); }
.nw-site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
.nw-site-footer p { margin-top: 14px; color: var(--nw-muted); font-size: 14px; max-width: 360px; }
.nw-site-footer h3 { font-size: 15px; margin-bottom: 14px; }
.nw-site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.nw-site-footer li { font-size: 14px; color: var(--nw-muted); }
.nw-site-footer li a:hover { color: var(--nw-accent); }
.nw-site-footer__contact li { display: flex; gap: 10px; align-items: baseline; }
.nw-site-footer__contact i { color: var(--nw-accent); width: 16px; text-align: center; }
.nw-site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--nw-border); font-size: 13px; color: var(--nw-muted); text-align: center; }

/* ---------- Responsive grids ---------- */
@media (max-width: 991.98px) {
    .nw-features, .nw-products { grid-template-columns: repeat(2, 1fr); }
    .nw-pricing { grid-template-columns: 1fr; max-width: 440px; }
    .nw-price.is-featured { order: -1; }
    .nw-site-footer__grid { grid-template-columns: 1fr 1fr; }
    .nw-site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .nw-features, .nw-products { grid-template-columns: 1fr; }
    .nw-feature { padding: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
    .nw-feature__icon, .nw-feature__img { grid-row: span 2; margin-bottom: 0; width: 46px; height: 46px; font-size: 19px; }
    .nw-feature p { margin-top: 4px; }
    .nw-site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 399.98px) {
    .nw-site-header__actions .nw-site-btn--primary i { display: none; }
    .nw-site-logo img { width: 30px; height: 30px; }
}
