/* ================================================================ */
/* تنظیمات کلی                                                     */
/* ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================================ */
/* بخش هدر (Hero)                                                  */
/* ================================================================ */

.hero {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
    padding: 80px 0 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(245, 87, 108, 0.1) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    margin-bottom: 20px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    object-fit: contain;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 300;
    color: #c9d1d9;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f093fb, #f5576c);
    margin: 20px auto 30px auto;
    border-radius: 10px;
}

.hero-description {
    font-size: 18px;
    color: #e0e7ff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ================================================================ */
/* بخش معرفی نرم‌افزار                                              */
/* ================================================================ */

.software {
    padding: 80px 0;
    background: #ffffff;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.software-box {
    background: #f8f9fc;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid #e9ecf2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.software-box:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.software-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.software-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.software-box p {
    font-size: 16px;
    color: #555;
    max-width: 600px;
    margin: 0 auto 35px auto;
    line-height: 1.8;
}

/* ================================================================ */
/* سه لینک اصلی (PWA، اندروید، ویندوز)                             */
/* ================================================================ */

.platform-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.platform-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.platform-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.platform-btn .icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.platform-btn .label {
    font-size: 18px;
    font-weight: 700;
}

.platform-btn .desc {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ===== رنگ‌های هر دکمه ===== */
.platform-btn.pwa {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.platform-btn.android {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.platform-btn.windows {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
}

/* ================================================================ */
/* فوتر (کپی‌رایت)                                                 */
/* ================================================================ */

.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    margin-bottom: 5px;
    font-size: 15px;
}

.footer strong {
    color: #f093fb;
}

.footer-version {
    font-size: 13px;
    color: #666;
}

/* ================================================================ */
/* واکنش‌گرایی (موبایل)                                            */
/* ================================================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .hero-description {
        font-size: 16px;
        padding: 0 20px;
    }
    .section-title {
        font-size: 28px;
    }
    .software-box {
        padding: 30px 20px;
    }
    .software-box h3 {
        font-size: 24px;
    }
    .platform-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .platform-btn {
        padding: 20px 15px;
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }
    .platform-btn .icon {
        font-size: 28px;
        margin-bottom: 0;
    }
    .platform-btn .desc {
        display: none;
    }
    .logo {
        width: 80px;
        height: 80px;
    }
}
