/* --- تعریف متغیرهای CSS (CSS Variables) برای هماهنگی رنگ‌ها و فونت‌ها --- */
:root {
    /* پالت رنگی اصلی (بر اساس اپلیکیشن) */
    --primary-color: #007ec3; /* آبی اصلی اپلیکیشن */
    --primary-light: #4aa3df;
    --primary-dark: #005f94;
    --accent-color: #4CAF50; /* سبز (مشابه دکمه ثبت تغییرات) */
    --accent-hover: #43a047;
    --secondary-color: #ffc107; /* زرد/نارنجی برای هشدارها یا آیکون‌ها */

    /* رنگ‌های متن و پس‌زمینه */
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --bg-body: #f9fbfd; /* پس‌زمینه خیلی روشن و ملایم */
    --bg-surface: #ffffff; /* رنگ پس‌زمینه کارت‌ها */
    --border-color: #dfe6e9;

    /* تایپوگرافی */
    --font-family-base: 'Vazirmatn', 'IRANSans', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* سایر متغیرها */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --box-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s ease;
    --container-width: 1200px;
}

/* --- استایل‌های پایه (Base Styles) --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- کلاس‌های کمکی (Utility Classes) --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.highlight { color: var(--primary-color); }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* --- دکمه‌ها (Buttons) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 126, 195, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 126, 195, 0.4);
}

.btn-success {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-xl { padding: 16px 40px; font-size: 1.25rem; border-radius: var(--border-radius-lg); }

.icon-btn i {
    margin-left: 10px;
    font-size: 1.4rem;
}

/* --- نوار ناوبری (Navbar) --- */
.navbar {
    background-color: var(--bg-surface);
    padding: 15px 0;
    box-shadow: var(--box-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.navbar-brand img {
    height: 40px;
    margin-left: 10px;
}

/* --- بخش قهرمان (Hero Section) --- */
.hero-section {
    padding: 80px 0;
    background-color: var(--bg-body);
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.store-badges {
    display: flex;
    gap: 10px;
}

.store-badges img {
    height: 48px;
    transition: var(--transition-base);
}

.store-badges a:hover img {
    transform: translateY(-3px);
}

.hero-trust {
    display: flex;
    gap: 25px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.trust-item {
    display: flex;
    align-items: center;
}

.trust-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-left: 8px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-app-mockup {
    max-width: 100%;
    height: auto;
    max-height: 700px;
    z-index: 2;
    /* فیلتر سایه برای موکاپ */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background-color: #e3f2fd; /* آبی خیلی روشن */
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background-color: #e8f5e9; /* سبز خیلی روشن */
    bottom: -30px;
    left: -30px;
}

/* --- بخش معرفی کوتاه (Intro Section) --- */
.intro-section {
    padding: 60px 0;
}

.intro-card {
    background-color: var(--bg-surface);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.intro-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.intro-card p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- بخش ویژگی‌ها (Features Section) --- */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-body);
    /* الگوی پس‌زمینه ملایم (اختیاری) */
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-surface);
    padding: 40px 30px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-base);
    text-align: center;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #e3f2fd; /* آبی خیلی روشن */
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- بخش فراخوان نهایی (Final CTA Section) --- */
.final-cta-section {
    padding: 100px 0;
}

.cta-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--box-shadow-md);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
    /* گرادیانت ملایم برای پس‌زمینه کارت */
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.cta-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    margin-bottom: 30px;
}

.cta-stores-row {
    display: flex;
    gap: 15px;
}

.cta-stores-row img {
    height: 48px;
    transition: var(--transition-base);
}

.cta-stores-row a:hover img {
    transform: translateY(-3px);
}

.cta-image {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.cta-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
}

/* --- فوتر (Footer) --- */
.footer-section {
    background-color: var(--bg-surface);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-brand img {
    height: 40px;
    margin-left: 10px;
}

.footer-about p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.footer-contact ul li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-left: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #e3f2fd;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- واکنش‌گرایی (Responsive Design) --- */

/* تبلت و دستگاه‌های متوسط */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .hero-image-container { display: none; /* در تبلت تصویر را مخفی می‌کنیم تا فضا باز شود */ }
    .hero-text { max-width: 100%; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }

    .cta-card { flex-direction: column; text-align: center; padding: 40px; }
    .cta-content { max-width: 100%; }
    .cta-buttons { justify-content: center; }
    .cta-stores-row { justify-content: center; }
    .cta-image { margin-top: 40px; }

    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: span 2; }
}

/* موبایل و دستگاه‌های کوچک */
@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }

    .hero-section { padding: 60px 0; }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1.1rem; }
    .hero-cta { flex-direction: column; }
    .btn-lg { width: 100%; }

    .intro-card { padding: 30px; }

    .features-grid { grid-template-columns: 1fr; }

    .cta-title { font-size: 1.8rem; }
    .btn-xl { width: 100%; font-size: 1.1rem; }

    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-about { grid-column: span 1; }
}
