/* --- متغیرها و تم رنگی متناسب با پلتفرم‌های ابری/پیامکی --- */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0f172a;
    --accent-color: #10b981;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.06);
    --transition: all 0.25s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- دکمه‌ها --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--border-color);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-secondary {
    background: var(--white);
    color: var(--secondary-color);
    border-color: var(--border-color);
    margin-right: 12px;
}

/* --- هدر و منو --- */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.logo-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 1rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    list-style: none;
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 8px 18px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
}

/* --- Hero Section --- */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background: #e0e7ff;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-card-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-lbl {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Features Section --- */
.features-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-top: 60px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #60a5fa;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 5px;
}

.contact-item {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .main-nav {
        position: absolute;
        top: 75px;
        right: 0;
        left: 0;
        background: var(--white);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }
    .main-nav.active {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-right: 15px;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .header-actions {
        display: none;
    }
    .bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
