:root {
    --bg-dark: #05050a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-yellow: #eab308;
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }
.full-width { width: 100%; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--gradient-primary); color: white; text-decoration: none;
    font-weight: 600; border-radius: 50px; transition: all 0.3s ease;
    border: none; cursor: pointer; font-family: var(--font-sans); font-size: 1rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4); }
.btn-primary.small { padding: 10px 24px; font-size: 0.9rem; }
.btn-primary.large { padding: 16px 36px; font-size: 1.1rem; }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(5, 5, 10, 0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light); padding: 16px 0;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--accent-blue); }

/* Hero */
.hero { position: relative; padding: 180px 0 120px; min-height: 100vh; display: flex; align-items: center; }
.glow-blob { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.5; }
.blob-1 { top: -100px; left: -100px; background: rgba(59, 130, 246, 0.3); }
.blob-2 { bottom: 0; right: -100px; background: rgba(139, 92, 246, 0.3); }
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; }
.badge { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-light); border-radius: 50px; font-size: 0.85rem; font-weight: 500; margin-bottom: 24px; color: var(--accent-blue); }
.hero h1 { font-size: 4rem; margin-bottom: 24px; letter-spacing: -1px; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }

/* Problem */
.problem { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.glass-card { background: var(--bg-card); backdrop-filter: blur(16px); border: 1px solid var(--border-light); border-radius: 20px; padding: 40px; transition: transform 0.3s ease, border-color 0.3s ease; }
.glass-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.glass-card i { margin-bottom: 20px; width: 32px; height: 32px; }
.icon-red { color: var(--accent-red); }
.icon-yellow { color: var(--accent-yellow); }
.icon-purple { color: #a855f7; }
.glass-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.glass-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Solution */
.solution { padding: 100px 0; background: rgba(255,255,255,0.01); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.solution-content h2 { font-size: 2.5rem; margin-bottom: 40px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.feature-list li { display: flex; gap: 20px; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(59,130,246,0.1); display: flex; align-items: center; justify-content: center; color: var(--accent-blue); flex-shrink: 0; }
.feature-list h4 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-list p { color: var(--text-muted); font-size: 0.95rem; }

/* Mockup */
.glass-mockup { background: rgba(15,23,42,0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.mockup-header { background: rgba(255,255,255,0.05); padding: 16px 20px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dots { display: flex; gap: 6px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: #475569; }
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }
.mockup-header p { font-size: 0.85rem; font-weight: 500; color: #cbd5e1; margin: 0 auto; padding-right: 48px; }
.chat-container { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chat-message { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 0.9rem; line-height: 1.4; animation: slideUp 0.5s ease forwards; opacity: 0; transform: translateY(10px); }
.chat-message.bot { background: rgba(59,130,246,0.15); border-bottom-left-radius: 4px; border: 1px solid rgba(59,130,246,0.2); }
.chat-message.user { background: rgba(255,255,255,0.1); align-self: flex-end; border-bottom-right-radius: 4px; margin-left: auto; }
.chat-message:nth-child(1) { animation-delay: 0.2s; }
.chat-message:nth-child(2) { animation-delay: 1.5s; }
.chat-message:nth-child(3) { animation-delay: 3s; }
.typing-indicator { align-self: flex-start; display: flex; gap: 4px; padding: 12px 16px; background: rgba(255,255,255,0.05); border-radius: 16px; border-bottom-left-radius: 4px; animation: fadeInOut 1.5s infinite 1.5s; opacity: 0; }
.typing-indicator span { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both; }
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

/* CTA Section */
.cta-section { padding: 120px 0; position: relative; }
.cta-section h2 { font-size: 3rem; margin-bottom: 24px; }
.cta-section p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: 0.9rem; }

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
    background: #0d1117; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px; padding: 48px 40px; width: 100%; max-width: 560px;
    position: relative; max-height: 90vh; overflow-y: auto;
    transform: translateY(20px) scale(0.98); transition: transform 0.4s ease;
    scrollbar-width: none;
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-box::-webkit-scrollbar { display: none; }

.modal-close-btn {
    position: absolute; top: 16px; right: 20px; background: none;
    border: none; color: var(--text-muted); font-size: 2rem; cursor: pointer;
    line-height: 1; transition: color 0.2s;
}
.modal-close-btn:hover { color: var(--text-main); }

/* Steps */
.modal-step { display: none; flex-direction: column; gap: 20px; }
.modal-step.active { display: flex; }

.step-icon { font-size: 3rem; text-align: center; }
.modal-step h2 { font-family: var(--font-heading); font-size: 1.8rem; text-align: center; }
.modal-step h3 { font-family: var(--font-heading); font-size: 1.4rem; }
.step-subtitle { color: var(--text-muted); font-size: 0.95rem; text-align: center; }
.modal-step h3 + .step-subtitle { text-align: left; }
.step-counter { font-size: 0.8rem; font-weight: 600; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 1px; }

/* Progress Bar */
.progress-bar-wrap { width: 100%; height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient-primary); border-radius: 4px; transition: width 0.5s ease; }

/* Lead Form */
#lead-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.form-group input {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-light);
    border-radius: 12px; padding: 14px 16px; color: var(--text-main);
    font-size: 1rem; font-family: var(--font-sans); outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent-blue); }
.form-group input::placeholder { color: #475569; }
.form-group input.error { border-color: var(--accent-red); }
.form-error { color: var(--accent-red); font-size: 0.85rem; display: none; }
.form-error.visible { display: block; }
.privacy-note { text-align: center; color: #475569; font-size: 0.8rem; }

/* Quiz Options */
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-light);
    border-radius: 12px; padding: 14px 20px; color: var(--text-main);
    font-size: 0.95rem; font-family: var(--font-sans);
    cursor: pointer; text-align: left; transition: all 0.2s ease;
}
.quiz-option:hover { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.4); transform: translateX(4px); }
.quiz-option.selected { background: rgba(59,130,246,0.15); border-color: var(--accent-blue); color: white; }

/* Result */
.result-header { text-align: center; }
.result-emoji { font-size: 3rem; margin-bottom: 8px; }
.result-header h2 { font-size: 1.8rem; margin-bottom: 8px; }

.result-score-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.result-score-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.score-ring-wrap { position: relative; width: 140px; height: 140px; }
.score-ring { width: 140px; height: 140px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 10; }
.ring-fill { fill: none; stroke: url(#gradient-ring); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s ease; }
.score-number { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 2rem; font-weight: 800; }

.result-stat-box { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); border-radius: 16px; padding: 20px 24px; text-align: center; }
.result-stat-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.result-value { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--accent-red); }

.result-insights { background: rgba(255,255,255,0.03); border: 1px solid var(--border-light); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.result-insights p { font-size: 0.9rem; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; }

/* Animations */
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
@keyframes fadeInOut { 0%, 100% { opacity: 0; } 10%, 90% { opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .solution-grid { grid-template-columns: 1fr; }
    .cta-section h2 { font-size: 2rem; }
    .modal-box { padding: 32px 24px; }
    .modal-step h2 { font-size: 1.5rem; }
}
