/* Premium Landing CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --l-bg: #0b0f19; /* Very dark blue, almost black */
    --l-surface: #131b2f;
    --l-surface-glass: rgba(19, 27, 47, 0.6);
    --l-border: rgba(255, 255, 255, 0.1);
    --l-text: #f8fafc;
    --l-text-muted: #94a3b8;
    --l-primary: #6366f1;
    --l-primary-glow: rgba(99, 102, 241, 0.4);
    --l-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

body.landing-page {
    background-color: var(--l-bg);
    color: var(--l-text);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Background blob */
.l-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--l-primary);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.l-bg-blob.top-left { top: -200px; left: -200px; background: #6366f1; }
.l-bg-blob.bottom-right { bottom: -200px; right: -200px; background: #a855f7; opacity: 0.2; }

/* Navbar */
.l-nav {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
.l-nav.scrolled {
    background: rgba(11, 15, 25, 0.8);
    border-bottom: 1px solid var(--l-border);
    padding: 1rem 5%;
}
.l-logo {
    font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--l-text); text-decoration: none;
}
.l-logo span { background: var(--l-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.l-nav-links { display: flex; gap: 2rem; align-items: center; }
.l-nav-links a { color: var(--l-text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; font-size: 0.95rem; }
.l-nav-links a:hover { color: var(--l-text); }
.l-btn {
    background: var(--l-text); color: var(--l-bg); padding: 0.7rem 1.5rem; border-radius: 999px;
    font-weight: 700; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer;
}
.l-btn:hover { background: #e2e8f0; transform: translateY(-2px); }
.l-btn-primary { background: var(--l-gradient); color: white; box-shadow: 0 4px 15px var(--l-primary-glow); }
.l-btn-primary:hover { opacity: 0.9; box-shadow: 0 6px 20px var(--l-primary-glow); background: var(--l-gradient); }

/* Hero */
.l-hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 100px 5% 50px; position: relative;
}
.l-badge {
    background: rgba(255,255,255,0.05); border: 1px solid var(--l-border);
    padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
    color: var(--l-primary); margin-bottom: 2rem; display: inline-flex; align-items: center; gap: 8px;
}
.l-hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.1; font-weight: 900; margin-bottom: 1.5rem; letter-spacing: -1.5px;
}
.l-hero h1 .gradient-text {
    background: var(--l-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.l-hero p {
    font-size: 1.25rem; color: var(--l-text-muted); max-width: 600px; margin-bottom: 2.5rem; line-height: 1.6;
}

/* Floating Elements */
.l-float-container { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.l-glass-card {
    background: var(--l-surface-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--l-border); border-radius: 20px; padding: 1.5rem; color: white;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); position: absolute;
}
.fc-1 { top: 25%; left: 10%; width: 220px; transform: rotate(-5deg); }
.fc-2 { bottom: 20%; right: 10%; width: 240px; transform: rotate(3deg); }
.fc-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(99,102,241,0.2); display: flex; align-items: center; justify-content: center; color: var(--l-primary); margin-bottom: 1rem; }
.fc-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.fc-sub { font-size: 0.8rem; color: var(--l-text-muted); }

/* Sections */
.l-section { padding: 100px 5%; max-width: 1280px; margin: 0 auto; }
.l-section-header { text-align: center; margin-bottom: 4rem; }
.l-section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.l-section-header p { color: var(--l-text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

/* How it works */
.l-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; position: relative; }
.l-step {
    background: rgba(255,255,255,0.02); border: 1px solid var(--l-border); border-radius: 24px;
    padding: 3rem 2rem; text-align: center; transition: all 0.3s;
}
.l-step:hover { background: rgba(255,255,255,0.04); transform: translateY(-5px); border-color: rgba(255,255,255,0.15); }
.l-step-num { width: 50px; height: 50px; border-radius: 50%; background: var(--l-gradient); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; margin: 0 auto 1.5rem; }
.l-step h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.l-step p { color: var(--l-text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Features */
.l-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.l-feature {
    background: var(--l-surface); border: 1px solid var(--l-border); border-radius: 24px;
    padding: 2.5rem; overflow: hidden; position: relative;
    transition: all 0.3s;
}
.l-feature:hover { border-color: var(--l-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.l-feature-icon { font-size: 2rem; color: var(--l-primary); margin-bottom: 1.5rem; }
.l-feature h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.l-feature p { color: var(--l-text-muted); font-size: 0.95rem; line-height: 1.6; }

/* CTA */
.l-cta {
    background: var(--l-gradient); border-radius: 32px; padding: 5rem 2rem; text-align: center; margin: 5rem auto; position: relative; overflow: hidden; max-width: 1000px; box-shadow: 0 20px 40px var(--l-primary-glow);
}
.l-cta::before { content: ''; position: absolute; top:0;left:0;right:0;bottom:0; background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.1)"/></svg>'); }
.l-cta h2 { font-size: 3rem; font-weight: 900; color: white; margin-bottom: 1.5rem; position: relative; z-index: 10; padding: 0 2rem;}
.l-cta p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 2.5rem; position: relative; z-index: 10; padding: 0 2rem;}

.footer { border-top: 1px solid var(--l-border); padding: 3rem 5%; text-align: center; color: var(--l-text-muted); font-size: 0.9rem; margin-top: 2rem; }

/* Auth Modal Specifics */
.auth-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.auth-modal-overlay.open { opacity: 1; pointer-events: all; }
.auth-modal-box {
    background: #ffffff; color: #0f172a; border-radius: 24px; padding: 2.5rem; 
    width: 90%; max-width: 440px; position: relative;
    transform: scale(0.95) translateY(20px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.auth-modal-overlay.open .auth-modal-box { transform: scale(1) translateY(0); }
.auth-modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem; background: #f1f5f9; border: none; 
    width: 32px; height: 32px; border-radius: 50%; color: #64748b; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.auth-modal-close:hover { background: #e2e8f0; color: #0f172a; }

/* Form Elements inside Modal */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: #475569; }
.phone-input-wrap {
    display: flex; align-items: center; border: 2px solid #e2e8f0; border-radius: 12px; background: white; overflow: hidden; transition: all 0.3s ease;
}
.phone-input-wrap:focus-within { border-color: #6366f1; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15); }
.phone-input-wrap .prefix { padding: 0.9rem 1.2rem; background: #f8fafc; border-right: 2px solid #e2e8f0; font-weight: 800; color: #0f172a; }
.phone-input-wrap input { flex: 1; border: none; padding: 0.9rem 1rem; font-size: 1.05rem; outline: none; background: transparent; font-weight: 600; width: 100%; color: #0f172a;}
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.8rem 1.5rem; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; justify-content: center; width: 100%;}
.btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35); }
.btn-success { background: #10b981; color: white; }
.btn-ghost { background: #f1f5f9; color: #475569; }
.google-btn { display: flex; align-items: center; justify-content: center; background: white; color: #3c4043; border: 1.5px solid #dadce0; border-radius: 12px; padding: 0.9rem; font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%; transition: all 0.3s ease; margin-bottom: 1.5rem; }
.google-btn:hover { background: #f8fafc; }
.divider { display: flex; align-items: center; text-align: center; color: #94a3b8; margin: 1.5rem 0; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1.5px dashed #e2e8f0; }
.divider::before { margin-right: 1em; } .divider::after { margin-left: 1em; }
.auth-view { display: none; }
.auth-view.active { display: block; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media(max-width: 768px) {
    .l-nav-links { display: none; }
    .l-float-container { display: none; }
    .l-hero h1 { font-size: 2.5rem; }
    .l-cta h2 { font-size: 2rem; }
    .l-section { padding: 60px 5%; }
}
