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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #0ea5e9;
    --text-dark: #0f172a;
    --text-mid: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-white); color: var(--text-mid); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
h1, h2, h3, h4, h5 { color: var(--text-dark); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.03em; }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 900; font-size: 14px; }
.logo-img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text-light); border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a.active { color: var(--text-dark); background: var(--bg-alt); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 1px 2px rgba(37,99,235,0.3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(37,99,235,0.3); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-dark); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-light); border-color: var(--text-muted); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }

/* ===== HERO ===== */
.hero { padding: 120px 0 80px; background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 600; border-radius: 50px; margin-bottom: 20px; border: 1px solid rgba(37,99,235,0.15); }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.03em; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.125rem; color: var(--text-light); margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; }
.hero-proof { display: flex; align-items: center; gap: 12px; }
.hero-avatars { display: flex; }
.hero-avatars span { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); border: 2px solid white; margin-left: -8px; display: flex; align-items: center; justify-content: center; }
.hero-avatars span svg { width: 16px; height: 16px; display: block; stroke: var(--primary); }
.hero-avatars span:first-child { margin-left: 0; }
.hero-proof p { font-size: 13px; color: var(--text-muted); margin-bottom: 0; }
.hero-proof strong { color: var(--text-dark); }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); border: 1px solid var(--border); }
.hero-float-card { position: absolute; background: white; border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: float 4s ease-in-out infinite; }
.hero-float-card.card-1 { top: -10px; right: -10px; }
.hero-float-card.card-2 { bottom: 30px; left: -20px; animation-delay: 1.5s; }
.float-card-label { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.float-card-value { font-size: 24px; font-weight: 800; color: var(--text-dark); }
.float-card-trend { font-size: 12px; color: var(--success); font-weight: 600; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ===== TRUSTED BY ===== */
.trusted { padding: 48px 0; border-bottom: 1px solid var(--border); }
.trusted p { text-align: center; font-size: 13px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px; }
.trusted-logos { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; opacity: 0.45; }
.trusted-logos span { font-size: 18px; font-weight: 700; color: var(--text-dark); letter-spacing: -0.02em; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-header h2 { font-size: 2.25rem; margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; color: var(--text-light); }

/* ===== FEATURE CARDS ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 28px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all 0.25s ease; }
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 22px; height: 22px; display: block; }
.feature-icon.blue { background: #eff6ff; }
.feature-icon.blue svg { stroke: #2563eb; }
.feature-icon.green { background: #ecfdf5; }
.feature-icon.green svg { stroke: #10b981; }
.feature-icon.purple { background: #f5f3ff; }
.feature-icon.purple svg { stroke: #8b5cf6; }
.feature-icon.orange { background: #fff7ed; }
.feature-icon.orange svg { stroke: #ea580c; }
.feature-icon.teal { background: #f0fdfa; }
.feature-icon.teal svg { stroke: #0d9488; }
.feature-icon.rose { background: #fff1f2; }
.feature-icon.rose svg { stroke: #e11d48; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0; }

/* ===== HOW IT WORKS ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding: 28px; text-align: center; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--primary); color: white; font-weight: 800; font-size: 16px; border-radius: 50%; margin: 0 auto 16px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--text-light); }

/* ===== STATS BAR ===== */
.stats-bar { padding: 48px 0; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 800; color: white; margin-bottom: 4px; }
.stat-item p { font-size: 0.9rem; color: rgba(255,255,255,0.75); font-weight: 500; }

/* ===== SPLIT SECTIONS ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-content h2 { font-size: 2rem; margin-bottom: 16px; }
.split-content p { font-size: 1rem; color: var(--text-light); margin-bottom: 20px; }
.split-image img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.check-list { list-style: none; margin-bottom: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.95rem; color: var(--text-mid); }
.check-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { padding: 28px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.testimonial-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p { font-size: 0.95rem; color: var(--text-mid); font-style: italic; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #dbeafe, #bfdbfe); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--primary); }
.testimonial-name { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CTA ===== */
.cta-section { padding: 80px 0; }
.cta-box { background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%); border-radius: var(--radius-xl); padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(37,99,235,0.2), transparent 70%); }
.cta-box h2 { font-size: 2.25rem; color: white; margin-bottom: 12px; position: relative; }
.cta-box p { font-size: 1.05rem; color: rgba(255,255,255,0.6); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta-box .btn-primary { background: white; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.cta-box .btn-primary:hover { background: #f0f4ff; transform: translateY(-2px); }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--text-dark); }
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--text-muted); transition: transform 0.2s; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding-bottom: 20px; font-size: 0.95rem; color: var(--text-light); }

/* ===== FOOTER ===== */
.footer { background: var(--bg-light); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-light); margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dark); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text-light); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== PAGE HEADERS ===== */
.page-hero { padding: 110px 0 56px; background: var(--bg-light); border-bottom: 1px solid var(--border); text-align: center; }
.page-hero h1 { font-size: 2.75rem; margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; color: var(--text-light); max-width: 500px; margin: 0 auto; }

/* ===== FORMS ===== */
.form-card { background: white; padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit; background: var(--bg-light); transition: border-color 0.2s, background 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* ===== CONTACT INFO ===== */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon { width: 40px; height: 40px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-icon svg { width: 18px; height: 18px; display: block; stroke: var(--primary); }
.contact-info-item h4 { font-size: 0.9rem; margin-bottom: 2px; }
.contact-info-item p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 800px; margin: 0 auto; }
.pricing-card { padding: 36px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: white; position: relative; transition: all 0.25s; }
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pricing-card .price { font-size: 3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.pricing-card .price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-card .price-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.9rem; color: var(--text-mid); }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE & MOBILE NAV ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 16px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    display: flex;
    transform: translateY(0);
}
.mobile-menu a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}
.mobile-menu a.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero-grid, .split, .split.reverse, .features-grid, .steps, .testimonials-grid, .stats-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 2.5rem; }
    .nav { display: none; }
    .menu-toggle { display: flex; }
    .section { padding: 56px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero-float-card { display: none; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== FLOATING CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: inherit;
}
.chat-widget-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
    transition: all 0.3s ease;
    border: none;
    position: relative;
}
.chat-widget-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}
.chat-widget-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    transition: transform 0.3s ease;
}
.chat-widget-btn.open svg {
    transform: rotate(90deg);
}
.chat-widget-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    height: 520px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-widget-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.chat-header-info h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
}
.chat-header-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}
.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    line-height: 1.4;
}
.chat-msg.bot {
    background: white;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border);
}
.chat-msg.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.chat-typing {
    display: none;
    align-self: flex-start;
    background: white;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-bottom-left-radius: 2px;
}
.chat-typing span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
    margin-right: 3px;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; margin-right: 0; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
.chat-quick-replies {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.quick-reply-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.quick-reply-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    background: white;
}
.chat-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
}
.chat-input:focus {
    border-color: var(--primary);
}
.chat-send-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.chat-send-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 480px) {
    .chat-widget-window {
        width: calc(100vw - 32px);
        right: -8px;
        height: 480px;
    }
}

/* ===== AUDIO CALL SIMULATOR ===== */
.audio-sim-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-xl);
}
.audio-sim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 16px;
}
.audio-sim-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.audio-sim-dot {
    width: 8px;
    height: 8px;
    background: #f43f5e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}
.audio-sim-status {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.audio-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.audio-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.audio-play-btn:hover {
    transform: scale(1.05);
    background: #f1f5f9;
}
.audio-play-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.audio-waveform {
    flex: 1;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.waveform-bar {
    flex: 1;
    height: 20%;
    background: rgba(255,255,255,0.25);
    border-radius: 50px;
    transition: height 0.15s ease, background-color 0.15s;
}
.audio-sim-card.playing .waveform-bar {
    background: var(--accent);
    animation: wave-bounce 1.2s infinite ease-in-out;
}
.audio-sim-card.playing .waveform-bar:nth-child(2n) { animation-delay: 0.1s; }
.audio-sim-card.playing .waveform-bar:nth-child(3n) { animation-delay: 0.25s; }
.audio-sim-card.playing .waveform-bar:nth-child(4n) { animation-delay: 0.4s; }

@keyframes wave-bounce {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}
.audio-transcript {
    height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 8px;
    scroll-behavior: smooth;
}
.audio-bubble {
    font-size: 13.5px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    line-height: 1.4;
    max-width: 85%;
    opacity: 0.4;
    transform: translateY(5px);
    transition: all 0.3s ease;
}
.audio-bubble.active {
    opacity: 1;
    transform: translateY(0);
}
.audio-bubble.patient {
    background: rgba(255,255,255,0.08);
    align-self: flex-start;
}
.audio-bubble.bot {
    background: var(--primary);
    color: white;
    align-self: flex-end;
}
.audio-bubble-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
    text-transform: uppercase;
}

/* ===== ROI CALCULATOR ===== */
.roi-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.roi-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}
.roi-sliders {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.roi-slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.roi-slider-group label span {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}
.roi-slider-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
}
.roi-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37,99,235,0.3);
    transition: transform 0.1s;
}
.roi-slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.roi-results {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.roi-results-value {
    font-size: 40px;
    font-weight: 800;
    margin: 8px 0 16px;
}
.roi-results-desc {
    font-size: 13.5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .roi-grid {
        grid-template-columns: 1fr;
    }
}

