/* ========================================
   LF Core - Landing Page Styles
   Dark Theme - Purple Accent
   ======================================== */

/* ===== فونت ===== */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Medium.eot');
    src: url('../fonts/Vazir-Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --lp-bg: #0a0a1a;
    --lp-bg-secondary: #0f0f2a;
    --lp-bg-card: #151530;
    --lp-border: #1e1e40;
    --lp-purple: #8b5cf6;
    --lp-purple-light: #a78bfa;
    --lp-purple-dark: #7c3aed;
    --lp-purple-glow: rgba(139, 92, 246, 0.4);
    --lp-text: #f1f5f9;
    --lp-text-muted: #94a3b8;
    --lp-gradient: linear-gradient(135deg, #8b5cf6, #6366f1, #a855f7);
    --lp-gradient-dark: linear-gradient(135deg, #5b21b6, #4338ca, #7c3aed);
    --lp-success: #10b981;
    --lp-danger: #ef4444;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background: var(--lp-bg);
    color: var(--lp-text);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

/* ===== اسکرول بار ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--lp-bg); }
::-webkit-scrollbar-thumb { background: var(--lp-purple-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--lp-purple); }

/* ===== Particles Background ===== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== Preloader ===== */
.lp-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lp-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lp-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.lp-loader {
    width: 60px;
    height: 60px;
    border: 3px solid var(--lp-border);
    border-top-color: var(--lp-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Header ===== */
.lp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.lp-header.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--lp-border);
}

.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.lp-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--lp-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 0 20px var(--lp-purple-glow);
}

.lp-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--lp-text);
}

.lp-logo-text span {
    background: var(--lp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lp-nav-link {
    color: var(--lp-text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.lp-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lp-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.lp-nav-link:hover {
    color: var(--lp-text);
}

.lp-nav-link:hover::after {
    width: 100%;
}

.lp-nav-buttons {
    display: flex;
    gap: 12px;
}

.lp-btn {
    padding: 12px 28px;
    border-radius: 14px;
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.lp-btn-primary {
    background: var(--lp-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--lp-purple-glow);
}

.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
    color: white;
}

.lp-btn-outline {
    background: transparent;
    color: var(--lp-text);
    border: 1px solid var(--lp-border);
}

.lp-btn-outline:hover {
    border-color: var(--lp-purple);
    color: var(--lp-purple-light);
    background: rgba(139, 92, 246, 0.05);
}

.lp-btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 16px;
}

.lp-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--lp-text);
    font-size: 28px;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.lp-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.lp-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lp-hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.lp-hero-text h1 .highlight {
    background: var(--lp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-text p {
    font-size: 18px;
    color: var(--lp-text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

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

.lp-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.lp-hero-stat h3 {
    font-size: 32px;
    font-weight: 700;
    background: var(--lp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-stat p {
    font-size: 14px;
    color: var(--lp-text-muted);
    margin: 0;
}

.lp-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-hero-card {
    background: var(--lp-bg-card);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--lp-border);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.1);
    position: relative;
    width: 100%;
    max-width: 450px;
}

.lp-hero-card-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--lp-purple-glow), transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.lp-code-preview {
    background: #0a0a1a;
    border-radius: 16px;
    padding: 20px;
    font-family: monospace;
    font-size: 13px;
    color: var(--lp-text-muted);
    direction: ltr;
    text-align: left;
    border: 1px solid var(--lp-border);
}

.lp-code-preview .code-line { display: block; margin-bottom: 4px; }
.lp-code-preview .code-keyword { color: #c084fc; }
.lp-code-preview .code-string { color: #34d399; }
.lp-code-preview .code-comment { color: #64748b; }
.lp-cursor { animation: blink 1s infinite; color: var(--lp-purple-light); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== Features Section ===== */
.lp-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.lp-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.lp-section-title h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.lp-section-title h2 .highlight {
    background: var(--lp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-section-title p {
    color: var(--lp-text-muted);
    font-size: 18px;
}

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lp-feature-card {
    background: var(--lp-bg-card);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--lp-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.lp-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--lp-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.lp-feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--lp-purple-dark);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.lp-feature-card:hover::before {
    transform: scaleX(1);
}

.lp-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.lp-feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.lp-feature-card p {
    color: var(--lp-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== How It Works ===== */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.lp-step {
    text-align: center;
    position: relative;
}

.lp-step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--lp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px var(--lp-purple-glow);
}

.lp-step h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.lp-step p {
    color: var(--lp-text-muted);
    font-size: 14px;
}

/* ===== Pricing ===== */
.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.lp-pricing-card {
    background: var(--lp-bg-card);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid var(--lp-border);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.lp-pricing-card.featured {
    border-color: var(--lp-purple);
    background: linear-gradient(180deg, rgba(139,92,246,0.1), var(--lp-bg-card));
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(139,92,246,0.2);
}

.lp-pricing-badge {
    position: absolute;
    top: -14px;
    right: 50%;
    transform: translateX(50%);
    background: var(--lp-gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.lp-pricing-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.lp-pricing-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.lp-pricing-price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
}

.lp-pricing-price span {
    font-size: 16px;
    color: var(--lp-text-muted);
    font-weight: 400;
}

.lp-pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: right;
}

.lp-pricing-features li {
    padding: 10px 0;
    color: var(--lp-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.lp-pricing-features li .check {
    color: var(--lp-success);
}

/* ===== Testimonials Slider ===== */
.lp-testimonial-card {
    background: var(--lp-bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--lp-border);
    text-align: center;
}

.lp-testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--lp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin: 0 auto;
}

.lp-testimonial-text {
    color: var(--lp-text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.lp-testimonial-name {
    margin-top: 20px;
    font-weight: 700;
    font-size: 16px;
}

.lp-testimonial-role {
    color: var(--lp-text-muted);
    font-size: 13px;
}

.lp-stars {
    color: #fbbf24;
    margin-bottom: 12px;
    font-size: 18px;
}

/* ===== Footer ===== */
.lp-footer {
    position: relative;
    z-index: 1;
    background: var(--lp-bg-secondary);
    border-top: 1px solid var(--lp-border);
    padding: 60px 0 30px;
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.lp-footer-brand p {
    color: var(--lp-text-muted);
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.8;
}

.lp-footer h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.lp-footer ul {
    list-style: none;
}

.lp-footer ul li {
    margin-bottom: 12px;
}

.lp-footer ul li a {
    color: var(--lp-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.lp-footer ul li a:hover {
    color: var(--lp-purple-light);
}

.lp-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--lp-border);
    color: var(--lp-text-muted);
    font-size: 13px;
}

/* ===== Login Page Styles ===== */
.lp-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    background: var(--lp-bg);
}

.lp-auth-card {
    background: var(--lp-bg-card);
    border-radius: 24px;
    padding: 48px 40px;
    border: 1px solid var(--lp-border);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.lp-auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.lp-auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lp-auth-header p {
    color: var(--lp-text-muted);
    font-size: 14px;
}

.lp-auth-tabs {
    display: flex;
    background: var(--lp-bg);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 30px;
}

.lp-auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    color: var(--lp-text-muted);
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.lp-auth-tab.active {
    background: var(--lp-gradient);
    color: white;
}

.lp-auth-form { display: none; }
.lp-auth-form.active { display: block; }

.lp-form-group {
    margin-bottom: 20px;
}

.lp-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.lp-form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    color: var(--lp-text);
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lp-form-input:focus {
    outline: none;
    border-color: var(--lp-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.lp-form-input::placeholder {
    color: var(--lp-text-muted);
}

.lp-form-forgot {
    text-align: left;
    font-size: 13px;
}

.lp-form-forgot a {
    color: var(--lp-purple-light);
    text-decoration: none;
}

.lp-form-submit {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    justify-content: center;
}

.lp-otp-section {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}

.lp-otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    color: var(--lp-text);
    font-family: 'Vazir', sans-serif;
}

.lp-otp-input:focus {
    border-color: var(--lp-purple);
    outline: none;
}

.lp-timer {
    text-align: center;
    color: var(--lp-text-muted);
    font-size: 13px;
    margin: 16px 0;
}

.lp-timer span {
    color: var(--lp-purple-light);
    font-weight: 600;
}

/* ===== Toast ===== */
.lp-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    padding: 16px 24px;
    border-radius: 14px;
    color: white;
    font-size: 14px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.lp-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.lp-toast.success { background: var(--lp-success); }
.lp-toast.error { background: var(--lp-danger); }

/* ===== Mobile Menu ===== */
.lp-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--lp-bg-card);
    z-index: 9998;
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--lp-border);
}

.lp-mobile-menu.active {
    right: 0;
}

.lp-mobile-menu a {
    display: block;
    padding: 14px 0;
    color: var(--lp-text);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lp-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .lp-nav { display: none; }
    .lp-nav-buttons { display: none; }
    .lp-menu-toggle { display: block; }

    .lp-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lp-hero-text h1 { font-size: 36px; }
    .lp-hero-actions { justify-content: center; }
    .lp-hero-stats { justify-content: center; }
    .lp-hero-visual { display: none; }

    .lp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .lp-hero-text h1 { font-size: 28px; }
    .lp-section-title h2 { font-size: 28px; }
    .lp-hero-stats { gap: 20px; flex-wrap: wrap; }

    .lp-pricing-card.featured {
        transform: scale(1);
    }

    .lp-footer-grid {
        grid-template-columns: 1fr;
    }

    .lp-auth-card {
        padding: 30px 24px;
    }
}
