﻿/* ==========================================================================
        TOKENS
        ========================================================================== */
:root {
    --bg-0: #05070d;
    --bg-1: #0a0e1a;
    --bg-2: #0d1226;
    --ink-0: #f4f7fc;
    --ink-1: #aab3c5;
    --ink-2: #6b7488;
    --blue-0: #2f6bff;
    --blue-1: #22d3ee;
    --violet: #7c5cff;
    --line: rgba(255,255,255,.10);
    --line-soft: rgba(255,255,255,.06);
    --glass: rgba(255,255,255,.05);
    --glass-strong: rgba(255,255,255,.09);
    --grad-brand: linear-gradient(120deg, var(--blue-0), var(--blue-1));
    --grad-brand-2: linear-gradient(135deg, var(--violet), var(--blue-0) 60%, var(--blue-1));
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --ff-display: 'Vazirmatn', sans-serif;
    --ff-body: 'Vazirmatn', sans-serif;
    --shadow-soft: 0 20px 60px rgba(0,0,0,.45);
    --ease-out: cubic-bezier(.16,1,.3,1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-0);
}

html, body {
    overflow-x: clip;
}

body {
    font-family: var(--ff-body);
    background: var(--bg-0);
    color: var(--ink-0);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss01" 1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

section {
    position: relative;
}

::selection {
    background: var(--blue-0);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* Background atmosphere */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(60% 45% at 18% 8%, rgba(47,107,255,.16), transparent 60%), radial-gradient(50% 40% at 85% 18%, rgba(34,211,238,.10), transparent 60%), radial-gradient(60% 50% at 50% 100%, rgba(124,92,255,.12), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: .02em;
    color: var(--blue-1);
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(12px);
}

    .eyebrow::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--grad-brand);
        box-shadow: 0 0 10px var(--blue-1);
    }

.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

    .section-head h2 {
        font-size: clamp(28px,4vw,44px);
        font-weight: 800;
        letter-spacing: -.02em;
        margin: 16px 0 14px;
        line-height: 1.25;
    }

    .section-head p {
        color: var(--ink-1);
        font-size: 16px;
    }

.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-brand);
    color: #04101f;
    box-shadow: 0 12px 30px -8px rgba(47,107,255,.7);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px -8px rgba(47,107,255,.85);
    }

.btn-ghost {
    background: var(--glass);
    border-color: var(--line);
    color: var(--ink-0);
    backdrop-filter: blur(10px);
}

    .btn-ghost:hover {
        background: var(--glass-strong);
        transform: translateY(-3px);
    }

.glass-card {
    background: linear-gradient(180deg, var(--glass-strong), var(--glass));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ==========================================================================
        NAV
        ========================================================================== */
.nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(1100px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(8,11,20,.55);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
}

.nav__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #04101f;
    font-weight: 900;
}

.nav__links {
    display: flex;
    gap: 26px;
    font-size: 14px;
    color: var(--ink-1);
}

    .nav__links a:hover {
        color: var(--ink-0);
    }

.nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav .btn {
    padding: 10px 20px;
    font-size: 13px;
}

.nav__burger {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--glass);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

    .nav__burger span {
        width: 16px;
        height: 2px;
        background: var(--ink-0);
        border-radius: 2px;
    }

@media (max-width:860px) {
    .nav__links {
        display: none;
    }

    .nav__cta .btn-ghost {
        display: none;
    }
}

/* ==========================================================================
        HERO
        ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 90px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
}

.hero__title {
    font-size: clamp(38px, 2.4vw, 68px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin: 22px 0 22px;
}

    .hero__title span {
        display: block;
    }

.hero__sub {
    font-size: 18px;
    color: var(--ink-1);
    max-width: 520px;
    margin-bottom: 34px;
}

.hero__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
}

.hero__stat b {
    display: block;
    font-size: 26px;
    font-weight: 800;
}

.hero__stat span {
    font-size: 13px;
    color: var(--ink-2);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .55;
    z-index: 0;
    background: var(--grad-brand);
}

.fs-1 {
    width: 220px;
    height: 220px;
    top: 6%;
    left: 2%;
    opacity: .18;
}

.fs-2 {
    width: 140px;
    height: 140px;
    bottom: 8%;
    left: 20%;
    background: var(--grad-brand-2);
    opacity: .16;
}

.fs-3 {
    width: 90px;
    height: 90px;
    top: 22%;
    right: 8%;
    opacity: .14;
}

.hero__scroll-cue {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--ink-2);
    font-size: 13px;
}

.mouse {
    width: 26px;
    height: 42px;
    border-radius: 16px;
    border: 2px solid var(--line);
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

    .mouse::before {
        content: "";
        width: 4px;
        height: 8px;
        border-radius: 3px;
        background: var(--blue-1);
        animation: mouse-wheel 1.6s ease-in-out infinite;
    }

@keyframes mouse-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    60% {
        opacity: .2;
    }

    100% {
        transform: translateY(14px);
        opacity: 0;
    }
}

/* ==========================================================================
        PHONE MOCKUP (shared component)
        ========================================================================== */
.phone {
    position: relative;
    width: 290px;
    height: 592px;
    margin: 0 auto;
    border-radius: 46px;
    padding: 12px;
    background: linear-gradient(160deg,#1b2333,#0a0e18 60%);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -20px rgba(0,0,0,.75), 0 0 90px -10px rgba(47,107,255,.25), inset 0 0 0 2px rgba(255,255,255,.03);
    flex-shrink: 0;
}

    .phone::after { /* side button */
        content: "";
        position: absolute;
        right: -3px;
        top: 120px;
        width: 3px;
        height: 56px;
        background: #222a3b;
        border-radius: 2px;
    }

.phone__notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 18px;
    background: #04060b;
    border-radius: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px;
}

    .phone__notch::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #1a2436;
    }

.phone__screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: radial-gradient(120% 100% at 50% 0%, #101a30, #060911 70%);
}

.phone__statusbar {
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 40px;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 6px 20px 0;
    font-size: 11px;
    color: var(--ink-1);
}

.phone__state {
    position: absolute;
    inset: 0;
    padding-top: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
    display: flex;
    flex-direction: column;
}

    .phone__state.active {
        opacity: 1;
        pointer-events: auto;
    }

/* --- generic phone-state visuals --- */
.ps-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 20px;
}

.ps-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: var(--blue-1);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ps-caption {
    font-size: 13.5px;
    color: var(--ink-1);
}

    .ps-caption b {
        color: var(--ink-0);
        display: block;
        margin-bottom: 4px;
        font-size: 14.5px;
    }

.ps-logo {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 26px;
    color: #04101f;
    box-shadow: 0 20px 40px -12px rgba(47,107,255,.7);
}

.ps-progress-track {
    width: 170px;
    height: 6px;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}

.ps-progress-fill {
    height: 100%;
    width: 12%;
    border-radius: 6px;
    background: var(--grad-brand);
}

.ps-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg,var(--violet),var(--blue-0));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
}

    .ps-badge em {
        position: absolute;
        top: -6px;
        left: -6px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #ff5a5f;
        font-style: normal;
        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 800;
    }

.ps-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34,211,238,.12);
    border: 2px solid var(--blue-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--blue-1);
}

/* website preview inside phone (step 1) */
.ps-web {
    padding: 14px;
}

.ps-web__bar {
    height: 26px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}

    .ps-web__bar span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--ink-2);
    }

.ps-web__hero {
    height: 70px;
    border-radius: 12px;
    background: var(--grad-brand);
    opacity: .35;
    margin-bottom: 10px;
}

.ps-web__line {
    height: 8px;
    border-radius: 6px;
    background: rgba(255,255,255,.09);
    margin-bottom: 8px;
}

    .ps-web__line.w60 {
        width: 60%;
    }

    .ps-web__line.w80 {
        width: 80%;
    }

    .ps-web__line.w40 {
        width: 40%;
    }

/* market publish (step5) */
.ps-market {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.ps-market__store {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #0d1930;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.ps-market__bar {
    width: 150px;
    height: 6px;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    overflow: hidden;
}

    .ps-market__bar i {
        display: block;
        height: 100%;
        width: 40%;
        background: var(--grad-brand);
        border-radius: 6px;
    }

/* full alive app UI */
.ps-app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ps-app__top {
    padding: 14px 16px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .ps-app__top b {
        font-size: 14px;
    }

.ps-app__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--grad-brand);
}

.ps-app__search {
    margin: 0 16px 12px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 11.5px;
    color: var(--ink-2);
    gap: 6px;
}

.ps-app__chips {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    overflow: hidden;
}

.ps-app__chip {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 10.5px;
    background: rgba(255,255,255,.06);
    color: var(--ink-1);
    border: 1px solid var(--line);
}

    .ps-app__chip.on {
        background: var(--grad-brand);
        color: #04101f;
        font-weight: 700;
        border-color: transparent;
    }

.ps-app__cards {
    flex: 1;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    overflow: hidden;
}

.ps-app__card {
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--line);
    padding: 8px;
}

    .ps-app__card i {
        display: block;
        height: 44px;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(47,107,255,.35), rgba(34,211,238,.25));
        margin-bottom: 8px;
    }

    .ps-app__card b {
        font-size: 10.5px;
        display: block;
    }

    .ps-app__card span {
        font-size: 10px;
        color: var(--ink-2);
    }

.ps-app__price-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--grad-brand);
    color: #04101f;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 8px;
}

.ps-app__nav {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--line);
    background: rgba(6,9,17,.7);
}

    .ps-app__nav i {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        opacity: .4;
    }

        .ps-app__nav i.on {
            opacity: 1;
            background: var(--grad-brand);
            border-radius: 8px;
        }

/* package price badge shown floating over alive UI */
.ps-app__pkg-badge {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8,12,22,.85);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 11.5px;
    text-align: center;
    opacity: 0;
    transition: opacity .4s;
    white-space: nowrap;
}

.phone[data-pkg]:not([data-pkg="0"]) .ps-app__pkg-badge {
    opacity: 1;
}

.ps-app__pkg-badge b {
    display: block;
    font-size: 14px;
    color: var(--blue-1);
}

/* ==========================================================================
        STORY (pinned phone build sequence)
        ========================================================================== */
.story {
    position: relative;
    z-index: 2;
    padding: 60px 0 0;
}

.story__grid {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.story__steps {
    flex: 1.1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.story__phone-col {
    flex: .9 1 0%;
    min-width: 0;
    position: relative;
    align-self: stretch;
}

.story__phone-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 60px 10px;
}

.step__num {
    font-size: 13px;
    color: var(--blue-1);
    font-weight: 700;
    letter-spacing: .05em;
}

.step__title {
    font-size: clamp(24px,3.2vw,34px);
    font-weight: 800;
    letter-spacing: -.02em;
    max-width: 420px;
}

.step__desc {
    color: var(--ink-1);
    max-width: 400px;
    font-size: 15.5px;
}

.step__emoji-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--line);
    font-size: 24px;
    margin-bottom: 6px;
}

/* the flying icon element that travels toward the phone */
.flying-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 20px;
    background: var(--glass-strong);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
    opacity: 0;
    will-change: transform, opacity;
}

@media (max-width:900px) {
    .story {
        padding: 30px 0 0;
    }

    .story__grid {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }

    /* phone is visually promoted above the steps and becomes the pinned element */
    .story__phone-col {
        order: -1;
        align-self: auto;
        position: relative;
        z-index: 20;
    }

    .story__phone-wrap {
        position: relative;
        top: auto;
        height: auto;
        padding: 18px 0 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, var(--bg-0) 78%, rgba(5,7,13,0));
    }

    .phone {
        transform: scale(.74);
        margin: -70px 0;
    }

    /* docked look while GSAP has this column pinned during the scroll story */
    .story__phone-col.is-pinned .story__phone-wrap {
        background: rgba(7,10,19,.82);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -26px rgba(0,0,0,.7);
    }

    .step {
        min-height: auto;
        padding: 34px 4px 46px;
        text-align: center;
        align-items: center;
    }

    .step__desc {
        margin: 0 auto;
    }

    .pkg-step {
        min-height: auto;
        padding: 34px 4px 46px;
        text-align: center;
        align-items: center;
    }

    .pkg-list li {
        text-align: right;
    }

    .flying-icon {
        display: none;
    }
}

/* ==========================================================================
        PACKAGES (continues inside same sticky phone context)
        ========================================================================== */
.pkg-step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 60px 10px;
}

.pkg-price {
    font-size: 34px;
    font-weight: 800;
}

    .pkg-price small {
        font-size: 14px;
        color: var(--ink-1);
        font-weight: 500;
    }

.pkg-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

    .pkg-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 14.5px;
        color: var(--ink-1);
    }

        .pkg-list li i {
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            border-radius: 6px;
            background: rgba(34,211,238,.15);
            color: var(--blue-1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            margin-top: 2px;
        }

.pkg-note {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 6px;
}

/* ==========================================================================
        WEBSITE PACKAGE SELECTOR
        ========================================================================== */
.selector {
    padding: 130px 0;
    z-index: 2;
}

.selector__tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 44px;
}

.selector__tab {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-1);
    background: var(--glass);
    border: 1px solid var(--line);
    transition: all .3s;
}

    .selector__tab.active {
        background: var(--grad-brand);
        color: #04101f;
        border-color: transparent;
    }

.selector__panel {
    display: none;
}

    .selector__panel.active {
        display: grid;
    }

.selector__panel {
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}

.plan-card {
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .4s var(--ease-out), border-color .4s;
}

    .plan-card:hover {
        transform: translateY(-8px);
        border-color: rgba(255,255,255,.22);
    }

    .plan-card.picked {
        border-color: var(--blue-1);
        box-shadow: 0 0 0 1px var(--blue-1), 0 30px 60px -20px rgba(34,211,238,.35);
    }

    .plan-card h3 {
        font-size: 19px;
        font-weight: 800;
    }

    .plan-card .price {
        font-size: 28px;
        font-weight: 800;
    }

        .plan-card .price small {
            font-size: 13px;
            color: var(--ink-2);
            font-weight: 500;
        }

    .plan-card ul {
        display: flex;
        flex-direction: column;
        gap: 9px;
        font-size: 13.5px;
        color: var(--ink-1);
        flex: 1;
    }

        .plan-card ul li {
            display: flex;
            gap: 8px;
            align-items: flex-start;
        }

            .plan-card ul li::before {
                content: "✓";
                color: var(--blue-1);
                font-weight: 800;
            }

    .plan-card button {
        margin-top: 6px;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: var(--glass);
        color: var(--ink-0);
        font-weight: 700;
        font-size: 14px;
        transition: all .3s;
    }

    .plan-card.picked button {
        background: var(--grad-brand);
        color: #04101f;
        border-color: transparent;
    }

.selector__summary {
    max-width: 640px;
    margin: 44px auto 0;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

    .selector__summary div span {
        display: block;
        font-size: 13px;
        color: var(--ink-2);
    }

    .selector__summary div b {
        font-size: 22px;
    }

@media (max-width:820px) {
    .selector__panel {
        grid-template-columns: 1fr;
    }

    .selector__summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
        PORTFOLIO
        ========================================================================== */
.portfolio {
    padding: 130px 0;
    z-index: 2;
}

.portfolio__rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 10px 4px 30px;
    scroll-snap-type: x proximity;
}

    .portfolio__rail::-webkit-scrollbar {
        height: 6px;
    }

    .portfolio__rail::-webkit-scrollbar-thumb {
        background: var(--line);
        border-radius: 6px;
    }

.pf-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pf-compare {
    position: relative;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #0b1120;
    border: 1px solid var(--line);
}

.pf-compare__before, .pf-compare__after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    transition: opacity .5s;
}

.pf-compare__before {
    background: linear-gradient(160deg,#1b2333,#0b1020);
    opacity: 1;
}

.pf-compare__after {
    background: linear-gradient(160deg,#0d1e3d,#081226);
    opacity: 0;
}

.pf-card:hover .pf-compare__before {
    opacity: 0;
}

.pf-card:hover .pf-compare__after {
    opacity: 1;
}

.pf-compare span {
    font-size: 11px;
    color: var(--ink-2);
    letter-spacing: .05em;
}

.pf-compare b {
    font-size: 16px;
}

.pf-card h4 {
    font-size: 15.5px;
    font-weight: 700;
}

.pf-card p {
    font-size: 13px;
    color: var(--ink-1);
}

/* ==========================================================================
        GALLERY (masonry + lightbox)
        ========================================================================== */
.gallery {
    padding: 130px 0;
    z-index: 2;
}

.gallery__grid {
    columns: 4 220px;
    column-gap: 18px;
}

.gallery__item {
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    cursor: zoom-in;
    position: relative;
}

    .gallery__item .ph {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 34px;
        background: linear-gradient(160deg,#101a32,#070b14);
        color: var(--ink-2);
    }

    .gallery__item:nth-child(1) .ph {
        height: 260px;
    }

    .gallery__item:nth-child(2) .ph {
        height: 180px;
    }

    .gallery__item:nth-child(3) .ph {
        height: 220px;
    }

    .gallery__item:nth-child(4) .ph {
        height: 300px;
    }

    .gallery__item:nth-child(5) .ph {
        height: 190px;
    }

    .gallery__item:nth-child(6) .ph {
        height: 240px;
    }

    .gallery__item:nth-child(7) .ph {
        height: 170px;
    }

    .gallery__item:nth-child(8) .ph {
        height: 250px;
    }

    .gallery__item::after {
        content: "مشاهده بزرگ‌نمایی";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(4,8,16,.7);
        opacity: 0;
        transition: opacity .3s;
        font-size: 13px;
        color: #fff;
    }

    .gallery__item:hover::after {
        opacity: 1;
    }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(3,5,10,.9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
}

    .lightbox.open {
        opacity: 1;
        pointer-events: auto;
    }

.lightbox__box {
    width: min(480px,86vw);
    height: min(560px,70vh);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: linear-gradient(160deg,#101a32,#070b14);
    border: 1px solid var(--line);
    transform: scale(.9);
    transition: transform .35s;
}

.lightbox.open .lightbox__box {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: 26px;
    left: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--line);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
        WHY US
        ========================================================================== */
.why {
    padding: 130px 0;
    z-index: 2;
}

.why__stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin-bottom: 80px;
}

.stat-card {
    padding: 26px;
    text-align: center;
}

    .stat-card b {
        display: block;
        font-size: 34px;
        font-weight: 800;
    }

    .stat-card span {
        font-size: 13px;
        color: var(--ink-2);
    }

.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-inline-start: 34px;
}

    .timeline::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: 9px;
        width: 2px;
        background: linear-gradient(var(--blue-0),var(--blue-1));
    }

.tl-item {
    position: relative;
    padding: 0 0 44px 0;
    padding-right: 34px;
}

    .tl-item:last-child {
        padding-bottom: 0;
    }

    .tl-item::before {
        content: "";
        position: absolute;
        right: 0;
        top: 4px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--bg-0);
        border: 2px solid var(--blue-1);
        box-shadow: 0 0 0 4px rgba(34,211,238,.12);
    }

    .tl-item h4 {
        font-size: 16.5px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .tl-item p {
        font-size: 14px;
        color: var(--ink-1);
    }

@media (max-width:820px) {
    .why__stats {
        grid-template-columns: repeat(2,1fr);
    }
    .hero__scroll-cue , .hero__phone-holder, .pin-spacer {
        display: none !important
    }
}

/* ==========================================================================
        CONTACT
        ========================================================================== */
.contact {
    padding: 130px 0;
    z-index: 2;
}

.contact__grid {
   /* display: grid;*/
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.contact__info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

    .contact__info h3 {
        font-size: 22px;
        font-weight: 800;
    }

.contact__row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact__row b {
    display: block;
    font-size: 15px;
}

.contact__row span {
    font-size: 12.5px;
    color: var(--ink-2);
}

.contact__map {
    margin-top: auto;
    height: 160px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(47,107,255,.15), rgba(34,211,238,.08)), repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(255,255,255,.03) 19px), repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255,255,255,.03) 19px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    font-size: 13px;
    gap: 8px;
}

.contact__form {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .field label {
        font-size: 13px;
        color: var(--ink-1);
    }

    .field input, .field textarea {
        background: rgba(255,255,255,.04);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 13px 16px;
        color: var(--ink-0);
        font-family: inherit;
        font-size: 14px;
        outline: none;
        transition: border-color .3s, background .3s;
    }

        .field input:focus, .field textarea:focus {
            border-color: var(--blue-1);
            background: rgba(255,255,255,.06);
        }

    .field textarea {
        resize: vertical;
        min-height: 100px;
    }

.contact__form .btn {
    width: 100%;
    margin-top: 6px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(34,211,238,.1);
    border: 1px solid rgba(34,211,238,.3);
    color: var(--blue-1);
    font-size: 13.5px;
}

    .form-success.show {
        display: flex;
    }

@media (max-width:900px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
        FOOTER
        ========================================================================== */
.footer {
    padding: 60px 0 30px;
    z-index: 2;
    border-top: 1px solid var(--line-soft);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer__brand {
    max-width: 320px;
}

    .footer__brand p {
        color: var(--ink-2);
        font-size: 13.5px;
        margin-top: 12px;
    }

.footer__cols {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer__col h5 {
    font-size: 13px;
    color: var(--ink-2);
    margin-bottom: 14px;
    letter-spacing: .03em;
}

.footer__col a {
    display: block;
    font-size: 13.5px;
    color: var(--ink-1);
    margin-bottom: 10px;
    transition: color .25s;
}

    .footer__col a:hover {
        color: var(--ink-0);
    }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 26px;
    border-top: 1px solid var(--line-soft);
    font-size: 12.5px;
    color: var(--ink-2);
    flex-wrap: wrap;
    gap: 14px;
}

.socials {
    display: flex;
    gap: 10px;
}

    .socials a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--glass);
        border: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition: all .3s;
    }

        .socials a:hover {
            background: var(--grad-brand);
            color: #04101f;
        }

/* responsive hero */
@media (max-width:980px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__sub {
        margin-inline: auto;
    }

    .hero__ctas {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }
}
