﻿.home-page {
    direction: rtl;
    font-family: Vazirmatn, Tahoma, sans-serif;
    background: #f7f7fb;
    color: #20202a;
}


/* =========================================
       HERO قدیمی
    ========================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 20px;
    background: radial-gradient(circle at 15% 20%, rgba(168,85,247,.30), transparent 30%), radial-gradient(circle at 85% 70%, rgba(16,185,129,.25), transparent 30%), linear-gradient(135deg,#171329,#24103d 45%,#073b35);
    color: #fff;
}


    .hero:before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        left: -170px;
        top: -170px;
        background: rgba(168,85,247,.10);
    }


.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 45px;
    align-items: center;
}


.hero h1 {
    margin: 0 0 18px;
    font-size: 48px;
    line-height: 1.4;
    font-weight: 900;
}


    .hero h1 span {
        color: #8ff0bf;
    }


.hero-text {
    color: #d5d1e2;
    line-height: 2;
    font-size: 16px;
    max-width: 650px;
    margin-bottom: 28px;
}


/* =========================================
       RXG CINEMATIC LANDING
    ========================================= */

.rxg-landing {
    position: relative;
    width: 100%;
    min-height: 650px;
    overflow: hidden;
    background: radial-gradient( circle at 70% 50%, rgba(124,58,237,.24), transparent 32% ), radial-gradient( circle at 25% 70%, rgba(16,185,129,.18), transparent 35% ), linear-gradient( 135deg, #171329, #24103d 45%, #073b35 );
    color: #fff;
}


/* =========================================
       صحنه ابتدایی
    ========================================= */

.intro-scene {
    position: absolute;
    inset: 0;
    background: transparent;
    overflow: hidden;
    z-index: 30;
    pointer-events: none;
}


/* =========================================
       تفنگ
    ========================================= */

.hero-gun {
    position: absolute;
    width: 430px;
    max-width: 45vw;
    right: -500px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    z-index: 35;
    filter: drop-shadow( 0 0 15px rgba(124,58,237,.60) ) drop-shadow( 0 0 35px rgba(16,185,129,.35) );
    animation: gunEnter 1.2s cubic-bezier(.2,.8,.2,1) forwards, gunShoot .10s ease 2.45s forwards, gunLeave .55s ease 2.70s forwards;
}


/* =========================================
       ورود تفنگ
    ========================================= */

@keyframes gunEnter {

    0% {
        right: -500px;
        opacity: 0;
        transform: translateY(-50%) rotate(12deg) scale(.8);
    }

    60% {
        opacity: 1;
    }

    100% {
        right: 13%;
        opacity: 1;
        transform: translateY(-50%) rotate(0deg) scale(1);
    }
}


/* =========================================
       لگد تفنگ هنگام شلیک
    ========================================= */

@keyframes gunShoot {

    0% {
        transform: translateY(-50%) translateX(0);
    }

    35% {
        transform: translateY(-50%) translateX(22px) rotate(-1deg);
    }

    70% {
        transform: translateY(-50%) translateX(-5px) rotate(.5deg);
    }

    100% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }
}


/* =========================================
       خروج سریع تفنگ
    ========================================= */

@keyframes gunLeave {

    0% {
        opacity: 1;
        right: 13%;
    }

    100% {
        opacity: 0;
        right: -500px;
        transform: translateY(-50%) rotate(10deg) scale(.8);
    }
}


/* =========================================
       نور شلیک از دهانه تفنگ
    ========================================= */

.muzzle-flash {
    position: absolute;
    width: 110px;
    height: 110px;
    /*
           محل تقریبی دهانه تفنگ
        */
    right: calc(13% + 390px);
    top: 50%;
    border-radius: 50%;
    background: radial-gradient( circle, #ffffff 0%, #d8fff1 15%, #a78bfa 35%, rgba(124,58,237,.45) 50%, transparent 72% );
    transform: translate(50%,-50%) scale(0);
    opacity: 0;
    z-index: 36;
    filter: blur(1px) drop-shadow(0 0 15px #fff) drop-shadow(0 0 30px #7c3aed);
    animation: muzzleShoot .14s ease-out 2.45s forwards;
}


/* =========================================
       انیمیشن فلش شلیک
    ========================================= */

@keyframes muzzleShoot {

    0% {
        opacity: 0;
        transform: translate(50%,-50%) scale(0);
    }

    20% {
        opacity: 1;
        transform: translate(50%,-50%) scale(.65);
    }

    45% {
        opacity: 1;
        transform: translate(50%,-50%) scale(1.35);
    }

    100% {
        opacity: 0;
        transform: translate(50%,-50%) scale(2.4);
    }
}


/* =========================================
       هیرو اصلی
    ========================================= */

.main-hero {
    position: absolute;
    inset: 0;
    z-index: 5;
    opacity: 1;
    background: linear-gradient( 90deg, rgba(8,8,13,.90) 0%, rgba(8,8,13,.72) 38%, rgba(8,8,13,.18) 70%, rgba(8,8,13,.45) 100% );
}


/* =========================================
       متن هیرو
    ========================================= */

.hero-content {
    position: absolute;
    right: 9%;
    top: 50%;
    transform: translateY(-50%);
    width: 48%;
    max-width: 650px;
    direction: rtl;
    z-index: 15;
    opacity: 0;
    animation: textAppear 1s ease 4.3s forwards;
}


@keyframes textAppear {

    from {
        opacity: 0;
        transform: translateY(-50%) translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}


/* =========================================
       BADGE
    ========================================= */

.rxg-landing .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 30px;
    color: #d8b4fe;
    background: rgba(124,58,237,.13);
    border: 1px solid rgba(167,139,250,.25);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}


/* =========================================
       عنوان
    ========================================= */

.hero-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(40px,5vw,72px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -2px;
}


    .hero-content h1 span {
        display: block;
        margin-top: 5px;
        background: linear-gradient( 90deg, #a78bfa, #7c3aed, #34d399 );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }


.hero-content p {
    color: #d5d1e2;
    font-size: 16px;
    line-height: 2;
    max-width: 570px;
    margin: 22px 0 28px;
}


/* =========================================
       دکمه‌ها
    ========================================= */

.rxg-landing .hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


.rxg-landing .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 160px;
    padding: 14px 22px;
    border-radius: 13px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .25s;
}


.rxg-landing .hero-btn-primary {
    color: #fff;
    background: linear-gradient( 135deg, #7c3aed, #10b981 );
    box-shadow: 0 10px 30px rgba(124,58,237,.25);
}


    .rxg-landing .hero-btn-primary:hover {
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(124,58,237,.40);
    }


.rxg-landing .hero-btn-secondary {
    color: #d1fae5;
    background: rgba(5,150,105,.12);
    border: 1px solid rgba(52,211,153,.30);
}


    .rxg-landing .hero-btn-secondary:hover {
        color: #fff;
        background: rgba(5,150,105,.22);
        transform: translateY(-3px);
    }


/* =========================================
       کاراکتر
    ========================================= */

.hero-character-wrap {
    position: absolute;
    left: -5%;
    bottom: -12%;
    width: 58%;
    height: 110%;
    z-index: 8;
    pointer-events: none;
}


.hero-character {
    position: absolute;
    left: 8%;
    bottom: 0;
    width: 90%;
    max-height: 720px;
    object-fit: contain;
    object-position: bottom center;
    opacity: 0;
    filter: drop-shadow( 0 0 25px rgba(124,58,237,.30) ) drop-shadow( 0 0 55px rgba(16,185,129,.18) );
    animation: characterEnter 1.4s cubic-bezier(.2,.8,.2,1) 4.7s forwards, characterFloat 5s ease-in-out 6.1s infinite;
}


@keyframes characterEnter {

    0% {
        opacity: 0;
        transform: translateX(-180px) translateY(80px) scale(.8);
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}


@keyframes characterFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* =========================================
       نور پشت کاراکتر
    ========================================= */

.character-light {
    position: absolute;
    width: 480px;
    height: 480px;
    left: 10%;
    bottom: 5%;
    border-radius: 50%;
    background: radial-gradient( circle, rgba(124,58,237,.28), rgba(5,150,105,.08), transparent 70% );
    filter: blur(20px);
    opacity: 0;
    animation: lightAppear 1s ease 4.9s forwards;
}


@keyframes lightAppear {

    from {
        opacity: 0;
        transform: scale(.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================
       ذرات
    ========================================= */

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}


    .hero-particles span {
        position: absolute;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #a78bfa;
        box-shadow: 0 0 10px #7c3aed;
        opacity: 0;
        animation: particleAppear 1s ease 5.5s forwards, particleFloat 4s ease-in-out 6.5s infinite;
    }


        .hero-particles span:nth-child(1) {
            right: 12%;
            top: 20%;
        }

        .hero-particles span:nth-child(2) {
            right: 35%;
            top: 30%;
        }

        .hero-particles span:nth-child(3) {
            left: 40%;
            top: 15%;
        }

        .hero-particles span:nth-child(4) {
            left: 25%;
            top: 60%;
        }

        .hero-particles span:nth-child(5) {
            right: 45%;
            bottom: 20%;
        }

        .hero-particles span:nth-child(6) {
            right: 18%;
            bottom: 25%;
        }

        .hero-particles span:nth-child(7) {
            left: 48%;
            top: 75%;
        }

        .hero-particles span:nth-child(8) {
            right: 55%;
            top: 10%;
        }


@keyframes particleAppear {

    from {
        opacity: 0;
    }

    to {
        opacity: .8;
    }
}


@keyframes particleFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


/* =========================================
       بخش خدمات
    ========================================= */

.home-section {
    padding: 70px 20px;
}


.section-container {
    max-width: 1200px;
    margin: auto;
}


.section-heading {
    text-align: center;
    margin-bottom: 40px;
}


    .section-heading .eyebrow {
        display: inline-block;
        margin-bottom: 8px;
        color: #7c3aed;
        font-size: 13px;
        font-weight: 800;
    }


    .section-heading h2 {
        margin: 0 0 10px;
        font-size: 31px;
        font-weight: 900;
    }


    .section-heading p {
        margin: 0;
        color: #777;
        line-height: 2;
    }


.service-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}


.service-card {
    padding: 25px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ecebf3;
    box-shadow: 0 10px 30px rgba(36,20,70,.05);
    transition: .25s;
}


    .service-card:hover {
        transform: translateY(-5px);
        border-color: #d8c5f8;
    }


.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient( 135deg, #ede9fe, #d1fae5 );
    color: #7c3aed;
    font-size: 23px;
    margin-bottom: 16px;
}


.service-card h3 {
    margin: 0 0 9px;
    font-size: 18px;
}


.service-card p {
    margin: 0;
    color: #70707c;
    line-height: 1.9;
    font-size: 13px;
}


/* =========================================
       محصولات
    ========================================= */

.product-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}


.product-card,
.blog-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ecebf3;
    box-shadow: 0 10px 30px rgba(36,20,70,.05);
}


.product-image,
.blog-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    background: #f1f1f5;
}


.product-info,
.blog-info {
    padding: 20px;
}


    .product-info h3,
    .blog-info h3 {
        margin: 0 0 10px;
        font-size: 18px;
        font-weight: 800;
    }


    .product-info p,
    .blog-info p {
        color: #767680;
        line-height: 1.9;
        min-height: 52px;
        margin-bottom: 15px;
        font-size: 13px;
    }


.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}


.price {
    color: #10a96d;
    font-size: 17px;
    font-weight: 900;
}


.home-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    background: #f0eaff;
    color: #6d28d9;
    font-weight: 800;
    font-size: 13px;
}
    .home-button:hover {
        background: #7c3aed;
        color: #fff;
    }


.blog-date {
    display: block;
    margin-bottom: 14px;
    color: #999;
    font-size: 12px;
}


.blog-section {
    background: #f1fdf8;
}


/* =========================================
       پس زمینه کالاف محصولات
    ========================================= */

.products-background-section {
    position: relative;
    overflow: hidden;
    padding: 70px 20px;
    background: #f7f7fb;
}


    .products-background-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('../images/codbg.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: .9;
        z-index: 0;
    }


    .products-background-section::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,.45);
        z-index: 1;
        pointer-events: none;
    }


    .products-background-section
    .section-container {
        position: relative;
        z-index: 2;
    }


    .products-background-section
    .product-card {
        background: rgba(255,255,255,.94);
        backdrop-filter: blur(5px);
    }


/* =========================================
       CTA
    ========================================= */

/* =========================================
   CTA قبل از فوتر
========================================= */

.cta {
    position: relative;
    overflow: hidden;
    padding: 85px 20px;
    color: #fff;
    background: radial-gradient( circle at 15% 50%, rgba(124,58,237,.30), transparent 32% ), radial-gradient( circle at 85% 50%, rgba(16,185,129,.22), transparent 32% ), linear-gradient( 135deg, #0b0715, #17102b 50%, #071c18 );
    border-top: 1px solid rgba(167,139,250,.12);
    border-bottom: 1px solid rgba(52,211,153,.12);
}


    /* نورهای پس زمینه */

    .cta::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        left: -180px;
        top: -180px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(124,58,237,.20), transparent 70% );
        filter: blur(20px);
        pointer-events: none;
    }


    .cta::after {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        right: -150px;
        bottom: -180px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(16,185,129,.18), transparent 70% );
        filter: blur(20px);
        pointer-events: none;
    }


/* کانتینر */

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
    text-align: center;
}


    /* برچسب */

    .cta-container::before {
        content: "RXG SHOP";
        display: inline-block;
        margin-bottom: 16px;
        padding: 7px 15px;
        border-radius: 30px;
        color: #c4b5fd;
        background: rgba(124,58,237,.12);
        border: 1px solid rgba(167,139,250,.22);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 1px;
    }


/* عنوان */

.cta h2 {
    margin: 0 0 15px;
    font-size: clamp(30px,4vw,44px);
    line-height: 1.3;
    font-weight: 900;
    background: linear-gradient( 90deg, #ffffff, #d8b4fe, #6ee7b7 );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* توضیحات */

.cta p {
    margin: 0 auto 30px;
    max-width: 680px;
    color: #bdb9ca;
    font-size: 14px;
    line-height: 2;
}


/* دکمه‌ها */

.cta .hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}


.cta .hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 190px;
    padding: 14px 25px;
    border-radius: 13px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    transition: .25s ease;
}


/* فروشگاه */

.cta .hero-btn-primary {
    color: #fff;
    background: linear-gradient( 135deg, #7c3aed, #9333ea 45%, #10b981 );
    border: 1px solid rgba(196,181,253,.25);
    box-shadow: 0 12px 30px rgba(124,58,237,.28);
}


    .cta .hero-btn-primary:hover {
        color: #fff;
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(124,58,237,.42), 0 0 25px rgba(16,185,129,.15);
    }


/* وبلاگ */

.cta .hero-btn-secondary {
    color: #d1fae5;
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(52,211,153,.30);
    box-shadow: 0 10px 25px rgba(16,185,129,.08);
}


    .cta .hero-btn-secondary:hover {
        color: #fff;
        background: linear-gradient( 135deg, rgba(124,58,237,.25), rgba(16,185,129,.22) );
        transform: translateY(-4px);
        box-shadow: 0 18px 35px rgba(16,185,129,.20);
    }


/* خط نور روی دکمه */

.cta .hero-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient( 90deg, transparent, rgba(255,255,255,.25), transparent );
    transform: skewX(-20deg);
    transition: left .55s ease;
}


.cta .hero-btn:hover::before {
    left: 130%;
}


/* موبایل */

@media(max-width:600px) {

    .cta {
        padding: 65px 18px;
    }

        .cta .hero-actions {
            flex-direction: column;
            width: 100%;
        }

        .cta .hero-btn {
            width: 100%;
            max-width: 330px;
        }
}


/* =========================================
       ریسپانسیو
    ========================================= */

@media(max-width:900px) {

    .hero-container {
        grid-template-columns: 1fr;
    }


    .service-grid,
    .product-grid,
    .blog-grid {
        grid-template-columns: repeat(2,1fr);
    }


    .hero h1 {
        font-size: 37px;
    }
}


@media(max-width:800px) {

    .rxg-landing {
        min-height: 700px;
    }


    .hero-gun {
        width: 340px;
        max-width: 55vw;
        animation: gunEnter .9s cubic-bezier(.2,.8,.2,1) forwards, gunShoot .08s ease 1.9s forwards, gunLeave .4s ease 2.1s forwards;
    }


    .muzzle-flash {
        right: calc(13% + 300px);
        top: 50%;
        width: 85px;
        height: 85px;
        animation: muzzleShoot .12s ease-out 1.9s forwards;
    }


    .hero-content {
        right: 6%;
        width: 88%;
        top: 38%;
    }


        .hero-content h1 {
            font-size: 39px;
        }


        .hero-content p {
            font-size: 13px;
        }


    .hero-character-wrap {
        left: -30%;
        bottom: -8%;
        width: 95%;
        opacity: .55;
    }


    .rxg-landing .hero-buttons {
        flex-direction: column;
        width: 100%;
    }


    .rxg-landing .hero-btn {
        width: 100%;
    }
}


@media(max-width:600px) {

    .service-grid,
    .product-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }


    .hero {
        padding: 65px 15px;
    }


        .hero h1 {
            font-size: 30px;
        }


    .home-section {
        padding: 50px 15px;
    }


    .products-background-section {
        padding: 50px 15px;
    }
}