/* OmniTeq Cloud Dashboard Styling */
:root {
    /* Light Theme Colors */
    --bg-light: #f4f6f8;
    --surface-light: #ffffff;
    --text-light: #1e293b;
    --text-muted-light: #64748b;
    --border-light: #e2e8f0;
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border-light: rgba(255, 255, 255, 0.5);

    /* Dark Theme Colors */
    --bg-dark: #0a192f;
    --surface-dark: #112240;
    --text-dark: #e6f1ff;
    --text-muted-dark: #8892b0;
    --border-dark: #233554;
    --glass-bg-dark: rgba(10, 25, 47, 0.7);
    --glass-border-dark: rgba(100, 255, 218, 0.1);

    /* Brand & Accent Colors */
    --primary: #3b82f6; /* Blue Accent */
    --primary-hover: #2563eb;
    --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #8b5cf6;
    --info-bg: rgba(139, 92, 246, 0.1);

    /* Spacing & Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;
    --transition-speed: 0.3s;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

.dark-theme, .dark-theme body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
}

.dark-theme ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}
.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-speed);
}

.dark-theme .glass-panel {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.glass-panel-sidebar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--glass-border-light);
    transition: width var(--transition-speed), background var(--transition-speed);
}

.dark-theme .glass-panel-sidebar {
    background: rgba(15, 23, 42, 0.6);
    border-right-color: var(--glass-border-dark);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    z-index: 100;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-light);
}

.dark-theme .sidebar-header {
    border-color: var(--border-dark);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    overflow: hidden;
    white-space: nowrap;
}

.logo i {
    font-size: 28px;
    min-width: 28px;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted-light);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.dark-theme .toggle-btn {
    color: var(--text-muted-dark);
}

.toggle-btn:hover {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    padding: 20px 10px;
    flex: 1;
    overflow-y: auto;
}

.nav-links li {
    margin-bottom: 8px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    color: var(--text-muted-light);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
}

.dark-theme .nav-links a {
    color: var(--text-muted-dark);
}

.nav-links a i {
    font-size: 22px;
    min-width: 22px;
}

.nav-links li.active a,
.nav-links a:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 100%);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 11px; /* Account for border */
}

.sidebar.collapsed .logo span,
.sidebar.collapsed .nav-links .link-name {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .logo {
    display: none;
}

.divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px 10px;
}

.dark-theme .divider {
    background: var(--border-dark);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Topbar */
.topbar {
    height: var(--header-height);
    background: var(--glass-bg-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.dark-theme .topbar {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 8px 16px;
    width: 300px;
}

.dark-theme .search-box {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--border-dark);
}

.search-box i {
    color: var(--text-muted-light);
    font-size: 20px;
    margin-right: 8px;
}

.dark-theme .search-box i {
    color: var(--text-muted-dark);
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    color: var(--text-light);
    width: 100%;
    font-family: var(--font-main);
}

.dark-theme .search-box input {
    color: var(--text-dark);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted-light);
    font-size: 24px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.dark-theme .icon-btn {
    color: var(--text-muted-dark);
}

.icon-btn:hover {
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted-light);
}

.dark-theme .user-role {
    color: var(--text-muted-dark);
}

/* Dashboard Content */
.content-wrapper {
    padding: 30px 40px;
    flex: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dark-theme .stat-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.b-blue { background: var(--info-bg); color: var(--primary); }
.b-green { background: var(--success-bg); color: var(--success); }
.b-red { background: var(--danger-bg); color: var(--danger); }
.b-purple { background: var(--info-bg); color: var(--info); }

.stat-details h3 {
    font-size: 14px;
    color: var(--text-muted-light);
    font-weight: 500;
    margin-bottom: 4px;
}

.dark-theme .stat-details h3 {
    color: var(--text-muted-dark);
}

.stat-details h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.trend, .status-text {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.trend.up { color: var(--success); }
.text-green { color: var(--success); }
.text-red { color: var(--danger); }

/* Main Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.dark-theme .panel-header {
    border-color: var(--border-dark);
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.view-all {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Chart Container */
.chart-container {
    display: flex;
    flex-direction: column;
}

.canvas-wrapper {
    padding: 24px;
    flex: 1;
    position: relative;
    height: 350px;
}

.styled-select {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.dark-theme .styled-select {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

/* Device List */
.device-list {
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: background 0.2s, transform 0.2s;
    border: 1px solid transparent;
}

.device-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
    border-color: var(--border-light);
}

.dark-theme .device-item {
    border-color: transparent;
}

.dark-theme .device-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-dark);
}

.device-item:last-child {
    border-bottom: none;
}

.device-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.device-status.online { background: var(--success); box-shadow: 0 0 8px var(--success); }
.device-status.offline { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

.device-info {
    flex: 1;
}

.device-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.device-info p {
    font-size: 12px;
    color: var(--text-muted-light);
}

.dark-theme .device-info p {
    color: var(--text-muted-dark);
}

.device-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.badge.b-gray {
    position: static;
    background: var(--border-light);
    color: var(--text-muted-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    width: auto;
    height: auto;
}

.dark-theme .badge.b-gray {
    background: var(--border-dark);
    color: var(--text-muted-dark);
}

.time {
    font-size: 11px;
    color: var(--text-muted-light);
}

.dark-theme .time {
    color: var(--text-muted-dark);
}

.btn-icon {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.dark-theme .btn-icon {
    background: var(--surface-dark);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Tables */
.mt-4 { margin-top: 24px; }

.table-responsive {
    overflow-x: auto;
    padding: 0 24px 24px 24px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.styled-table th, .styled-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.styled-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

.dark-theme .styled-table th, .dark-theme .styled-table td {
    border-color: var(--border-dark);
}

.dark-theme .styled-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.styled-table th {
    font-weight: 600;
    color: var(--text-muted-light);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.dark-theme .styled-table th {
    color: var(--text-muted-dark);
}

.id-col {
    font-family: monospace;
    color: var(--text-muted-light);
}

.dark-theme .id-col {
    color: var(--text-muted-dark);
}

code {
    background: var(--border-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.dark-theme code {
    background: var(--border-dark);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success { background: var(--success-bg); color: var(--success); }
.status-badge.failed { background: var(--danger-bg); color: var(--danger); }
.status-badge.queued { background: var(--warning-bg); color: var(--warning); }
.status-badge.sent { background: var(--info-bg); color: var(--info); }

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding: 0 20px;
    }
    
    .search-box {
        width: 200px;
    }
}

/* ==========================================================================
   Landing Page Specific Styles
   ========================================================================== */
   
.landing-page, .dashboard-page {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.glow-1 {
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.25); /* Primary blue */
}

.glow-2 {
    top: 40%;
    right: -200px;
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.2); /* Purple */
}

.glow-3 {
    bottom: -150px;
    left: 20%;
    width: 700px;
    height: 400px;
    background: rgba(16, 185, 129, 0.15); /* Green */
}

/* Typography Enhancements */
.text-center { text-align: center; }
.w-100 { width: 100%; flex: 1 1 100%; }
.p-5 { padding: 3rem; }
.text-danger { color: #ef4444; }
.text-muted { color: #94a3b8; }
.text-gradient {
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}
.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted-dark);
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    border-radius: 50px;
    padding: 10px 32px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--glass-bg-dark);
    background: transparent;
}
.landing-nav.scrolled {
    padding: 12px 0;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    height: 40px;
    transition: height 0.3s ease;
}
.landing-nav.scrolled .logo img {
    height: 34px;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    padding: 8px 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}
.nav-actions { display: flex; gap: 20px; align-items: center; }

.nav-auth-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-auth-link:hover {
    color: var(--primary);
}

.nav-auth-btn {
    padding: 8px 20px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-auth-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.cta-button {
    padding: 10px 24px;
    background: var(--brand-gradient);
    color: #0a192f;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 210, 193, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Hero Section */
.hero-section {
    padding: 180px 20px 100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
}
.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted-dark);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Visual Mockup */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}
.dashboard-mockup {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    background: var(--surface-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg);
    transform-origin: top center;
    transition: transform 0.5s;
}
.dashboard-mockup:hover { transform: rotateX(0deg); }
.mockup-header {
    height: 40px;
    background: #0f172a;
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    padding: 0 16px;
}
.mockup-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-dark);
    margin-right: 6px;
}
.mockup-body { display: flex; flex: 1; }
.mockup-sidebar {
    width: 20%;
    border-right: 1px solid var(--border-dark);
    background: #0f172a;
}
.mockup-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mockup-cards { display: flex; gap: 16px; }
.m-card {
    flex: 1;
    height: 80px;
    background: var(--glass-bg-dark);
    border-radius: var(--radius-md);
}
.m-chart {
    flex: 1;
    background: var(--glass-bg-dark);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}
.m-line {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 60%;
    border-bottom: 2px solid var(--primary);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 20px 20px -10px rgba(59,130,246,0.3);
}

.floating-element {
    position: absolute;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
}
.f-1 { top: 10%; right: -5%; }
.f-2 { bottom: 20%; left: -5%; animation-delay: 3s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Sections */
.features-section, .api-section, .cta-section {
    padding: 100px 20px;
}
.section-header { margin-bottom: 60px; }
.section-title { font-size: 40px; font-weight: 700; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--text-muted-dark); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    padding: 40px 30px;
    text-align: left;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.feature-card:hover { 
    transform: translateY(-10px); 
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
}
.feature-icon, .f-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.feature-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; color: #f8fafc; }
.feature-card p { color: #94a3b8; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s;
}
.learn-more:hover { gap: 12px; }
.feature-card p { color: var(--text-muted-dark); line-height: 1.6; font-size: 14px; }

/* API Section */
.api-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.api-content { flex: 1; text-align: left; }
.api-content .section-subtitle { margin: 0 0 30px 0; max-width: 100%; }
.api-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.api-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text-muted-dark); }
.api-list i { color: var(--success); font-size: 20px; }
.api-list strong { color: var(--text-dark); }
.api-code-block {
    flex: 1;
    background: #0f172a;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.code-header {
    background: var(--surface-dark);
    padding: 12px 20px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-muted-dark);
    border-bottom: 1px solid var(--border-dark);
}
.api-code-block pre {
    padding: 24px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
}
.api-code-block .keyword { color: #c678dd; }
.api-code-block .string { color: #98c379; }
.api-code-block .property { color: #e06c75; }
.api-code-block .number { color: #d19a66; }

/* CTA Box */
.cta-box {
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.cta-box h2 { font-size: 36px; margin-bottom: 16px; }
.cta-box p { font-size: 18px; color: var(--text-muted-dark); margin-bottom: 32px; }

/* Footer */
.landing-footer { 
    background: #070a13;
    border-top: 1px solid var(--border-dark); 
    padding: 80px 20px 40px; 
    margin-top: 100px; 
    position: relative;
    z-index: 10;
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 60px; 
    max-width: 1200px; 
    margin: 0 auto 60px; 
}
.footer-brand { flex: 1.5; min-width: 280px; }
.footer-brand p { color: var(--text-muted-dark); margin-top: 25px; line-height: 1.8; font-size: 15px; }
.footer-links-container { flex: 3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-links-col { min-width: 150px; }
.footer-links-col h4 { font-size: 18px; margin-bottom: 30px; color: var(--text-dark); font-weight: 700; letter-spacing: 0.5px; }
.footer-links-col a { display: flex; align-items: center; gap: 10px; color: var(--text-muted-dark); text-decoration: none; margin-bottom: 15px; transition: all 0.3s; font-size: 15px; }
.footer-links-col a:hover { color: var(--primary); transform: translateX(5px); }
.footer-links-col a i { font-size: 18px; color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 40px; color: var(--text-muted-dark); font-size: 14px; text-align: center; }

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .api-container { flex-direction: column; }
    .hero-title { font-size: 48px; }
    .f-1, .f-2 { display: none; }
    .nav-links-desktop { display: none; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-section { padding-top: 120px; }
    .features-grid { grid-template-columns: 1fr; }
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 36px; /* Adjust height as needed */
    width: auto;
    object-fit: contain;
}

.landing-page .btn-secondary {
    color: #60a5fa; /* Light blue for readability on dark background */
    border-color: #60a5fa;
}

.landing-page .btn-secondary:hover {
    background-color: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
    border-color: #93c5fd;
}

/* Product Cards & Footer Overrides */
.products-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.products-slider::-webkit-scrollbar { display: none; }

.product-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.product-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.1); }
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.product-content {
    padding: 25px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-content h3 { font-size: 20px; margin-bottom: 12px; color: #f8fafc; }
.product-content p { color: #94a3b8; font-size: 14px; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}


/* Stats Section Perfection */
#stats {
    background: #0b0f19 !important; 
    padding: 100px 20px !important;
    position: relative;
    overflow: hidden;
}
#stats::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.stat-item {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.stat-item:hover {
    transform: translateY(-15px);
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.stat-value {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 12px;
    display: block;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Ensure all landing sections are dark */
.features-section, .api-section, .cta-section {
    background: #0b0f19 !important;
    color: #f8fafc !important;
}

/* Custom glow for sections */
.api-section {
    position: relative;
}
.api-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: 0;
}
