/* DriveMind Fleet Intelligence Style Sheets */

:root {
    --bg-primary: #020617;
    --bg-secondary: #0b1329;
    --bg-card: rgba(15, 23, 42, 0.5);
    --bg-card-hover: rgba(30, 41, 59, 0.6);
    --border-main: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(56, 189, 248, 0.2);
    
    --accent-blue: #38bdf8;
    --accent-cyan: #06b6d4;
    --accent-indigo: #818cf8;
    
    --status-healthy: #10b981;
    --status-warning: #f59e0b;
    --status-critical: #ef4444;
    
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-main: 0 4px 30px rgba(0, 0, 0, 0.5);
    --transition-fast: 0.2s ease-in-out;
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

.app-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--accent-blue);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-right-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.header-tagline {
    max-width: 600px;
    text-align: right;
}

.header-tagline p {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.4;
}

.live-viewers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
}

.viewer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* KPI Section */
.kpi-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-main);
    transition: var(--transition-fast);
}

.kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-glow);
}

.kpi-icon {
    font-size: 1.8rem;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.kpi-card.healthy .kpi-icon {
    color: var(--status-healthy);
    background: rgba(16, 185, 129, 0.1);
}

.kpi-card.warning .kpi-icon {
    color: var(--status-warning);
    background: rgba(245, 158, 11, 0.1);
}

.kpi-card.critical .kpi-icon {
    color: var(--status-critical);
    background: rgba(239, 68, 68, 0.1);
}

.kpi-card.anomaly .kpi-icon {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
}

.kpi-info h3 {
    font-size: 0.85rem;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Navigation Tabs */
.app-nav {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 4px;
    overflow-x: auto;
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-sub);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.nav-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.05);
}

/* Workspaces */
.app-workspace {
    min-height: 500px;
}

.workspace-tab {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.workspace-tab.active {
    display: block;
}

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

/* Grid Cards */
.grid-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-main);
}

.card-header {
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.card-header h2 i {
    color: var(--accent-blue);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-sub);
}

/* Dashboard Tab */
.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}

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

.table-container {
    overflow-x: auto;
    max-height: 480px;
}

.fleet-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.fleet-table th, .fleet-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-main);
}

.fleet-table th {
    font-size: 0.85rem;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.fleet-table tbody tr {
    cursor: pointer;
    transition: var(--transition-fast);
}

.fleet-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.fleet-table tbody tr.active-inspect {
    border-left: 3px solid var(--accent-blue);
    background: rgba(56, 189, 248, 0.05);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.healthy {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-healthy);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--status-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--status-critical);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.charts-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chart-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border-main);
}

.chart-box h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 12px;
}

/* Diagnostics Tab */
.diagnostics-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}

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

.left-col, .right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vehicle-summary-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.vehicle-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.profile-meta h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.profile-meta span {
    color: var(--text-sub);
    font-size: 0.9rem;
}

.profile-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-status.critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--status-critical);
    border: 1px solid var(--status-critical);
}

.profile-status.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--status-warning);
    border: 1px solid var(--status-warning);
}

.profile-status.healthy {
    background: rgba(16, 185, 129, 0.2);
    color: var(--status-healthy);
    border: 1px solid var(--status-healthy);
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mini-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-card span {
    font-size: 0.75rem;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mini-card strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.ml-result-block {
    margin-bottom: 24px;
}

.ml-result-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
    border-left: 3px solid var(--accent-blue);
    padding-left: 8px;
}

.probability-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prob-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prob-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.prob-label {
    font-weight: 500;
}

.prob-value {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

.prob-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.prob-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 4px;
    width: 0%;
    transition: width 0.8s ease-out;
}

.explanation-note {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 12px;
}

/* Graph Tab */
.graph-workspace {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
}

@media (max-width: 1000px) {
    .graph-workspace {
        grid-template-columns: 1fr;
    }
}

.graph-view-card {
    min-height: 600px;
    position: relative;
}

#vis-graph-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-main);
}

.details-content {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 16px;
    min-height: 500px;
}

.placeholder-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 100px;
}

.node-details-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-blue);
    border-bottom: 1px solid var(--border-main);
    padding-bottom: 8px;
}

.node-details-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    margin-bottom: 16px;
}

.node-prop-item {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.node-prop-item strong {
    color: var(--text-sub);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

/* Q&A Tab */
.qa-workspace {
    display: grid;
    grid-template-columns: 250px 1fr 380px;
    gap: 24px;
    height: 70vh;
}

@media (max-width: 1200px) {
    .qa-workspace {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.qa-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.qa-sidebar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-question {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    color: var(--text-sub);
    text-align: left;
    padding: 10px 12px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-question:hover {
    color: #fff;
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
}

.qa-chat-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.15);
}

.message {
    display: flex;
    gap: 16px;
    max-width: 85%;
}

.message.user-msg {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.message.user-msg .msg-avatar {
    background: var(--accent-indigo);
    color: #fff;
}

.message.system-msg .msg-avatar {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.msg-content {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.92rem;
}

.message.user-msg .msg-content {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* MD styling in messages */
.msg-content h1, .msg-content h2, .msg-content h3 {
    margin-top: 12px;
    margin-bottom: 8px;
    color: #fff;
}
.msg-content h1 { font-size: 1.25rem; border-bottom: 1px solid var(--border-main); padding-bottom: 4px; }
.msg-content h2 { font-size: 1.1rem; }
.msg-content h3 { font-size: 0.95rem; }
.msg-content p { margin-bottom: 8px; }
.msg-content ul, .msg-content ol { margin-left: 20px; margin-bottom: 12px; }
.msg-content li { margin-bottom: 4px; }
.msg-content pre {
    background: rgba(0, 0, 0, 0.4);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid var(--border-main);
}
.msg-content blockquote {
    border-left: 3px solid var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
    padding: 6px 12px;
    margin: 8px 0;
    font-style: italic;
}

.chat-input-bar {
    display: flex;
    border-top: 1px solid var(--border-main);
    padding: 16px;
    background: var(--bg-primary);
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

#chat-input:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.05);
}

#btn-submit-chat {
    background: var(--accent-blue);
    border: none;
    color: #000;
    padding: 0 20px;
    border-radius: 8px;
    margin-left: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

#btn-submit-chat:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.qa-agent-trail {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.trail-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trail-header .subtext {
    font-size: 0.75rem;
    color: var(--text-sub);
}

.empty-trail {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 60px 20px;
}

.loading-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.agent-step-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.step-agent-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.step-thought {
    font-size: 0.75rem;
    color: var(--text-sub);
    font-style: italic;
    margin-bottom: 8px;
}

.step-output-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    overflow-x: auto;
    max-height: 200px;
}

/* Evaluation Tab */
.evaluation-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eval-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eval-title h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.eval-title p {
    color: var(--text-sub);
    font-size: 0.9rem;
}

.btn-run-eval {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, rgba(99, 102, 241, 0.8) 100%);
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition-fast);
}

.btn-run-eval:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.eval-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.eval-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-main);
}

.eval-stat-card h3 {
    font-size: 0.75rem;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.eval-stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.eval-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.eval-table th, .eval-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-main);
    text-align: left;
}

.eval-table th {
    color: var(--text-sub);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.placeholder-td {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Loading animations */
.loading-td {
    text-align: center;
    padding: 40px;
    color: var(--text-sub);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DRIVEMIND LANDING PAGE & MAGIC BENTO STYLES (React Bits Inspired)
   ═══════════════════════════════════════════════════════════════════════════ */

#tab-hero.active {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 40px;
}

.hero-container {
    position: relative;
    min-height: 520px;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(2, 6, 23, 0.8) 70%),
                rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 30px;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: 'Syne', 'Space Grotesk', sans-serif;
    font-size: 4.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, #818cf8 75%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
    margin: 6px 0;
}

.hero-subtitle {
    font-family: 'Bricolage Grotesque', 'Outfit', sans-serif;
    font-size: 1.22rem;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.6;
    max-width: 760px;
}

.hero-subtitle strong {
    color: #f8fafc;
    font-weight: 600;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.specular-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Space Grotesk', var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #0284c7 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.secondary-btn {
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    transform: translateY(-3px);
    background: rgba(30, 41, 59, 0.9);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.4);
}

.hero-metrics-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding: 12px 28px;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
}

.text-green { color: #10b981; }
.text-cyan  { color: #38bdf8; }
.text-indigo { color: #818cf8; }
.text-amber { color: #f59e0b; }

.metric-lbl {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.hero-metric-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
}

/* Bento Section */
.bento-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bento-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.bento-header h2 {
    font-family: 'Space Grotesk', var(--font-sans);
    font-size: 1.8rem;
    font-weight: 700;
    color: #f8fafc;
}

.bento-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 4px;
}

.magic-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bento-card {
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.bento-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
}

.bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #818cf8;
    text-transform: uppercase;
}

.bento-card h3 {
    font-family: 'Space Grotesk', var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.bento-card p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
}

.bento-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.bento-chip {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-family: var(--font-mono);
}

.bento-pipeline-visual {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.pipe-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
}

.pipe-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    color: #ffffff;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

.pipe-arrow {
    color: #64748b;
    font-size: 0.8rem;
}

