/**
 * NOVAI SYSTEMS — Website v11
 * Official Design System (NO DEVIATION)
 * Colors: Black #0A0A0A, Deep Blue #122238, Electric Blue #3A7BFF, Aqua #00C2FF
 * Typography: Inter, IBM Plex Sans, IBM Plex Serif
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Serif:wght@400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Official Novai Palette */
    --novai-black: #0A0A0A;
    --novai-deep-blue: #122238;
    --novai-electric-blue: #3A7BFF;
    --novai-aqua: #00C2FF;
    --novai-white: #FFFFFF;
    --novai-grey-1: #F2F4F7;
    --novai-grey-2: #C6CBD2;
    --novai-signal-green: #00D47A;
    --novai-warning-amber: #F9A825;
    
    /* Semantic */
    --bg-primary: var(--novai-black);
    --bg-secondary: var(--novai-deep-blue);
    --text-primary: var(--novai-white);
    --text-secondary: var(--novai-grey-2);
    --accent-primary: var(--novai-electric-blue);
    --accent-secondary: var(--novai-aqua);
    
    /* Radius System */
    --radius-card: 14px;
    --radius-button: 12px;
    --radius-widget: 16px;
    
    /* Shadows (soft, 12% opacity) */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-glow-blue: 0 0 30px rgba(58, 123, 255, 0.3);
    --shadow-glow-aqua: 0 0 30px rgba(0, 194, 255, 0.3);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

.highlight {
    font-family: 'IBM Plex Serif', serif;
    font-style: italic;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

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

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .container { padding: 0 var(--space-lg); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-lg) 0;
    transition: all 0.3s ease;
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.nav-logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-button);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--novai-white);
}

.nav-logo-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-logo-text span {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-card);
    padding: var(--space-md);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
}

.nav-dropdown-menu a:hover {
    background: rgba(58, 123, 255, 0.1);
    color: var(--accent-secondary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1001;
    padding: var(--space-3xl) var(--space-xl);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Buttons - Gradient Electric Blue → Aqua */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-button);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--novai-white);
    box-shadow: var(--shadow-glow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(58, 123, 255, 0.4);
    color: var(--novai-white);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
    background: rgba(58, 123, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-secondary);
    border: 1px solid var(--accent-secondary);
}

.btn-outline:hover {
    background: rgba(0, 194, 255, 0.1);
    color: var(--accent-secondary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.hero-gradient-1 {
    top: -200px;
    right: -100px;
    background: var(--accent-primary);
}

.hero-gradient-2 {
    bottom: -200px;
    left: -100px;
    background: var(--accent-secondary);
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(58, 123, 255, 0.15);
    border: 1px solid rgba(58, 123, 255, 0.3);
    border-radius: 100px;
    color: var(--accent-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.hero h1 {
    max-width: 900px;
    margin-bottom: var(--space-lg);
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-secondary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-card);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(58, 123, 255, 0.15);
    border-radius: var(--radius-button);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.card h3 {
    margin-bottom: var(--space-sm);
}

.card p {
    font-size: 0.95rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 194, 255, 0.1);
    border: 1px solid rgba(0, 194, 255, 0.3);
    border-radius: 100px;
    color: var(--accent-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

/* Product Cards */
.product-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-card);
    padding: var(--space-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

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

.product-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 194, 255, 0.15);
    color: var(--accent-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.product-card .subtitle {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.product-features {
    list-style: none;
    margin: var(--space-lg) 0;
}

.product-features li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.product-features li::before {
    content: '→';
    color: var(--accent-secondary);
}

/* Founder Section */
.founder-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.founder-image {
    position: relative;
}

.founder-photo {
    display: block;
    max-width: 300px;
    height: auto !important;
    width: auto !important;
    border-radius: var(--radius-card);
    border: 3px solid var(--accent-primary);
    margin: 0 auto;
    object-fit: none !important;
}

.founder-connect {
    background: var(--bg-secondary);
    border-radius: var(--radius-card);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.founder-connect h4 {
    color: var(--accent-secondary);
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.founder-connect a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    font-size: 0.95rem;
}

.founder-connect a:hover {
    color: var(--accent-secondary);
}

.founder-content {
    padding-top: var(--space-lg);
}

.founder-title {
    color: var(--accent-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.founder-content h2 {
    margin-bottom: var(--space-xs);
}

.founder-company {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.founder-quote {
    border-left: 3px solid var(--accent-primary);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
}

.founder-quote p {
    font-family: 'IBM Plex Serif', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--novai-grey-1);
    line-height: 1.6;
}

.founder-bio p {
    margin-bottom: var(--space-md);
}

.founder-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.expertise-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(58, 123, 255, 0.1);
    border: 1px solid rgba(58, 123, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

@media (max-width: 1024px) {
    .founder-section {
        grid-template-columns: 1fr;
    }
    .founder-image {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Tier Cards */
.tier-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-card);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.tier-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.tier-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--novai-white);
    margin: 0 auto var(--space-md);
}

.tier-card h4 {
    margin-bottom: var(--space-sm);
}

/* Widgets */
.widget-card {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-widget);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.widget-card:hover {
    box-shadow: var(--shadow-glow-blue);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.widget-icon {
    width: 48px;
    height: 48px;
    background: rgba(58, 123, 255, 0.15);
    border-radius: var(--radius-button);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.widget-title h4 {
    margin-bottom: 0;
}

.widget-title span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-button);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(58, 123, 255, 0.15);
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C6CBD2' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

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

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
}

.footer-brand p {
    margin-top: var(--space-md);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-lg);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: var(--space-sm) 0;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-2xl) auto 0;
    padding: var(--space-xl) var(--space-xl) 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Chat Widget */
.chat-toggle {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-blue);
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
    fill: var(--novai-white);
}

.chat-widget {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 380px;
    max-height: 500px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-widget);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-medium);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-widget.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chat-status {
    width: 10px;
    height: 10px;
    background: var(--novai-signal-green);
    border-radius: 50%;
}

.chat-header h4 {
    font-size: 1rem;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-height: 280px;
}

.chat-message {
    max-width: 85%;
    padding: var(--space-md);
    border-radius: var(--radius-button);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.assistant {
    align-self: flex-start;
    background: var(--bg-primary);
    color: var(--novai-grey-1);
}

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--novai-white);
}

.chat-input-area {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-button);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.chat-input-area button {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input-area button svg {
    width: 18px;
    height: 18px;
    fill: var(--novai-white);
}

@media (max-width: 768px) {
    .chat-widget {
        right: var(--space-md);
        left: var(--space-md);
        bottom: var(--space-md);
        width: auto;
    }
    .chat-toggle {
        right: var(--space-md);
        bottom: var(--space-md);
    }
}

/* Signal Colors */
.signal-green { color: var(--novai-signal-green); }
.signal-blue { color: var(--accent-primary); }
.signal-amber { color: var(--novai-warning-amber); }

.signal-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.signal-badge.green {
    background: rgba(0, 212, 122, 0.15);
    color: var(--novai-signal-green);
}

.signal-badge.blue {
    background: rgba(58, 123, 255, 0.15);
    color: var(--accent-primary);
}

.signal-badge.amber {
    background: rgba(249, 168, 37, 0.15);
    color: var(--novai-warning-amber);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* Dashboard Styles */
.dashboard-container {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-widget);
    padding: var(--space-xl);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.dashboard-card {
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-card);
    padding: var(--space-lg);
    text-align: center;
}

.dashboard-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-value {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-secondary);
    line-height: 1.2;
}

.dashboard-trend {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
}

.dashboard-chart {
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-card);
    padding: var(--space-xl);
}

.chart-header {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.chart-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.flow-node {
    background: rgba(58, 123, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-button);
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-primary);
    flex: 1;
    min-width: 100px;
}

.flow-node span {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-top: var(--space-xs);
}

.flow-arrow {
    color: var(--accent-secondary);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .flow-arrow { display: none; }
    .chart-visual { flex-direction: column; }
    .flow-node { width: 100%; }
}

/* Chart bars */
.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 150px;
    padding-top: var(--space-lg);
}

.chart-bar {
    width: 40px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* VAPI Call Button */
.vapi-call-btn {
    position: fixed;
    bottom: var(--space-xl);
    left: var(--space-xl);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--novai-signal-green), #00A863);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 212, 122, 0.4);
    transition: all 0.3s ease;
}

.vapi-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 212, 122, 0.5);
}

.vapi-call-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--novai-white);
}

.vapi-call-btn.active {
    animation: pulse-call 1.5s infinite;
}

@keyframes pulse-call {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 212, 122, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(0, 212, 122, 0.7); }
}

/* Enhanced Chat Widget */
.chat-widget {
    max-height: 550px;
}

.chat-messages {
    max-height: 350px;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    align-self: flex-start;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.chat-mode-selector {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
}

.chat-mode-btn {
    padding: 0.4rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.chat-mode-btn:hover,
.chat-mode-btn.active {
    background: rgba(58, 123, 255, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .vapi-call-btn {
        left: var(--space-md);
        bottom: var(--space-md);
        width: 50px;
        height: 50px;
    }
}
