/* Sentauri Voice AI Demo - Styles
   Following Sentauri Brand Guidelines v1.0 */

:root {
    /* Brand Colors */
    --sentauri-blue: #3B82F6;
    --sentauri-cyan: #00CEC8;
    --sentauri-green: #4ADE80;
    
    /* Neutral Colors */
    --dark-bg: #0F172A;
    --medium-dark: #1E293B;
    --glass-overlay: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --text-primary: rgba(255, 255, 255, 1);
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-subtle: rgba(255, 255, 255, 0.4);
    
    /* Semantic Colors */
    --success: #4ADE80;
    --error: #F87171;
    --warning: #FB923C;
    --info: #60A5FA;
    
    /* Spacing System (Base: 4px) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    
    /* Shadows */
    --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 10px 25px rgba(0, 206, 200, 0.25);
    
    /* Animation Durations */
    --anim-micro: 300ms;
    --anim-short: 600ms;
    --anim-medium: 1s;
    --anim-long: 3s;
    --anim-float: 6s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow: hidden;
    height: 100vh;
}

/* Typography - Following Brand Guidelines */
h1, h2, h3 {
    font-family: Georgia, serif;
    font-weight: 300;
}

h1 {
    font-size: 72px;
    line-height: 1.1;
}

h2 {
    font-size: 48px;
    line-height: 1.2;
}

h3 {
    font-size: 36px;
    line-height: 1.3;
}

h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

/* Glassmorphism Effect */
.glass-dark {
    background: var(--glass-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, var(--sentauri-blue), var(--sentauri-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(to right, var(--sentauri-blue), var(--sentauri-cyan));
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--anim-micro) ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #16A34A, #059669);
    opacity: 0;
    transition: opacity var(--anim-micro) ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-strong);
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--anim-micro) ease;
}

.btn-secondary:hover {
    background: var(--glass-overlay);
    border-color: var(--sentauri-cyan);
}

/* Card Component */
.card {
    background: var(--glass-overlay);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--anim-micro) ease;
}

.card:hover {
    transform: scale(1.05);
    border-color: var(--sentauri-cyan);
    box-shadow: var(--shadow-strong);
}

/* Input Fields */
.input-field {
    background: var(--glass-overlay);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 16px;
    width: 100%;
    transition: all var(--anim-micro) ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--sentauri-cyan);
    box-shadow: 0 0 0 2px rgba(0, 206, 200, 0.2);
}

/* Neural Network Pattern */
.neural-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 40px 15px rgba(74, 222, 128, 0.3),
                    0 0 80px 30px rgba(0, 206, 200, 0.2);
    }
    50% {
        box-shadow: 0 0 60px 20px rgba(74, 222, 128, 0.4),
                    0 0 100px 40px rgba(0, 206, 200, 0.3);
    }
}

@keyframes dataFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -100; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Elements */
.floating {
    animation: float var(--anim-float) ease-in-out infinite;
}

/* Data Flow Animation */
.data-flow {
    stroke-dasharray: 10 5;
    animation: dataFlow var(--anim-long) linear infinite;
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--anim-short) cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--sentauri-cyan);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Container */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Section Spacing */
.section {
    padding: var(--space-3xl) 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }
.gap-5 { gap: var(--space-xl); }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--sentauri-cyan);
    outline-offset: 2px;
}

/* Media Queries */
@media (max-width: 1152px) {
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
