/* ========================================
   Prospexly - NeonShield Theme
   ======================================== */

/* CSS Variables */
:root {
    --bg-dark: #050505;
    --bg-darker: #080808;
    --bg-card: #0d0d0d;
    --bg-elevated: #111111;
    --accent: #00d4ff;
    --accent-dim: rgba(0, 212, 255, 0.15);
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 212, 255, 0.3);
    --green: #27ca40;
    --red: #ff5f56;
    --yellow: #ffbd2e;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Glow Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

/* MudBlazor Layout Overrides */
.mud-layout {
    min-height: 100vh;
}

.mud-main-content {
    padding-top: 64px;
    position: relative;
    z-index: 1;
}

.mud-appbar {
    background: rgba(5, 5, 5, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border) !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

.header-transition {
    transition: background 0.3s ease !important;
}

/* Home Page Container */
.home-page {
    position: relative;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 60px 20px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    margin-bottom: 40px;
}

.hero-badge, .int-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.hero-title-gradient {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .hero-title { font-size: 64px; }
    .hero-subtitle { font-size: 17px; }
}

/* ========================================
   Dashboard Preview
   ======================================== */
.dashboard-container {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.dashboard-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.window-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-green { background: var(--green); }

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-gray);
}

.title-icon {
    width: 18px;
    height: 18px;
    background: var(--accent);
    color: #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.title-env {
    color: var(--text-dim);
    font-size: 12px;
}

.window-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--green);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.dashboard-body {
    display: flex;
}

.dash-sidebar {
    width: 48px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sidebar-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
}

.sidebar-item.active {
    background: var(--accent);
    color: #000;
}

.dash-main {
    flex: 1;
    padding: 16px;
    min-width: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1;
}

.stat-unit {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 400;
}

.stat-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 10px 0 8px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    width: 70%;
    background: linear-gradient(90deg, var(--accent), rgba(0, 212, 255, 0.4));
    border-radius: 2px;
}

.stat-change {
    font-size: 11px;
    color: var(--green);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
}

.chart-box, .logs-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}

.chart-header, .logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.chart-tabs {
    display: flex;
    gap: 4px;
}

.chart-tab {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    color: var(--text-dim);
}

.chart-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.chart-graph {
    height: 70px;
}

.chart-graph svg {
    width: 100%;
    height: 100%;
}

.logs-list {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 10px;
}

.log-row {
    display: flex;
    gap: 8px;
    padding: 2px 0;
    align-items: center;
}

.log-time {
    color: var(--text-dim);
    min-width: 55px;
}

.log-tag {
    font-weight: 600;
    min-width: 42px;
    font-size: 9px;
}

.tag-block { color: var(--red); }
.tag-allow { color: var(--green); }
.tag-warn { color: var(--yellow); }

.log-ip {
    color: var(--text-gray);
}

/* Feature Row */
.feature-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
}

/* Mobile Responsive Dashboard */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .charts-grid { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .feature-row { gap: 20px; }
}

/* ========================================
   Floating Side Badges
   ======================================== */
.floating-side {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
}

@media (min-width: 1280px) {
    .floating-side { display: block; }
}

.float-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.float-label {
    display: block;
    font-size: 10px;
    color: var(--text-dim);
}

.float-value {
    font-size: 12px;
    color: var(--accent);
}

/* ========================================
   Partners Section
   ======================================== */
.partners {
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    font-size: 36px;
    font-weight: 500;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 40px;
}

.partner-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 420px;
    margin: 0 auto 60px;
}

.partner-box {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-dim);
    transition: all 0.3s;
}

.partner-box:hover {
    border-color: var(--border-hover);
    color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

/* Connection Visual */
.connection-wrap {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-center {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px var(--accent-dim), 0 0 60px var(--accent-dim);
}

.connection-line {
    position: absolute;
    top: 50%;
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.line-left { right: calc(50% + 35px); }
.line-right { left: calc(50% + 35px); }

.connection-lines {
    position: absolute;
    width: 280px;
    height: 180px;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.orbit-1 { width: 120px; height: 80px; transform: translate(-50%, -50%) rotate(-15deg); }
.orbit-2 { width: 180px; height: 110px; transform: translate(-50%, -50%) rotate(10deg); }
.orbit-3 { width: 240px; height: 140px; transform: translate(-50%, -50%) rotate(-5deg); }

@media (max-width: 640px) {
    .partner-icons {
        grid-template-columns: repeat(2, 1fr);
        max-width: 220px;
    }
}

/* ========================================
   Integrations Section
   ======================================== */
.integrations {
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.int-diamond {
    max-width: 600px;
    margin: 40px auto 0;
}

.int-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.int-row-top { margin-bottom: 20px; }
.int-row-bottom { margin-top: 20px; }

.int-card {
    width: 200px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.3s;
}

.int-card:hover {
    border-color: var(--border-hover);
}

.int-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.int-notion {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
}

.int-text {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.int-hub {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--accent-dim);
}

@media (max-width: 640px) {
    .int-row {
        flex-direction: column;
        align-items: center;
    }
    .int-card {
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   Config Section
   ======================================== */
.config {
    padding: 80px 20px;
    background: rgba(0, 212, 255, 0.02);
}

.config-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.config-icon-wrap {
    margin-bottom: 20px;
}

.config-heading {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 16px;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.config-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0 0 24px;
}

.config-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.config-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-gray);
}

.config-bullet {
    width: 8px;
    height: 8px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

/* Code Preview */
.code-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.code-bar {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 6px;
}

.code-body {
    padding: 16px;
}

.ai-box {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.ai-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 8px;
}

.ai-box p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

.code-snippet {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.code-snippet pre {
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.code-snippet .kw { color: var(--accent); }
.code-snippet .var { color: #e2e8f0; }
.code-snippet .prop { color: #7dd3fc; }
.code-snippet .str { color: #a5d6ff; }
.code-snippet .bool { color: var(--accent); }

@media (max-width: 960px) {
    .config-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.cta-heading {
    font-size: 36px;
    font-weight: 500;
    margin: 0 0 12px;
    position: relative;
}

.cta-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 32px;
    position: relative;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.btn-primary {
    padding: 12px 24px;
    background: var(--text-white);
    color: #000;
    border: 1px solid var(--text-white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-white);
}

.btn-secondary {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-gray);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.btn-secondary:hover {
    color: var(--text-white);
}

/* ========================================
   MudBlazor Overrides
   ======================================== */
.mud-typography {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.mud-drawer {
    background: var(--bg-darker) !important;
    border-right: 1px solid var(--border) !important;
}

.mud-drawer-header {
    background: var(--accent) !important;
}

.mud-drawer-header .mud-typography {
    color: #000 !important;
}

.mud-nav-link:hover {
    background: rgba(0, 212, 255, 0.1) !important;
}

.mud-nav-link.active {
    background: rgba(0, 212, 255, 0.15) !important;
    color: var(--accent) !important;
}

.mud-button-root {
    text-transform: none !important;
}

.mud-button-filled.mud-button-primary {
    background: var(--accent) !important;
    color: #000 !important;
}

.mud-card, .mud-paper {
    background: var(--bg-card) !important;
    border: 1px solid var(--border);
}

.mud-input-outlined .mud-input-outlined-border {
    border-color: var(--border) !important;
}

.mud-link {
    color: var(--accent) !important;
}

/* ========================================
   Footer Overrides
   ======================================== */
footer {
    background: var(--bg-darker) !important;
    border-top: 1px solid var(--border) !important;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   Utility & Error States
   ======================================== */
a { color: var(--accent); }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--green);
}

.invalid {
    outline: 1px solid var(--red);
}

.validation-message {
    color: var(--red);
}

.blazor-error-boundary {
    background: var(--red);
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ========================================
   CRM App Global Overrides
   ======================================== */

/* Table Header Styling - Override purple with cyan */
.mud-table-head .mud-table-cell {
    background: rgba(0, 212, 255, 0.05) !important;
    font-weight: 600 !important;
}

/* Stat Cards - Cyan gradient background */
.stat-card-gradient {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.1)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
}

/* Feature highlight boxes */
.feature-highlight-box {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
}

/* Primary gradient buttons */
.btn-gradient-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4) !important;
}

.btn-gradient-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6) !important;
}

/* Icon accent color */
.icon-accent {
    color: #00d4ff !important;
}

/* Gradient text */
.text-gradient-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Info/highlight paper background */
.paper-highlight {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
}

/* Hover effects using cyan */
.hover-cyan:hover {
    background: rgba(0, 212, 255, 0.15) !important;
}

/* FAB button styling */
.fab-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5) !important;
}

.fab-primary:hover {
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.7) !important;
}

/* Dialog header gradient */
.dialog-header-gradient {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Hero CTA & Trust Section
   ======================================== */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-trust, .cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-dim);
}

/* ========================================
   Social Proof Section
   ======================================== */
.social-proof {
    padding: 40px 20px 60px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.proof-text {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0 0 24px;
    letter-spacing: 0.5px;
}

.proof-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.proof-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dim);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.proof-logo:hover {
    opacity: 1;
}

.logo-item {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.logo-item:hover {
    opacity: 0.8;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.03) 0%, transparent 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number-large {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label-large {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-sublabel {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.stat-divider {
    width: 1px;
    height: 80px;
    background: var(--border);
}

@media (max-width: 960px) {
    .stats-container {
        gap: 40px;
    }

    .stat-number-large {
        font-size: 2.5rem;
    }

    .stat-divider {
        display: none;
    }
}

@media (max-width: 640px) {
    .stats-container {
        flex-direction: column;
        gap: 32px;
    }

    .stat-item {
        padding: 16px;
    }
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.testimonial-featured {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
    border-color: rgba(0, 212, 255, 0.2);
}

.testimonial-quote {
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-featured .testimonial-text {
    font-size: 1.125rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.testimonial-stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.testimonial-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
}

.testimonial-stat .stat-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 960px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-featured {
        grid-column: span 1;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ========================================
   Why Choose Us / Comparison Section
   ======================================== */
.why-choose {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 20px 24px;
    background: rgba(0, 212, 255, 0.05);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.comparison-header .comparison-feature {
    color: var(--text-dim);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-header .comparison-us {
    display: flex;
    justify-content: center;
    align-items: center;
}

.comparison-header .comparison-others {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-row .comparison-feature {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.comparison-row .comparison-us,
.comparison-row .comparison-others {
    display: flex;
    justify-content: center;
    align-items: center;
}

.comparison-row .partial {
    font-size: 0.8125rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        padding: 12px 16px;
    }

    .comparison-row .comparison-feature {
        font-size: 0.8125rem;
    }

    .comparison-header .comparison-us img {
        height: 16px;
    }
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-wrap {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-white);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0 0 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
    padding: 6px 0;
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 212, 255, 0.02);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    max-width: 300px;
    flex: 1;
    min-width: 260px;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: var(--border-hover);
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #000;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-white);
}

.step-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 960px) {
    .step-connector {
        transform: rotate(90deg);
    }

    .steps-grid {
        flex-direction: column;
    }
}

/* ========================================
   Integrations Section (New Cards)
   ======================================== */
.int-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .int-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .int-grid {
        grid-template-columns: 1fr;
    }
}

.int-card-new {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.int-card-new:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.int-icon-new {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    margin: 0 auto 16px;
}

.int-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-white);
}

.int-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-grid.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
}

@media (max-width: 1200px) {
    .pricing-grid.pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 960px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-grid.pricing-grid-4 {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--border-hover);
}

.pricing-featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.08) 0%, var(--bg-card) 100%);
    transform: scale(1.05);
}

.pricing-featured:hover {
    border-color: var(--accent);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.pricing-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-white);
}

.pricing-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 24px;
    min-height: 40px;
}

.pricing-price {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-white);
}

.price-period {
    font-size: 14px;
    color: var(--text-dim);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.pricing-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pricing-btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.pricing-btn-primary:hover {
    background: #00b8d9;
    border-color: #00b8d9;
    color: #000;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-white);
}

.faq-answer {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   CRM Page Layout - Viewport Fit
   ======================================== */
.crm-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px;
    background: #050505;
}

/* Override MudContainer within CRM pages */
.crm-content .mud-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 100%;
}

/* MudTable scrollable within its container */
.crm-content .mud-table-container {
    overflow-y: auto;
    max-height: calc(100vh - 320px);
}

/* MudDataGrid scrollable */
.crm-content .mud-data-grid {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 280px);
}

.crm-content .mud-data-grid .mud-table-container {
    flex: 1;
    overflow-y: auto;
}

/* Scrollable card content areas */
.scrollable-content {
    overflow-y: auto;
    flex: 1;
}

/* Fixed height panels with internal scroll */
.panel-fixed {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-fixed .panel-body {
    flex: 1;
    overflow-y: auto;
}
