:root {
    --primary-color: #1a365d;
    --secondary-color: #e6f2ff;
    --accent-color: #e53e3e;
    --light-blue: #bee3f8;
    --white: #ffffff;
    --gray: #4a5568;
    --light-gray: #f7fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
    text-decoration: none;
}

body {
    background-color: var(--light-gray);
    color: var(--gray);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
.features-header {
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.features-header .container {
    position: relative;
    z-index: 1;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.features-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
}

.features-header p {
    font-size: 18px;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
}

/* بخش ویژگی‌ها */
.features-section {
    padding: 60px 0;
    background-color: white;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-intro h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
}

/* گرید ویژگی‌ها */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
    background-color: white;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--accent-color), #c53030);
}

.feature-icon i {
    font-size: 30px;
    color: white;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--accent-color);
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

/* بخش مزایا */
.benefits-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.benefits-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
}

.benefits-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.benefits-content {
    max-width: 900px;
    margin: 0 auto 50px;
}

.benefit-item {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-right: 4px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(-10px);
}

.benefit-item h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-item h3 i {
    color: var(--accent-color);
}

.benefit-item p {
    color: var(--gray);
    line-height: 1.7;
    padding-right: 30px;
}

/* باکس CTA */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.2);
}

.cta-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.cta-box p {
    font-size: 16px;
    color: #e2e8f0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 200px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 62, 62, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* فوتر */
.features-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e0;
    transition: color 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #a0aec0;
    font-size: 14px;
    margin-top: 10px;
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #c53030;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* رسپانسیو */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .features-header h1 {
        font-size: 26px;
    }
    
    .features-header p {
        font-size: 16px;
    }
    
    .section-intro h2 {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .benefit-item {
        padding: 20px;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 100%;
        max-width: 300px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .features-header {
        padding: 30px 0;
    }
    
    .features-header h1 {
        font-size: 22px;
    }
    
    .section-intro h2 {
        font-size: 22px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
}