:root {
    --brand: #1fb5a4;
    --brand-dark: #0e7f74;
    --ink: #0d2b29;
    --muted: #5b7674;
    --bg: #f3fbfa;
    --card: #ffffff;
    --line: #d5ebe8;
    --ok: #1fb56a;
    --warn: #f0a51e;
    --radius: 20px;
}

* {
    box-sizing: border-box;
    margin: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Vazirmatn,Tahoma,sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.8;
    overflow-x: hidden;
        font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px
}

.wrap {
    max-width: 1220px;
    margin: auto;
    padding: 0 20px
}

/* پس‌زمینه‌ی متحرک */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    z-index: -1;
    animation: drift 18s ease-in-out infinite alternate
}

.b1 {
    width: 420px;
    height: 420px;
    background: var(--brand);
    top: -120px;
    left: -100px
}

.b2 {
    width: 340px;
    height: 340px;
    background: #7fe3d6;
    bottom: -100px;
    right: -80px;
    animation-delay: -6s
}

@keyframes drift {
    to {
        transform: translate(60px,50px) scale(1.15)
    }
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 12px 20px 0;
    transition: padding .5s cubic-bezier(.4,0,.2,1)
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1220px;
    padding: 7px 10px 7px 12px;
    border-radius: 99px;
    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(14,127,116,.10);
    transition: max-width .55s cubic-bezier(.4,0,.2,1),border-radius .55s,padding .55s,box-shadow .55s
}

.topbar.scrolled {
    padding: 0
}

    .topbar.scrolled .bar {
        max-width: 100vw;
        border-radius: 0;
        border-width: 0 0 1px 0;
        padding: 7px max(20px,calc((100vw - 1220px)/2 + 12px));
        box-shadow: 0 6px 24px rgba(14,127,116,.12)
    }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink)
}

    .logo i {
        width: 32px;
        height: 32px;
        border-radius: 10px 10px 10px 3px;
        background: linear-gradient(135deg,var(--brand),var(--brand-dark));
        display: grid;
        place-items: center;
        color: #fff;
        font-style: normal;
        font-size: .95rem
    }
    .logo img{
        width: 140px;
    }

nav {
    display: flex;
    gap: 6px;
    font-weight: 500;
    font-size: .95rem
}

    nav a {
        color: var(--muted);
        padding: 6px 16px;
        border-radius: 99px;
        transition: background .2s,color .2s
    }

        nav a:hover {
            color: var(--brand-dark);
            background: #e3f7f4
        }

.bar .btn {
    padding: 7px 22px;
    border-radius: 99px;
    font-size: .95rem
}

body {
    padding-top: 72px
}

html {
    scroll-padding-top: 72px
}

.btn {
    display: inline-block;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    transition: transform .2s,box-shadow .2s,background .2s
}

    .btn:hover {
        background: var(--brand-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(31,181,164,.35)
    }

    .btn.ghost {
        background: transparent;
        color: var(--brand-dark);
        border: 2px solid var(--brand)
    }

        .btn.ghost:hover {
            background: var(--brand);
            color: #fff
        }

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding: 36px 0 40px
}

h1 {
    font-size: clamp(2rem,4.6vw,3.3rem);
    line-height: 1.35;
    font-weight: 800
}

.hero p {
    color: var(--muted);
    font-size: 1.08rem;
    margin: 18px 0 30px;
    max-width: 480px
}

.cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

/* کارت زنده‌ی ارسال صورتحساب: تنها حرکت اصلی صفحه */
.live {
    background: var(--card);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 24px 60px rgba(14,127,116,.16);
    border: 1px solid var(--line);
    animation: float 6s ease-in-out infinite
}

@keyframes float {
    50% {
        transform: translateY(-10px)
    }
}

.live-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px
}

    .live-head b {
        font-size: 1.05rem
    }

.tag {
    font-size: .8rem;
    padding: 2px 12px;
    border-radius: 99px;
    background: #e3f7f4;
    color: var(--brand-dark);
    font-weight: 700;
    transition: .3s
}

    .tag.done {
        background: #dcf7e8;
        color: #12804a
    }

.tid {
    direction: ltr;
    text-align: left;
    font-family: ui-monospace,Consolas,monospace;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 18px;
    word-break: break-all
}

.steps {
    list-style: none;
    padding: 0;
    position: relative
}

    .steps::before {
        content: "";
        position: absolute;
        right: 13px;
        top: 10px;
        bottom: 10px;
        width: 2px;
        background: var(--line)
    }

    .steps .fill {
        position: absolute;
        right: 13px;
        top: 10px;
        width: 2px;
        height: 0;
        background: var(--brand);
        transition: height .8s ease
    }

    .steps li {
        position: relative;
        padding: 8px 44px 8px 0;
        color: var(--muted);
        transition: color .3s
    }

        .steps li::before {
            content: "";
            position: absolute;
            right: 5px;
            top: 14px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid var(--line);
            transition: .3s
        }

        .steps li.on {
            color: var(--ink);
            font-weight: 700
        }

            .steps li.on::before {
                border-color: var(--brand);
                background: var(--brand);
                box-shadow: 0 0 0 6px rgba(31,181,164,.18)
            }

        .steps li small {
            display: block;
            font-weight: 400;
            color: var(--muted);
            font-size: .82rem
        }

.live-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    display: flex;
    justify-content: space-between;
    font-size: .9rem
}

.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin: 36px 0
}

.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px
}

    .stat strong {
        display: block;
        font-size: 2rem;
        font-weight: 800;
        color: var(--brand-dark)
    }

    .stat span {
        color: var(--muted)
    }

h2 {
    font-size: 1.7rem;
    margin: 56px 0 24px
}

.features {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.f {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .25s,border-color .25s
}

    .f:hover {
        transform: translateY(-6px);
        border-color: var(--brand)
    }

    .f .ic {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: #e3f7f4;
        display: grid;
        place-items: center;
        font-size: 1.3rem;
        margin-bottom: 14px
    }

    .f h3 {
        margin-bottom: 6px
    }

    .f p {
        color: var(--muted);
        font-size: .95rem
    }

.band {
    margin: 64px 0 0;
    background: linear-gradient(120deg,var(--brand-dark),var(--brand));
    color: #fff;
    border-radius: 28px;
    padding: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap
}

    .band h2 {
        margin: 0
    }

    .band .btn {
        background: #fff;
        color: var(--brand-dark)
    }

footer {
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
    font-size: .9rem
}


.sub {
    color: var(--muted);
}

.legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    font-size: .9rem;
    color: var(--muted)
}

    .legend span::before {
        content: "";
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin-left: 8px;
        background: var(--c)
    }

.flow {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    counter-reset: n
}

.node {
    --c: var(--brand);
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px 20px;
    overflow: hidden;
    transition: transform .25s,border-color .25s,box-shadow .25s
}

    .node.send {
        --c: #3b82f6
    }

    .node.post {
        --c: var(--warn)
    }

    .node:hover {
        transform: translateY(-6px);
        border-color: var(--c);
        box-shadow: 0 16px 36px rgba(14,127,116,.12)
    }

    .node::after {
        content: "";
        position: absolute;
        inset-inline: 0;
        top: 0;
        height: 4px;
        background: var(--c);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform .5s
    }

    .node:hover::after, .node.in::after {
        transform: scaleX(1)
    }

    .node b.no {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: color-mix(in srgb,var(--c) 15%,#fff);
        color: var(--c);
        margin-bottom: 12px
    }

    .node h3 {
        font-size: 1rem;
        margin-bottom: 4px
    }

    .node p {
        color: var(--muted);
        font-size: .88rem;
        line-height: 1.7
    }

.rv {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease var(--d,0s),transform .6s ease var(--d,0s)
}

    .rv.in {
        opacity: 1;
        transform: none
    }

.marq {
    overflow: hidden;
    mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
    -webkit-mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)
}

.track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marq 32s linear infinite
}

.marq:hover .track {
    animation-play-state: paused
}

@keyframes marq {
    to {
        transform: translateX(50%)
    }
}

.cust {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 26px;
    font-weight: 700;
    white-space: nowrap
}

    .cust i {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: #e3f7f4;
        color: var(--brand-dark);
        display: grid;
        place-items: center;
        font-style: normal
    }

.note {
    color: var(--muted);
    font-size: .82rem;
    margin-top: 12px
}

footer p {
    margin-top: 6px
}

@media (max-width: 1000px) {
    .flow {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (max-width: 560px) {
    .flow {
        grid-template-columns: 1fr
    }
}

.pipe {
    display: flex;
    align-items: flex-start;
    margin-top: 44px;
    max-width: 500px
}

.pn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 84px;
    flex: none
}

.tile {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: #8aa8a5;
    animation: act 5.2s infinite;
    animation-delay: var(--d)
}

    .tile svg {
        width: 26px;
        height: 26px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round
    }

    .tile::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        border: 2px solid var(--brand);
        opacity: 0;
        animation: ring 5.2s infinite;
        animation-delay: var(--d)
    }

.pn small {
    font-size: .78rem;
    color: #8aa8a5;
    animation: lbl 5.2s infinite;
    animation-delay: var(--d)
}

.ln {
    flex: 1;
    height: 2px;
    margin-top: 25px;
    background: var(--line);
    position: relative;
    overflow: hidden;
    border-radius: 2px
}

    .ln::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 40%;
        background: linear-gradient(90deg,transparent,var(--brand),transparent);
        transform: translateX(100%);
        animation: flow 5.2s infinite;
        animation-delay: var(--d)
    }

@keyframes act {
    0% {
        background-color: #fff;
        color: #8aa8a5;
        border-color: var(--line);
        transform: none;
        box-shadow: none
    }

    5%,22% {
        background-color: var(--brand);
        color: #fff;
        border-color: var(--brand);
        transform: translateY(-5px) scale(1.07);
        box-shadow: 0 14px 26px rgba(31,181,164,.35)
    }

    32%,100% {
        background-color: #fff;
        color: #8aa8a5;
        border-color: var(--line);
        transform: none;
        box-shadow: none
    }
}

@keyframes ring {
    0%,4% {
        opacity: 0;
        transform: scale(1)
    }

    6% {
        opacity: .6
    }

    22% {
        opacity: 0;
        transform: scale(1.55)
    }

    100% {
        opacity: 0
    }
}

@keyframes lbl {
    0% {
        color: #8aa8a5
    }

    5%,22% {
        color: var(--ink)
    }

    32%,100% {
        color: #8aa8a5
    }
}

@keyframes flow {
    0% {
        transform: translateX(100%)
    }

    22%,100% {
        transform: translateX(-250%)
    }
}

@media (max-width: 420px) {
    .pn {
        width: 68px
    }

        .pn small {
            font-size: .7rem
        }
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr
    }

    .stats, .features {
        grid-template-columns: 1fr
    }

    nav {
        display: none
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}

/* منوی کشویی آموزش */
.dd {
    position: relative
}

.dd-t {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer
}

    .dd-t svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .25s
    }

.dd-m {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(14,127,116,.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s, transform .22s, visibility .22s;
    z-index: 60
}

    .dd-m::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 0;
        right: 0;
        height: 12px
    }

.dd:hover .dd-m, .dd:focus-within .dd-m, .dd.open .dd-m {
    opacity: 1;
    visibility: visible;
    transform: none
}

.dd:hover .dd-t svg, .dd.open .dd-t svg {
    transform: rotate(180deg)
}

nav .dd-m a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--ink);
    white-space: nowrap
}

    nav .dd-m a:hover {
        background: #e3f7f4;
        color: var(--brand-dark)
    }

/* منوی موبایل */
.burger, .mnav {
    display: none
}

@media (max-width: 860px) {
    .bar > .btn {
        display: none
    }

    .burger {
        display: block;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 12px;
        background: #e3f7f4;
        cursor: pointer;
        position: relative
    }

        .burger span {
            position: absolute;
            left: 11px;
            width: 18px;
            height: 2px;
            border-radius: 2px;
            background: var(--brand-dark);
            transition: transform .35s, top .35s, opacity .2s
        }

            .burger span:nth-child(1) {
                top: 13px
            }

            .burger span:nth-child(2) {
                top: 19px
            }

            .burger span:nth-child(3) {
                top: 25px
            }

        .burger.open span:nth-child(1) {
            top: 19px;
            transform: rotate(45deg)
        }

        .burger.open span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0)
        }

        .burger.open span:nth-child(3) {
            top: 19px;
            transform: rotate(-45deg)
        }

    .mnav {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 40;
        padding: 88px 22px 28px;
        overflow-y: auto;
        background: rgba(255,255,255,.97);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        clip-path: circle(0 at 8% 36px);
        visibility: hidden;
        transition: clip-path .6s cubic-bezier(.7,0,.2,1), visibility 0s .6s
    }

        .mnav.open {
            clip-path: circle(150% at 8% 36px);
            visibility: visible;
            transition: clip-path .6s cubic-bezier(.7,0,.2,1)
        }

        .mnav .st {
            opacity: 0;
            transform: translateY(18px);
            transition: opacity .25s, transform .25s
        }

        .mnav.open .st {
            opacity: 1;
            transform: none;
            transition: opacity .45s ease calc(.2s + var(--i) * .07s), transform .45s ease calc(.2s + var(--i) * .07s)
        }

    .m-link, .m-acc {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 17px 4px;
        font: inherit;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--ink);
        background: none;
        border: 0;
        border-bottom: 1px solid var(--line);
        text-align: right;
        cursor: pointer
    }

        .m-acc svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: var(--brand-dark);
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            transition: transform .3s
        }

    .m-item.open .m-acc svg {
        transform: rotate(180deg)
    }

    .m-item.open .m-acc {
        color: var(--brand-dark)
    }

    .m-sub {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows .35s ease
    }

    .m-item.open .m-sub {
        grid-template-rows: 1fr
    }

    .m-sub > div {
        overflow: hidden
    }

    .m-sub a {
        display: block;
        margin: 4px 14px 4px 0;
        padding: 12px 16px 12px 0;
        border-right: 3px solid var(--brand);
        padding-right: 14px;
        color: var(--muted);
        font-weight: 500
    }

    .m-cta {
        display: block;
        margin-top: 26px;
        padding: 15px;
        border-radius: 16px;
        text-align: center;
        font-size: 1.05rem
    }

    body.noscroll {
        overflow: hidden
    }
}
