/* مسیر: assets/css/landing.css */

/* متغیرهای رنگی - پیش‌فرض: حالت روز (Light Mode) */
:root {
    --ld-bg: #f8fafc;
    --ld-text: #0f172a;
    --ld-text-muted: #475569;
    --ld-card: #ffffff;
    --ld-border: #e2e8f0;
    --ld-primary: #ef4444;
    --ld-primary-hover: #dc2626;
    --ld-accent: #3b82f6;
    --ld-glow: rgba(239, 68, 68, 0.1);
    --ld-glass: rgba(255, 255, 255, 0.85);
}

/* حالت شب (Dark Mode) */
body.dark-mode {
    --ld-bg: #0f172a;
    --ld-text: #f8fafc;
    --ld-text-muted: #94a3b8;
    --ld-card: #1e293b;
    --ld-border: #334155;
    --ld-glow: rgba(59, 130, 246, 0.15);
    --ld-glass: rgba(15, 23, 42, 0.85);
}

/* تنظیمات پایه */
body.landing-body { 
    padding-top: 0; 
    background-color: var(--ld-bg); 
    color: var(--ld-text); 
    overflow-x: hidden; 
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

/* هدر شیشه‌ای و واکنش‌گرا */
.glass-nav { 
    position: fixed; top: 0; width: 100%; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; 
    background: var(--ld-glass); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--ld-border); z-index: 1000; box-sizing: border-box; transition: 0.3s;
}
.logo-text { font-size: 1.8rem; font-weight: 900; background: linear-gradient(to right, var(--ld-primary), #f43f5e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; letter-spacing: 1px; }

/* دکمه‌های هدر */
.nav-actions { display: flex; align-items: center; gap: 15px; }
.btn-theme { background: var(--ld-card); border: 1px solid var(--ld-border); color: var(--ld-text); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.btn-theme:hover { background: var(--ld-border); transform: rotate(15deg); }
.btn-login { background: linear-gradient(45deg, var(--ld-primary), #f43f5e); color: white; padding: 10px 25px; border-radius: 50px; font-weight: bold; text-decoration: none; box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3); transition: 0.3s; font-size: 0.9rem; white-space: nowrap; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5); color: white; }

/* بخش قهرمان (Hero Section) */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 100px 20px 50px 20px; position: relative; }
.hero::before { content: ''; position: absolute; width: 70vw; height: 70vw; max-width: 800px; max-height: 800px; background: radial-gradient(circle, var(--ld-glow) 0%, transparent 60%); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; }

.badge-update { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: #3b82f6; padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: bold; margin-bottom: 30px; display: inline-flex; align-items: center; gap: 8px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; margin-bottom: 25px; line-height: 1.2; color: var(--ld-text); }
.hero h1 span { background: linear-gradient(to right, var(--ld-accent), #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: clamp(1rem, 2vw, 1.3rem); max-width: 800px; color: var(--ld-text-muted); margin-bottom: 40px; line-height: 1.8; }

/* شبکه‌ی ویژگی‌ها (Features Grid) */
.features-section { padding: 80px 5%; max-width: 1300px; margin: auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 15px; color: var(--ld-text); }
.section-header p { color: var(--ld-text-muted); font-size: 1.1rem; max-width: 600px; margin: auto; }

/* گرید کاملاً واکنش‌گرا (Responsive Grid) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-box { background: var(--ld-card); border: 1px solid var(--ld-border); padding: 40px 30px; border-radius: 20px; transition: 0.3s; text-align: right; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.feature-box:hover { transform: translateY(-10px); border-color: var(--ld-accent); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.icon-wrap { width: 65px; height: 65px; background: var(--ld-bg); border: 1px solid var(--ld-border); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin-bottom: 25px; transition: 0.3s; }
.feature-box:hover .icon-wrap { transform: scale(1.1); }
.feature-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; color: var(--ld-text); }
.feature-box p { color: var(--ld-text-muted); line-height: 1.8; font-size: 0.95rem; margin: 0; text-align: justify; }

/* Call to Action Section */
.cta-section { background: linear-gradient(135deg, var(--ld-primary), #f43f5e); padding: 80px 20px; text-align: center; color: white; margin-top: 50px; }
.cta-section h2 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: 20px; }
.cta-section p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px auto; opacity: 0.9; }
.btn-cta-white { background: white; color: var(--ld-primary); padding: 15px 40px; border-radius: 50px; font-size: 1.1rem; font-weight: bold; text-decoration: none; display: inline-block; transition: 0.3s; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-cta-white:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,0,0,0.2); }

/* Footer */
footer { background: var(--ld-card); border-top: 1px solid var(--ld-border); padding: 40px 20px; text-align: center; color: var(--ld-text-muted); font-size: 0.95rem; }

/* واکنش‌گرایی موبایل (Mobile Specific) */
@media (max-width: 480px) {
    .glass-nav { padding: 15px; }
    .logo-text { font-size: 1.4rem; }
    .btn-login { padding: 8px 15px; font-size: 0.8rem; }
    .btn-theme { width: 35px; height: 35px; font-size: 1rem; }
    .hero { padding-top: 120px; }
    .grid { grid-template-columns: 1fr; }
    .feature-box { padding: 30px 20px; text-align: center; }
    .icon-wrap { margin: 0 auto 20px auto; }
}
