﻿@font-face {
    font-family: 'peyda-medium';
    src: url('../fonts/peyda-medium.ttf') format('truetype');
}

@font-face {
    font-family: 'post-regular';
    src: url('../fonts/post-regular.otf') format('opentype');
}

@font-face {
    font-family: 'vazirmatn-regular';
    src: url('../fonts/vazirmatn-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'post-bold';
    src: url('../fonts/post-bold.otf') format('opentype');
}

@font-face {
    font-family: 'sultan adan bold';
    src: url('../fonts/sultan adan bold.ttf') format('truetype');
}

@font-face {
    font-family: 'vazirmatn-bold';
    src: url('../fonts/vazirmatn-bold.ttf') format('truetype');
}

@font-face {
    font-family: 'vazirmatn-medium';
    src: url('../fonts/vazirmatn-medium.ttf') format('truetype');
}

@font-face {
    font-family: 'vazirmatn-thin';
    src: url('../fonts/vazirmatn-thin.ttf') format('truetype');
}

@font-face {
    font-family: 'PelakFA-Black';
    src: url('../Fonts/PelakFA-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Estedad';
    src: url('../Fonts/Estedad-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
/* اگر وزن‌های دیگر داری مثل Medium, Bold هم اضافه کن */

h1, h2, h3 {
    font-family: 'PelakFA-Black', sans-serif !important;
}

body, p, span, li {
    font-family: 'Estedad', sans-serif !important;
}


:root {
    --bg1: #f9fbff;
    --bg2: #f7fff9;
    --bg3: #fff7fb;
    --bg4: #f5f8ff;
    --text: #0b1220;
    --muted: #506174;
    --brand: #4f7bff;
    --brand2: #13d0e1;
    --brand3: #a78bfa;
    --line: rgba(0,0,0,.08);
    --card: #fff;
    --soft: #f7f9fc;
    --shadow: 0 12px 28px rgba(0,0,0,.12);
    --r: 18px;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%;
    user-select: none;
}

body {
    margin: 0;
    font-family: 'Vazirmatn',system-ui;
    color: var(--text);
    line-height: 1.75;
    background: radial-gradient(900px 460px at 100% 0%, rgba(79,123,255,.18), transparent 60%), radial-gradient(700px 380px at 0% 20%, rgba(19,208,225,.15), transparent 60%), radial-gradient(800px 420px at 60% 100%, rgba(167,139,250,.14), transparent 60%), linear-gradient(135deg,var(--bg1),var(--bg4),var(--bg2),var(--bg3));
    background-size: 140% 140%;
    animation: bgFlow 80s ease-in-out infinite
}

@keyframes bgFlow {
    0% {
        background-position: 0% 0%
    }

    50% {
        background-position: 100% 70%
    }

    100% {
        background-position: 0% 0%
    }
}

.container {
    width: min(1200px,92%);
    margin-inline: auto;
}

/* NAV */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line)
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 0
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: .6rem
}

    .logo-wrap img {
        width: 44px;
        height: 44px;
        border-radius: 12px
    }

.brand-title {
    font-weight: 900
}

nav .menu {
    display: flex;
    gap: .6rem
}

    nav .menu a {
        padding: .6rem .9rem;
        border-radius: 10px;
        color: #425369;
        text-decoration: none
    }

        nav .menu a:hover {
            background: rgba(0,0,0,.04);
            color: #111
        }

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff
}

    .hamburger i {
        color: #0b1220
    }

/* Login button */
.btn-login {
    font-family: 'Vazirmatn',system-ui;
    font-weight: 900;
    font-size: 16px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(135deg,var(--brand2),var(--brand3));
    color: #0b1220;
    box-shadow: 0 10px 24px rgba(19,208,225,.25);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: .6rem
}

    .btn-login::after {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: inherit;
        background: linear-gradient(135deg,transparent,rgba(255,255,255,.35),transparent);
        transform: translateX(-120%);
        transition: transform .6s ease
    }

    .btn-login:hover {
        background: linear-gradient(135deg,var(--brand3),var(--brand))
    }

        .btn-login:hover::after {
            transform: translateX(120%)
        }

/* HERO + fancy bg */
.hero {
    padding: clamp(28px,4vw,56px) 0 40px;
    position: relative;
    isolation: isolate;
    overflow: hidden
}

    .hero::before {
        content: "";
        position: absolute;
        inset: -32px 0 -32px 0;
        z-index: -1;
        pointer-events: none;
        background: radial-gradient(700px 360px at 85% 20%, rgba(79,123,255,.18), transparent 60%), radial-gradient(560px 320px at 10% 70%, rgba(19,208,225,.16), transparent 65%), radial-gradient(620px 360px at 40% 100%, rgba(167,139,250,.16), transparent 60%), conic-gradient(from var(--a,0deg), #EAF3FF, #E7FFF9, #FFF0F4, #F5F8FF, #EAF3FF);
        filter: blur(28px);
        opacity: .9;
        background-size: 180% 180%,160% 160%,160% 160%,200% 200%;
        animation: heroGradient 42s ease-in-out infinite alternate
    }

@keyframes heroGradient {
    0% {
        --a: 0deg;
        background-position: 0% 40%,80% 20%,20% 80%,0% 50%
    }

    50% {
        --a: 180deg;
        background-position: 100% 60%,0% 60%,80% 20%,100% 50%
    }

    100% {
        --a: 360deg;
        background-position: 0% 40%,80% 20%,20% 80%,0% 50%
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px;
    align-items: center
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(79,123,255,.15);
    border: 1px solid rgba(79,123,255,.35);
    font-weight: 800;
    color: #1f2a44;
    font-family: 'Estedad', sans-serif !important;
}

    .chip i {
        color: #ffbf00
    }

.headline {
    font-size: clamp(28px,4.6vw,48px);
    margin: 10px 0 .6rem;
    font-weight: 900;
    line-height: 1.35;
    font-family: 'PelakFA-Black', sans-serif !important;
    color: #2c2c2c;
}

    .headline .grad {
        background: linear-gradient(90deg,#6a7cff,#28d3e3);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-family: 'PelakFA-Black', sans-serif !important;
    }


.subhead {
    color: #536477;
    margin: 0 0 1rem;
    text-align: justify;
    text-justify: inter-word;
    font-family: 'Estedad', sans-serif !important;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: .4rem 0
}

.stat {
    padding: .55rem .9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
    color: #263244
}

.hero-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0
}

.hero-media {
    position: relative;
    border-radius: 20px;
    padding: 0;
    background: none
}

    .hero-media::before {
        content: "";
        position: absolute;
        inset: -20px;
        border-radius: 28px;
        z-index: 0;
        background: radial-gradient(55% 60% at 50% 95%, rgba(99,163,255,.35), rgba(19,208,225,.25) 60%, transparent 70%), radial-gradient(45% 40% at 10% 0%, rgba(167,139,250,.22), transparent 70%);
        filter: blur(18px)
    }

    .hero-media .frame {
        position: relative;
        z-index: 1;
        border-radius: 18px;
        overflow: hidden;
        padding: 0;
        background: none;
        box-shadow: 0 26px 58px rgba(79,123,255,.22)
    }

    .hero-media video {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 12px;
        object-fit: cover
    }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: none;
    border-radius: 999px;
    padding: .9rem 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s
}

.btn-primary {
    background: linear-gradient(135deg,var(--brand),var(--brand2));
    color: #fff;
    box-shadow: 0 10px 20px rgba(79,123,255,.25)
}

    .btn-primary:hover {
        transform: translateY(-2px)
    }

.btn-ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: #202b3c
}

    .btn-ghost:hover {
        background: #f1f5f9
    }

/* SERVICES */
.section {
    padding: 52px 0
}

#services h2 {
    text-align: center;
    margin: 0 0 22px
}

.grid-3 {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3,1fr)
}

@media (max-width:1024px) {
    .grid-3 {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width:560px) {
    .grid-3 {
        grid-template-columns: 1fr
    }
}

/* Gradient cards */
.card {
    height: 100%;
    background: linear-gradient(135deg,var(--g1,#ffffff),var(--g2,#f7f9fc));
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px 18px 18px;
    padding-top: 56px;
    text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    position: relative;
    font-family: 'Estedad', sans-serif !important;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 60px rgba(79,123,255,.16);
        border-color: rgba(79,123,255,.25)
    }

/* خنثی‌کردن استایل لینک برای کارت‌های خدمات */
#servicesGrid a.card {
    display: block;
    color: var(--text); /* رنگ متن عادی */
    text-decoration: none; /* بدون زیرخط */
    font-family: 'Estedad', sans-serif !important;
}

    #servicesGrid a.card:link,
    #servicesGrid a.card:visited,
    #servicesGrid a.card:hover,
    #servicesGrid a.card:active {
        color: inherit;
        text-decoration: none;
    }

    /* رنگ تیتر و توضیح داخل کارت‌ها */
    #servicesGrid a.card h3 {
        color: #0b1220;
    }
    /* تیتر مشکی تیره */
    #servicesGrid a.card p {
        color: var(--muted);
    }
    /* توضیح خاکستری */

    /* اگر جایی زیرخط موند، این خط رو هم می‌تونی اضافه کنی */
    #servicesGrid a.card * {
        text-decoration: none;
    }







/* کارت wide: در دسکتاپ سه ستون پر کنه */
#servicesGrid .card.wide {
    grid-column: span 3; /* پر کردن کل عرض 3 ستون */
    text-align: justify;
    text-justify: inter-word;
    position: relative;
    z-index: 1;
}

/* در تبلت (2 ستون) پر کنه */
@media (max-width:1024px) {
    #servicesGrid .card.wide {
        grid-column: span 2;
    }
}

/* در موبایل (1 ستون) پر کنه */
@media (max-width:560px) {
    #servicesGrid .card.wide {
        grid-column: span 1;
    }
}






/* کارت تولید بارکد (wide) - رنگ متمایز */
#servicesGrid .card.wide {
    background: linear-gradient(135deg, #fffcea, #fff8dc); /* زرد ملایم */
    /*border: 2px solid #e74e00;*/ /* زرد برند */
    box-shadow: 0 16px 40px rgba(250, 204, 21, 0.25);
    font-family: 'Estedad', sans-serif !important;
   
}

    /* تغییر رنگ آیکون کارت بارکد */
    #servicesGrid .card.wide .icon {
        background: linear-gradient(135deg, #fef9c3, #fef08a);
        border: 1px solid #facc15;
        color: #ca8a04; /* زرد تیره‌تر برای آیکون */
    }


    #servicesGrid .card.wide .block {
        position: relative;
        margin: 300px auto 0;
        width: 500px;
        height: 250px;
        background: linear-gradient(0deg, #000, #272727);
    }

        #servicesGrid .card.wide.block:before, .block:after {
            content: '';
            position: absolute;
            left: -2px;
            top: -2px;
            background: linear-gradient(45deg, #fb009439, #0000ff30, #00ff0037,#ffff0030, #ff00002b, #fb009433, #0000ff36, #00ff0028,#ffff0035, #ff000035);
            background-size: 400%;
            /*width: calc(100% + 4px);*/
            height: calc(100% + 4px);
            z-index: -1;
            animation: steam 30s linear infinite;
            /*box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;*/
        }

@keyframes steam {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

#servicesGrid .card.wide.block:after {
    filter: blur(50px);
}
















#servicesGrid .service:nth-child(1) {
    --g1: #ECFEFF;
    --g2: #EEF2FF
}

#servicesGrid .service:nth-child(2) {
    --g1: #F4F3FF;
    --g2: #E0F2FE
}

#servicesGrid .service:nth-child(3) {
    --g1: #EFFFF7;
    --g2: #EEF7FF
}

#servicesGrid .service:nth-child(4) {
    --g1: #FFF7ED;
    --g2: #ECFEFF
}

#servicesGrid .service:nth-child(5) {
    --g1: #FFF1F2;
    --g2: #F1F5FF
}

#servicesGrid .service:nth-child(6) {
    --g1: #EAF8FF;
    --g2: #F5FFF7
}

.card .icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#e9fce9,#f5fff5);
    border: 1px solid #d8f5d8;
    color: #16a34a
}

    .card .icon i {
        font-size: 18px;
        line-height: 1
    }

/* FEATURES (ویدئوها) */
.features {
    margin-top: 8px
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center;
    margin: 32px 0
}

    .feature.reverse {
        direction: ltr
    }

        .feature.reverse > * {
            direction: rtl
        }

    .feature .box {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 20px;
        min-height: 140px;
        box-shadow: 0 18px 45px rgba(0,0,0,.08)
    }

        .feature .box.media {
            display: grid;
            place-items: center;
            overflow: hidden
        }

            .feature .box.media video {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 20px
            }

    .feature h2 {
        margin: 0 0 8px
    }

.muted {
    color: #5a6a7f
}

.t-justify {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto
}

/* FAQ */
.faq-wrap {
    max-width: 900px;
    margin: 10px auto
}

.faq-grid {
    display: grid;
    gap: 12px
}

.faq-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s
}

    .faq-card[open] {
        border-color: rgba(79,123,255,.35);
        box-shadow: 0 18px 45px rgba(0,0,0,.12)
    }

    .faq-card summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px
    }

.faq-head {
    display: flex;
    align-items: center;
    gap: 10px
}

.faq-ico {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#e9fce9,#f5fff5);
    border: 1px solid #d8f5d8;
    color: #16a34a
}

.chev {
    transition: transform .2s
}

.faq-card[open] .chev {
    transform: rotate(180deg)
}

.faq-body {
    padding: 0 16px 16px;
    color: #5a6a7f
}

/* FOOTER */
footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    margin-top: 36px;
    text-align: center;
    color: #5a6a7f;
    background: #fff
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 60
}

    .modal.open {
        display: flex;
        animation: fadeIn .2s ease
    }

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.modal-card {
    width: min(920px,96%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 30px 90px rgba(0,0,0,.25);
    background: #fff;
    transform: scale(.96) translateY(8px);
    opacity: 0;
    animation: modalPop .45s cubic-bezier(.2,.75,.25,1) forwards
}

@keyframes modalPop {
    to {
        transform: scale(1) translateY(0);
        opacity: 1
    }
}

.modal-aside {
    display: grid;
    place-items: center;
    background: radial-gradient(800px 400px at 10% 10%, rgba(79,123,255,.25), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(19,208,225,.25), transparent 60%),#0e162b
}

    .modal-aside img {
        width: 120px;
        filter: drop-shadow(0 20px 40px rgba(0,0,0,.35))
    }

.modal-body {
    padding: 22px;
    background: linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.85))
}

    .modal-body h3 {
        margin: 0 0 8px
    }

.input {
    position: relative;
    margin: 12px 0
}

    .input input {
        width: 100%;
        background: #f3f6ff;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 12px 44px 12px 12px;
        color: #0b1220;
        font-family: 'Vazirmatn',system-ui
    }

        .input input:focus {
            outline: none;
            border-color: rgba(79,123,255,.7);
            box-shadow: 0 0 0 4px rgba(79,123,255,.18)
        }

    .input i {
        position: absolute;
        inset-inline-start: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #6b7280
    }

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5a6a7f;
    margin-top: 6px
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px
}

.modal .btn {
    font-family: 'Vazirmatn',system-ui
}

.recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px
}

/* Alertify tweaks */
.ajs-dialog {
    direction: rtl;
    font-family: 'Vazirmatn',system-ui;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,.25)
}

.ajs-header {
    font-weight: 900;
    padding: 12px 16px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg,#eef2ff,#e6fffb)
}

.ajs-content {
    padding: 18px
}

.ajs-footer .ajs-buttons .ajs-ok {
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 800;
    border: 0;
    background: linear-gradient(135deg,var(--brand),var(--brand2));
    color: #fff
}

.dlg {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.dlg-ico {
    font-size: 28px;
    line-height: 1
}

/* Mobile nav + hero + modal */
@media (max-width:900px) {
    nav .menu {
        display: none;
        position: fixed;
        top: 70px;
        right: 12px;
        left: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
        padding: 10px;
        flex-direction: column;
        z-index: 70
    }

        nav .menu.open {
            display: flex
        }

        nav .menu a {
            padding: 12px;
            border-radius: 10px;
            color: #0b1220
        }

    .hamburger {
        display: inline-grid;
        place-items: center
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center
    }

        .hero-grid > div:first-child {
            display: flex;
            flex-direction: column;
            align-items: center
        }

    .stats {
        justify-content: center
    }

    .chip {
        margin-inline: auto
    }

    .hero-card {
        order: 2
    }

    .feature {
        grid-template-columns: 1fr
    }

    /* === Mobile modal fixes === */
    .modal {
        padding: 12px
    }

    .modal-card {
        width: 100%;
        max-width: 520px;
        grid-template-columns: 1fr;
        border-radius: 18px;
        transform: none;
        opacity: 1;
        animation: none;
        max-height: 92vh;
        overflow: auto
    }

    .modal-body {
        padding: 16px
    }

    .modal-aside img {
        width: 96px
    }

    .modal-actions .btn {
        flex: 1;
        justify-content: center
    }
}

@media (max-width:430px) {
    .modal {
        padding: 8px
    }

    .modal-card {
        width: 100vw;
        max-width: none;
        border-radius: 16px;
        max-height: 92vh;
        overflow: auto
    }

    .input input {
        font-size: 16px;
        padding: 12px 42px 12px 12px
    }

    .recaptcha-wrap {
        transform: scale(.92);
        transform-origin: center
    }
}

@media (max-width:360px) {
    .recaptcha-wrap {
        transform: scale(.86)
    }

    .modal-body {
        padding: 14px
    }
}

/* Alertify header overlap fix */
.ajs-header {
    position: relative;
    padding: 12px 52px 12px 16px !important
}

.ajs-close {
    right: 12px !important;
    left: auto !important
}


/* دکمه OK در مودال‌های Alertify: خوانا و با آیکون */
.ajs-footer .ajs-buttons .ajs-ok {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff !important; /* متن کاملاً سفید و خوانا */
    font-weight: 800;
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    letter-spacing: .2px;
    opacity: 1 !important; /* اگر تم پیش‌فرض کم‌رنگ می‌کند، خنثی شود */
    text-shadow: 0 1px 0 rgba(0,0,0,.1);
}

    .ajs-footer .ajs-buttons .ajs-ok:hover {
        filter: brightness(1.06);
    }

    /* آیکون تیک کنار «تأیید» (بدون نیاز به تغییر JS) */
    .ajs-footer .ajs-buttons .ajs-ok::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 14px;
        margin-left: .5rem; /* فاصله از متن فارسی */
        line-height: 1;
    }

/*   اسلایدر داخل هیرو*/

/* اندازه گام اسلاید؛ ارتفاع آیتمِ قابل نمایش */
:root {
    --stat-step: 48px;
}
/* دسکتاپ */
@media (max-width:560px) {
    :root {
        --stat-step: 44px;
    }
}
/* موبایل */







/* ========= Hero Stats — Crossfade ========== */

/* مدت چرخه و تاخیرها */
/* ====== Ticker: عمودی، نرم، بدون روی‌هم‌افتادن ====== */
/* ===== Unique 3D Flip Glow Ticker ===== */
:root {
    --stat-step: 48px; /* ارتفاع ناحیه */
    --step-dur: 4.2s; /* زمان هر آیتم */
}

/* ظرف تیکر */
.stats.ticker {
    display: block !important;
    position: relative;
    height: var(--stat-step);
    overflow: hidden;
    margin-top: 10px;
}

    .stats.ticker .track {
        position: relative;
        height: 100%;
    }

    /* کارت‌ها روی هم؛ یک چرخه‌ی مشترک برای همه */
    .stats.ticker .stat {
        position: absolute;
        left: 50%;
        top: 50%;
        /*transform: translate(-50%,-50%) rotateX(-55deg) translateY(14px) scale(.95);*/
        transform-origin: 50% 60%;
        opacity: 0;
        filter: blur(12px);
        white-space: nowrap;
        padding: .55rem .95rem;
        border-radius: 9px;
        background: #fff;
        border: 1px solid rgba(0,0,0,.06);
        /*box-shadow: 0 14px 42px rgba(59,130,246,.12);*/
        /* کل چرخه = count × step  */
        animation: cardCycle calc(var(--count) * var(--step-dur)) linear infinite;
    }

        /* هاله نرم */
        .stats.ticker .stat::before {
            content: "";
            position: absolute;
            inset: -35% -45%;
            z-index: -1;
            border-radius: 9px;
            background: radial-gradient(60% 60% at 30% 30%, rgba(59,130,246,.20), transparent 60%), radial-gradient(60% 60% at 70% 70%, rgba(34,211,238,.18), transparent 60%);
            filter: blur(16px);
            opacity: .65;
        }
        /* شاین مورب */
        /*.stats.ticker .stat::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: -30%;
            right: -10%;
            background: linear-gradient(110deg,transparent 35%,rgba(255,255,255,.75) 50%,transparent 65%);
            transform: translateX(-40%);
            animation: shineSweep calc(var(--step-dur)*.9) ease-in-out infinite;
        }*/

        /* فازِ هر آیتم با delay منفی پایدار می‌ماند */
        .stats.ticker .stat:nth-child(1) {
            --i: 0;
            animation-delay: calc(var(--i) * var(--step-dur) * -1);
        }

        .stats.ticker .stat:nth-child(2) {
            --i: 1;
            animation-delay: calc(var(--i) * var(--step-dur) * -1);
        }

        .stats.ticker .stat:nth-child(3) {
            --i: 2;
            animation-delay: calc(var(--i) * var(--step-dur) * -1);
        }

        .stats.ticker .stat:nth-child(4) {
            --i: 3;
            animation-delay: calc(var(--i) * var(--step-dur) * -1);
        }
/* اگر آیتم بیشتر شد، همین الگو را ادامه بده */

@keyframes cardCycle {
    /* 0% تا 100% یک اسلات 25٪ (برای 4 آیتم) را پوشش می‌دهیم */
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translate(-50%,-50%) rotateX(-55deg) translateY(14px) scale(.95);
    }

    10% {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%,-50%) rotateX(0) translateY(0) scale(1);
    }

    22% {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%,-50%) rotateX(0) translateY(0) scale(1);
    }

    25% {
        opacity: 0;
        filter: blur(10px);
        transform: translate(-50%,-50%) rotateX(35deg) translateY(-14px) scale(.97);
    }

    100% {
        opacity: 0;
        filter: blur(12px);
        transform: translate(-50%,-50%) rotateX(35deg) translateY(-14px) scale(.97);
    }
}

@keyframes shineSweep {
    to {
        transform: translateX(120%);
    }
}

/* کاهش موشن */
@media (prefers-reduced-motion: reduce) {
    .stats.ticker .stat, .stats.ticker .stat::after {
        animation: none;
    }

    .stats.ticker .stat {
        opacity: 1;
        transform: translate(-50%,-50%);
    }
}















/* سبز مرجع هم‌رنگ آیکون‌ها */
/* ـــــ تنظیم فاصله‌ی بالای کارت‌ها (برای جای آیکون) ـــــ */
#servicesGrid .card {
    padding-top: 4px; /* قبلاً 56px بود */
}

/* ـــــ هاله‌ی متحرکِ نرم پشت کارت (داخل خود کارت) ـــــ */
:root {
    --accent-green: #16a34a;
}

#servicesGrid .card {
    position: relative;
    overflow: hidden; /* blur بیرون نزند */
    border: 1px solid rgba(22,163,74,.28); /* مرز سبز ملایم ثابت */
    border-radius: 16px;
    z-index: 0;
    /* پالس خیلی ظریف برای مرز سبز */
    animation: borderPulse 3.6s ease-in-out infinite;
}

    #servicesGrid .card::before {
        content: "";
        position: absolute;
        inset: -14%;
        border-radius: inherit;
        pointer-events: none;
        z-index: 0;
        will-change: transform, filter, opacity;
        background: radial-gradient(50% 60% at 20% 10%, rgba(22,163,74,.20), transparent 30%), radial-gradient(55% 60% at 80% 20%, rgba(19,208,225,.18), transparent 30%), radial-gradient(60% 65% at 50% 70%, rgba(167,139,250,.18), transparent 30%), conic-gradient(from 0deg, rgba(22,163,74,0) 0%, rgba(22,163,74,.36) 25%, rgba(19,208,225,.30) 50%, rgba(167,139,250,.32) 75%, rgba(22,163,74,0) 100%);
        filter: blur(23px) hue-rotate(0deg) saturate(120%) brightness(108%);
        opacity: .2;
        /* چرخش نرم + نفس‌کشیدن رنگ‌ها */
        transform-origin: 50% 50%;
        animation: glowRotate 10s linear infinite, hueBreath 9.5s ease-in-out infinite alternate;
    }

    /* محتوا روی هاله بماند */
    #servicesGrid .card > * {
        position: relative;
        z-index: 1;
    }

    /* تاخیر پله‌ای تا همه کارت‌ها همزمان نرقصند */
    #servicesGrid .card:nth-child(2)::before {
        animation-delay: -6s,-1s;
    }

    #servicesGrid .card:nth-child(3)::before {
        animation-delay: -12s,-2s;
    }

    #servicesGrid .card:nth-child(4)::before {
        animation-delay: -18s,-3s;
    }

    #servicesGrid .card:nth-child(5)::before {
        animation-delay: -24s,-4s;
    }

    #servicesGrid .card:nth-child(6)::before {
        animation-delay: -30s,-5s;
    }

/* مرز سبز با پالس خیلی لطیف */
@keyframes borderPulse {
    0%,100% {
        box-shadow: 0 0 0 1px rgba(22,163,74,.26) inset;
    }

    50% {
        box-shadow: 0 0 0 1px rgba(22,163,74,.40) inset;
    }
}

/* چرخش لایه‌ی کُنیک */
@keyframes glowRotate {
    to {
        transform: rotate(360deg);
    }
}

/* تنفس رنگ‌ها */
@keyframes hueBreath {
    0% {
        filter: blur(6px) hue-rotate(0deg) saturate(118%) brightness(106%);
        opacity: .12;
    }

    50% {
        filter: blur(2px) hue-rotate(18deg) saturate(135%) brightness(112%);
        opacity: .22;
    }

    100% {
        filter: blur(8px) hue-rotate(-12deg) saturate(122%) brightness(106%);
        opacity: .34;
    }
}

/* احترام به کاهش موشن */
@media (prefers-reduced-motion: reduce) {
    #servicesGrid .card {
        animation: none;
    }

        #servicesGrid .card::before {
            animation: none;
            filter: blur(4px);
            opacity: .15;
        }
}

/* دکمه‌ی «توضیحات بیشتر» (اگر قبلاً داری، همین بماند) */
#servicesGrid .card .more-soft {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22,163,74,.10), rgba(22,163,74,.18));
    border: 1px solid rgba(22,163,74,.25);
    color: #0d4b2a;
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(22,163,74,.12);
    transition: transform .2s, box-shadow .2s;
    font-family: 'Estedad', sans-serif !important;
}

#servicesGrid .card:hover .more-soft {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(22,163,74,.16);
}

/* آیکون سبز هماهنگ */
.card .icon {
    background: linear-gradient(135deg,#e9fce9,#f5fff5);
    border: 1px solid #d8f5d8;
    color: var(--accent-green);
}



/*-----------------------------------------------------------------*/

/* ==== Feature copy: تایپوگرافی و تزئین در لپ‌تاپ ==== */

/* اندازه‌ها در لپ‌تاپ/دسکتاپ معمولی */
@media (min-width: 1024px) {
    .feature h2 {
        font-size: clamp(24px, 2.2vw, 34px);
        line-height: 1.25;
        letter-spacing: -.2px;
    }

    .feature p {
        font-size: clamp(14px, 1.05vw, 18px);
        line-height: 1.9;
    }
}

/* ظرف متن کنار ویدئو: عرضِ خوانا + مرکز ثقل بهتر */
.feature > div:not(.media) {
    max-width: 560px; /* متن خیلی کش‌دار نشه */
}

/* تیتر جذاب: گلس‌مورفیسم با هاله‌ی سبز/آبیِ نرم */
.feature h2 {
    display: inline-block;
    position: relative;
    padding: .35rem .85rem;
    border-radius: 4px;
    color: #0b1220;
    /*background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.68));*/
    /*border: 1px solid rgba(22,163,74,.18);*/ /* سبز خیلی ملایم */
    /*box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;*/
    /*backdrop-filter: saturate(120%) blur(2px);*/
}

    /* هاله‌ی رنگی خیلی لطیف پشت تیتر (داخل همان کادر) */
    .feature h2::after {
        content: "";
        position: absolute;
        inset: -18% -12%; /* بزرگ‌تر تا با blur خوب پخش شود */
        z-index: -1;
        border-radius: inherit;
        background: radial-gradient(60% 70% at 20% 10%, rgba(22,163,74,.16), transparent 60%), radial-gradient(55% 65% at 80% 90%, rgba(19,208,225,.14), transparent 60%);
        filter: blur(10px);
        opacity: .8;
    }

/* پاراگراف جذاب: کپسول ملایم با گرادینت و خط‌چین کم‌رنگ */
.feature p {
    display: inline-block;
    margin-top: .6rem;
    padding: .6rem .9rem;
    border-radius: 12px;
    color: #344256;
    background: linear-gradient(135deg, rgba(22,163,74,.07), rgba(19,208,225,.06));
    border: 1px dashed rgba(22,163,74,.22);
    box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

/* در موبایل کمی ساده‌تر و فشرده‌تر */
@media (max-width: 560px) {
    .feature h2 {
        padding: .25rem .6rem;
        border-radius: 12px;
    }

    .feature p {
        padding: .5rem .75rem;
        border-radius: 10px;
    }
}

.feature h2 {
    background: linear-gradient(90deg,#0b1220,#0b1220); /* متن تیره */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}




/*----------------------------------------------------------------------------------------------------*/


/* ==== HERO text polish (blue theme kept) ==== */

/* تیتر بزرگ: هاله‌ی لطیف + سایه‌ی خیلی کم */
.hero .headline {
    position: relative;
    text-shadow: 0 3px 20px rgba(59,130,246,.12); /* blue glow */
}

    /* هاله‌ی ملایم پشت تیتر (داخل ناحیه، بیرون نزنَد) */
    .hero .headline::after {
        content: "";
        position: absolute;
        inset: -18% -6% -20% -6%;
        z-index: -1;
        border-radius: 24px;
        background: radial-gradient(60% 70% at 20% 25%, rgba(59,130,246,.18), transparent 60%), radial-gradient(60% 70% at 80% 75%, rgba(34,211,238,.16), transparent 60%);
        filter: blur(2px);
        opacity: .5;
    }

    /* بخش آبی گرادینتی موجود: فقط انیمیشن نرم روی همان پالت */
    .hero .headline .grad {
        background: linear-gradient(90deg,#3b82f6 0%,#22d3ee 40%,#60a5fa 70%,#3b82f6 100%);
        background-size: 220% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent; /* متن همون گرادینت آبی خودت */
        animation: heroGradShift 5s ease-in-out infinite;
    }

    /* زیرخطِ هایلایت ملایم برای spanهای بدون .grad */
    .hero .headline span:not(.grad) {
        position: relative;
    }

        .hero .headline span:not(.grad)::after {
            content: "";
            position: absolute;
            right: 0;
            left: 0;
            bottom: .15em;
            height: .44em;
            border-radius: 10px;
            /*background: linear-gradient(90deg, rgba(59,130,246,.18), rgba(34,211,238,.14));*/
            z-index: -1;
        }

/* پاراگراف زیر تیتر: کپسول شیشه‌ای لطیف */
.hero .subhead {
    display: inline-block;
    margin-top: .25rem;
    padding: .65rem .95rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.58));
    border: 1px solid rgba(59,130,246,.16);
    box-shadow: 0 14px 36px rgba(59,130,246,.12);
    color: #415167; /* خوانایی بهتر */
}

/* اندازه‌ها روی لپ‌تاپ/دسکتاپ کمی درشت‌تر و لوکس‌تر */
@media (min-width: 1024px) {
    .hero .headline {
        font-size: clamp(22px, 3.8vw, 46px);
    }

    .hero .subhead {
        font-size: clamp(14px, 1.05vw, 18px);
    }
}

/* انیمیشن گرادینت (خیلی نرم) */
@keyframes heroGradShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* احترام به motion کمتر */
@media (prefers-reduced-motion: reduce) {
    .hero .headline .grad {
        animation: none;
    }
}


/* باکس توضیح هیرو: خط‌چین + قرمزِ ملایم */
.hero .subhead {
    display: block;
    position: relative;
    margin: 10px 0 0;
    padding: 14px 18px;
    border-radius: 14px;
    /* پس‌زمینه‌ی قرمز خیلی ملایم */
    background: #fff5f5; /* soft red */
    /* اگر ملایم‌تر خواستی:
     background: linear-gradient(180deg, rgba(255,77,77,.06), rgba(255,77,77,.03)); */
    /* خط‌چین ریز */
    border: 1.5px dashed rgba(239,68,68,.55); /* قرمز ملایم */
    /* سایه‌ی نرم قرمز */
    box-shadow: 0 12px 26px rgba(239,68,68,.08);
    color: #374151; /* خوانایی بهتر متن */
}

    /* اگر از قبل spanهای txt-grad گذاشته‌ای و نمی‌خواهی متن داخل این باکس گرادینتی باشد: */
    .hero .subhead .txt-grad {
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        color: inherit !important;
        animation: none !important;
        font-weight: inherit;
    }





/*-----------------------------------------------------------------------------------------------*/


/* اگر از قبل داری، همین را نگه دار؛ اگر نداری اضافه کن */
:root {
    --accent-green: #16a34a;
}

/* پنل سبزِ نرم برای باکس‌های داخلی (درباره ما / FAQ) */
.panel-green {
    position: relative;
    padding: 22px;
    border-radius: 18px;
    border: 1.5px solid rgba(22,163,74,.30); /* بردر سبز ملایم */
    background: radial-gradient(600px 240px at 100% 0%, rgba(34,197,94,.10), transparent 60%), radial-gradient(520px 200px at 0% 100%, rgba(20,184,166,.09), transparent 60%), linear-gradient(180deg, rgba(22,163,74,.05), rgba(255,255,255,.9)); /* گرادینت سبز/سفید خیلی نرم */
    box-shadow: 0 18px 48px rgba(22,163,74,.08);
}

    /* تیترهای داخل پنل سبز */
    .panel-green h2 {
        margin: 0 0 14px;
    }

/* کارت‌های FAQ: بردر سبز و پس‌زمینه‌ی خیلی لطیف */
.faq-card {
    background: linear-gradient(180deg, rgba(22,163,74,.03), #fff);
    border: 1.5px solid rgba(22,163,74,.28);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(22,163,74,.06);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

    .faq-card[open] {
        border-color: rgba(22,163,74,.45);
        box-shadow: 0 16px 40px rgba(22,163,74,.10);
    }

    .faq-card summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
    }

        .faq-card summary::-webkit-details-marker {
            display: none;
        }

/* آیکون‌های سبز هماهنگ (ساعت/ربات/چرخ‌دنده/جستجو و...) */
.faq-ico {
    min-width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#e9fce9,#f5fff5);
    border: 1px solid #d8f5d8;
    color: var(--accent-green);
}

/* متن پاسخ */
.faq-body {
    padding: 0 16px 16px;
    color: #4b5563;
    line-height: 1.9;
}

/* لیست نکات در درباره‌ما */
.about-highlights {
    margin: 12px 0 0;
    padding: 0 18px;
    color: #374151;
}

    .about-highlights li {
        margin: .35rem 0;
    }

/* ریسپانسیو کوچک‌تر */
@media (max-width:560px) {
    .panel-green {
        padding: 18px;
    }

    .faq-card summary {
        padding: 12px 14px;
    }
}
