/* ─── Landing Page — منو ساز ─── */
:root {
    --bg: #0c1222;
    --bg-elevated: #141c30;
    --bg-card: #1a2438;
    --text: #f0f4fc;
    --text-muted: #94a3b8;
    --accent: #f97316;
    --accent-light: #fb923c;
    --accent-glow: rgba(249, 115, 22, 0.35);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-lg: 24px;
    --font: 'Vazirmatn', Tahoma, sans-serif;
    --header-h: 72px;
    --container: min(1120px, 100% - 40px);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body.landing {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: var(--container);
    margin-inline: auto;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: #fff;
    box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 12px 40px var(--accent-glow); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp svg { width: 22px; height: 22px; }

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-xl { padding: 18px 32px; font-size: 1.0625rem; border-radius: 14px; }

/* ─── Header ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(12, 18, 34, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
}
.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #ea580c);
    border-radius: 10px;
    color: #fff;
}
.brand-icon svg { width: 20px; height: 20px; }
.brand-text span { color: var(--accent); }

.nav-desktop {
    display: flex;
    gap: 28px;
}
.nav-desktop a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-desktop a:hover { color: var(--text); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
}
.nav-mobile a:hover { background: rgba(255,255,255,.05); color: var(--text); }

/* ─── Hero ─── */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 48px) 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.hero-glow--1 {
    width: 500px; height: 500px;
    top: -100px; right: -100px;
    background: rgba(249, 115, 22, 0.15);
}
.hero-glow--2 {
    width: 400px; height: 400px;
    bottom: 0; left: -100px;
    background: rgba(99, 102, 241, 0.12);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
}

.pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 999px;
    color: var(--accent-light);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-copy h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.hero-copy h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent-light), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 0 32px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text);
}
.hero-stats span { font-size: 0.8125rem; color: var(--text-muted); }

/* Hero preview — browser mockup */
.hero-device {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-preview {
    width: min(100%, 360px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04),
        0 32px 64px rgba(0,0,0,.45),
        0 0 80px rgba(249,115,22,.08);
    transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.hero-preview:hover {
    transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.06),
        0 40px 80px rgba(0,0,0,.5),
        0 0 100px rgba(249,115,22,.12);
}

.hero-preview-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    background: rgba(0,0,0,.35);
    border-bottom: 1px solid var(--border);
}
.hero-preview-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hero-preview-dot:nth-child(1) { background: #ef4444; }
.hero-preview-dot:nth-child(2) { background: #eab308; }
.hero-preview-dot:nth-child(3) { background: #22c55e; }

.hero-preview-url {
    flex: 1;
    margin-right: 8px;
    padding: 5px 10px;
    background: rgba(0,0,0,.35);
    border-radius: 8px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    direction: ltr;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-preview-screen {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #fff;
}
.hero-preview-screen iframe {
    position: absolute;
    top: 0;
    left: 50%;
    width: 390px;
    height: 844px;
    border: none;
    transform: translateX(-50%) scale(0.92);
    transform-origin: top center;
    pointer-events: none;
}

.device-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(12, 18, 34, 0.95);
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    transition: background var(--transition);
}
.device-badge:hover {
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-light);
}
.pulse {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    50% { opacity: .8; box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* ─── Trust bar ─── */
.trust-bar {
    border-block: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 20px 0;
}
.trust-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.trust-inner > span {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}
.trust-inner ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.trust-inner li {
    padding: 6px 14px;
    background: rgba(255,255,255,.05);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ─── Sections ─── */
.section { padding: 96px 0; }
.section-head { max-width: 560px; margin-bottom: 56px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-tag {
    display: inline-block;
    color: var(--accent-light);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.3;
}
.section-head p { color: var(--text-muted); margin: 0; font-size: 1.0625rem; }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249,115,22,.25);
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon--1 { background: rgba(249,115,22,.15); color: var(--accent-light); }
.feature-icon--2 { background: rgba(99,102,241,.15); color: #a5b4fc; }
.feature-icon--3 { background: rgba(34,197,94,.15); color: #4ade80; }
.feature-icon--4 { background: rgba(236,72,153,.15); color: #f472b6; }
.feature-icon--5 { background: rgba(14,165,233,.15); color: #38bdf8; }
.feature-icon--6 { background: rgba(234,179,8,.15); color: #facc15; }
.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.feature-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Demo section */
.section--demo { background: var(--bg-elevated); }
.demo-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}
.demo-copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 16px;
}
.demo-copy > p { color: var(--text-muted); margin: 0 0 24px; }
.demo-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.demo-checklist li {
    position: relative;
    padding: 8px 28px 8px 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}
.demo-checklist li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #22c55e;
    font-weight: 700;
}

.browser-frame {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,.35);
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0,0,0,.25);
    border-bottom: 1px solid var(--border);
}
.browser-bar span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
}
.browser-bar span:nth-child(1) { background: #ef4444; }
.browser-bar span:nth-child(2) { background: #eab308; }
.browser-bar span:nth-child(3) { background: #22c55e; }
.browser-url {
    flex: 1;
    margin-right: 12px;
    padding: 6px 12px;
    background: rgba(0,0,0,.3);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    direction: ltr;
    text-align: left;
}
.browser-frame iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

/* Steps */
.section--steps { background: var(--bg); }
.steps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}
.step-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent), #ea580c);
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.step-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}
.step-card a {
    color: var(--accent-light);
    font-weight: 600;
}
.step-card a:hover { text-decoration: underline; }

/* CTA */
.section--cta { padding-bottom: 120px; }
.cta-card {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card), #1e2a42);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    width: 400px; height: 400px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}
.cta-content { position: relative; }
.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 12px;
}
.cta-content > p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    margin: 0 0 32px;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 100px;
    background: var(--bg-elevated);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 8px 0 0;
    max-width: 280px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin: 16px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Mobile sticky CTA */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(12, 18, 34, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
}
.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 14px;
    box-shadow: 0 8px 32px var(--accent-glow);
}
.mobile-cta-btn svg { width: 22px; height: 22px; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
    .hero-grid-layout,
    .demo-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-lead { margin-inline: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-device { order: -1; }
    .hero-preview {
        width: min(100%, 320px);
        transform: none;
    }
    .hero-preview:hover { transform: none; }
    .hero-preview-screen { height: 440px; }
    .hero-preview-screen iframe { transform: translateX(-50%) scale(0.82); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-list { grid-template-columns: 1fr; }
    .demo-layout { text-align: right; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-desktop { display: none; }
    .nav-toggle { display: flex; }
    .header-actions .btn-ghost { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-bottom: 48px; }
    .section { padding: 64px 0; }
    .cta-card { padding: 40px 24px; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
    .mobile-cta { display: block; }
    .browser-frame iframe { height: 320px; }
}
