:root {
    /* Rossum.ai color palette - refined */
    --primary-color: #0066FF;
    --secondary-color: #00C2FF;
    --accent-color: #FF6B6B;
    --success-color: #27AE60;
    --warning-color: #F2994A;
    --error-color: #EB5757;
    --dark-color: #2D3748;
    --gray-900: #1A202C;
    --gray-800: #2D3748;
    --gray-700: #4A5568;
    --gray-600: #718096;
    --gray-500: #A0AEC0;
    --gray-400: #CBD5E0;
    --gray-300: #E2E8F0;
    --gray-200: #EDF2F7;
    --gray-100: #F7FAFC;
}

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--gray-100);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.4;
}

p {
    color: var(--gray-700);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-200);
}

.navbar.scrolled {
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.navbar-brand img {
    height: 4rem;
}

.nav-link {
    color: var(--gray-800) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
    font-size: 1rem;
    margin: 0 0.25rem;
}

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

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(0, 102, 255, 0.05), transparent 70%);
    pointer-events: none;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.hero p.lead {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 540px;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #0052CC;
    border-color: #0052CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-width: 2px;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

/* Feature Cards */
.feature-card {
    padding: 2.5rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-color);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

/* Case Studies */
.case-study-card {
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.case-study-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-content {
    padding: 2rem;
}

/* Form Elements */
.form-control {
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    outline: none;
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 5rem 0;
}

.footer h5 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

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

.footer a:hover {
    color: white;
}

/* Accessibility */
.skip-to-main-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--primary-color);
    color: white;
    opacity: 0;
}

.skip-to-main-content:focus {
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 8rem 0 4rem;
        margin-top: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p.lead {
        font-size: 1.125rem;
    }
    
    .feature-card {
        padding: 2rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        margin: 0;
    }

    /* Mobile-specific button styles */
    .btn {
        width: 100%;
        text-align: center;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }

    /* Improve touch targets for mobile */
    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.5rem;
    }

    /* Ensure images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Mobile-friendly spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Footer spacing */
    .footer {
        padding: 3rem 0;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        padding: 7rem 0 5rem;
    }
}

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