/* ==========================================================================
   متغیرهای سراسری (CSS Variables) - طراحی شده برای تم مالی و مدرن
   ========================================================================== */
:root {
    --primary-color: #4F46E5; /* آبی ایندیگو - نماد اعتماد و تکنولوژی */
    --primary-hover: #4338CA;
    --secondary-color: #10B981; /* سبز زمردی - نماد رشد مالی و پول */
    --bg-color: #F8FAFC; /* پس‌زمینه بسیار روشن و تمیز */
    --surface-color: #FFFFFF;
    --text-main: #0F172A; /* متن تیره برای خوانایی بالا */
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    /* سایه‌های مدرن */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   تنظیمات پایه و ریست
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* اسکرول نرم بین بخش‌ها */
    font-size: 16px;
}

body {
    font-family: 'IRANSansWeb', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   هدر سایت (Header) - افکت شیشه‌ای
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px); /* افکت Glassmorphism */
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-muted);
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   بخش Hero (معرفی اصلی)
   ========================================================================== */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* دکمه‌های عمومی */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   موکاپ گوشی موبایل (CSS Pure)
   ========================================================================== */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: rotate(-2deg);
    transition: transform var(--transition-normal);
}

.phone-mockup:hover {
    transform: rotate(0deg) translateY(-10px);
}

/* بریدگی بالای گوشی (Notch) */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #f3f4f6;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    padding: 60px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* عناصر داخل صفحه گوشی */
.app-card {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.balance-card span {
    font-size: 0.875rem;
    opacity: 0.9;
}

.balance-card strong {
    font-size: 1.5rem;
    margin-top: 4px;
}

.app-stats {
    display: flex;
    gap: 12px;
}

.app-stats div {
    flex: 1;
    background: var(--surface-color);
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.app-stats span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.app-stats strong {
    display: block;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-top: 4px;
}

.app-list {
    flex: 1;
    background: var(--surface-color);
    border-radius: 16px;
    padding: 16px;
}

.app-list span {
    display: block;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.app-list span:nth-child(1) { width: 80%; }
.app-list span:nth-child(2) { width: 60%; }
.app-list span:nth-child(3) { width: 40%; }

/* ==========================================================================
   لینک‌های دانلود (Call to Action)
   ========================================================================== */
.download-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.text-center {
    text-align: center;
}

.download-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.store-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.store-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.btn-content {
    display: flex;
    flex-direction: column;
}

.btn-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.store-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* ==========================================================================
   گالری تصاویر محیط اپلیکیشن
   ========================================================================== */
.app-screenshots-section {
    padding: 60px 0;
    background: var(--surface-color);
}

.screenshots-gallery {
    display: flex;
    gap: 24px;
    overflow-x: auto; /* اسکرول افقی برای موبایل */
    padding: 32px 16px;
    scroll-snap-type: x mandatory;
    /* پنهان کردن اسکرول‌بار در مرورگرهای مدرن */
    scrollbar-width: none; 
}
.screenshots-gallery::-webkit-scrollbar {
    display: none;
}

.screenshot-img {
    height: 450px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    scroll-snap-align: center;
    transition: var(--transition-normal);
}

.screenshot-img:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   ویژگی‌های اپلیکیشن (Features Grid)
   ========================================================================== */
.features-section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--surface-color);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    /* اگر آیکون‌ها SVG باشند، این فیلتر به رنگ اصلی درمی‌آید */
    filter: invert(30%) sepia(87%) saturate(2333%) hue-rotate(228deg) brightness(97%) contrast(93%);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   سوالات متداول (FAQ) - استفاده از details و summary
   ========================================================================== */
.faq-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* حذف نشانگر پیش‌فرض */
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.faq-icon::before { top: 11px; left: 0; width: 24px; height: 2px; }
.faq-icon::after { top: 0; left: 11px; width: 2px; height: 24px; }

.faq-item[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==========================================================================
   فوتر (Footer)
   ========================================================================== */
.site-footer {
    background: #0B1120;
    color: white;
    padding: 80px 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 48px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: white;
}

.footer-brand p {
    color: #94A3B8;
}

.footer-links h5 {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94A3B8;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    color: #64748B;
    font-size: 0.875rem;
}

/* ==========================================================================
   واکنش‌گرایی (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .main-nav {
        display: none; /* منو را در موبایل مخفی می‌کنیم (نیاز به منوی همبرگری در JS دارد) */
    }
    
    .download-stores-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
