/* Voice360 Brand Design System
   Minimal + Clean + Voice360 Purple Palette
   Fully Responsive */

:root {
    /* Voice360 Brand Colors - Minimal Version */
    --v360-purple: #667eea;
    --v360-purple-dark: #5a67d8;
    --v360-purple-light: #f7f8ff;
    --v360-purple-ultra-light: #fafbff;

    /* Monochromatic */
    --v360-white: #ffffff;
    --v360-off-white: #fafbff;
    --v360-gray-50: #f9fafb;
    --v360-gray-100: #f3f4f6;
    --v360-gray-200: #e5e7eb;
    --v360-gray-300: #d1d5db;
    --v360-gray-400: #9ca3af;
    --v360-gray-500: #6b7280;
    --v360-gray-600: #4b5563;
    --v360-gray-700: #374151;
    --v360-gray-800: #1f2937;
    --v360-gray-900: #111827;

    /* Semantic Colors */
    --v360-success: #10b981;
    --v360-warning: #f59e0b;
    --v360-error: #ef4444;
    --v360-info: #3b82f6;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows - Subtle */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.10);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.12);

    /* Animation */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--v360-gray-800);
    background: var(--v360-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--v360-gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
}

p {
    color: var(--v360-gray-600);
    line-height: 1.7;
}

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

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* Navigation - Clean & Modern */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--v360-gray-100);
    z-index: 1000;
    transition: all 0.3s var(--ease-out);
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo img {
    height: 36px;
    width: auto;
}

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

.nav-link {
    font-size: 0.9375rem;
    color: var(--v360-gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s var(--ease-out);
    position: relative;
}

.nav-link:hover {
    color: var(--v360-purple);
}

.nav-link.active {
    color: var(--v360-purple);
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--v360-purple);
    color: var(--v360-white);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.2s var(--ease-out);
}

.nav-cta:hover {
    background: var(--v360-purple-dark);
    transform: translateY(-1px);
    color: var(--v360-white);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--v360-gray-700);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--v360-white);
        flex-direction: column;
        padding: var(--space-xl) var(--space-lg);
        gap: var(--space-lg);
        border-bottom: 1px solid var(--v360-gray-100);
        box-shadow: var(--shadow-lg);
        display: none;
    }

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

    .nav-toggle {
        display: flex;
    }
}

/* Hero Section - Redesigned */
.hero {
    padding-top: calc(80px + var(--space-3xl));
    padding-bottom: var(--space-4xl);
    background: var(--v360-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle Grid Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 1px 1px, var(--v360-purple-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.375rem 1rem;
    background: var(--v360-purple-light);
    color: var(--v360-purple);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--v360-purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--v360-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

.btn-secondary {
    background: var(--v360-gray-100);
    color: var(--v360-gray-700);
}

.btn-secondary:hover {
    background: var(--v360-gray-200);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--v360-purple);
    border: 2px solid var(--v360-purple);
}

.btn-outline:hover {
    background: var(--v360-purple);
    color: var(--v360-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    background: var(--v360-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--ease-out);
    border: 1px solid var(--v360-gray-100);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--v360-purple-light);
}

/* Features Grid - Responsive */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.feature-card {
    background: var(--v360-white);
    border: 1px solid var(--v360-gray-100);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--v360-purple-light);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--v360-purple-light);
    color: var(--v360-purple);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

/* Live Dashboard Component */
.dashboard-preview {
    background: var(--v360-white);
    border: 1px solid var(--v360-gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .dashboard-preview {
        padding: var(--space-md);
    }
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--v360-gray-100);
    margin-bottom: var(--space-lg);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: var(--v360-success);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--v360-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

.stat-card {
    background: var(--v360-purple-ultra-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--v360-purple);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--v360-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Activity Feed */
.activity-feed {
    space-y: var(--space-sm);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    background: var(--v360-gray-50);
    border-radius: var(--radius-md);
    transition: all 0.2s var(--ease-out);
}

.activity-item:hover {
    background: var(--v360-purple-ultra-light);
    transform: translateX(4px);
}

.activity-icon {
    width: 36px;
    height: 36px;
    background: var(--v360-purple);
    color: var(--v360-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

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

@media (max-width: 640px) {
    .section {
        padding: var(--space-3xl) 0;
    }
}

/* Footer */
.footer {
    background: var(--v360-gray-900);
    color: var(--v360-gray-300);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
}

.footer-section h4 {
    color: var(--v360-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

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

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: var(--v360-gray-400);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

.footer-section a:hover {
    color: var(--v360-purple);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--v360-gray-800);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* 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); }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s var(--ease-out);
}

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

.slide-in {
    animation: slideIn 0.5s var(--ease-out);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg,
        var(--v360-gray-100) 25%,
        var(--v360-gray-50) 50%,
        var(--v360-gray-100) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}