:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #ff6b6b;
    --success-color: #51cf66;
    --warning-color: #ff922b;
    --info-color: #339af0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #343a40;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-sm: 8px;
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: var(--text-color);
    line-height: 1.8;
    font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== هدر مثلثی زیبا ===== */
.main-header {
    position: relative;
    background: var(--primary-gradient);
    color: white;
    padding: 100px 0 80px;
    margin-bottom: 50px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    text-align: center;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    margin-bottom: 30px;
    position: relative;
}

.floating-text {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff 30%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.floating-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.fixed-text {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.main-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.main-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
}

.header-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 180px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn i {
    font-size: 1.2rem;
}

/* ===== نوار اعلانات ===== */
.announcement-bar {
    background: linear-gradient(90deg, var(--accent-color), #ff8e8e);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.announcement-bar i {
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== نوار راهنما ===== */
.breadcrumb {
    background: white;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    margin: -30px auto 40px;
    max-width: 1200px;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--info-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
}

.breadcrumb a:hover {
    color: #1864ab;
    background: rgba(51, 154, 240, 0.1);
}

.breadcrumb > a:last-of-type {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== باکس محتوای اصلی ===== */
.content-box {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.content-box h2 {
    color: #4d4d9b;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--info-color), var(--accent-color)) 1;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-box h2::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--info-color);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E") no-repeat center;
}

.content-box h3 {
    color: #5c5cad;
    margin: 30px 0 20px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 15px;
    border-right: 4px solid var(--warning-color);
}

.content-box h3::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--warning-color);
}

.content-box p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== استایل‌های ویژه ===== */
.note {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-right: 5px solid var(--info-color);
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
    overflow: hidden;
}

.note::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--info-color);
    opacity: 0.2;
}

.warning {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-right: 5px solid var(--accent-color);
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    position: relative;
    overflow: hidden;
}

.warning::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.2;
}

/* ===== مراحل آموزشی ===== */
.steps {
    counter-reset: step-counter;
    margin: 30px 0;
    position: relative;
    padding-right: 40px;
}

.steps::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--info-color), var(--success-color));
    border-radius: 3px;
}

.step {
    position: relative;
    margin-bottom: 30px;
    background: white;
    padding: 25px 30px 25px 80px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid #f0f0f0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    min-height: 100px;
}

.step:hover {
    border-color: var(--info-color);
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(51, 154, 240, 0.1);
}

.step:last-child {
    margin-bottom: 0;
}

.step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--info-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(51, 154, 240, 0.3);
}

.step::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    z-index: 1;
}

/* ===== لیست رسیورها ===== */
.receiver-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.receiver-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.receiver-item::before {
    content: '\f108';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--info-color);
    margin-bottom: 15px;
    opacity: 0.7;
}

.receiver-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, white 0%, #f0f5ff 100%);
    border-color: var(--info-color);
}

/* ===== ویژگی‌ها ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature {
    background: white;
    padding: 35px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--secondary-gradient);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.feature h4 {
    color: #4d4d9b;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== دکمه دانلود ===== */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--success-color), #2f9e44);
    color: white;
    padding: 18px 35px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 20px 0;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(81, 207, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(81, 207, 102, 0.4);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn i {
    font-size: 1.3rem;
}

/* ===== فوتر ===== */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    text-align: center;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--secondary-gradient);
}

footer .container {
    position: relative;
    z-index: 1;
}

footer h3 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.contact-info a {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-info a i {
    font-size: 1.2rem;
}

footer p {
    margin-top: 40px;
    opacity: 0.8;
    font-size: 0.95rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== دکمه شناور ===== */
.floating-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--accent-color), #ff8e8e);
    color: white;
    padding: 20px 35px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
    z-index: 1000;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    overflow: hidden;
    min-width: 200px;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.4);
}

.floating-btn:hover::before {
    left: 100%;
}

.floating-btn .icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.floating-btn:hover .icon {
    transform: translateY(-3px);
}

.btn-text {
    margin-left: 10px;
}

/* ===== افکت پالس ===== */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.pulse-effect {
    animation: pulse-glow 2s infinite;
}

/* ===== لیست‌ها ===== */
ul {
    margin: 20px 0 30px 40px;
    list-style: none;
}

ul li {
    margin-bottom: 15px;
    padding-right: 35px;
    position: relative;
    font-size: 1.1rem;
}

ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 0;
    color: var(--success-color);
    font-size: 1.2rem;
}

/* ===== رسپانسیو ===== */
@media (max-width: 1200px) {
    .features,
    .receiver-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .main-header {
        padding: 80px 0 60px;
    }
    
    .floating-text {
        font-size: 2.8rem;
    }
    
    .main-header h1 {
        font-size: 2.2rem;
    }
    
    .features {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 60px 0 50px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    }
    
    .floating-text {
        font-size: 2.2rem;
    }
    
    .main-header h1 {
        font-size: 1.8rem;
    }
    
    .header-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features,
    .receiver-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-box {
        padding: 30px 20px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .contact-info a {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .floating-btn {
        bottom: 20px;
        left: 20px;
        padding: 15px 25px;
        font-size: 1rem;
        min-width: auto;
        width: calc(100% - 40px);
    }
    
    .step {
        padding: 20px 25px 20px 70px;
    }
    
    .step::before {
        right: -35px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .steps {
        padding-right: 35px;
    }
    
    .steps::before {
        right: 12px;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 5px;
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-header {
        padding: 50px 0 40px;
    }
    
    .floating-text {
        font-size: 1.8rem;
    }
    
    .main-header h1 {
        font-size: 1.5rem;
    }
    
    .content-box h2 {
        font-size: 1.5rem;
    }
    
    .content-box h3 {
        font-size: 1.3rem;
    }
    
    .feature {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
    
    .download-btn {
        padding: 15px 25px;
        font-size: 1rem;
        width: 100%;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    .floating-btn {
        bottom: 15px;
        left: 15px;
        width: calc(100% - 30px);
        padding: 12px 20px;
    }
}