@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
    --bg: #000000;
    --card-bg: #0a0a0a;
    --accent: #0066ff;
    --text: #ffffff;
    --muted: #9ca3af;
    --radius: 24px;
    --primary: #0066ff;
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden { display: none !important; }

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

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

/* --- NAVIGATION BAR --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { height: 40px; width: auto; }

.nav-links { display: flex; gap: 16px; align-items: center; }

.nav-btn {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
    padding: 8px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover { border-color: var(--accent); color: var(--accent); }

.signup-trigger { background: var(--accent); color: #fff; border: none; }

/* --- LANDING CONTENT --- */
.page { max-width: 1200px; margin: 0 auto; padding: 100px 24px 60px; }

header { text-align: center; margin-bottom: 40px; }
.brand { font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin-bottom: 12px; }
.hero-title { font-size: clamp(30px, 4vw, 52px); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.hero-sub { font-size: clamp(15px, 1.5vw, 18px); color: var(--muted); max-width: 800px; margin: 0 auto; }

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

.video-container {
    position: relative; width: 100%; max-width: 900px; margin: 24px auto;
    aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.step2-section { text-align: center; padding: 60px 24px; background: rgba(255,255,255,0.02); border-radius: 32px; border: 1px solid var(--border); margin-bottom: 60px; }
.step2-btn {
    display: inline-block; padding: 18px 40px; border-radius: 999px;
    background: linear-gradient(90deg, #0066ff, #22c55e); color: #fff;
    text-decoration: none; font-weight: 800; font-size: 18px; text-transform: uppercase;
    transition: var(--transition); border: none; cursor: pointer;
}
.step2-btn:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,102,255,0.4); }

/* --- FORM & MODAL INPUTS (COMMON STYLE) --- */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="password"] {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 18px 24px;
    border-radius: 16px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.08); }

/* --- FORM SPA --- */
.form-container {
    background: var(--card-bg); border-radius: 32px; padding: 50px 40px;
    border: 1px solid var(--border); margin: 60px auto; max-width: 750px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8); display: none;
}

.progress-bar { height: 6px; background: rgba(255,255,255,0.05); border-radius: 10px; margin-bottom: 40px; }
.progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.4s ease; }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeInUp 0.5s ease; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.label-text { font-size: 20px; font-weight: 800; margin-bottom: 24px; display: block; text-align: left; }
.options-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.option-item {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
    padding: 18px 24px; border-radius: 16px; cursor: pointer; transition: var(--transition);
    font-weight: 600; text-align: left;
}
.option-item:hover, .option-item.selected { border-color: var(--accent); background: rgba(0, 102, 255, 0.1); }
.option-item input { display: none; }

.privacy-check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 32px; text-align: left; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.privacy-check input { width: 20px; height: 20px; margin-top: 4px; flex-shrink: 0; }

.btn-next, .btn-submit {
    width: 100%; padding: 18px; border-radius: 999px; background: var(--accent);
    color: #fff; border: none; font-weight: 800; font-size: 1rem;
    text-transform: uppercase; cursor: pointer; transition: var(--transition);
}
.btn-next:hover, .btn-submit:hover { background: #0052cc; transform: translateY(-2px); }

/* --- MODULES --- */
.section-title { text-align: center; font-size: 36px; font-weight: 900; margin: 80px 0 40px; }
.modules-vertical { display: flex; flex-direction: column; gap: 60px; }
.module-section { display: flex; flex-direction: column; align-items: center; }
.module-header-title { font-size: 28px; font-weight: 900; margin-bottom: 32px; text-align: center; }
.module-full {
    display: flex; flex-direction: column; align-items: center; gap: 40px;
    padding: 48px; background: rgba(255, 255, 255, 0.02); border-radius: 32px;
    border: 1px solid var(--border); width: 100%;
}
.module-content { text-align: center; max-width: 600px; }
.module-content p { font-size: 18px; color: var(--muted); margin-bottom: 24px; }
.module-img-large {
    width: 100%; max-width: 500px; height: auto; border-radius: 20px;
    border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (min-width: 992px) {
    .module-full { flex-direction: row; text-align: left; }
    .module-full:nth-child(even) { flex-direction: row-reverse; }
    .module-content { text-align: left; flex: 1; }
    .module-img-large { flex: 1; max-width: 550px; }
}

/* --- TESTIMONIALS --- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.testimonial-card { background: var(--card-bg); border: 1px solid var(--border); padding: 24px; border-radius: 24px; display: flex; flex-direction: column; gap: 16px; }
.testi-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.testi-video iframe { width: 100%; height: 100%; border: 0; }

/* --- MODALS --- */
.auth-overlay, .modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(20px);
    display: none; justify-content: center; align-items: center; z-index: 2000;
}
.auth-overlay.active, .modal-overlay.active { display: flex !important; }

.auth-card, .modal-content {
    background: var(--card-bg); border: 1px solid var(--border); padding: 60px 48px;
    border-radius: 32px; width: 100%; max-width: 500px; text-align: center;
    position: relative; animation: zoomIn 0.3s ease;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.close-auth, .close-modal { position: absolute; top: 24px; right: 24px; background: transparent; border: none; color: #fff; font-size: 32px; cursor: pointer; }

/* --- AUTH SWITCH TOGGLE --- */
.auth-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 999px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    max-width: 100%;
}
.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}
.toggle-btn:hover {
    color: var(--text);
}
.toggle-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

/* --- DASHBOARD --- */
.dashboard-container { max-width: 1100px; margin: 0 auto; padding: 120px 24px 60px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }

@media (min-width: 768px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

.dash-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid var(--border); padding: 60px 40px; border-radius: 40px; text-align: center; cursor: pointer; transition: var(--transition);
}
.dash-card:hover { border-color: var(--accent); transform: translateY(-5px); background: rgba(255, 255, 255, 0.05); }

.dash-card.locked { opacity: 0.6; cursor: not-allowed; position: relative; overflow: hidden; }
.dash-card.locked:hover { transform: none; border-color: var(--border); }

.lock-badge {
    display: inline-block; background: rgba(255, 255, 255, 0.1); padding: 8px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-top: 16px;
}

.roadmap { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 768px) { .roadmap { grid-template-columns: repeat(3, 1fr); } }

.phase-card { background: var(--card-bg); border: 1px solid var(--border); padding: 40px; border-radius: 24px; cursor: pointer; transition: var(--transition); }
.phase-card:hover { border-color: var(--accent); }

footer { padding: 80px 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-logo { max-width: 220px; height: auto; margin-bottom: 24px; }

/* --- TOAST NOTIFICATIONS --- */
#toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid var(--border);
    color: #fff;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 9999;
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CRM TABLE STYLES */
.crm-phase-cell {
    padding: 8px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.75rem;
    margin: 4px;
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.crm-phase-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    font-weight: 700;
}
.crm-phase-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-weight: 700;
}
.crm-action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-advance {
    background: var(--accent);
    color: #000;
}
.btn-advance:hover {
    opacity: 0.8;
}
.btn-reject {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    margin-left: 8px;
}
.btn-reject:hover {
    background: rgba(239, 68, 68, 0.2);
}
