/* تنظیمات پایه */
:root {
    --primary-color: #121c32; 
    --secondary-color: #0d121f; 
    --text-color: #ffffff; 
    --accent-color: #2b78e4; 
    --logo-color: #ffffff; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-color);
    direction: ltr; 
    text-align: left; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; 
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* ------------------------------------------- */
/* پس‌زمینه پارتیکلی (tsParticles) */
/* ------------------------------------------- */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background-color: var(--primary-color);
}

/* ------------------------------------------- */
/* 1. بخش اصلی (Hero Section) */
/* ------------------------------------------- */

.hero-section {
    background-color: transparent; 
    padding-top: 20px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;

    /* اصلاح: اعمال گرادینت شعاعی برجسته برای جلوه بصری بهتر */
    background-image: radial-gradient(
        circle at center top, 
        rgba(12, 103, 231, 0.999) 0%, 
        rgb(11, 64, 137) 40%, 
        var(--primary-color) 75%
    );
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* استایل لوگو در دسکتاپ */
.logo {
    width: 200px; 
    margin: 0 0 25px 0; 
    position: relative;
    z-index: 5;
    display: block; 
}


/* تنظیمات پایه دکمه WEBAPP */
.webapp-button {
    display: inline-block;
    float: right; 
    
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;

    background-color: var(--accent-color);
    color: var(--text-color);
    border-radius: 8px;
    transition: background-color 0.3s ease;
    
    z-index: 10; 
    border: none;
}

.webapp-button:hover {
    background-color: #205fb8;
    color: var(--text-color);
}

.content-wrapper {
    clear: both; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-top: 50px;
}

.text-content {
    /* اصلاح: افزایش max-width برای اختصاص فضای بیشتر به متن (دسکتاپ) */
    flex: 1;
    max-width: 60%; 
    text-align: left; 
}

.text-content h1 {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 15px;
}

.text-content p {
    font-size: 1em;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 30px;
}

/* 👇👇👇 استایل دکمه شروع (Start Button) 👇👇👇 */
.btn-start {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--text-color);
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn-start:hover {
    background-color: #205fb8;
}
/* 👆👆👆 استایل دکمه شروع (Start Button) 👆👆👆 */


.image-content {
    /* اصلاح: کاهش max-width برای کوچک‌تر نشان دادن تصویر (دسکتاپ) */
    flex: 1;
    max-width: 30%; 
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.mockup-img {
    max-width: 100%; 
    height: auto;
    animation: float 4s ease-in-out infinite;
    /* اعمال سایه زیر گوشی */
    
    filter: brightness(1.05); 
}


/* ------------------------------------------- */
/* 2. بخش مقایسه (Comparison Section) */
/* ------------------------------------------- */

.comparison-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.comparison-section .container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-direction: row; 
}

.block {
    flex: 1;
    padding: 40px 30px;
    border-radius: 10px;
    background-color: var(--primary-color);
    position: relative;
    text-align: left;
    min-width: 0; 
    background-image: radial-gradient(
        circle at center top, 
        rgba(12, 103, 231, 0.81) 0%, 
        rgba(11, 63, 137, 0.781) 40%, 
        var(--primary-color) 75%)
}

.block h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.diagram-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 20px auto;
}

.description-text {
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.9;
    margin-top: 15px;
    text-align: justify;
}

.vs-label {
    align-self: center;
    font-size: 3em;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
}

/* ------------------------------------------- */
/* 3. بخش پشتیبانی کیف پول (Support Wallet Section) */
/* ------------------------------------------- */

.support-section {
    background-color: var(--primary-color);
    padding: 50px 0;
    text-align: center;
    z-index: 1;
    position: relative;
    background-image: radial-gradient(
        circle at center bottom, 
        rgba(12, 103, 231, 0.999) 0%, 
        rgb(11, 64, 137) 0%, 
        var(--primary-color) 35%)
}

.support-section h3 {
    font-size: 1.2em;
    font-weight: 400;
    opacity: 0.7;
    margin-bottom: 30px;
}

.wallet-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.wallet-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.7;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wallet-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.other-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    opacity: 0.7;
    font-weight: bold;
    font-size: 0.9em;
}

/* ------------------------------------------- */
/* انیمیشن ورود عناصر (Intersection Observer) */
/* ------------------------------------------- */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------- */
/* Media Query برای موبایل (چیدمان موبایل) */
/* ------------------------------------------- */

@media (max-width: 768px) {
    
    /* پدینگ بالا را کم می کنیم تا هدر کوچکتر شود */
    .hero-section {
        padding-top: 10px; 
    }
    
    /* دکمه WEBAPP (موقعیت دهی مطلق و ثابت در بالا راست) */
    .webapp-button {
        position: absolute;
        top: 5px; 
        right: 5px; 
        left: auto;
    }

    /* لوگو در حالت موبایل (چپ بالا) */
    .logo {
        width: 100px; 
        position: absolute;
        top: 5px; 
        left: 5px; 
        right: auto;
        margin: 0; 
        z-index: 10;
    }
    
    /* محتوای اصلی زیر لوگو و دکمه قرار می گیرد */
    .content-wrapper {
        flex-direction: column; 
        padding-top: 60px; 
    }

    /* ترتیب موبایل: تصویر بالای متن */
    .image-content {
        order: 1; 
        max-width: 80%;
        margin: 0 auto 30px auto;
    }
    
    .text-content {
        order: 2; 
        max-width: 100%;
        text-align: center; 
        padding-top: 0; 
        margin-bottom: 30px; 
    }

    /* دکمه شروع در موبایل */
    .btn-start {
        display: block; 
        margin: 0 auto;
        width: fit-content;
    }

    /* بخش مقایسه در موبایل ستونی می شود */
    .comparison-section .container {
        flex-direction: column;
    }

    .vs-label {
        padding: 20px 0;
    }

    .block {
        padding: 20px;
        text-align: left;
    }
}