/* ==========================================================================
   ۱. لود فونت‌ها
   ========================================================================== */
@font-face {
    font-family: 'YekanBakh-Black';
    src: url('../../../../uploads/fonts/YekanBakh-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh-Bold';
    src: url('../../../../uploads/fonts/YekanBakh-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   ۲. ساختار دسکتاپ (نمایش کامل رینگ‌ها و هدایت به چپ)
   ========================================================================== */

.main-content {
    padding-top: 150px;
}

.hero-section {
    max-width: 1080px;  
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    box-sizing: border-box;
    /* overflow: hidden; حذف شد تا لبه‌های بالا و پایین رینگ‌ها کاملاً باز و نمایان شوند */
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; 
}

.hero-right {
    flex: 1.2;
    text-align: right;
    z-index: 15; /* متن‌ها کاملاً روی لبه رینگ قرار می‌گیرند */
    position: relative;
}

.hero-subtitle {
    font-family: 'YekanBakh-Bold', sans-serif;
    font-weight: 700;
    color: #F5F5F5A6; 
    font-size: 16px;
    display: block;
    margin-bottom: 12px;
}

.hero-title {
    font-family: 'YekanBakh-Black', sans-serif;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 25px;
    color: #FFFFFF;
    white-space: nowrap; 
}

.hero-features {
    list-style: none;
}

.hero-features li {
    font-size: 15px;
    color: #B2B9CB;
    margin-bottom: 16px;
    position: relative;
    padding-right: 24px;
    white-space: nowrap; 
}

.hero-features li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background-color: #0066FF;
    border-radius: 2px;
}

/* عدم نمایش دکمه‌ها در دسکتاپ */
.hero-actions {
    display: none; 
}

/* کانتینر اصلی لپ‌تاپ و آمار */
.hero-center-wrapper {
    flex: 2.6; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

.hero-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5; 
    margin-right: -45px; /* کمی تغییر جهت تعادل بهتر و کشیده‌شدن اصولی رینگ به زیر متن */
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 630px; /* ابعاد ایده آل و بزرگ تصویر */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* هاله نور دسکتاپ - ملایم و متمرکز */
.image-wrapper::before {
    content: "";
    position: absolute;
    width: 360px; 
    height: 360px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.45) 0%, rgba(0, 102, 255, 0.15) 55%, rgba(4, 12, 36, 0) 70%);
    filter: blur(40px); 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.main-laptop {
    width: 100%;
    height: auto;
    z-index: 5;
    position: relative;
}

.hero-ring {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.ring-1 { width: 125%; }
.ring-2 { width: 105%; }

.hero-ball {
    position: absolute;
    z-index: 7;
    border-radius: 50%;
}
.ball-1 {
    width: 12px;
    height: 12px;
    background-color: #0066FF;
    box-shadow: 0 0 12px #0066FF;
    offset-path: ellipse(58% 24% at 50% 50%);
    animation: moveBall 14s linear infinite;
}
.ball-2 {
    width: 9px;
    height: 9px;
    background-color: #FFFFFF;
    box-shadow: 0 0 10px #FFFFFF;
    offset-path: ellipse(48% 18% at 50% 50%);
    animation: moveBallReverse 18s linear infinite;
}
@keyframes moveBall { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }
@keyframes moveBallReverse { 0% { offset-distance: 100%; } 100% { offset-distance: 0%; } }

@keyframes floatStar { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(3deg); } }
.hero-star { position: absolute; z-index: 6; }
.star-big { width: 32px; }
.star-small { width: 16px; }
.star-1 { top: 8%; right: 12%; animation: floatStar 4s infinite; }
.star-2 { top: 45%; left: -5%; animation: floatStar 5s infinite 1s; }
.star-3 { bottom: 25%; right: 2%; animation: floatStar 4.5s infinite 0.5s; }
.star-4 { bottom: 8%; left: 15%; animation: floatStar 5.5s infinite 1.5s; }

/* ستون آمار */
.hero-left {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: flex-end;
    z-index: 10;
}
.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-number { font-size: 34px; font-weight: 700; color: #FFFFFF; }
.stat-label { font-size: 13px; color: #B2B9CB; margin-top: 6px; }


/* ==========================================================================
   ۳. بخش ریسپانسیو موبایل (کاملاً پایدار و دقیق)
   ========================================================================== */
@media (max-width: 768px) {
    .main-content {
        padding-top: 90px;
    }

    .hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .hero-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 10;
    }

    .hero-title {
        font-size: 24px;
        text-align: center;
        white-space: normal; 
    }

    .hero-features {
        text-align: right;
        display: inline-block;
    }
    
    .hero-features li {
        white-space: normal;
    }

    .hero-actions {
        display: flex; 
        width: 100%;
        justify-content: center;
        gap: 15px;
        margin-top: 25px;
    }

    .btn-primary {
        background-color: #0066FF;
        color: #FFFFFF !important;
        padding: 12px 24px;
        border-radius: 12px;
        font-family: 'YekanBakh-Bold', sans-serif;
        text-decoration: none;
        font-size: 14px;
    }

    .btn-secondary {
        background-color: #0E1A42;
        color: #B2B9CB !important;
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: 12px 24px;
        border-radius: 12px;
        font-family: 'YekanBakh-Bold', sans-serif;
        text-decoration: none;
        font-size: 14px;
    }

    .hero-center-wrapper {
        width: 100%;
        display: flex;
        flex-direction: row-reverse; 
        align-items: center;
        justify-content: center;
        gap: 15px; 
        margin-top: 15px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .hero-center {
        flex: 1;
        margin: 0; 
        display: flex;
        justify-content: center;
    }

    .image-wrapper {
        max-width: 190px;
    }

    .image-wrapper::before {
        width: 280px; 
        height: 280px;
        background: radial-gradient(circle, rgba(0, 102, 255, 0.7) 0%, rgba(0, 102, 255, 0.3) 45%, rgba(4, 12, 36, 0) 70%);
        filter: blur(45px); 
    }

    .ring-1 { width: 145%; }
    .ring-2 { width: 120%; }
    .star-big { width: 18px; }
    .star-small { width: 10px; }

    .hero-left {
        flex: 0 0 auto;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .stat-box {
        width: 81px !important;
        height: 55px !important;
        background-color: #0E1A42; 
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        box-sizing: border-box;
        gap: 1px;
    }

    .stat-number {
        font-size: 14px;
        color: #0066FF; 
        font-weight: 700;
        line-height: 1.2;
        order: 1;
    }

    .stat-label {
        font-size: 9px;
        color: #B2B9CB;
        white-space: nowrap;
        line-height: 1.2;
        order: 2;
    }
}