/* Custom CSS for Cognilyx - Pixel-perfect replica of intervo.ai design */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #28a745 0%, #007bff 50%, #6f42c1 100%);
    --gradient-hero: linear-gradient(135deg, #28a745 0%, #17a2b8 50%, #6f42c1 100%);
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

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

.badge-container .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.hero-form-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-hero);
    background-origin: border-box;
    background-clip: content-box, border-box;
    margin: 2rem 0;
}

.form-suggestions button {
    border-radius: 20px;
    font-size: 0.875rem;
}

.hero-form .form-select,
.hero-form .form-control {
    border: none;
    border-bottom: 2px solid #e9ecef;
    border-radius: 0;
    background: transparent;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: border-color 0.3s ease;
}

.hero-form .form-select:focus,
.hero-form .form-control:focus {
    box-shadow: none;
    border-bottom-color: var(--success-color);
}

.hero-form .btn-dark {
    background: #343a40;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 1rem;
    transition: all 0.3s ease;
}

.hero-form .btn-dark:hover {
    background: #23272b;
    transform: translateY(-2px);
}

.avatar-group {
    display: flex;
    margin-left: 1rem;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    object-fit: cover;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.dashboard-preview .card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.chat-message {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.lead-stats .stat-item h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Introduction Section */
.introduction-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.introduction-section .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.feature-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature-icon {
    background: #343a40;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
}

.cognilyx-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.dashboard-mockup .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.dashboard-mockup .nav-pills .nav-link {
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
}

.dashboard-mockup .nav-pills .nav-link.active {
    background: #343a40;
    color: white;
}

.workflow-description {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.campaign-preview {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.feature-item {
    padding: 1rem 0;
}

.feature-item i {
    font-size: 1.25rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer .logo-icon {
    background: var(--gradient-primary);
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-form-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .feature-icons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-icons .fas {
        transform: rotate(90deg);
    }
    
    .dashboard-mockup {
        margin-top: 2rem;
    }
    
    .avatar-group {
        justify-content: center;
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-form .form-select,
    .hero-form .form-control {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-form-container {
        padding: 1rem;
    }
}

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

.hero-content > * {
    animation: fadeInUp 0.6s ease-out;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.2s;
}

.hero-content > *:nth-child(4) {
    animation-delay: 0.3s;
}

/* Hover Effects */
.card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    background: rgba(0,123,255,0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

/* Terms and Privacy Pages */
.terms-document,
.privacy-document {
    line-height: 1.8;
}

.terms-document h2,
.privacy-document h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.terms-document h3,
.privacy-document h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.terms-document p,
.privacy-document p {
    margin-bottom: 1rem;
    color: #555;
}

.terms-document ul,
.privacy-document ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.terms-document li,
.privacy-document li {
    margin-bottom: 0.5rem;
    color: #555;
}

.terms-header,
.privacy-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}
