/* ========================================
   طراحی اپلیکیشن موبایل - استایل کامل
   ======================================== */

:root {
    --app-primary: #8b5cf6;
    --app-primary-dark: #7c3aed;
    --app-primary-light: #a78bfa;
    --app-secondary: #ec4899;
    --app-dark: #1e293b;
    --app-gray: #64748b;
    --app-light: #f8fafc;
    --app-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.app-page { direction: rtl; }

.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.app-section-header {
    text-align: center;
    margin-bottom: 50px;
}
.app-section-header h2 { font-size: 32px; color: var(--app-dark); margin-bottom: 10px; }
.app-section-header p { color: var(--app-gray); }

/* ========== هیرو ========== */
.app-hero {
    background: linear-gradient(135deg, #4c1d95, #8b5cf6, #a78bfa);
    background-size: 200% 200%;
    animation: gradientBG 12s ease infinite;
    padding: 80px 0;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.app-hero__content { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.app-hero__text { flex: 1; }
.app-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    color: white;
    margin-bottom: 20px;
}
.app-hero__text h1 { font-size: 42px; color: white; margin-bottom: 20px; }
.app-hero__text h1 span { color: #fbbf24; }
.app-hero__text p { font-size: 16px; color: rgba(255,255,255,0.9); line-height: 1.7; margin-bottom: 30px; }
.app-hero__stats { display: flex; gap: 40px; margin-bottom: 35px; }
.app-hero__stat { text-align: center; }
.app-hero__stat-number { display: block; font-size: 28px; font-weight: 800; color: #fbbf24; }
.app-hero__stat-label { font-size: 13px; color: rgba(255,255,255,0.8); }
.app-hero__buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.app-btn {
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
}
.app-btn--primary { background: #fbbf24; color: #4c1d95; }
.app-btn--primary:hover { background: #f59e0b; transform: translateY(-2px); }
.app-btn--outline { border: 2px solid white; color: white; background: transparent; }
.app-btn--outline:hover { background: white; color: #4c1d95; transform: translateY(-2px); }
.app-hero__image { flex: 1; text-align: center; }
.app-hero__image img { max-width: 100%; }

/* ========== بخش توجه (هشدار) ========== */
.app-notice { padding: 30px 0; background: #fef3c7; border-bottom: 1px solid #fde68a; }
.app-notice__content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.app-notice__content img { width: 40px; height: 40px; }
.app-notice__content p { flex: 1; color: #92400e; font-size: 14px; line-height: 1.6; }
.app-notice__btns { display: flex; gap: 15px; }
.app-notice__btn {
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}
.app-notice__btn--call { background: #10b981; color: white; }
.app-notice__btn--call:hover { background: #059669; }
.app-notice__btn--support { background: #3b82f6; color: white; }
.app-notice__btn--support:hover { background: #2563eb; }

/* ========== پلتفرم‌ها ========== */
.app-platforms { padding: 80px 0; background: var(--app-light); }
.app-platforms__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.app-platform-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}
.app-platform-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.app-platform-card--popular { border: 2px solid var(--app-primary); }
.app-platform-card__icon { font-size: 48px; margin-bottom: 15px; }
.app-platform-card h3 { font-size: 22px; margin-bottom: 12px; }
.app-platform-card p { color: var(--app-gray); line-height: 1.6; margin-bottom: 15px; }
.app-platform-card__features { list-style: none; }
.app-platform-card__features li { padding: 6px 0; font-size: 13px; color: #475569; }

/* ========== خدمات ========== */
.app-services { padding: 80px 0; background: white; }
.app-services__list { display: flex; flex-direction: column; gap: 20px; }
.app-service {
    display: flex;
    gap: 25px;
    background: var(--app-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: 0.3s;
}
.app-service:hover { transform: translateX(-5px); box-shadow: var(--shadow-md); }
.app-service__icon { font-size: 48px; min-width: 70px; text-align: center; }
.app-service__details { flex: 1; }
.app-service__details h3 { font-size: 20px; margin-bottom: 10px; }
.app-service__details p { color: var(--app-gray); line-height: 1.6; margin-bottom: 15px; }
.app-service__info {
    background: none;
    border: none;
    color: var(--app-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

/* ========== وب اپلیکیشن (تمرکز ویژه) ========== */
.app-pwa { padding: 80px 0; background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark)); color: white; }
.app-pwa__content { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.app-pwa__text { flex: 1; }
.app-pwa__badge {
    display: inline-block;
    background: #fbbf24;
    color: #4c1d95;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}
.app-pwa__text h2 { font-size: 36px; margin-bottom: 15px; }
.app-pwa__text p { font-size: 18px; margin-bottom: 20px; opacity: 0.9; }
.app-pwa__features { list-style: none; margin: 25px 0; }
.app-pwa__features li { padding: 8px 0; font-size: 15px; }
.app-pwa__btn {
    display: inline-block;
    background: #fbbf24;
    color: #4c1d95;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.app-pwa__btn:hover { background: #f59e0b; transform: translateY(-2px); }
.app-pwa__image { flex: 1; text-align: center; }
.app-pwa__image img { max-width: 100%; }

/* ========== فناوری‌ها ========== */
.app-tech { padding: 80px 0; background: var(--app-light); }
.app-tech__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 20px; }
.app-tech-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: 0.3s;
}
.app-tech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.app-tech-card__icon { font-size: 36px; margin-bottom: 10px; }
.app-tech-card h3 { font-size: 15px; margin-bottom: 5px; }
.app-tech-card p { font-size: 11px; color: var(--app-gray); }

/* ========== فرآیند ========== */
.app-process { padding: 80px 0; background: white; }
.app-process__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.app-step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 25px;
    background: var(--app-light);
    border-radius: var(--radius-lg);
}
.app-step__number {
    width: 36px;
    height: 36px;
    background: var(--app-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}
.app-step__icon { font-size: 34px; margin-bottom: 12px; }
.app-step h3 { font-size: 18px; margin-bottom: 8px; }
.app-step p { color: var(--app-gray); font-size: 13px; }

/* ========== سوالات متداول ========== */
.app-faq { padding: 80px 0; background: var(--app-light); }
.app-faq__grid { max-width: 800px; margin: 0 auto; }
.app-faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.app-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
}
.app-faq__question:hover { background: #f1f5f9; }
.app-faq__question span { font-weight: 600; color: var(--app-dark); font-size: 16px; }
.app-faq__toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--app-light);
    cursor: pointer;
    font-size: 18px;
    color: var(--app-primary);
}
.app-faq__answer { display: none; padding: 0 24px 20px; color: var(--app-gray); line-height: 1.7; font-size: 14px; border-top: 1px solid #e2e8f0; }

/* ========== فرم تماس ========== */
.app-contact { padding: 80px 0; background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark)); }
.app-contact__box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
}
.app-contact__text { text-align: center; margin-bottom: 40px; }
.app-contact__text h2 { font-size: 28px; color: var(--app-dark); margin-bottom: 12px; }
.app-contact__form { max-width: 700px; margin: 0 auto; }
.app-form__row { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.app-input, .app-select, .app-textarea {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: 0.3s;
}
.app-input:focus, .app-select:focus, .app-textarea:focus {
    outline: none;
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.app-textarea { width: 100%; resize: vertical; margin-bottom: 20px; }
.app-submit {
    width: 100%;
    padding: 14px;
    background: var(--app-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.app-submit:hover { background: var(--app-primary-dark); }

/* ========== مودال ========== */
.app-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.app-modal__content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
    animation: modalFade 0.3s;
}
@keyframes modalFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.app-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--app-primary);
    color: white;
}
.app-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
}
.app-modal__body { padding: 24px; color: var(--app-gray); line-height: 1.7; }

/* ========== اسکلتون ========== */
.skeleton-platform, .skeleton-service, .skeleton-tech, .skeleton-step, .skeleton-faq {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    animation: pulse 1.2s ease infinite;
}
.skeleton-service { display: flex; gap: 20px; }
.skeleton-icon { width: 50px; height: 50px; background: #e2e8f0; border-radius: 12px; }
.skeleton-content { flex: 1; }
.skeleton-title { width: 60%; height: 22px; background: #e2e8f0; border-radius: 8px; margin-bottom: 12px; }
.skeleton-desc { width: 100%; height: 40px; background: #e2e8f0; border-radius: 8px; margin-bottom: 10px; }
.skeleton-line { width: 85%; height: 14px; background: #e2e8f0; border-radius: 6px; margin: 6px 0; }
.skeleton-number { width: 36px; height: 36px; background: #e2e8f0; border-radius: 50%; margin: 0 auto 15px; }
.skeleton-question { width: 90%; height: 24px; background: #e2e8f0; border-radius: 8px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
    .app-container { padding: 0 16px; }
    .app-hero__content { flex-direction: column; text-align: center; }
    .app-hero__stats { justify-content: center; flex-direction: column; gap: 15px; }
    .app-hero__buttons { justify-content: center; }
    .app-section-header h2 { font-size: 26px; }
    .app-hero__text h1 { font-size: 32px; }
    .app-notice__content { flex-direction: column; text-align: center; }
    .app-service { flex-direction: column; text-align: center; }
    .app-pwa__content { flex-direction: column; text-align: center; }
    .app-platforms__grid { grid-template-columns: 1fr; }
    .app-tech__grid { grid-template-columns: repeat(2, 1fr); }
    .app-process__steps { flex-direction: column; max-width: 300px; margin: 0 auto; }
    .app-form__row { flex-direction: column; }
    .app-contact__box { padding: 30px 20px; }
}

/* ========== خدمات (با طرح webdesign-plan) ========== */
.app-services {
    padding: 80px 0;
    background: white;
}

.app-services__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-service-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: var(--app-light);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* بوردر رنگی در سمت راست */
.app-service-plan::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--app-primary), var(--app-secondary));
    border-radius: 0 20px 20px 0;
}

.app-service-plan:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--app-primary);
}

.app-service-plan__icon {
    font-size: 48px;
    min-width: 70px;
    text-align: center;
}

.app-service-plan__details {
    flex: 1;
}

.app-service-plan__details h3 {
    font-size: 20px;
    color: var(--app-dark);
    margin-bottom: 10px;
}

.app-service-plan__details p {
    color: var(--app-gray);
    line-height: 1.6;
    font-size: 14px;
}

.app-service-plan__button {
    min-width: 160px;
    text-align: left;
}

.app-service-plan__info {
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-service-plan__info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139,92,246,0.4);
}

/* ========== اسکلتون برای خدمات ========== */
.skeleton-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    animation: pulse 1.2s ease infinite;
    border: 1px solid #e2e8f0;
}

.skeleton-service .skeleton-icon {
    width: 50px;
    height: 50px;
    background: #e2e8f0;
    border-radius: 12px;
}

.skeleton-service .skeleton-content {
    flex: 1;
}

.skeleton-service .skeleton-title {
    width: 60%;
    height: 22px;
    background: #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-service .skeleton-desc {
    width: 100%;
    height: 40px;
    background: #e2e8f0;
    border-radius: 8px;
}

.skeleton-service .skeleton-button {
    width: 140px;
    height: 42px;
    background: #e2e8f0;
    border-radius: 30px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .app-service-plan {
        flex-direction: column;
        text-align: center;
    }
    
    .app-service-plan::before {
        width: 100%;
        height: 4px;
        top: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .app-service-plan__button {
        text-align: center;
    }
    
    .skeleton-service {
        flex-direction: column;
        text-align: center;
    }
}