:root {
    /* Cyberpunk Premium UI Theme */
    --bg-color: #0a0c1a;
    --bg-secondary: #0f172a;
    --sidebar-bg: #0f172a;
    --sidebar-hover: rgba(59, 130, 246, 0.1);

    --primary-color: #3b82f6;
    --secondary-color: #6366f1;
    --accent-color: #0ea5e9;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-sidebar: #94a3b8;
    --text-sidebar-active: #ffffff;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* --cyber-border */
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    --gradient-text: linear-gradient(to right, #3b82f6, #22c55e);

    /* Aliases for compatibility */
    --bg-dark: #0a0c1a;
    --card-bg: rgba(15, 23, 42, 0.6);
    --primary: #3b82f6;
    --text-main: #f8fafc;
    --border-color: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(15, 23, 42, 0.6);

    /* Cyberpunk specific aliases */
    --cyber-bg: var(--glass-bg);
    --cyber-border: var(--glass-border);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

/* Moving Mesh Gradient Background Global */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(54, 153, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(13, 18, 45, 1) 0%, rgba(10, 12, 26, 1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* GLOBAL SCROLLBAR HIDER */
::-webkit-scrollbar {
    display: none !important;
}

* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}


/* Responsive Utilities */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    border-radius: 16px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-primary {
    background: var(--gradient-main);
    color: #cbd5e1;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(54, 153, 255, 0.1);
}

/* Hide User Profile in Header */
.user-profile {
    display: none !important;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 5%;
    background: white;
    border-radius: 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: radial-gradient(circle at 10% 20%, rgba(54, 153, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    animation: float 6s ease-in-out infinite;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-1 {
    top: 20%;
    left: 10%;
    z-index: 2;
}

.card-2 {
    bottom: 20%;
    right: 10%;
    z-index: 3;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.floating-card h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.floating-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dashboard-preview {
    width: 400px;
    height: 280px;
    background: rgba(255, 255, 255, 0.8);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.chart-mockup {
    height: 120px;
    background: linear-gradient(180deg, rgba(54, 153, 255, 0.1) 0%, transparent 100%);
    border-radius: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.row-mockup {
    height: 40px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Section */
.features-section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    transition: transform 0.3s ease;
    cursor: default;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(54, 153, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Integration Section */
.integration-section {
    padding: 100px 5%;
    background: var(--bg-color);
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.brand-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.brand-tag {
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.visual-content {
    flex: 1;
    padding: 30px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.olt-interface-mockup {
    width: 100%;
}

.mock-header {
    margin-bottom: 15px;
    font-family: monospace;
    color: #4ade80;
}

.mock-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-item {
    padding: 10px;
    background: #1e1e2d;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.mock-item.active {
    border-left: 3px solid #4ade80;
    color: #4ade80;
}

.mock-item.error {
    border-left: 3px solid #f87171;
    color: #f87171;
}

/* Extra Features */
.extra-features {
    padding: 80px 5%;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.list-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 80px 5% 20px;
    background: var(--sidebar-bg);
    color: #cbd5e1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: #cbd5e1;
}

.footer-col p,
.footer-col a {
    color: #b5b5c3;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #7e8299;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
        background: white;
        bottom: auto;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--card-shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .navbar .btn-primary {
        display: none;
        /* Hide Member Area button on mobile sticky nav if space is tight, or move it into nav-links */
    }

    /* Modify nav-links to include the Member Area button if screen is small */
    .nav-links .mobile-only-btn {
        display: inline-block;
        margin-top: 10px;
    }

    .hero {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .text-content {
        text-align: center;
    }

    .brand-grid {
        justify-content: center;
    }
}

/* Main Content - Pushed by Sidebar */
.main-content {
    margin-left: 250px;
    /* Sidebar width */
    padding: 30px;
    width: calc(100% - 250px);
    transition: all 0.3s ease;
    min-height: 100vh;
}

.main-content.collapsed {
    margin-left: 80px;
    /* Collapsed sidebar width */
    width: calc(100% - 80px);
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none !important;
    }
}