        /* ============================================ */
/* ========== فونت و تنظیمات پایه ========== */
/* ============================================ */
@font-face {
    font-family: 'Vazirmatn';
    src: url('font/Vazirmatn.woff2') format('woff2');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body {
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', system-ui, sans-serif;
    background: #f8fafc;
    color: #1a2a3a;
    direction: rtl;
    line-height: 1.75;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ============================================ */
/* ========== عناصر عمومی ========== */
/* ============================================ */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.4;
}

p {
    color: #4a5568;
    line-height: 1.85;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #7c3aed;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================ */
/* ========== کانتینر اصلی ========== */
/* ============================================ */
#main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================ */
/* ========== هدر (header) ========== */
/* ============================================ */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 24px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .04);
}

/* برند */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.brand-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: #1a1a2e;
    flex-shrink: 0;
}

.brand-text h2 {
    font-size: 1.15rem;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.3;
}

.brand-text span {
    font-size: .7rem;
    color: #6c7a89;
    font-weight: 400;
    display: block;
}

/* منوی اصلی */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-top: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    color: #6c7a89;
    transition: all .25s;
    white-space: nowrap;
}

.nav-link.active {
    color: #ff4b2b;
    background: rgba(255, 75, 43, .08);
}

.nav-arrow {
    font-size: .6rem;
}

/* مگامنیو */
.mega-menu-trigger {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    border: 1px solid #e2e8f0;
    padding: 20px;
    min-width: 480px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .3s;
    z-index: 999;
}

.mega-menu-trigger:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .85rem;
    color: #1a2a3a;
}

.mega-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mega-icon--green { background: #dcfce7; }
.mega-icon--blue { background: #dbeafe; }
.mega-icon--purple { background: #ede9fe; }
.mega-icon--red { background: #fee2e2; }
.mega-icon--cyan { background: #cffafe; }
.mega-icon--lavender { background: #f3e8ff; }

/* دکمه‌های هدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-header-outline {
    background: transparent;
    color: #1a1a2e;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .82rem;
    border: 2px solid #e2e8f0;
}

.btn-header-solid {
    background: gold;
    color: #1a1a2e;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .82rem;
    border: 1px solid #000;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .3);
}

/* ============================================ */
/* ========== دکمه همبرگر (موبایل) ========== */
/* ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1a2a3a;
    border-radius: 3px;
    transition: all .3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================ */
/* ========== منوی موبایل ========== */
/* ============================================ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-section-title {
    font-size: .75rem;
    font-weight: 700;
    color: #6c7a89;
    padding: 12px 8px 4px;
    margin-top: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    color: #1a2a3a;
}

.mobile-icon {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffd700, #f59e0b, #ffd700);
    color: #1a1a2e;
    font-weight: 700;
    font-size: .95rem;
}




/* ============================================ */
/* ========== ریسپانسیو ========== */
/* ============================================ */

/* تبلت و موبایل بزرگ */
@media (max-width: 1100px) {
    .main-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .mega-menu {
        display: none !important;
    }
}

/* تبلت */
@media (max-width: 768px) {
    #main {
        padding: 15px;
    }
    .row-hero {
        grid-template-columns: 1fr;
        direction: rtl;
    }
    .row-2col,
    .row-3col {
        grid-template-columns: 1fr;
    }
    .row-4col {
        grid-template-columns: 2fr 1fr;
    }
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-main {
        border-radius: 30px;
    }
    .hero-main h1 {
        font-size: 1.4rem;
    }
    .sticky-cta {
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;
    }
    .sticky-cta .btn-cta {
        width: 100%;
        text-align: center;
        font-size: .8rem;
        padding: 8px 16px;
    }
}

/* موبایل کوچک */
@media (max-width: 640px) {
    .row-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-main h1 {
        font-size: 1.2rem;
    }
    .hero-stats-row {
        gap: 4px;
    }
    .hero-stat-badge {
        padding: 6px 8px;
        font-size: .5rem;
        min-width: 45px;
    }
    .hero-stat-badge strong {
        font-size: .85rem;
    }
}