/* ============================================
   Genie Landing Page Styles
   ============================================ */

/* ── Hero ──────────────────────────────────── */
.genie-hero {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f172a 100%);
    padding: 120px 0 100px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.genie-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 60%);
}

.genie-hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.genie-hero-content {
    position: relative;
    z-index: 1;
}

.genie-hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 24px;
    color: #c4b5fd;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 28px;
}

.genie-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.genie-gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.genie-hero-subtitle {
    font-size: 1.3rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.genie-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.genie-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.genie-stat {
    text-align: center;
}

.genie-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.genie-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.genie-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* ── Chaos Grid (The Problem) ──────────────── */
.genie-chaos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.genie-chaos-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 24px;
    transition: all 0.3s;
    animation: floatIn 0.6s ease-out forwards;
    opacity: 0;
}

.genie-chaos-item:nth-child(1) { animation-delay: 0s; }
.genie-chaos-item:nth-child(2) { animation-delay: 0.1s; }
.genie-chaos-item:nth-child(3) { animation-delay: 0.2s; }
.genie-chaos-item:nth-child(4) { animation-delay: 0.3s; }
.genie-chaos-item:nth-child(5) { animation-delay: 0.4s; }
.genie-chaos-item:nth-child(6) { animation-delay: 0.5s; }
.genie-chaos-item:nth-child(7) { animation-delay: 0.6s; }
.genie-chaos-item:nth-child(8) { animation-delay: 0.7s; }

@keyframes floatIn {
    from { opacity: 0; transform: translateY(20px) rotate(-2deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

.genie-chaos-item:hover {
    border-color: #8b5cf6;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.genie-chaos-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #8b5cf6;
}

.genie-arrow-down {
    font-size: 2rem;
    color: var(--saas-primary);
    margin-top: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ── Stages Overview ───────────────────────── */
.genie-stages-overview {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0;
    position: relative;
}

.genie-stages-timeline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.genie-stage-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    color: white;
    flex: 1;
    max-width: 280px;
    min-width: 240px;
    transition: all 0.3s;
    position: relative;
}

.genie-stage-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.genie-stage-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 16px;
}

.genie-stage-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #8b5cf6;
}

.genie-stage-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.genie-stage-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.genie-stage-link {
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.genie-stage-link:hover {
    color: #a78bfa;
}

.genie-stage-connector {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.genie-connector-line {
    width: 30px;
    height: 2px;
    background: rgba(139, 92, 246, 0.3);
}

.genie-connector-arrow {
    color: rgba(139, 92, 246, 0.5);
    font-size: 0.8rem;
}

/* ── Phase Badges ──────────────────────────── */
.genie-phase-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.15));
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 16px;
}

.genie-phase-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ── Chat Mockup ───────────────────────────── */
.genie-chat-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.genie-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.genie-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.genie-chat-messages {
    padding: 20px;
    max-height: 320px;
    overflow-y: auto;
}

.genie-chat-msg {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
}

.genie-chat-msg.agent {
    background: #f1f5f9;
    color: #334155;
}

.genie-chat-msg.user {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    margin-left: auto;
}

.genie-chat-msg code {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.genie-chat-msg ul {
    margin: 0;
    padding-left: 18px;
}

/* ── Sources Panel ─────────────────────────── */
.genie-sources-panel {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.genie-source-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.genie-source-card i {
    font-size: 1.3rem;
    color: #64748b;
}

.genie-source-card.connected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.04);
}

.genie-source-card.connected i:first-child {
    color: #8b5cf6;
}

.genie-source-status {
    margin-left: auto;
    color: #10b981;
    font-size: 1.1rem;
}

/* ── Security Callout ──────────────────────── */
.genie-security-callout {
    background: linear-gradient(135deg, #ecfeff 0%, #f0f9ff 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 24px 28px;
}

/* ── Starting CRM Mockup ──────────────────── */
.genie-starting-crm {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0;
}

.genie-crm-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
}

.genie-crm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #1e293b;
    color: white;
}

.genie-crm-logo {
    font-weight: 700;
    font-size: 0.95rem;
}

.genie-crm-logo i {
    color: #8b5cf6;
}

.genie-crm-nav {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.genie-crm-nav span {
    cursor: pointer;
    transition: color 0.2s;
}

.genie-crm-nav span.active {
    color: white;
    font-weight: 600;
}

.genie-crm-user {
    font-size: 1.2rem;
    color: #94a3b8;
}

.genie-crm-body {
    display: flex;
    min-height: 400px;
}

.genie-crm-sidebar {
    width: 200px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 16px 0;
}

.genie-sidebar-item {
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.genie-sidebar-item:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.genie-sidebar-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    font-weight: 600;
    border-right: 3px solid #8b5cf6;
}

.genie-crm-main {
    flex: 1;
    padding: 24px;
}

.genie-crm-welcome h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.genie-crm-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.genie-widget {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.genie-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.genie-widget-header a {
    font-size: 0.75rem;
    color: #8b5cf6;
    text-decoration: none;
}

.genie-widget-body {
    padding: 8px 16px;
}

.genie-widget-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 8px;
}

.genie-widget-row:last-child {
    border-bottom: none;
}

.genie-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #8b5cf6;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Genie FAB */
.genie-fab {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    cursor: pointer;
    animation: geniePulse 2s infinite;
    z-index: 10;
}

@keyframes geniePulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 8px 36px rgba(139, 92, 246, 0.6), 0 0 0 8px rgba(139, 92, 246, 0.1); }
}

/* ── Pipeline / Genie Process ──────────────── */
.genie-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.genie-pipeline-step {
    text-align: center;
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    padding: 0 12px;
}

.genie-pipeline-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8b5cf6;
    margin: 0 auto 12px;
}

.genie-pipeline-step h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.genie-pipeline-step p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.genie-pipeline-arrow {
    color: #8b5cf6;
    font-size: 1.2rem;
    padding: 0 4px;
    opacity: 0.5;
}

/* ── Evolution Cards ───────────────────────── */
.genie-evolution-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.genie-evolution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.genie-team-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.genie-team-badge.sales { color: #8b5cf6; }
.genie-team-badge.billing { color: #f59e0b; }
.genie-team-badge.ops { color: #06b6d4; }

.genie-evolution-chat {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.genie-mini-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.genie-mini-msg {
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.genie-mini-msg.user {
    background: #f1f5f9;
    color: #334155;
    font-style: italic;
}

.genie-mini-msg.system {
    background: rgba(16, 185, 129, 0.06);
    color: #065f46;
    font-weight: 500;
}

.genie-evolution-result {
    padding: 20px 24px;
}

/* ── Mini Dashboards ───────────────────────── */
.genie-mini-dashboard {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.genie-dash-header {
    padding: 10px 16px;
    background: #1e293b;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.genie-dash-metrics {
    display: flex;
    gap: 12px;
    padding: 16px;
}

.genie-metric-box {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.genie-metric-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #8b5cf6;
}

.genie-metric-lbl {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Pipeline stages */
.genie-dash-pipeline {
    display: flex;
    gap: 4px;
    padding: 0 16px 16px;
}

.genie-pipeline-stage {
    text-align: center;
}

.genie-pipeline-stage span {
    font-size: 0.65rem;
    color: #64748b;
    display: block;
    margin-top: 4px;
}

.genie-stage-fill {
    height: 8px;
    border-radius: 4px;
}

.genie-stage-fill.prospect { background: #8b5cf6; }
.genie-stage-fill.qualified { background: #06b6d4; }
.genie-stage-fill.proposal { background: #f59e0b; }
.genie-stage-fill.negotiation { background: #ec4899; }
.genie-stage-fill.closed { background: #10b981; }

/* Table mockup */
.genie-dash-table {
    padding: 0 16px 16px;
}

.genie-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 8px 12px;
    font-size: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}

.genie-table-row.header {
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border-radius: 6px;
}

/* Agent status */
.genie-agent-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 500;
}

.genie-agent-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* ── Workflow Section (Stage 3) ────────────── */
.genie-workflow-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0;
}

.genie-workflow-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    color: white;
    transition: all 0.3s;
}

.genie-workflow-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-3px);
}

.genie-wf-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #8b5cf6;
}

.genie-workflow-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.genie-workflow-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

.genie-wf-example {
    margin-top: 16px;
}

.genie-notification {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.genie-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 1rem;
    flex-shrink: 0;
}

.genie-notif-content strong {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 4px;
}

.genie-notif-content p {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    margin: 0;
}

.genie-automation-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 16px;
}

/* ── Interactive Demo ──────────────────────── */
.genie-demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.genie-demo-screen {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    min-height: 480px;
}

.genie-demo-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1e293b;
    color: white;
}

.genie-demo-dots {
    display: flex;
    gap: 6px;
}

.genie-demo-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.genie-demo-title {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Demo Phase Content */
.genie-demo-phase {
    position: relative;
}

.genie-demo-crm-basic {
    display: flex;
    min-height: 420px;
}

.genie-demo-sidebar-mini {
    width: 140px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 12px 0;
}

.genie-demo-sidebar-mini .sidebar-item {
    padding: 8px 16px;
    font-size: 0.75rem;
    color: #64748b;
    cursor: default;
    border-left: 3px solid transparent;
}

.genie-demo-sidebar-mini .sidebar-item.active {
    color: #8b5cf6;
    font-weight: 600;
    border-left-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.06);
}

.genie-demo-main-content {
    flex: 1;
    padding: 20px;
}

.genie-demo-main-content h5 {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Basic table */
.genie-demo-table-basic {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.genie-demo-trow {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 0.8fr;
    padding: 8px 14px;
    font-size: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.genie-demo-trow.header {
    background: #f8fafc;
    font-weight: 600;
    color: #64748b;
}

/* Demo FAB */
.genie-demo-fab {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    z-index: 10;
    animation: geniePulse 2s infinite;
}

/* Chat overlay */
.genie-demo-chat-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 320px;
    z-index: 20;
    padding: 16px;
}

.genie-demo-chat-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.genie-demo-chat-header {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.genie-demo-chat-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.2rem;
}

.genie-demo-chat-body {
    padding: 12px 16px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
}

.genie-demo-agent-msg {
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 8px;
}

.genie-demo-user-msg {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: auto;
    max-width: 80%;
    margin-bottom: 8px;
}

.genie-demo-chat-input {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #334155;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.genie-demo-cursor {
    animation: blink 1s infinite;
    font-weight: 300;
    color: #8b5cf6;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Processing overlay */
.genie-demo-processing {
    position: absolute;
    top: 50px; /* below topbar */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    backdrop-filter: blur(4px);
}

.genie-demo-process-flow {
    display: flex;
    align-items: center;
    gap: 16px;
}

.genie-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.5s;
    min-width: 120px;
}

.genie-process-step i {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: color 0.5s;
}

.genie-process-step span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.genie-process-step.active {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.06);
}

.genie-process-step.active i {
    color: #8b5cf6;
}

.genie-process-step.done {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.06);
}

.genie-process-step.done i {
    color: #10b981;
}

.genie-process-arrow {
    color: #94a3b8;
    font-size: 1rem;
}

/* Pipeline view */
.genie-demo-pipeline-view {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.genie-demo-pipe-col {
    flex: 1;
}

.pipe-header {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pipe-header.prospect { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.pipe-header.qualified { background: rgba(6, 182, 212, 0.1); color: #0891b2; }
.pipe-header.proposal { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.pipe-header.closed { background: rgba(16, 185, 129, 0.1); color: #059669; }

.pipe-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.75rem;
    margin-bottom: 6px;
}

.pipe-card small { color: #10b981; font-weight: 600; }

/* Analytics view */
.genie-demo-analytics {
    margin-top: 12px;
}

.genie-demo-chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.genie-demo-chart-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.genie-demo-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
}

.genie-demo-bar-chart .bar {
    flex: 1;
    background: linear-gradient(180deg, #8b5cf6, #a78bfa);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 20px;
    transition: height 0.5s;
}

.genie-demo-bar-chart .bar.highlight {
    background: linear-gradient(180deg, #06b6d4, #67e8f9);
}

.genie-demo-bar-chart .bar span {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #94a3b8;
}

.genie-demo-horiz-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hbar-label {
    font-size: 0.7rem;
    color: #64748b;
    width: 55px;
    text-align: right;
}

.hbar-fill {
    height: 12px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 6px;
    transition: width 0.5s;
}

.hbar-val {
    font-size: 0.7rem;
    font-weight: 700;
    color: #8b5cf6;
}

/* Demo Controls */
.genie-demo-play {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    color: white;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s;
}

.genie-demo-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .genie-hero-title {
        font-size: 2.5rem;
    }

    .genie-hero-subtitle {
        font-size: 1.1rem;
    }

    .genie-stages-timeline {
        flex-direction: column;
        align-items: center;
    }

    .genie-stage-connector {
        transform: rotate(90deg);
        padding: 8px 0;
    }

    .genie-stage-card {
        max-width: 100%;
    }

    .genie-pipeline {
        flex-direction: column;
    }

    .genie-pipeline-arrow {
        transform: rotate(90deg);
    }

    .genie-crm-body {
        flex-direction: column;
    }

    .genie-crm-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .genie-crm-widgets {
        grid-template-columns: 1fr;
    }

    .genie-dash-metrics {
        flex-wrap: wrap;
    }

    .genie-demo-chat-overlay {
        width: 100%;
    }

    .genie-demo-process-flow {
        flex-direction: column;
    }

    .genie-demo-pipeline-view {
        flex-direction: column;
    }

    .genie-demo-chart-row {
        grid-template-columns: 1fr;
    }

    .genie-hero-stats {
        gap: 20px;
    }

    .genie-phase-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .genie-hero-title {
        font-size: 2rem;
    }

    .genie-demo-crm-basic {
        flex-direction: column;
    }

    .genie-demo-sidebar-mini {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 4px 0;
    }

    .genie-demo-sidebar-mini .sidebar-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .genie-demo-sidebar-mini .sidebar-item.active {
        border-left-color: transparent;
        border-bottom-color: #8b5cf6;
    }
}
