:root {
    --bg-dark: #0f172a;      /* رنگ پس‌زمینه تیره */
    --card-dark: #1e293b;    /* رنگ پس‌زمینه کارت‌ها */
    --text-main: #f8fafc;    /* رنگ متن اصلی */
    --text-muted: #94a3b8;   /* رنگ متن کم‌رنگ */
    --primary-green: #10b981; /* رنگ سبز جیبینو */
    --primary-orange: #f97316;/* رنگ نارنجی جیبینو */
    --btn-bazaar-bg: #22c55e; /* رنگ دکمه بازار */
    --font-family: 'Vazirmatn', Tahoma, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: center; /* وسط‌چین شدن کلیه متون پیش‌فرض صفحه */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- هدر --- */
header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    height: 40px;
    width: auto;
    border-radius: 10px;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text-main);
}

/* --- بخش اصلی (Hero) --- */
.hero {
    padding: 80px 0 120px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 520px;
    text-align: center; /* وسط‌چین کردن متن بخش هیرو */
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-main);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center; /* وسط‌چین کردن دکمه دانلود */
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
}

.bazaar-btn {
    background-color: var(--btn-bazaar-bg);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
}

/* --- موکاپ‌های SVG --- */
.hero-mockups {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.svg-mockup-wrapper {
    position: relative;
    width: 480px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-item {
    position: absolute;
    width: 250px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.mockup-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.55));
}

.mockup-right {
    right: 15px;
    transform: rotate(6deg) translateY(-10px);
    z-index: 2;
}

.mockup-left {
    left: 15px;
    transform: rotate(-6deg) translateY(15px);
    z-index: 1;
    opacity: 0.9;
}

.svg-mockup-wrapper:hover .mockup-right {
    transform: rotate(3deg) translateY(-15px) scale(1.02);
}

.svg-mockup-wrapper:hover .mockup-left {
    transform: rotate(-3deg) translateY(10px) scale(1.02);
    opacity: 1;
}

/* --- بخش ویژگی‌ها (Features) --- */
.features-section {
    padding: 90px 0;
    background-color: var(--card-dark);
    border-radius: 50px 50px 0 0;
    text-align: center;
}

.features-section h2 {
    font-size: 2.3rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-dark);
    padding: 35px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.3s, border-color 0.3s;
    text-align: center; /* وسط‌چین کردن متن و المان‌های کارت‌ها */
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-card i {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.icon-green { color: var(--primary-green); }
.icon-orange { color: var(--primary-orange); }

/* --- فوتر --- */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    text-align: center;
}

.footer-logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.app-logo-footer {
    height: 45px;
    border-radius: 10px;
}

.footer-links {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover {
    color: var(--text-main);
}

/* --- واکنش‌گرایی --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
        margin-bottom: 40px;
    }
    .hero-mockups {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .hero-text h1 {
        font-size: 2.3rem;
    }
    .svg-mockup-wrapper {
        width: 320px;
        height: 350px;
    }
    .mockup-item {
        width: 180px;
    }
}