/* static/css/landing.css */
/* هم‌راستا با زبان طراحی home.css و توکن‌های رنگی common.css (آبی/بنفش) */

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

svg {
    display: block;
}


/* ══ نوار بالای صفحه ══ */
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5vw;
    gap: var(--gap);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-mark {
    display: flex;
}

.nav-logo-mark img {
    width: 80px;
}

.nav-brand-text {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--ink-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

.nav-links a {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--ink-600);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ══ HERO ══ */
.hero {
    margin: 0 auto;
    padding: 0px 5vw 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--primary);
    background: var(--primary-softer);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero-eyebrow svg {
    width: 14px;
    height: 14px;
    color: var(--purple);
}

.hero-h1 {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.03em;
    color: var(--ink-900);
    margin-bottom: 20px;
}

.hero-h1 span.grad {
    background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-sub {
    font-size: var(--text-2xl);
    color: var(--ink-600);
    max-width: 460px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-trust {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-base);
    color: var(--ink-400);
}

.trust-dots {
    display: flex;
}

.trust-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--card);
    background: linear-gradient(135deg, var(--primary), var(--purple));
    margin-inline-end: -8px;
}

/* hero visual */
.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
}

.hc-label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--ink-400);
    letter-spacing: .04em;
    margin-bottom: 16px;
}

.hc-stages {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.hc-stage {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hc-dot.done {
    background: var(--purple);
}

.hc-dot.active {
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

.hc-dot.idle {
    background: var(--ink-200);
}

.hc-stage-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink-900);
}

.hc-stage-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--ink-100);
    overflow: hidden;
}

.hc-stage-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--primary);
}

.hc-stage-fill.purple {
    background: var(--purple);
}

.hc-badge {
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
}

.hc-badge.done {
    background: var(--purple-soft);
    color: var(--purple);
}

.hc-badge.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.hc-badge.idle {
    background: var(--ink-100);
    color: var(--ink-400);
}

.hc-stat-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hc-stat {
    flex: 1;
    text-align: center;
}

.hc-stat-val {
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--ink-900);
}

.hc-stat-sub {
    font-size: var(--text-sm);
    color: var(--ink-400);
    margin-top: 2px;
}

.hc-stat-val.blue {
    color: var(--primary);
}

.hc-stat-val.purple {
    color: var(--purple);
}

/* نشان شناور */
.hc-float {
    position: absolute;
    left: -20px;
    bottom: 40px;
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink-900);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.hc-float-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--purple-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    flex-shrink: 0;
}

.hc-float-icon svg {
    width: 18px;
    height: 18px;
}

/* ══ جداکننده ══ */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 5vw;
}

/* ══ نوار آمار ══ */
.stats-bar {
    margin: 0 auto;
    padding: 48px 5vw;
    display: flex;
    gap: 0;
}

.stat-item-landing {
    flex: 1;
    text-align: center;
    padding: 0 24px;
    border-inline-start: 1px solid var(--border);
}

.stat-item-landing:first-child {
    border-inline-start: none;
}

.si-val {
    font-size: var(--text-6xl);
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--ink-900);
    line-height: 1;
}

.si-val .blue {
    color: var(--primary);
}

.si-val .purple {
    color: var(--purple);
}

.si-label {
    font-size: var(--text-lg);
    color: var(--ink-400);
    margin-top: 8px;
}

/* ══ عناوین بخش‌ها ══ */
.section {
    margin: 0 auto;
    padding: 64px 5vw;
}

.section-head-landing {
    margin-bottom: 52px;
}

.sh-eyebrow {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--primary);
    margin-bottom: 4px;
}

.sh-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--ink-900);
    line-height: 1.3;
    margin-bottom: 14px;
}

.sh-sub {
    font-size: var(--text-xl);
    color: var(--ink-600);
    max-width: 560px;
    line-height: 1.8;
}

/* ══ چگونه کار می‌کند ══ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.step-card {
    background: var(--card);
    padding: 32px 24px;
    position: relative;
}

.step-num {
    font-size: var(--text-7xl);
    font-weight: 900;
    color: var(--ink-100);
    line-height: 1;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-softer);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step-icon svg {
    width: 22px;
    height: 22px;
}

.step-icon.purple {
    background: var(--purple-soft);
    color: var(--purple);
}

.step-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink-900);
}

.step-desc {
    font-size: var(--text-lg);
    color: var(--ink-600);
    line-height: 1.75;
}

/* ══ امکانات ══ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.feat-card {
    background: var(--card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
    transition: box-shadow .2s, transform .2s;
}

.feat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feat-icon svg {
    width: 22px;
    height: 22px;
}

.feat-icon.blue {
    background: var(--primary-softer);
    color: var(--primary);
}

.feat-icon.purple {
    background: var(--purple-soft);
    color: var(--purple);
}

.feat-icon.amber {
    background: var(--amber-soft);
    color: var(--amber);
}

.feat-icon.red {
    background: var(--red-soft);
    color: var(--red);
}

.feat-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink-900);
}

.feat-desc {
    font-size: var(--text-lg);
    color: var(--ink-600);
    line-height: 1.8;
}

/* ══ اهداف حرفه‌ای ══ */
.goals-bg {
    background: linear-gradient(160deg, var(--ink-900) 0%, #232a4d 100%);
    padding: 40px 5vw 80px;
}

.goals-inner {
    margin: 0 auto;
}

.goals-inner .sh-title {
    color: var(--card);
}

.goals-inner .sh-sub {
    color: rgba(255, 255, 255, .6);
}

.goals-inner .sh-eyebrow {
    color: var(--blue-soft);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.goal-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: background .2s, border-color .2s;
}

.goal-card:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--blue-soft);
}

.goal-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: rgba(62, 99, 221, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-soft);
}

.goal-icon svg {
    width: 22px;
    height: 22px;
}

.goal-icon.purple {
    background: rgba(172, 99, 234, .22);
    color: #cda4f5;
}

.goal-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--card);
    margin-bottom: 6px;
}

.goal-desc {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, .55);
    line-height: 1.8;
}

/* ══ نظرات کاربران ══ */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.testi-card {
    background: var(--card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
}

.testi-quote-icon {
    color: var(--primary-soft);
    margin-bottom: 12px;
}

.testi-quote-icon svg {
    width: 26px;
    height: 26px;
}

.testi-quote {
    font-size: var(--text-lg);
    color: var(--ink-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testi-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--text-lg);
    font-weight: 700;
    flex-shrink: 0;
}

.testi-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ink-900);
}

.testi-role {
    font-size: var(--text-base);
    color: var(--ink-400);
}

/* ══ فراخوان نهایی ══ */
.cta-section {
    margin: 0 auto;
    padding: 80px 5vw;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--ink-900) 0%, #2a3a6e 100%);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 99, 221, .3) 0%, transparent 70%);
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(172, 99, 234, .25) 0%, transparent 70%);
}

.cta-box h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--card);
    letter-spacing: -.03em;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, .62);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ══ فوتر ══ */
.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 5vw;
    gap: var(--gap);
    border-top: 1px solid var(--border);
    color: var(--ink-400);
    font-size: var(--text-base);
}

/* ══ ریسپانسیو ══ */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 20px;
    }

    .hero-visual {
        display: none;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .stats-bar {
        flex-wrap: wrap;
    }

    .stat-item-landing {
        flex: 0 0 50%;
        border-inline-start: none;
        border-bottom: 1px solid var(--border);
        padding: 20px;
    }
}

@media (max-width: 580px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        display: none;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .landing-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hc-float {
        animation: none;
    }

    * {
        transition: none !important;
    }
}