/* صفحه فرود — ترکیب یک‌تکه، برندمحور */

.is-landing {
    --landing-ink: #10241f;
    --landing-muted: rgba(244, 240, 232, 0.82);
    --landing-sand: #e8dfd0;
    --landing-forest: #0d5c4f;
    --landing-forest-deep: #083f36;
    --landing-display: "Markazi Text", "Vazirmatn", Tahoma, sans-serif;
    background: #0a2e28;
}

.page-landing {
    background: #0a2e28;
}

.landing-main {
    width: 100%;
    margin: 0;
    flex: 1;
    padding: 0;
}

/* نوار بالا روی هیرو */
.topbar-landing {
    position: absolute;
    inset-inline: 0;
    top: 0;
    z-index: 30;
    background: transparent;
    border-bottom: 1px solid transparent;
    color: #f4f0e8;
    padding: 1.15rem clamp(1rem, 4vw, 2.5rem);
}

.topbar-landing .brand a {
    color: #f7f3ea;
    font-family: var(--landing-display);
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.topbar-landing .nav a {
    color: rgba(247, 243, 234, 0.78);
    border-radius: 8px;
}

.topbar-landing .theme-toggle {
    border-color: rgba(247, 243, 234, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #f7f3ea;
}

html[data-theme="dark"] .landing-flow {
    background:
        radial-gradient(circle at 85% 10%, rgba(60, 188, 159, 0.12), transparent 40%),
        linear-gradient(180deg, #15201c 0%, #0f1614 100%);
    color: var(--ink);
}

html[data-theme="dark"] .landing-flow__intro,
html[data-theme="dark"] .landing-steps p {
    color: var(--muted);
}

html[data-theme="dark"] .landing-steps,
html[data-theme="dark"] .landing-steps li {
    border-color: rgba(232, 239, 233, 0.12);
}

html[data-theme="dark"] .landing-steps__num {
    color: var(--accent);
}

html[data-theme="dark"] .footer-landing {
    background: #0a1613;
    color: rgba(232, 239, 233, 0.65);
}

/* هیرو تمام‌عرض */
.landing-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #f7f3ea;
}

.landing-hero__slides {
    position: absolute;
    inset: 0;
    background: #1a1208;
}

.landing-hero__slide {
    position: absolute;
    inset: 0;
    background-color: #1a1208;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease, transform 7s ease;
}

.landing-hero__slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.landing-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(20, 12, 4, 0.55) 0%, rgba(20, 12, 4, 0.18) 38%, rgba(12, 8, 3, 0.88) 100%),
        linear-gradient(90deg, rgba(18, 10, 4, 0.72) 0%, rgba(18, 10, 4, 0.22) 55%, rgba(18, 10, 4, 0.5) 100%);
}

.landing-hero__content {
    position: relative;
    z-index: 3;
    width: min(920px, calc(100% - 2.5rem));
    margin: 0 auto 12vh;
    padding-top: 6rem;
}

.landing-hero__dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
}

.landing-hero__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(247, 243, 234, 0.7);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.landing-hero__dot.is-active {
    width: 1.5rem;
    background: #f3ebe0;
    border-color: #f3ebe0;
}

.landing-brand {
    margin: 0 0 0.85rem;
    font-family: var(--landing-display);
    font-size: clamp(2.8rem, 8vw, 5.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.landing-title {
    margin: 0 0 0.9rem;
    max-width: 16ch;
    font-family: var(--landing-display);
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    font-weight: 600;
    line-height: 1.35;
    color: rgba(247, 243, 234, 0.95);
}

.landing-lead {
    margin: 0 0 1.75rem;
    max-width: 34ch;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.9;
    color: var(--landing-muted);
}

.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-landing-primary,
.btn-landing-ghost {
    border-radius: 12px;
    padding: 0.9rem 1.35rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-landing-primary {
    background: #f3ebe0;
    color: var(--landing-forest-deep);
}

.btn-landing-primary:hover {
    background: #fff;
    color: #062922;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-landing-ghost {
    background: transparent;
    color: #f7f3ea;
    border: 1px solid rgba(247, 243, 234, 0.45);
}

.btn-landing-ghost:hover {
    border-color: #f7f3ea;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transform: translateY(-2px);
}

/* بخش دوم — پایین فولد */
.landing-flow {
    background:
        radial-gradient(circle at 85% 10%, rgba(13, 92, 79, 0.18), transparent 40%),
        linear-gradient(180deg, #f3ebe0 0%, #ebe3d4 100%);
    color: var(--landing-ink);
    padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
}

.landing-flow__inner {
    width: min(980px, 100%);
    margin: 0 auto;
}

.landing-flow h2 {
    margin: 0 0 0.6rem;
    font-family: var(--landing-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
}

.landing-flow__intro {
    margin: 0 0 2.5rem;
    max-width: 36ch;
    color: #4d5c56;
    line-height: 1.85;
    font-size: 1.05rem;
}

.landing-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(16, 36, 31, 0.12);
}

.landing-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    align-items: start;
    padding: 1.45rem 0;
    border-bottom: 1px solid rgba(16, 36, 31, 0.12);
}

.landing-steps__num {
    font-family: var(--landing-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--landing-forest);
    line-height: 1;
    min-width: 2rem;
}

.landing-steps h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.landing-steps p {
    margin: 0;
    color: #5a6962;
    line-height: 1.8;
}

.footer-landing {
    background: #083f36;
    color: rgba(247, 243, 234, 0.7);
    margin: 0;
    border: 0;
}

/* موشن */
.reveal-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@keyframes hero-fade-hint {
    from { opacity: 0.96; }
    to { opacity: 1; }
}

@media (max-width: 720px) {
    .landing-hero__content {
        margin-bottom: 8vh;
    }

    .landing-brand {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
    }

    .landing-title {
        max-width: none;
    }

    .landing-cta {
        flex-direction: column;
    }

    .btn-landing-primary,
    .btn-landing-ghost {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .topbar-landing {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero__slide {
        transition: opacity 0.01s linear;
        transform: none;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
