@font-face {
    font-family: IRANSans;
    src: url("../font/IRANSansXV.woff2") format("woff2");
    font-weight: normal;
}


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


body {

    font-family: IRANSans, Tahoma, sans-serif;
    background: #f1e9dc;
    color: #062b70;
    direction: rtl;

}


.container {

    width: min(1200px, 92%);
    margin: auto;

}


.header {

    padding: 15px 0;

}


.header-inner {

    background: rgba(255, 255, 255, .85);
    height: 70px;
    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

}


.logo {

    width: 70px;
    object-fit: contain;

}


nav {

    display: flex;
    gap: 55px;

}


nav a {

    text-decoration: none;
    color: #002b63;
    font-size: 15px;
    transition: .3s;

}


nav a:hover {

    color: #ff8200;

}


.hero {
    position: relative;
    width: min(1200px, 92%);
    min-height: 520px;

    margin: 0 auto 0;

    display: flex;
    align-items: center;

    overflow: hidden;
    border-radius: 30px;
}

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.055) 45%,
            rgba(0, 0, 0, 0.015) 100%
    );

    z-index: 1;

    pointer-events: none;
}

.hero-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


.hero-content {
    position: relative;

    z-index: 2;

    width: 55%;

    text-align: right;
    margin: 40px;
}


.hero-content h1 {


    font-size: 40px;
    line-height: 1.7;

    color: #002b63;

    margin-bottom: 15px;

}


.hero-content h1 span {


    color: #ff8200;

}


.hero-content h2 {


    font-size: 15px;

    margin-bottom: 20px;

}


.hero-content p {


    color: #444;

    line-height: 2.2;

    font-size: 16px;
    text-align: justify;
}


.actions {


    display: flex;

    gap: 15px;

    margin-top: 30px;

}


.orange {
    position: relative;
    overflow: hidden;

    text-decoration: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 15px 30px;

    color: #fff;
    background: linear-gradient(
            135deg,
            #ff8a00 0%,
            #ff7200 100%
    );

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
            0 8px 20px rgba(255, 129, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);

    transition:
            transform 0.3s cubic-bezier(.2, .8, .2, 1),
            box-shadow 0.3s ease,
            background 0.3s ease;
}


/* لایه نور متحرک */
.orange::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background: linear-gradient(
            110deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 35%,
            rgba(255, 255, 255, 0.55) 50%,
            rgba(255, 255, 255, 0.08) 65%,
            transparent 100%
    );

    transform: skewX(-20deg);

    transition: left 0.6s ease;

    pointer-events: none;
}


/* Hover */
.orange:hover {
    transform: translateY(-4px);

    background: linear-gradient(
            135deg,
            #ff9500 0%,
            #ff7900 100%
    );

    box-shadow:
            0 14px 30px rgba(255, 129, 0, 0.32),
            0 5px 12px rgba(255, 129, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


.orange:hover::before {
    left: 140%;
}


/* هنگام کلیک */
.orange:active {
    transform: translateY(-1px) scale(0.98);

    box-shadow:
            0 5px 12px rgba(255, 129, 0, 0.2);
}


/* دسترسی با کیبورد */
.orange:focus-visible {
    outline: 3px solid rgba(255, 129, 0, 0.3);
    outline-offset: 3px;
}


.orange small {

    font-size: 12px;

}


/* ================= FEATURES ================= */


.features {
    position: relative;

    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.55),
            rgba(255, 255, 255, 0.18)
    );

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 25px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 1px rgba(255, 255, 255, 0.15);

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

    padding: 25px;

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;

    margin-top: 10px;

    overflow: hidden;
}

/* انعکاس نور روی شیشه */
.features::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 45%;
    height: 100%;

    background: linear-gradient(
            110deg,
            rgba(255, 255, 255, 0.35),
            transparent
    );

    pointer-events: none;
}

/* خط نور بالای شیشه */
.features::after {
    content: "";

    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;

    height: 1px;

    background: rgba(255, 255, 255, 0.8);

    pointer-events: none;
}

.feature {


    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    position: relative;
    flex-direction: column;

}


/* جداکننده بین ویژگی‌ها */
.feature:not(:last-child)::after {
    content: "";

    position: absolute;

    left: -10px;

    top: 15%;
    height: 70%;

    width: 1px;

    background: linear-gradient(
            to bottom,
            transparent,
            rgba(7, 86, 206, 0.18),
            transparent
    );
}

.feature span {


    font-size: 28px;

    color: #002b62;

}


.feature b {


    display: block;

    font-size: 14px;

}


.feature small {


    display: block;

    color: #777;

    margin-top: 5px;

    font-size: 11px;

}


.plans {


    display: grid;

    grid-template-columns:repeat(3, 1fr);

    gap: 30px;

    margin-top: 40px;

    margin-bottom: 40px;

}


.plan {
    position: relative;
    overflow: hidden;

    min-height: 270px;
    padding: 30px;

    text-align: center;

    background: rgba(255, 255, 255, 0.62);

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 25px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;

    cursor: pointer;
}


/* نور خیلی ملایم داخل کارت */
.plan::before {
    content: "";

    position: absolute;
    top: -80px;
    right: -80px;

    width: 180px;
    height: 180px;

    background: rgba(255, 255, 255, 0.45);

    border-radius: 50%;

    filter: blur(35px);

    opacity: 0.5;

    transition: transform 0.5s ease,
    opacity 0.35s ease;

    pointer-events: none;
}


/* Hover */
.plan:hover {
    transform: translateY(-10px) scale(1.02);

    border-color: rgba(255, 255, 255, 0.95);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}


.plan:hover::before {
    transform: scale(1.5);
    opacity: 0.8;
}


.plan:first-child {


    border-color: #002b62;

}

.plan:last-child {


    border-color: #002b62;

}


.plan.popular {


    border-color: #ff8100;

}


.plan label {


    position: absolute;

    top: -10px;

    right: 50%;

    transform: translateX(50%);


    background: #ff6235;

    color: white;

    padding: 8px 25px;

    border-radius: 20px;

    font-size: 13px;

}


.volume {


    display: inline-block;

    background: #002b63;

    color: white;

    padding: 10px 25px;

    border-radius: 25px;

}


.orange-volume {


    background: #ff8100;

}


.plan h3 {


    font-size: 23px;

    margin: 30px 0 15px;

}


.plan p {


    font-size: 14px;

    line-height: 2;

}


.plan strong {


    display: block;

    margin-top: 10px;

    font-size: 16px;

}


.plan button {


    width: 100%;

    background: #002b63;

    border: none;

    color: white;

    border-radius: 14px;

    padding: 14px;

    margin-top: 30px;

    cursor: pointer;


}


.popular button {


    background: #ff8100;

}


footer {


    margin-top: 30px;

}


.footer-inner {


    background: white;

    color: black;

    border-radius: 25px;

    padding: 25px;

    display: flex;

    justify-content: space-around;

    align-items: center;

}

.installment-popup-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 30px 15px;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;
    visibility: hidden;

    overflow-y: auto;
    overscroll-behavior: contain;

    transition: opacity 0.25s ease, visibility 0.25s ease;

    z-index: 99999;
}

.installment-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}


.installment-popup {
    position: relative;

    width: 450px;
    max-width: 100%;

    padding: 35px;

    margin: auto 0;

    background: #fff;

    border-radius: 20px;

    text-align: center;
    direction: rtl;

    transform: translateY(20px) scale(0.95);

    transition: transform 0.25s ease;

    box-sizing: border-box;
}

.installment-popup-overlay.active .installment-popup {
    transform: translateY(0) scale(1);
}


.installment-popup h2 {
    margin: 0 0 10px;

    font-size: 24px;
}


.installment-popup p {
    margin: 0;

    color: #666;

    line-height: 2;
    font-size: 13px;
}


/* Mobile */
@media (max-width: 576px) {

    .installment-popup-overlay {
        padding: 15px;
    }

    .installment-popup {
        padding: 25px 20px;

        border-radius: 18px;
    }

    .installment-popup h2 {
        font-size: 21px;
    }
}

.popup-close {
    position: absolute;

    top: 12px;
    left: 12px;

    width: 35px;
    height: 35px;

    border: 0;
    border-radius: 50%;

    background: #f3f3f3;

    font-size: 24px;

    cursor: pointer;
}

button {
    font-family: IRANSans, Tahoma, sans-serif;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .container {
    max-width: 550px;
    }
    .hero-image {
        display: none;
    }

    .hero-content {

        margin: 0;
    }

    .feature {
        position: relative;
        min-height: 65px;
        padding: 15px 0;
    }

    /* حذف خط عمودی */
    .feature:not(:last-child)::after {
        left: 10%;
        right: 10%;
        top: auto;
        bottom: 0;

        width: 80%;
        height: 1px;

        background: linear-gradient(
                to right,
                transparent,
                rgba(7, 86, 206, 0.18),
                transparent
        );
    }

    .hero {
        min-height: 650px;
        border-radius: 22px;
    }

    .hero-content {
        width: 100%;
        padding: 30px 25px;
        text-align: center;
    }


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

    .actions {
        flex-direction: column;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .plans {
        grid-template-columns: 1fr;
    }


    .menu-toggle {
        display: none;
    }

    .header-inner {

        height: auto;

        padding: 10px;

        flex-direction: column;

        gap: 20px;

    }


    nav {

        flex-direction: column;

        gap: 15px;

    }


    .hero-content h1 {

        font-size: 28px;

    }


    .actions {

        flex-direction: column;

    }


    .features {

        grid-template-columns:1fr;

    }


    .plans {

        grid-template-columns:1fr;

    }


    .footer-inner {

        flex-wrap: wrap;

        gap: 20px;
        text-align: center;
        

        

    }

    /* Mobile Hamburger Menu */
    .menu-toggle {

        display: none;

        background: #002b63;
        color: white;

        border: none;

        width: 45px;
        height: 45px;

        border-radius: 12px;

        font-size: 25px;

        cursor: pointer;

    }

    .header-inner {
        position: relative;
        display: flex;
        flex-direction: row-reverse;

    }


    .menu-toggle {

        display: flex;

        align-items: center;

        justify-content: center;

        order: 2;

    }


    .logo {

        order: 1;

    }


    .online-btn {

        order: 3;

    }


    .nav-menu {


        position: absolute;

        top: 80px;

        right: 0;

        width: 100%;

        background: white;

        border-radius: 20px;

        padding: 20px;

        box-shadow: 0 15px 30px rgba(0, 0, 0, .12);


        display: none;

        flex-direction: column;

        gap: 20px;

        z-index: 100;


    }


    .nav-menu.active {

        display: flex;

    }

    .hero-sec-mobile-pic {
        width: 100%;
        height: auto;
        display: block;
        margin: 15px 0 0 0;
        border-radius: 10px;
    }
    .logo{
        width: 50px;
    }

      .hero-content {
        width: 100%;
        margin: 0 auto;
    }

}

@media (max-width: 1000px) {

    nav {
        gap: 20px;
    }

    .hero {
        min-height: 560px;
    }

  
    .features {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature b {
        font-size: 12px;
    }
}

@media (min-width: 768px) {

    .menu-toggle {
        display: none;
    }

    .hero-sec-mobile {
        display: none;
    }
}