:root {
    /* 
       VirexQ Premium Design System 3.0 
       "Hyper-Glass" Theme 
    */

    /* Colors - Deep & Vibrant */
    --bg-deep: #030405;
    /* Almost pure black for depth */
    --bg-surface: #0a0c10;
    /* Slightly lighter for contrast */

    /* Advanced Glassmorphism */
    --glass-base: rgba(255, 255, 255, 0.03);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --glass-shine: rgba(255, 255, 255, 0.08);
    /* Highlight edge */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.12);

    /* Neons & Accents */
    --accent-primary: #00F0FF;
    /* Cyber Cyan */
    --accent-glow: rgba(0, 240, 255, 0.4);

    --accent-secondary: #9D00FF;
    /* Electric Purple */
    --accent-secondary-glow: rgba(157, 0, 255, 0.4);

    --text-main: #FFFFFF;
    --text-med: #94A3B8;
    /* Slate-300ish */
    --text-dim: #475569;
    /* Slate-600ish */

    /* Spacing & Layout */
    --nav-height: 90px;
    --container-width: 1400px;
    /* Wider for modern feel */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 25%);
    background-attachment: fixed;
}

/* Enhanced Noise */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.15;
    /* Slightly more visible for texture */
    pointer-events: none;
    z-index: 9000;
}

/* --- PREMIUM NAVIGATION --- */
.navbar {
    position: sticky;
    top: 0;
    /* Sticks to top when scrolling */
    left: auto;
    transform: none;
    margin: 5px auto 0;
    /* 5px gap from Top Bar */

    width: 90%;
    max-width: var(--container-width);
    height: 70px;

    background: rgba(10, 12, 16, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--glass-border);
    border-radius: 100px;
    /* Pill shape */

    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 3px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    top: 10px;
    width: 95%;
    background: rgba(5, 7, 10, 0.85);
}

.navbar .container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 24px;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand span {
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Desktop Menu Links */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Ensure content aligns right */
    margin-left: auto;
    /* Push block to the right */
    gap: 8px;
    /* Background hover bubbles need space */
    background: rgba(255, 255, 255, 0.02);
    padding: 6px;
    border-radius: 100px;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-med);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-main);
    background: var(--glass-hover);
}

/* Premium Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

/* Primary Button with Glow */
.btn-primary {
    background: var(--text-main);
    color: #000;
    box-shadow: 0 0 0px var(--accent-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: 0.5s;
    transform: skewX(-20deg);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-glass {
    background: var(--glass-base);
    border-color: var(--glass-border);
    color: var(--text-main);
}

.btn-glass:hover {
    background: var(--glass-hover);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--glass-base);
    border-color: var(--glass-border);
    color: var(--text-main);
}

.btn-glass:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- PREMIUM MEGA MENU --- */
.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    /* Slight gap */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 640px;

    background: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 16px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 20px 80px -20px rgba(0, 0, 0, 0.8);
    z-index: 1100;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-link {
    padding: 16px;
    border-radius: 16px;
    display: flex;
    gap: 16px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.mega-link:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border);
    transform: scale(1.02);
}

.mega-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mega-content h5 {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mega-content p {
    color: var(--text-med);
    font-size: 0.8rem;
    margin: 0;
}

/* --- MOBILE TOGGLE --- */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--glass-base);
    border-radius: 12px;
    display: flex;
    /* Hidden on desktop via media query later */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

/* --- MOBILE MENU OVERLAY --- */
@media (max-width: 1024px) {
    .navbar {
        top: 0;
        margin: 0;
        width: 100%;
        border-radius: 0;
        height: 80px;
        background: rgba(3, 4, 5, 0.95);
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-deep);

        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 24px;
        gap: 20px;

        border-radius: 0;
        border: none;

        transform: translateY(20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out-expo);
        z-index: 900;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
        justify-content: center;
        font-size: 1.5rem;
        padding: 16px;
    }

    .mobile-toggle {
        display: flex;
        /* Show on mobile */
    }

    /* Hide Mega Menu on Desktop */
    .mega-menu {
        display: none;
        /* Simplify for now on mobile */
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (min-width: 1025px) {
    .mobile-toggle {
        display: none;
    }
}


/* --- SECTIONS & COMPONENTS --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    padding: 60px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #0a0a0f);
    pointer-events: none;
}


.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.lead {
    font-size: 1.2rem;
    color: var(--text-med);
    margin-bottom: 32px;
    max-width: 500px;
}

/* Hero Visual (CSS 3D Composition) */
.hero-visual-css {
    width: 100%;
    height: 600px;
    position: relative;
    perspective: 1200px;
}

/* Floating Elements - Premium Glass Widgets */
.floating-card {
    position: absolute;
    background: rgba(13, 15, 20, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
    animation: float-hero 8s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Widget Header */
.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.widget-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-med);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* Widget Value */
.widget-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.widget-sub {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.status-dot.listening {
    background: #10B981;
    /* Green */
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Graph/Bars Visual */
.graph-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 32px;
}

.graph-bar {
    width: 6px;
    background: var(--text-dim);
    border-radius: 2px;
    opacity: 0.3;
}

.graph-bar.active {
    background: var(--accent-primary);
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-primary-dim);
}

/* Shield Badge */
.shield-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(123, 44, 191, 0.15);
    border: 1px solid rgba(123, 44, 191, 0.3);
    border-radius: 100px;
    color: #D8B4FE;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Specific Cards */
.fc-1 {
    top: 15%;
    right: 5%;
    width: 240px;
    z-index: 2;
}

.fc-2 {
    bottom: 25%;
    left: 0%;
    width: 260px;
    z-index: 3;
    animation-delay: -3s;
}

.fc-3 {
    top: 50%;
    left: 45%;
    width: 200px;
    z-index: 1;
    opacity: 0.8;
    transform: translateZ(-100px);
    animation-delay: -5s;
    filter: blur(0.5px);
}

@keyframes float-hero {

    0%,
    100% {
        transform: translateY(0) rotateX(2deg) rotateY(-2deg);
    }

    50% {
        transform: translateY(-15px) rotateX(2deg) rotateY(-2deg);
    }
}

/* Cards (Features) */
.section {
    padding: 100px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--glass-base);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-card:hover {
    border-color: var(--glass-hover);
    transform: translateY(-5px);
}

.feature-card h3 {
    margin: 16px 0 12px;
    font-size: 1.25rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-med);
    font-size: 0.95rem;
}

/* Glow Orbs */
.orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.orb-1 {
    top: -10%;
    left: -10%;
    background: var(--accent-primary);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    background: var(--accent-secondary);
}

/* Utilities */
.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.gap-4 {
    gap: 16px;
}

/* Mobile Grid Resets */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-grid .lead {
        margin: 0 auto 32px;
    }

    .flex {
        justify-content: center;
    }

    .hero-visual-css {
        height: 300px;
        margin-top: 40px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* --- RESTORED UTILITIES & COMPATIBILITY --- */
/* Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Universal Card Style with Spotlight */
.card {
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.06),
            transparent 40%), var(--glass-base);
    border: 1px solid var(--glass-border);
    padding: 32px;
    /* Slightly tighter than 40px for modern feel */
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    /* overflow: hidden; Removed to allow badges/popouts */
    /* Ensure mouse tracking coords have defaults */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.text-cyan-gradient {
    background: linear-gradient(135deg, #00F0FF 0%, #0080FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Feature List (Bullet points) */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.feature-list li {
    padding-left: 28px;
    margin-bottom: 14px;
    position: relative;
    color: var(--text-med);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-med);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer Compatibility */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    margin-top: 100px;
    background: rgba(0, 0, 0, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.footer-col h5 {
    color: var(--text-main);
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-med);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

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