/* ============ 1. Design Tokens ============ */
:root {
    --bg: #070a15;
    --bg-soft: #0c1122;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --stroke: rgba(255, 255, 255, .08);
    --stroke-strong: rgba(255, 255, 255, .16);

    --brand: #7c6cff;
    --brand-2: #22d3ee;
    --brand-3: #f472b6;

    --text: #eef1fa;
    --muted: #9aa4c4;
    --dim: #6f7899;

    --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
    --grad-soft: linear-gradient(135deg, rgba(124, 108, 255, .18), rgba(34, 211, 238, .12));

    --r-sm: 14px;
    --r: 20px;
    --r-lg: 28px;
    --r-full: 999px;

    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
    --glow: 0 12px 40px -12px rgba(124, 108, 255, .65);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --nav-h: 68px;
}

/* ============ 2. Reset ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss02";
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}

::selection {
    background: rgba(124, 108, 255, .4);
}

/* اسکرول‌بار سفارشی */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #232a45;
    border-radius: 99px;
    border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: #333c63;
}

/* ============ 3. Layout ============ */
.container {
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
}

section {
    padding: clamp(64px, 9vw, 110px) 0;
    position: relative;
}

/* پس‌زمینهٔ مِش نورانی */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.aurora::before,
.aurora::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .5;
}

.aurora::before {
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, #7c6cff, transparent 65%);
    top: -18vw;
    inset-inline-end: -10vw;
    animation: float1 22s ease-in-out infinite;
}

.aurora::after {
    width: 48vw;
    height: 48vw;
    background: radial-gradient(circle, #22d3ee, transparent 65%);
    top: 38vh;
    inset-inline-start: -14vw;
    animation: float2 26s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-4vw, 6vh, 0) scale(1.12);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(5vw, -7vh, 0) scale(1.15);
    }
}

/* شبکهٔ نقطه‌چین ظریف */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ============ 4. Header ============ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(7, 10, 21, .55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}

header.scrolled {
    border-bottom-color: var(--stroke);
    background: rgba(7, 10, 21, .82);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -.2px;
    flex-shrink: 0;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: var(--glow);
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 255, 255, .45), transparent 55%);
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-size: .93rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--r-full);
    transition: color .2s, background .2s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* دکمهٔ همبرگری */
.burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    place-items: center;
    gap: 5px;
    flex-direction: column;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}

body.menu-open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .burger span:nth-child(2) {
    opacity: 0;
}

body.menu-open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============ 5. Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: .96rem;
    background: var(--grad);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s;
    box-shadow: var(--glow);
    white-space: nowrap;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35), transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px -12px rgba(124, 108, 255, .8);
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn:active {
    transform: translateY(-1px) scale(.98);
}

.btn-sm {
    padding: 10px 18px;
    font-size: .88rem;
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--stroke-strong);
    box-shadow: none;
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, .3);
    box-shadow: none;
}

/* ============ 6. Hero ============ */
.hero {
    padding-top: clamp(56px, 10vh, 96px);
    padding-bottom: clamp(48px, 8vh, 80px);
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px 7px 16px;
    border-radius: var(--r-full);
    background: var(--surface);
    border: 1px solid var(--stroke);
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 26px;
    backdrop-filter: blur(10px);
}

.badge b {
    background: var(--grad);
    color: #fff;
    padding: 3px 11px;
    border-radius: var(--r-full);
    font-size: .76rem;
    font-weight: 700;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

.hero h1 {
    font-size: clamp(2.05rem, 6.2vw, 4rem);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-wrap: balance;
}

.gradient-text {
    background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 6s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero p.lead {
    color: var(--muted);
    font-size: clamp(1rem, 2.4vw, 1.14rem);
    max-width: 640px;
    margin: 0 auto 36px;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 54px;
}

/* آمار */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.stat b {
    display: block;
    font-size: clamp(1.2rem, 3.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.4;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span {
    font-size: .82rem;
    color: var(--dim);
}

/* ============ 7. Section head ============ */
.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto clamp(38px, 6vw, 60px);
}

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--brand-2);
    padding: 5px 14px;
    border-radius: var(--r-full);
    background: rgba(34, 211, 238, .1);
    border: 1px solid rgba(34, 211, 238, .22);
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 4.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.45;
    margin-bottom: 12px;
    text-wrap: balance;
}

.section-head p {
    color: var(--muted);
    font-size: .99rem;
    text-wrap: pretty;
}

/* ============ 8. Cards / Bento ============ */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.card {
    position: relative;
    grid-column: span 2;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    padding: 28px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform .35s var(--ease), border-color .3s, background .3s;
}

.card::before {
    content: "";
    position: absolute;
    inset-inline-end: -40%;
    top: -60%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(124, 108, 255, .35), transparent 70%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--stroke-strong);
    background: var(--surface-2);
}

.card:hover::before {
    opacity: 1;
}

.card.wide {
    grid-column: span 3;
}

.card .ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: var(--grad-soft);
    border: 1px solid var(--stroke);
    margin-bottom: 18px;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: .93rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    font-size: .76rem;
    padding: 5px 12px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--stroke);
    color: var(--muted);
}

/* ============ 9. Steps ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
}

.step {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    padding: 30px 26px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: transform .35s var(--ease), border-color .3s;
}

.step:hover {
    transform: translateY(-6px);
    border-color: var(--stroke-strong);
}

.step-num {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.15rem;
    background: var(--grad);
    color: #fff;
    box-shadow: var(--glow);
}

.step h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.step p {
    color: var(--muted);
    font-size: .92rem;
}

/* ============ 10. Legal / Contact ============ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    padding: clamp(24px, 4vw, 34px);
    backdrop-filter: blur(12px);
}

.panel h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.12rem;
    margin-bottom: 18px;
}

.panel h3 .ico {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--grad-soft);
    border: 1px solid var(--stroke);
    font-size: 18px;
}

.panel li {
    position: relative;
    padding-inline-start: 26px;
    color: var(--muted);
    font-size: .93rem;
    margin-bottom: 12px;
}

.panel li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad);
}

.panel li:last-child {
    margin-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--stroke);
    transition: border-color .3s, transform .3s var(--ease);
}

.contact-item:hover {
    border-color: var(--stroke-strong);
    transform: translateY(-4px);
}

.contact-item .ico {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: var(--grad-soft);
    border: 1px solid var(--stroke);
}

.contact-item strong {
    display: block;
    font-size: .92rem;
    margin-bottom: 2px;
}

.contact-item span,
.contact-item a {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.7;
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--brand-2);
}

.ltr {
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}

/* ============ 11. CTA ============ */
.cta-box {
    position: relative;
    text-align: center;
    padding: clamp(38px, 7vw, 66px) clamp(22px, 5vw, 50px);
    border-radius: var(--r-lg);
    border: 1px solid var(--stroke-strong);
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(124, 108, 255, .28), transparent 60%),
        var(--bg-soft);
    overflow: hidden;
}

.cta-box h2 {
    font-size: clamp(1.5rem, 4.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 14px;
    text-wrap: balance;
}

.cta-box p {
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 30px;
}

/* ============ 12. Footer ============ */
footer {
    border-top: 1px solid var(--stroke);
    padding: 46px 0 34px;
    margin-top: 30px;
    background: rgba(255, 255, 255, .015);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 26px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}

.footer-note {
    color: var(--dim);
    font-size: .86rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer-links a {
    color: var(--muted);
    font-size: .88rem;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--brand-2);
}

.badge-box {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    display: grid;
    place-items: center;
    min-width: 104px;
    min-height: 104px;
}

/* ============ 13. Reveal Animation ============ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ============ 14. Responsive ============ */
@media (max-width: 980px) {
    .bento {
        grid-template-columns: repeat(4, 1fr);
    }

    .card.wide {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 20px 24px;
        background: rgba(9, 12, 26, .97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--stroke);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: all .3s var(--ease);
    }

    body.menu-open .nav-links {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 13px 16px;
        font-size: 1rem;
        border-radius: var(--r-sm);
    }

    .burger {
        display: grid;
    }

    .nav-cta .btn {
        display: none;
    }

    .two-col,
    .steps,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 620px) {
    :root {
        --r-lg: 22px;
    }

    .container {
        width: min(1160px, 100% - 1.6rem);
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .card,
    .card.wide {
        grid-column: span 1;
        padding: 24px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .logo span {
        font-size: .92rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}