/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Vazirmatn', sans-serif; color: #3a3a3a; background: #fff; direction: rtl; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
ul, ol { list-style: none; }

/* ========== UTILITY ========== */
.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
@media(min-width:768px){ .container { padding: 0 64px; } }
@media(min-width:1024px){ .container { padding: 0 96px; } }

.section-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.section-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 900; color: #0f172a; line-height: 1.4; margin-bottom: 12px; }
.section-desc { font-size: 16px; font-weight: 400; color: #64748b; max-width: 600px; margin: 0 auto 0; line-height: 1.8; }
.section-header { text-align: center; margin-bottom: 56px; }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: all 0.25s ease; }
.btn-primary { background: #3981f7!important; color: #fff!important; padding: 14px 28px;  }
.btn-primary:hover { background: #2d6fe0; box-shadow: 0 12px 28px -4px rgba(57,129,247,0.35); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #3a3a3a; padding: 14px 28px; border: 1px solid #e2e8f0; }
.btn-outline:hover { background: #f8fafc; }
.btn-white { background: #fff!important; color: #3981f7!important; padding: 16px 32px; font-weight: 700; font-size: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.btn-white:hover { transform: scale(1.02); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.btn-ghost { background: transparent; color: #fff; padding: 16px 24px; border: 2px solid rgba(255,255,255,0.3); border-radius: 16px; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; }

.chevron-icon { display: inline-block; width: 16px; height: 16px; }
.chevron-icon svg { width: 100%; height: 100%; }
.icon { display: inline-flex; flex-shrink: 0; }

/* ========== ANIMATIONS ========== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }
.fade-up-d5 { transition-delay: 0.5s; }

@keyframes float1 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }
@keyframes float2 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(8px); } }
.float-1 { animation: float1 3s ease-in-out infinite; }
.float-2 { animation: float2 3.5s ease-in-out infinite; }

/* ========== NAVIGATION ========== */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid #f1f5f9; padding: 14px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon { width: 40px; height: 40px; border-radius: 12px; background: #3981f7; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px;  }
.nav-logo-text { font-weight: 700; font-size: 20px; color: #3a3a3a; }
.nav-links { display: none; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
@media(min-width:768px){ .nav-links { display: flex; } }
.nav-links a { color: #64748b; transition: color 0.2s; }
.nav-links a:hover { color: #3981f7; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn-outline { display: none; font-size: 14px; padding: 10px 20px; border-color: rgba(57,129,247,0.2); color: #3981f7; }
@media(min-width:768px){ .nav-cta .btn-outline { display: inline-flex; } }
.nav-cta .btn-primary { font-size: 14px; padding: 10px 20px; }

/* ========== HERO ========== */
.hero { position: relative; min-height: 100vh; overflow: hidden; background: #fff; }
.hero-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: radial-gradient(circle at 1px 1px, #3981f7 1px, transparent 0); background-size: 32px 32px; pointer-events: none; }
.hero-blob-1 { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: #3981f7; opacity: 0.06; filter: blur(100px); top: -160px; right: -160px; pointer-events: none; }
.hero-blob-2 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: #10b981; opacity: 0.04; filter: blur(80px); bottom: 0; left: -160px; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
@media(min-width:1024px){ .hero-inner { flex-direction: row; gap: 80px; padding-top: 96px; } }
.hero-text { flex: 1; text-align: right; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(57,129,247,0.08); border: 1px solid rgba(57,129,247,0.15); color: #3981f7; font-size: 13px; font-weight: 500; margin-bottom: 28px; }
.hero-badge-sparkle { width: 14px; height: 14px; color: #3981f7; }
.hero-title { font-size: clamp(32px, 4.5vw, 52px); font-weight: 900; color: #0f172a; line-height: 1.35; margin-bottom: 20px; }
.hero-title span { color: #3981f7; }
.hero-subtitle { font-size: 17px; font-weight: 400; color: #64748b; line-height: 1.9; max-width: 500px; margin-bottom: 36px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-btns .btn-primary { padding: 16px 32px; font-size: 16px; font-weight: 700; border-radius: 16px; box-shadow: 0 12px 28px -4px rgba(57,129,247,0.25); }
.hero-btns .btn-outline { padding: 16px 24px; border-radius: 16px; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid #f1f5f9; }
.hero-stat-num { font-size: 24px; font-weight: 800; }
.hero-stat-label { font-size: 13px; font-weight: 400; color: #94a3b8; }
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.hero-bg-img { position: absolute; width: 380px; height: 380px; border-radius: 24px; overflow: hidden; right: -32px; top: -32px; pointer-events: none; }
.hero-bg-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.1; }
.hero-phone { position: relative; z-index: 2; width: 260px; }
@media(min-width:768px){ .hero-phone { width: 280px; } }
.hero-phone-frame { border-radius: 40px; border: 5px solid #e2e8f0; overflow: hidden; background: #fff; box-shadow: 0 24px 48px -12px rgba(0,0,0,0.12); }
.hero-phone-frame img { width: 100%; height: auto; }
.hero-float { position: absolute; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid #f1f5f9; box-shadow: 0 8px 24px -4px rgba(0,0,0,0.08); z-index: 3; }
.hero-float-1 { top: -16px; left: -48px; }
.hero-float-2 { bottom: -16px; right: -48px; }
.hero-float-num { font-weight: 700; font-size: 20px; }
.hero-float-label { font-size: 11px; font-weight: 400; color: #94a3b8; }

/* ========== PAIN POINTS ========== */
.pain { padding: 96px 0; background: #f8fafc; }
.pain-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width:768px){ .pain-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .pain-grid { grid-template-columns: repeat(4, 1fr); } }
.pain-card { position: relative; background: #fff; border: 1px solid #f1f5f9; border-radius: 20px; padding: 24px; text-align: right; overflow: hidden; transition: all 0.3s ease; }
.pain-card:hover { box-shadow: 0 12px 32px -8px rgba(0,0,0,0.08); border-color: #e2e8f0; }
.pain-card-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; }
.pain-card:hover .pain-card-bg { opacity: 1; }
.pain-card-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.06; }
.pain-card-body { position: relative; z-index: 2; }
.pain-card-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pain-card-icon svg { width: 22px; height: 22px; }
.pain-card-title { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.pain-card-desc { font-size: 13px; font-weight: 400; color: #64748b; line-height: 1.9; }

/* ========== FEATURES ========== */
.features { padding: 96px 0; background: #fff; position: relative; }
.features-bg { position: absolute; inset: 0; pointer-events: none; }
.features-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.02; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; position: relative; z-index: 2; }
@media(min-width:768px){ .features-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: #fff; border: 1px solid #f1f5f9; border-radius: 20px; padding: 24px; text-align: right; transition: all 0.3s ease; }
.feature-card:hover { box-shadow: 0 12px 32px -8px rgba(0,0,0,0.07); border-color: #e2e8f0; }
.feature-card-inner { display: flex; align-items: flex-start; gap: 16px; }
.feature-card-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-card-icon svg { width: 22px; height: 22px; }
.feature-card-title { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.feature-card-desc { font-size: 13px; font-weight: 400; color: #64748b; line-height: 1.9; }
.feature-accent { height: 3px; width: 40px; border-radius: 99px; margin-top: 16px; margin-right: 64px; opacity: 0; transition: opacity 0.3s; }
.feature-card:hover .feature-accent { opacity: 1; }

/* ========== PREVIEW ========== */
.preview { padding: 96px 0; background: #f8fafc; }
.preview-layout { display: flex; flex-direction: column; align-items: center; gap: 48px; }
@media(min-width:1024px){ .preview-layout { flex-direction: row; gap: 80px; } }
.preview-phone-wrap { position: relative; flex-shrink: 0; }
.preview-phone-bg { position: absolute; inset: -32px; border-radius: 24px; overflow: hidden; }
.preview-phone-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.05; border-radius: 24px; }
.preview-phone { position: relative; width: 240px; }
@media(min-width:768px){ .preview-phone { width: 260px; } }
.preview-phone-frame { border-radius: 36px; border: 5px solid #e2e8f0; overflow: hidden; background: #fff; box-shadow: 0 24px 48px -12px rgba(0,0,0,0.1); }
.preview-phone-frame img { width: 100%; height: auto; }
.preview-float { position: absolute; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #f1f5f9; box-shadow: 0 8px 20px -4px rgba(0,0,0,0.08); z-index: 3; display: flex; align-items: center; gap: 6px; }
.preview-float-1 { top: 80px; left: -40px; }
.preview-float-2 { bottom: 128px; right: -48px; }
.preview-float-emoji { font-size: 18px; }
.preview-float-text { font-size: 12px; font-weight: 600; color: #0f172a; }
.preview-content { flex: 1; text-align: right; }
.preview-items { display: flex; flex-direction: column; gap: 16px; }
.preview-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #f1f5f9; transition: box-shadow 0.3s; }
.preview-item:hover { box-shadow: 0 8px 20px -4px rgba(0,0,0,0.06); }
.preview-item-emoji { font-size: 24px; margin-top: 2px; }
.preview-item-title { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.preview-item-desc { font-size: 13px; font-weight: 400; color: #64748b; line-height: 1.8; }

/* ========== GALLERY ========== */
.gallery { padding: 48px 0; background: #fff; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(min-width:768px){ .gallery-grid { grid-template-columns: repeat(5, 1fr); } }
.gallery-item { position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; border: 1px solid #f1f5f9; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.25), transparent); pointer-events: none; }
.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-hover { position: absolute; inset: 0; background: rgba(57,129,247,0.1); opacity: 0; transition: opacity 0.3s; pointer-events: none; }

/* ========== WHY / BENEFITS ========== */
.why { padding: 96px 0; background: #f8fafc; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width:768px){ .why-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { background: #fff; border: 1px solid #f1f5f9; border-radius: 20px; overflow: hidden; transition: all 0.3s; text-align: center; }
.why-card:hover { box-shadow: 0 12px 32px -8px rgba(0,0,0,0.07); border-color: #e2e8f0; }
.why-card-img { height: 112px; width: 100%; overflow: hidden; position: relative; }
.why-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.why-card:hover .why-card-img img { transform: scale(1.05); }
.why-card-img-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, #fff); }
.why-card-body { padding: 0 20px 24px; }
.why-card-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: -24px auto 12px; background: #fff; border: 1px solid #f1f5f9; box-shadow: 0 4px 12px rgba(0,0,0,0.06); position: relative; z-index: 2; }
.why-card-icon svg { width: 22px; height: 22px; }
.why-card-title { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.why-card-desc { font-size: 13px; font-weight: 400; color: #64748b; line-height: 1.9; }

/* ========== STEPS ========== */
.steps { padding: 96px 0; background: #fff; }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media(min-width:768px){ .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-item { text-align: center; position: relative; }
.step-circle { width: 64px; height: 64px; border-radius: 16px; background: #3981f7; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 8px 20px -4px rgba(57,129,247,0.25); transition: all 0.3s; }
.step-item:hover .step-circle { box-shadow: 0 12px 28px -4px rgba(57,129,247,0.35); transform: scale(1.05); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(57,129,247,0.1); color: #3981f7; font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.step-title { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.step-desc { font-size: 13px; font-weight: 400; color: #64748b; line-height: 1.8; }

/* ========== CTA ========== */
.cta { padding: 96px 0; background: #f8fafc; }
.cta-card { position: relative; border-radius: 24px; overflow: hidden; max-width: 800px; margin: 0 auto; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg-overlay { position: absolute; inset: 0; background: rgba(57,129,247,0.9); }
.cta-content { position: relative; z-index: 2; text-align: center; padding: 64px 32px; }
@media(min-width:768px){ .cta-content { padding: 64px 64px; } }
.cta-title { font-size: clamp(24px, 3.5vw, 36px); font-weight: 900; color: #fff; line-height: 1.4; margin-bottom: 12px; }
.cta-desc { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.8); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.cta-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.cta-btns .btn-white { border-radius: 16px; }
.cta-btns .btn-ghost { font-size: 15px; font-weight: 600; }

/* ========== FOOTER ========== */
.footer { background: #fff; border-top: 1px solid #f1f5f9; padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media(min-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-brand-desc { font-size: 14px; color: #64748b; line-height: 1.9; margin-top: 12px; }
.footer-heading { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: #64748b; transition: color 0.2s; }
.footer-links a:hover { color: #3981f7; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #64748b; margin-bottom: 10px; }
.footer-contact-item svg { width: 14px; height: 14px; color: #3981f7; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 12px; background: rgba(57,129,247,0.08); display: flex; align-items: center; justify-content: center; color: #3981f7; transition: background 0.2s; }
.footer-social a:hover { background: rgba(57,129,247,0.15); }
.footer-social a svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid #f1f5f9; padding-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media(min-width:768px){ .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copy { font-size: 13px; color: #94a3b8; }
.footer-legal { display: flex; gap: 24px; font-size: 13px; font-weight: 500; }
.footer-legal a { color: #94a3b8; transition: color 0.2s; }
.footer-legal a:hover { color: #3981f7; }
.page-template-landing-page #site-header,.page-template-landing-page #site-footer{display:none;}
/* بکگراند مدال */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

/* باکس مدال */
.modal-content {
    background: #fff;
    padding: 25px;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalFade 0.3s;
}

/* دکمه بستن */
.close-modal {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 22px;
    cursor: pointer;
}

/* فیلدها */
.modal-content input {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* دکمه ارسال */
.modal-content button {
    width: 100%;
    padding: 12px;
    background: #2d7ef7;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

/* دکمه باز کردن مدال */
.open-modal-btn {
    padding: 10px 20px;
    background: #2d7ef7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* انیمیشن */
@keyframes modalFade {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.modal-result{padding-top: 18px;}
