/* ========================================
   AI-ROP Complete Styles
   Landing + Dashboard
======================================== */

/* === Variables === */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-bg: rgba(37, 99, 235, 0.1);
    
    --success: #22c55e;
    --success-dark: #16a34a;
    --success-bg: rgba(34, 197, 94, 0.1);
    
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    
    --background: #fcfcfa;
    --background-alt: #f8f7f4;
    --foreground: #1e293b;
    --muted: #64748b;
    --border: #e2e0db;
    
    --card-bg: #ffffff;
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #fcfcfa 100%);
    --gradient-hero: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    
    --shadow-soft: 0 4px 20px -2px rgba(30, 41, 59, 0.08);
    --shadow-medium: 0 8px 30px -4px rgba(30, 41, 59, 0.12);
    
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
.page-title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.25rem; }
.page-subtitle { font-size: 0.875rem; color: var(--muted); }
.section-title { font-size: clamp(1.75rem, 5vw, 3rem); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--muted); max-width: 48rem; margin: 0 auto; }
.gradient-text { background: var(--gradient-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--muted); }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 500;
    border-radius: var(--radius); border: 1px solid transparent;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-primary { background: var(--gradient-hero); color: white; border-color: var(--primary); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { background: var(--background-alt); border-color: var(--muted); }
.btn-block { width: 100%; }
.btn-icon { padding: 0.5rem; }

/* === Badges === */
.badge {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 500;
    border-radius: 9999px; white-space: nowrap;
}
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-secondary { background: var(--background-alt); color: var(--muted); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.badge-success-outline { background: var(--success-bg); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--success); }
.badge-primary-outline { background: var(--primary-bg); border: 1px solid rgba(37, 99, 235, 0.3); color: var(--primary); }
.badge-warning-outline { background: var(--warning-bg); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning); }

/* === Forms === */
.form-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem; font-size: 0.875rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: white url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 0.5rem center/1.5em no-repeat;
    appearance: none; cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }

/* === Cards === */
.card {
    background: var(--card-gradient); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}
.card-header { padding: 1.25rem 1.5rem 0; }
.card-body { padding: 1.25rem 1.5rem; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.card-title-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.card-description { font-size: 0.875rem; color: var(--muted); }

/* === Header (Landing) === */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(252, 252, 250, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon {
    width: 2rem; height: 2rem; background: var(--gradient-hero); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 0.75rem;
}
.logo-text { font-size: 1.25rem; font-weight: 700; }
.nav { display: none; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.875rem; color: var(--muted); transition: var(--transition); }
.nav-link:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.mobile-menu-btn { display: flex; flex-direction: column; gap: 4px; padding: 0.5rem; background: none; border: none; cursor: pointer; }
.mobile-menu-btn span { display: block; width: 20px; height: 2px; background: var(--foreground); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .nav { display: flex; } .mobile-menu-btn { display: none; } .hide-mobile { display: inline-flex; } }

/* === Dashboard Header === */
.dashboard-body { background: var(--background-alt); }
.dashboard-header {
    background: rgba(252, 252, 250, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.dashboard-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.dashboard-header-left { display: flex; align-items: center; gap: 1.5rem; }
.back-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); transition: var(--transition); }
.back-link:hover { color: var(--foreground); }
.dashboard-header-right { display: flex; align-items: center; gap: 0.5rem; }

.dashboard-nav { display: none; align-items: center; gap: 0.25rem; }
.dashboard-nav-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--muted); border-radius: var(--radius); transition: var(--transition); }
.dashboard-nav-link:hover { color: var(--foreground); background: var(--background-alt); }
.dashboard-nav-link.active { color: var(--primary); background: var(--primary-bg); }
@media (min-width: 768px) { .dashboard-nav { display: flex; } }

/* === Role Navigation === */
.role-nav-section { background: var(--background); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.role-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; }
.role-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.role-tab {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: white; transition: var(--transition); cursor: pointer; text-decoration: none;
}
.role-tab:hover { border-color: var(--primary); }
.role-tab.active { background: var(--gradient-hero); color: white; border-color: var(--primary); }
.role-tab-name { font-weight: 600; font-size: 0.875rem; }
.role-tab-desc { font-size: 0.75rem; opacity: 0.8; }

/* === Page Header === */
.page-header-section { background: var(--background); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.page-header-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.page-header-filters { display: flex; gap: 0.5rem; }

/* === Dashboard Main === */
.dashboard-main { padding: 2rem 0; }

/* === Grids === */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }

.dashboard-grid-2 { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .dashboard-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.dashboard-grid-2-1 { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .dashboard-grid-2-1 { grid-template-columns: 2fr 1fr; } }

/* === KPI Cards === */
.kpi-card { background: var(--card-gradient); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.kpi-card-success { background: var(--gradient-success); color: white; }
.kpi-card-success .kpi-label, .kpi-card-success .kpi-change { opacity: 0.9; }
.kpi-content { padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.25rem; }
.kpi-value { font-size: 1.75rem; font-weight: 700; }
.kpi-change { font-size: 0.75rem; }
.kpi-icon { opacity: 0.8; }
.icon-primary { color: var(--primary); }
.icon-success { color: var(--success); }
.icon-warning { color: var(--warning); }
.icon-muted { color: var(--muted); }

/* === Calls List === */
.calls-list { display: flex; flex-direction: column; gap: 0.75rem; }
.call-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem; background: var(--background); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.call-item-left { display: flex; align-items: flex-start; gap: 0.75rem; }
.call-status-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; margin-top: 0.25rem; flex-shrink: 0; }
.status-success, .call-status-dot.status-success { background: var(--success); }
.status-warning, .call-status-dot.status-warning { background: var(--warning); }
.status-error, .call-status-dot.status-error { background: var(--danger); }
.status-neutral { background: var(--muted); }
.call-client { font-weight: 500; margin-bottom: 0.125rem; }
.call-time { font-size: 0.875rem; color: var(--muted); }
.call-issues { font-size: 0.75rem; color: var(--danger); margin-top: 0.25rem; }
.call-item-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* === Progress === */
.progress-list { display: flex; flex-direction: column; gap: 1rem; }
.progress-item { }
.progress-header { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.5rem; }
.progress-bar { height: 0.5rem; background: var(--background-alt); border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 9999px; transition: width 0.5s ease; }
.progress-fill.progress-success { background: var(--success); }
.progress-fill.progress-warning { background: var(--warning); }
.progress-fill.progress-primary { background: var(--primary); }

/* === Errors List === */
.errors-list { display: flex; flex-direction: column; gap: 1rem; }
.error-item { padding: 1rem; background: var(--background); border-radius: var(--radius); }
.error-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.error-name { font-weight: 500; margin-bottom: 0.25rem; }
.error-recommendation { font-size: 0.875rem; color: var(--muted); }

/* === Recommendations === */
.recommendations-list { display: flex; flex-direction: column; gap: 1.5rem; }
.recommendation-group h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.recommendation-group ul { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.recommendation-group li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }

/* === Dots === */
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 0.5rem; }
.dot-primary { background: var(--primary); }
.dot-success { background: var(--success); }
.dot-warning { background: var(--warning); }
.dot-danger { background: var(--danger); }

/* === Check List === */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }

/* === Charts === */
.chart-container { height: 16rem; position: relative; }

/* === Funnel === */
.funnel { display: flex; flex-direction: column; gap: 0.75rem; }
.funnel-stage { display: flex; align-items: center; gap: 1rem; }
.funnel-bar {
    background: var(--gradient-hero); border-radius: var(--radius); padding: 0.75rem 1rem;
    display: flex; justify-content: space-between; align-items: center; color: white; min-width: 100px;
}
.funnel-label { font-weight: 500; }
.funnel-value { font-weight: 700; }
.funnel-percent { font-size: 0.875rem; color: var(--muted); min-width: 3rem; }

/* === Data Table === */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { font-weight: 600; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }
.user-cell { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
    width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary);
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 600;
}
.score-cell { display: flex; align-items: center; gap: 0.75rem; }
.score-value { font-weight: 600; min-width: 2rem; }
.score-bar { flex: 1; height: 0.375rem; background: var(--background-alt); border-radius: 9999px; overflow: hidden; min-width: 60px; }
.score-fill { height: 100%; border-radius: 9999px; }
.fill-success { background: var(--success); }
.fill-warning { background: var(--warning); }
.fill-danger { background: var(--danger); }

/* === Heatmap Table === */
.heatmap-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.heatmap-table th, .heatmap-table td { padding: 0.5rem; text-align: center; border: 1px solid var(--border); }
.heatmap-table th { font-weight: 600; background: var(--background-alt); font-size: 0.75rem; }
.heatmap-table td:first-child { text-align: left; font-weight: 500; }
.heatmap-cell { padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
.heatmap-success { background: var(--success-bg); color: var(--success); }
.heatmap-warning { background: var(--warning-bg); color: var(--warning); }
.heatmap-danger { background: var(--danger-bg); color: var(--danger); }

/* === KPI Progress Grid === */
.kpi-progress-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .kpi-progress-grid { grid-template-columns: repeat(3, 1fr); } }
.kpi-progress-item { }
.kpi-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; font-size: 0.875rem; }
.kpi-progress-footer { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }

/* === Activity List === */
.activity-list { display: flex; flex-direction: column; gap: 0.75rem; }
.activity-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; background: var(--background); border-radius: var(--radius); }
.activity-left { display: flex; align-items: center; gap: 0.75rem; }
.activity-status { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.status-online { background: var(--success); }
.status-offline { background: var(--danger); }
.activity-name { font-weight: 500; }
.activity-time { font-size: 0.75rem; color: var(--muted); }
.activity-right { text-align: right; }
.activity-usage { font-weight: 600; }
.activity-label { font-size: 0.75rem; color: var(--muted); }
.activity-summary { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.activity-summary-header { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.5rem; }

/* === History List === */
.history-list { display: flex; flex-direction: column; gap: 0.75rem; }
.history-item { display: flex; align-items: center; justify-content: space-between; padding: 1rem; background: var(--background); border-radius: var(--radius); border: 1px solid var(--border); }
.history-left { display: flex; align-items: flex-start; gap: 0.75rem; }
.history-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; margin-top: 0.25rem; flex-shrink: 0; }
.history-change { font-weight: 500; }
.history-date { font-size: 0.875rem; color: var(--muted); }

/* === Call Analysis === */
.calls-analysis-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .calls-analysis-grid { grid-template-columns: 350px 1fr; } }

.analysis-calls-list { display: flex; flex-direction: column; gap: 0.5rem; }
.analysis-call-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--background); transition: var(--transition); cursor: pointer;
}
.analysis-call-item:hover { border-color: var(--primary); }
.analysis-call-item.active { border-color: var(--primary); background: var(--primary-bg); }
.analysis-call-main { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.analysis-call-warmth { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.warmth-hot { background: var(--danger-bg); color: var(--danger); }
.warmth-warm { background: var(--warning-bg); color: var(--warning); }
.warmth-cold { background: var(--background-alt); color: var(--muted); }
.analysis-call-info { min-width: 0; }
.analysis-call-client { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.analysis-call-meta { font-size: 0.75rem; color: var(--muted); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.analysis-call-score { font-weight: 700; padding: 0.25rem 0.5rem; border-radius: var(--radius); }
.score-success { background: var(--success-bg); color: var(--success); }
.score-warning { background: var(--warning-bg); color: var(--warning); }
.score-danger { background: var(--danger-bg); color: var(--danger); }

.call-details-panel { display: flex; flex-direction: column; gap: 1rem; }
.call-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.call-detail-client h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.call-detail-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.call-detail-score { text-align: center; }
.score-circle { width: 4rem; height: 4rem; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 0.25rem; }
.score-circle.score-success { background: var(--success-bg); color: var(--success); }
.score-circle.score-warning { background: var(--warning-bg); color: var(--warning); }
.score-circle.score-danger { background: var(--danger-bg); color: var(--danger); }
.score-number { font-size: 1.25rem; font-weight: 700; line-height: 1; }
.score-max { font-size: 0.75rem; opacity: 0.7; }
.score-label { font-size: 0.75rem; color: var(--muted); }
.call-detail-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.call-highlights { background: var(--primary-bg); padding: 1rem; border-radius: var(--radius); }
.call-highlights h4 { font-size: 0.875rem; margin-bottom: 0.5rem; }
.call-highlights p { font-size: 0.875rem; color: var(--muted); }

.stages-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stage-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: var(--radius); font-size: 0.875rem; }
.stage-passed { background: var(--success-bg); color: var(--success); }
.stage-failed { background: var(--danger-bg); color: var(--danger); }
.stage-icon { display: flex; }

.errors-detail-list { display: flex; flex-direction: column; gap: 1rem; }
.error-detail-item { padding: 1rem; background: var(--background); border-radius: var(--radius); }
.error-detail-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.error-criteria { font-weight: 500; }
.error-description { font-size: 0.875rem; color: var(--muted); }

.recommendations-detail-list { display: flex; flex-direction: column; gap: 0.75rem; }
.recommendations-detail-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }

/* === Empty State === */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state svg { margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--muted); }

/* === Utilities === */
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* ========================================
   LANDING PAGE STYLES
======================================== */

/* Hero */
.hero { position: relative; padding: 4rem 0 5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary-bg) 0%, var(--background) 50%, var(--success-bg) 100%); z-index: -1; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-content { animation: fadeInUp 0.6s ease-out; }
.hero-title { font-size: clamp(2rem, 6vw, 3.5rem); margin: 1rem 0; line-height: 1.1; }
.hero-subtitle { font-size: 1.125rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; }
.hero-stat { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.hero-stat strong { font-weight: 600; }
.hero-demo { animation: scaleIn 0.4s ease-out; }
.demo-card { background: var(--card-gradient); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-medium); }
.demo-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.demo-header h3 { font-size: 1.125rem; }
.demo-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.demo-item { display: flex; align-items: flex-start; gap: 0.75rem; background: var(--background); padding: 1rem; border-radius: var(--radius); }
.demo-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; margin-top: 0.25rem; flex-shrink: 0; }
.demo-dot-primary { background: var(--primary); }
.demo-dot-success { background: var(--success); }
.demo-dot-warning { background: var(--warning); }
.demo-item-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.demo-item-status { font-size: 0.75rem; }
.demo-action { background: var(--primary-bg); padding: 1rem; border-radius: var(--radius); }
.demo-action h4 { font-size: 0.875rem; color: var(--primary); margin-bottom: 0.5rem; }
.demo-action p { font-size: 0.75rem; color: var(--muted); }
@media (min-width: 1024px) { .hero { padding: 5rem 0 8rem; } .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--background-alt); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .badge { margin-bottom: 1rem; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 3rem; }
.stat-card { background: var(--card-gradient); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-soft); }
.stat-card svg { margin-bottom: 0.75rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* Features Grid */
.features-grid { display: grid; gap: 1.5rem; }
.feature-card { background: var(--card-gradient); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.05); transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-medium); transform: translateY(-2px); }
.feature-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.feature-icon { width: 3rem; height: 3rem; background: var(--primary-bg); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary); transition: var(--transition); }
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.feature-description { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.6; }
.feature-benefits { display: flex; flex-direction: column; gap: 0.5rem; }
.feature-benefits li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.benefit-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; flex-shrink: 0; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* CTA */
.cta-box { background: var(--card-gradient); border-radius: var(--radius-xl); padding: 2rem; text-align: center; box-shadow: var(--shadow-soft); max-width: 40rem; margin: 0 auto; }
.cta-box h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-box p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.cta-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.section-cta { text-align: center; margin-top: 3rem; }
.section-cta p { color: var(--muted); margin-bottom: 1rem; }

/* Footer */
.footer { background: var(--background-alt); border-top: 1px solid var(--border); padding: 4rem 0 0; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 3rem; }
.footer-brand { max-width: 20rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-description { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
.footer-contacts h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.footer-contact { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); padding: 0.375rem 0; transition: var(--transition); }
.footer-contact:hover { color: var(--foreground); }
.footer-certs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.footer-links h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links a { display: block; font-size: 0.875rem; color: var(--muted); padding: 0.375rem 0; transition: var(--transition); }
.footer-links a:hover { color: var(--foreground); }
.footer-cta { background: var(--card-gradient); border-radius: var(--radius-xl); padding: 2rem; text-align: center; margin-bottom: 2rem; }
.footer-cta h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer-cta p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }
.footer-bottom-right { display: flex; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* FAQ */
.faq-container { max-width: 48rem; margin: 0 auto; background: var(--card-gradient); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: none; border: none; font-size: 1rem; font-weight: 500; text-align: left; cursor: pointer; transition: var(--transition); }
.faq-question:hover { color: var(--primary); }
.faq-icon { flex-shrink: 0; transition: var(--transition); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; }
.faq-answer p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.faq-item.active .faq-answer { display: block; }
