/* ============================================================
 *  Janiyar Segal — Hero Cinematic v17
 *  قاب شیشه‌ای پایین هیرو + دکمه ویدیو + تیتر دو خطی
 *
 * @version 17.0.0
 * ============================================================ */

/* ═══════════════════════════════════════════════════════════
 *  Hero Container
 *  ═══════════════════════════════════════════════════════════ */
.js-hero--unified {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #050810;
    isolation: isolate;
    direction: rtl;
    padding-bottom: 40px;         /* ★ فاصله از پایین صفحه */
}

/* ═══════════════════════════════════════════════════════════
 *  پس‌زمینه — بدون زوم
 *  ═══════════════════════════════════════════════════════════ */
.js-hero__bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.js-hero__bg-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.72) contrast(1.1) saturate(1.15);
    transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════
 *  هاله نارنجی
 *  ═══════════════════════════════════════════════════════════ */
.js-hero__molten-glow {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
}

.js-hero__molten-glow__pulse {
    position: absolute;
    top: 40%;
    left: 5%;
    width: 50%;
    height: 45%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 140, 40, 0.35) 0%,
        rgba(255, 90, 20, 0.15) 40%,
        transparent 70%
    );
    filter: blur(60px);
    border-radius: 50%;
    animation: jsMoltenPulse 4.5s ease-in-out infinite;
}

.js-hero__molten-glow__pulse--delayed {
    top: 35%;
    left: 0%;
    width: 65%;
    height: 55%;
    animation-delay: 2.2s;
    animation-duration: 5.5s;
}

@keyframes jsMoltenPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.15); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
 *  جرقه‌ها
 *  ═══════════════════════════════════════════════════════════ */
.js-hero__sparks-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* ═══════════════════════════════════════════════════════════
 *  گرادیان سینمایی
 *  ═══════════════════════════════════════════════════════════ */
.js-hero__gradient {
    position: absolute;
    inset: 0;
    z-index: 4;
    background:
        linear-gradient(270deg,
            rgba(5, 8, 16, 0.95) 0%,
            rgba(5, 8, 16, 0.75) 30%,
            rgba(5, 8, 16, 0.35) 60%,
            rgba(5, 8, 16, 0.1) 85%,
            rgba(5, 8, 16, 0) 100%
        ),
        linear-gradient(180deg,
            rgba(5, 8, 16, 0.55) 0%,
            rgba(5, 8, 16, 0.15) 35%,
            rgba(5, 8, 16, 0.65) 100%
        );
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
 *  محتوای متنی
 *  ═══════════════════════════════════════════════════════════ */
.js-hero__inner {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding: 100px clamp(20px, 4vw, 48px) 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    flex: 1;
    align-items: center;
    direction: rtl;
}

.js-hero-content {
    color: #fff;
    text-align: right;
    max-width: 640px;
    width: 100%;
    direction: rtl;
    grid-column: 1 / 2;
    justify-self: start;
}

/* ═══════════════════════════════════════════════════════════
 *  چیپ برند
 *  ═══════════════════════════════════════════════════════════ */
.js-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 8px 10px 8px 16px;
    background: rgba(20, 25, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.js-hero-brand__mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff8c42;
    border-radius: 50%;
    background: rgba(255, 140, 66, 0.15);
    border: 1.5px solid rgba(255, 140, 66, 0.5);
    flex-shrink: 0;
    order: 1;
}

.js-hero-brand__mark svg {
    width: 26px;
    height: 26px;
}

.js-hero-brand__name {
    display: inline-flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.2px;
    order: 2;
    text-align: right;
}

.js-hero-brand__name small {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════
 *  تیتر دو خطی
 *  ═══════════════════════════════════════════════════════════ */
.js-hero-title {
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 24px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.js-hero-title__accent {
    display: inline-block;
    background: linear-gradient(135deg, #E6A83A 0%, #FF8C42 50%, #FF5500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
}

.js-hero-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(270deg, #ff8c42 0%, #ff5500 100%);
    border-radius: 2px;
    margin-top: 24px;
    margin-inline-start: 0;
    margin-inline-end: auto;
    box-shadow: 0 0 24px rgba(255, 140, 66, 0.8);
}

.js-hero-desc {
    font-size: clamp(14px, 1.35vw, 17px);
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 30px;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════
 *  دکمه‌ها
 *  ═══════════════════════════════════════════════════════════ */
.js-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    justify-content: flex-start;
}

.js-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.js-hero-cta--primary {
    background: linear-gradient(135deg, #E6A83A 0%, #FF8C42 100%);
    color: #0a0a0a !important;
    box-shadow: 0 8px 28px rgba(230, 168, 58, 0.5);
}

.js-hero-cta--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(230, 168, 58, 0.7);
    color: #0a0a0a !important;
}

.js-hero-cta--primary svg {
    transition: transform 280ms;
}

.js-hero-cta--primary:hover svg {
    transform: translateX(-4px);
}

.js-hero-cta--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.js-hero-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 140, 66, 0.7);
    color: #ff8c42 !important;
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════
 *  ردیف پایین — Badges + ویدیو
 *  ═══════════════════════════════════════════════════════════ */
.js-hero-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.js-hero-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.js-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.js-hero-badge::first-letter {
    color: #ff8c42;
}

/* دکمه ویدیو */
.js-hero-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    flex-shrink: 0;
}

.js-hero-video-btn:hover {
    background: rgba(255, 140, 66, 0.2);
    border-color: rgba(255, 140, 66, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.3);
    color: #fff;
}

.js-hero-video-btn__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E6A83A 0%, #FF8C42 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    flex-shrink: 0;
    padding-inline-start: 2px;
    box-shadow: 0 4px 12px rgba(230, 168, 58, 0.5);
}

.js-hero-video-btn__icon svg {
    width: 12px;
    height: 12px;
}

.js-hero-video-btn__text {
    line-height: 1.2;
}
/* ═══════════════════════════════════════════════════════════
 *  ★ نوار ۴ آیکونی — قاب شیشه‌ای چسبیده به پایین هیرو
 *  ═══════════════════════════════════════════════════════════ */
.js-hero__trust-bar {
    position: relative;
    z-index: 6;
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    margin-top: auto;
    margin-bottom: 0;
    padding: 0 clamp(20px, 4vw, 48px);
}

.js-hero__trust-grid {
    list-style: none;
    margin: 0;

    background: rgba(15, 20, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    border-radius: 16px 16px 0 0;

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    box-shadow:
        0 -8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 24px 20px;
}

.js-hero__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 0;
    position: relative;
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

/* خط عمودی ظریف بین آیتم‌ها */
.js-hero__trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    inset-inline-end: 0;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
}

.js-hero__trust-item:hover {
    transform: translateY(-3px);
}

.js-hero__trust-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #E6A83A;
    flex-shrink: 0;
    transition: all 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.js-hero__trust-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    stroke-width: 1.5;
}

.js-hero__trust-item:hover .js-hero__trust-icon {
    color: #FF8C42;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(255, 140, 66, 0.5));
}

.js-hero__trust-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding-top: 2px;
}

.js-hero__trust-title {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.js-hero__trust-desc {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════
 *  ★ Responsive — Trust Bar
 *  ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .js-hero__trust-grid {
        padding: 18px 6px;
    }
    .js-hero__trust-icon {
        width: 32px;
        height: 32px;
    }
    .js-hero__trust-icon svg {
        width: 24px;
        height: 24px;
    }
    .js-hero__trust-title {
        font-size: 11.5px;
    }
    .js-hero__trust-desc {
        font-size: 10px;
    }
}

@media (max-width: 720px) {
    .js-hero__trust-bar {
        padding: 0 12px;
    }
    .js-hero__trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 0;
        padding: 18px 8px;
        border-radius: 14px 14px 0 0;
    }
    .js-hero__trust-item {
        padding: 4px 8px;
        gap: 6px;
    }

    /* خط جداکننده — فقط بین دو ستون */
    .js-hero__trust-item:nth-child(1)::after,
    .js-hero__trust-item:nth-child(3)::after {
        display: block;
    }
    .js-hero__trust-item:nth-child(2)::after,
    .js-hero__trust-item:nth-child(4)::after {
        display: none;
    }

    .js-hero__trust-icon {
        width: 30px;
        height: 30px;
    }
    .js-hero__trust-icon svg {
        width: 22px;
        height: 22px;
    }
    .js-hero__trust-title {
        font-size: 12px;
        white-space: normal;
    }
    .js-hero__trust-desc {
        font-size: 10px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .js-hero__trust-grid {
        padding: 14px 6px;
    }
    .js-hero__trust-title {
        font-size: 11px;
    }
    .js-hero__trust-desc {
        font-size: 9.5px;
    }
}
/* ═══════════════════════════════════════════════════════════
 *  ★ OPTIMIZATION — موبایل (نسخه نهایی)
 *  ═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {

    /* ─── ۱) Hero Container — ارتفاع بهتر ─── */
    .js-hero--unified {
        min-height: auto !important;
        padding-bottom: 0 !important;
    }

    /* ─── ۲) پس‌زمینه — بدون زوم ─── */
    .js-hero__bg-image img {
        object-position: 30% center !important;
        filter: brightness(0.65) contrast(1.1) saturate(1.15) !important;
    }

    /* ─── ۳) گرادیان — تیره‌تر برای متن ─── */
    .js-hero__gradient {
        background:
            linear-gradient(180deg,
                rgba(5, 8, 16, 0.75) 0%,
                rgba(5, 8, 16, 0.55) 40%,
                rgba(5, 8, 16, 0.9) 100%
            ) !important;
    }

    /* ─── ۴) هاله نارنجی — کوچک‌تر ─── */
    .js-hero__molten-glow__pulse {
        opacity: 0.5 !important;
    }

    /* ─── ۵) Inner — پدینگ متعادل ─── */
    .js-hero__inner {
        grid-template-columns: 1fr !important;
        padding: 80px 20px 20px !important;
        gap: 20px !important;
    }

    /* ─── ۶) Content — تمام عرض ─── */
    .js-hero-content {
        grid-column: 1 / -1 !important;
        max-width: 100% !important;
        text-align: right !important;
    }

    /* ─── ۷) چیپ برند — کوچک‌تر ─── */
    .js-hero-brand {
        padding: 6px 8px 6px 12px !important;
        margin-bottom: 16px !important;
        gap: 8px !important;
    }

    .js-hero-brand__mark {
        width: 34px !important;
        height: 34px !important;
    }

    .js-hero-brand__mark svg {
        width: 22px !important;
        height: 22px !important;
    }

    .js-hero-brand__name {
        font-size: 13px !important;
    }

    .js-hero-brand__name small {
        font-size: 8px !important;
        letter-spacing: 1.5px !important;
    }

    /* ─── ۸) تیتر — فونت استاندارد ─── */
    .js-hero-title {
        font-size: 26px !important;
        line-height: 1.25 !important;
        letter-spacing: -0.8px !important;
        margin: 0 0 16px !important;
    }

    /* خط نارنجی زیر تیتر */
    .js-hero-title::after {
        width: 60px !important;
        height: 3px !important;
        margin-top: 14px !important;
    }

    /* ─── ۹) توضیحات ─── */
    .js-hero-desc {
        font-size: 13.5px !important;
        line-height: 1.85 !important;
        margin: 0 0 20px !important;
        max-width: 100% !important;
    }

    /* ─── ۱۰) دکمه‌ها — تمام عرض ─── */
    .js-hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .js-hero-cta {
        justify-content: center !important;
        padding: 13px 20px !important;
        font-size: 13.5px !important;
        width: 100% !important;
    }

    /* ─── ۱۱) دکمه ویدیو — جدا و وسط‌چین ─── */
    .js-hero-video-btn {
        display: inline-flex !important;
        width: fit-content !important;
        margin: 0 auto !important;
        padding: 8px 16px 8px 8px !important;
        font-size: 12.5px !important;
    }

    /* ─── ۱۲) کادر شیشه‌ای ۴ آیکونی — ۲×۲ ─── */
    .js-hero__trust-bar {
        padding: 0 16px 20px !important;
        margin-bottom: 0 !important;
    }

    .js-hero__trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 0 !important;
        padding: 24px 16px !important;
        border-radius: 14px !important;
        min-height: auto !important;
    }

    .js-hero__trust-item {
        gap: 8px !important;
        padding: 0 !important;
        min-height: 90px !important;
    }

    /* خط عمودی — فقط بین دو ستون */
    .js-hero__trust-item:nth-child(1)::after,
    .js-hero__trust-item:nth-child(3)::after {
        display: block !important;
    }

    .js-hero__trust-item:nth-child(2)::after,
    .js-hero__trust-item:nth-child(4)::after {
        display: none !important;
    }

    .js-hero__trust-icon {
        width: 34px !important;
        height: 34px !important;
    }

    .js-hero__trust-icon svg {
        width: 26px !important;
        height: 26px !important;
    }

    .js-hero__trust-title {
        font-size: 12px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    .js-hero__trust-desc {
        font-size: 10.5px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    /* ─── ۱۳) نشانگر اسکرول — مخفی ─── */
    .js-hero-scroll-indicator {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
 *  ★ موبایل کوچک (تا 480px)
 *  ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

    .js-hero__inner {
        padding: 70px 16px 16px !important;
    }

    .js-hero-title {
        font-size: 22px !important;
    }

    .js-hero-desc {
        font-size: 12.5px !important;
    }

    .js-hero-cta {
        padding: 12px 18px !important;
        font-size: 13px !important;
    }

    .js-hero__trust-grid {
        padding: 20px 12px !important;
        gap: 16px 0 !important;
    }

    .js-hero__trust-item {
        min-height: 80px !important;
        gap: 6px !important;
    }

    .js-hero__trust-icon {
        width: 30px !important;
        height: 30px !important;
    }

    .js-hero__trust-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .js-hero__trust-title {
        font-size: 11px !important;
    }

    .js-hero__trust-desc {
        font-size: 9.5px !important;
    }
}