@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;700&family=Space+Mono&display=swap');

:root {
    --brand-primary: #00d1c1;
    --brand-secondary: #000000;
    --digital-teal: #00d1c1;
    --dark-bg: #000000;
    --darker-bg: #050505;
    --light-bg: #FFFFFF;
    --slate: #8893a3;
    --white: #FFFFFF;
    --black: #000000;
    --indigo: #6366f1;
    --coral: #ff7e67;
    --success: #10b981;
    --error: #ef4444;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --header-height: 72px;
    --sidebar-width: 280px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--dark-bg);
}

body {
    font-family: var(--font-body);
    background: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.tracking-tighter { letter-spacing: -0.05em; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    border: 1px solid var(--border-light);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 0;
}

#main-header.scrolled {
    padding: 0.75rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1.25rem;
    text-decoration: none;
    font-weight: 700;
}

.logo span {
    color: rgba(255, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.mobile-nav-toggle span, 
.mobile-nav-toggle::before, 
.mobile-nav-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-nav-toggle::before { top: 0; }
.mobile-nav-toggle span { top: 9px; }
.mobile-nav-toggle::after { bottom: 0; }

.mobile-nav-toggle.active span { opacity: 0; }
.mobile-nav-toggle.active::before { transform: translateY(9px) rotate(45deg); }
.mobile-nav-toggle.active::after { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add JS to toggle this */
    }
    .mobile-nav-toggle {
        display: block;
    }
    .nav-actions {
        display: none;
    }
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: sticky;
    top: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-nav {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    color: var(--slate);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-link span {
    font-size: 1.2rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.sidebar-link.active {
    border: 1px solid var(--border-light);
    color: var(--digital-teal);
}

/* Dashboard Content */
.main-content {
    flex: 1;
    padding: 2rem 4rem;
    max-height: 100vh;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    width: 42px;
    height: 42px;
    background: var(--digital-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.monochrome-theme .badge-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    font-size: 0.7rem;
    margin-bottom: 2rem;
}

.monochrome-theme .studio-section {
    background: #fafafa;
}

.monochrome-theme .studio-content {
    max-width: 800px;
}

.monochrome-theme .studio-lead {
    font-size: 1.5rem;
    line-height: 1.4;
    color: #000;
    opacity: 0.9;
    margin: 2rem 0;
}

.monochrome-theme .studio-features {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.monochrome-theme .studio-feature-item {
    flex: 1;
}

.monochrome-theme .studio-feature-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.monochrome-theme .studio-feature-item p {
    font-size: 0.9rem;
    opacity: 0.6;
}

.monochrome-theme .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.metric-label {
    color: var(--slate);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
}

.metric-change {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.metric-change.up {
    color: var(--success);
}

.metric-change.down {
    color: var(--error);
}

/* Data Table */
.data-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 1.25rem 2rem;
    color: var(--slate);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.01);
}

.data-table td {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

.badge-coral {
    background: rgba(255, 126, 103, 0.1);
    color: var(--coral);
}

/* Landing Page Sections */
.section {
    position: relative;
    padding: 15rem 0;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    overflow: hidden;
    padding: 20rem 0;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
}

.pro-card {
    overflow: visible;
    /* Fix Pro badge being cut off */
}

.premium-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.pro-card {
    border: 1px solid #000000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

/* Webkit Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .section {
        padding: 6rem 0;
    }

    .hero {
        padding: 10rem 0 6rem;
    }

    .hero h1 {
        font-size: 3rem !important;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #000;
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    footer {
        text-align: center;
    }

    footer .container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .footer-brand {
        margin: 0 auto;
    }

    footer form {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Integrated Chat Window */
.chat-window {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    max-width: 75%;
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
}

.message.ai .message-bubble {
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
    background: var(--digital-teal);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
}

/* Integrated Chat Window */
.chat-window {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    max-width: 75%;
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
}

.message.ai .message-bubble {
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
    background: var(--digital-teal);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    padding: 0.85rem 1.25rem;
    color: var(--white);
    border-radius: 12px;
    outline: none;
}

/* --- MONOCHROME THEME (OmniLabs Minimal) --- */
body.monochrome-theme {
    --brand-primary: #000000;
    --digital-teal: #000000;
    --brand-secondary: #000000;
    --font-heading: 'Courier New', Courier, monospace;
    --font-body: 'Courier New', Courier, monospace;
    --font-mono: 'Courier New', Courier, monospace;
    background: #FFFFFF;
    color: #000000;
}

.monochrome-theme .hero {
    background: #FFFFFF;
    color: #000000;
    text-align: center;
}

.monochrome-theme h1,
.monochrome-theme h2,
.monochrome-theme h3 {
    text-transform: lowercase;
    letter-spacing: -0.05em;
    font-weight: 400;
}

.monochrome-theme .section {
    padding: 10rem 0;
}

.monochrome-theme .card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.monochrome-theme .btn-primary {
    background: #000000;
    color: #FFFFFF;
}

.monochrome-theme .btn-outline {
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000;
}

.monochrome-theme .nav-fixed {
    position: fixed;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1.5rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.monochrome-theme .nav-item {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.monochrome-theme .nav-item.active {
    color: #000000;
    background: rgba(0, 0, 0, 0.05);
}

/* Animations */
/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.text-white {
    color: var(--white) !important;
}

.text-white p,
.text-white h1,
.text-white h2,
.text-white h3 {
    color: inherit;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}