/* ===== CRITICAL CSS & PERFORMANCE OPTIMIZATIONS ===== */

/* Critical font loading with fallbacks */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Critical above-the-fold styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* CSS RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    /* Improve performance */
    will-change: scroll-position;
    /* Prevent layout shifts */
    min-height: 100vh;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-500: #3B82F6;
    --primary-600: #2563EB;
    --primary-700: #1D4ED8;
    --secondary-500: #8B5CF6;
    --secondary-600: #7C3AED;
    
    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: var(--gray-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --border-color: var(--gray-200);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --card-padding: 1.5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: var(--gray-900);
        --bg-secondary: var(--gray-800);
        --text-primary: var(--gray-100);
        --text-secondary: var(--gray-300);
        --text-muted: var(--gray-400);
        --border-color: var(--gray-700);
    }
}

/* ===== PERFORMANCE & IMAGE OPTIMIZATIONS ===== */

/* Lazy loading images */
img {
    max-width: 100%;
    height: auto;
    /* Improve image loading performance */
    loading: lazy;
    decoding: async;
}

/* Critical images (above the fold) should not be lazy loaded */
.hero img,
.logo img,
.critical-image {
    loading: eager;
}

/* Prevent layout shift for images */
.image-container {
    position: relative;
    overflow: hidden;
}

.image-container::before {
    content: '';
    display: block;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optimize animations for performance */
@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;
    }
}

/* ===== LOADING STATES & USER FEEDBACK ===== */

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s ease-in-out infinite;
}

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

/* Loading states for buttons */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Skeleton loading for content */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

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

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 60%;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-500);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #10B981;
}

.toast.error {
    border-left-color: #EF4444;
}

.toast.warning {
    border-left-color: #F59E0B;
}

/* Progress indicators */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-500);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Smooth focus indicators */
*:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.btn:focus,
.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* ===== TOOLTIPS ===== */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* ===== ENHANCED TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-500);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 400px;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #10B981;
}

.toast.error {
    border-left-color: #EF4444;
}

.toast.warning {
    border-left-color: #F59E0B;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-message {
    flex: 1;
    margin-right: 1rem;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6B7280;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.toast-close:hover {
    background-color: #F3F4F6;
}

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

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-500);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced focus indicators */
.tool-card:focus,
.category-card:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    transform: translateY(-2px);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .tool-card,
    .category-card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .tool-card,
    .category-card,
    .btn {
        transition: none !important;
    }

    .tooltip {
        transition: none !important;
    }
}

/* ===== ENHANCED CARD INTERACTIONS ===== */
.tool-card,
.category-card,
.use-case-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover,
.category-card:hover,
.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.tool-card:active,
.category-card:active,
.use-case-card:active {
    transform: translateY(-2px);
}

/* ===== LOADING STATES ===== */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.btn-secondary.loading::after {
    border-color: rgba(0, 0, 0, 0.3);
    border-top-color: var(--text-primary);
}

/* ===== UX ENHANCEMENTS ===== */

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.reading-progress-fill {
    height: 100%;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

/* Form progress */
.form-progress {
    margin-bottom: 2rem;
    text-align: center;
}

.form-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.form-progress-fill {
    height: 100%;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

.form-progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Animation classes */
.animate-ready {
    opacity: 0;
    transform: translateY(20px);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Floating labels */
.floating-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    padding: 0 0.25rem;
}

.form-input:focus + .floating-label,
.form-input:not(:placeholder-shown) + .floating-label {
    top: -0.5rem;
    font-size: 0.75rem;
    color: var(--primary-500);
}

/* Field validation */
.form-input.valid {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input.invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.validation-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #EF4444;
}

.character-counter {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
}

.character-counter.warning {
    color: #F59E0B;
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

*:hover .copy-btn {
    opacity: 1;
}

/* Image loading states */
img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img.loaded {
    animation: fadeIn 0.3s ease;
}

img.error {
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hover preview */
.hover-preview {
    position: absolute;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 300px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.hover-preview.show {
    opacity: 1;
    transform: translateY(0);
}

/* Keyboard shortcuts modal */
.keyboard-shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.keyboard-shortcuts-modal.show {
    opacity: 1;
}

.keyboard-shortcuts-modal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
}

.keyboard-shortcuts-modal h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.keyboard-shortcuts-modal ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.keyboard-shortcuts-modal li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.keyboard-shortcuts-modal kbd {
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
}

.close-modal {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.close-modal:hover {
    background: var(--primary-600);
}

/* ===== FEEDBACK SYSTEM ===== */

/* Feedback widget */
.feedback-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 500;
}

.feedback-widget:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.feedback-widget.pulse {
    animation: pulse 2s infinite;
}

/* Contextual feedback */
.contextual-feedback,
.exit-intent-feedback,
.followup-feedback {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.contextual-feedback.show,
.exit-intent-feedback.show,
.followup-feedback.show {
    transform: translateX(0);
}

.feedback-content h3 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.feedback-content p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feedback-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.feedback-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
}

.feedback-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.feedback-btn.positive:hover {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

.feedback-btn.negative:hover {
    background: #EF4444;
    color: white;
    border-color: #EF4444;
}

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

.feedback-btn.submit:hover {
    background: var(--primary-600);
}

.feedback-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.feedback-close:hover {
    background: var(--bg-secondary);
}

/* Exit intent feedback */
.exit-intent-feedback {
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%) scale(0.9);
    max-width: 400px;
    opacity: 0;
}

.exit-intent-feedback.show {
    transform: translate(50%, 50%) scale(1);
    opacity: 1;
}

.exit-intent-feedback .feedback-actions {
    flex-direction: column;
}

.exit-intent-feedback .feedback-btn {
    text-align: left;
    justify-content: flex-start;
}

/* Feedback modal */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-modal.show {
    opacity: 1;
}

.feedback-modal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.feedback-form .form-group {
    margin-bottom: 1.5rem;
}

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

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feedback-form small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.rating-stars {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

.rating-stars .star {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.rating-stars .star:hover,
.rating-stars .star.selected {
    opacity: 1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Feedback toast */
.feedback-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-500);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.feedback-toast.show {
    transform: translateX(0);
}

.feedback-toast.success {
    border-left-color: #10B981;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feedback-widget {
        bottom: 16px;
        right: 16px;
        padding: 10px 16px;
    }

    .contextual-feedback,
    .exit-intent-feedback,
    .followup-feedback {
        bottom: 70px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .feedback-modal .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    /* Improve performance for large containers */
    contain: layout style paint;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    color: white;
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.btn-outline:hover {
    background: var(--primary-500);
    color: white;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827 !important;
    font-weight: 800 !important;
    font-size: 1.25rem;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    font-size: 1.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: #111827 !important;
    font-weight: 700 !important;
    transition: color var(--transition-fast);
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-500);
    text-decoration: none;
}

.nav-link.active {
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-500);
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.nav-toggle-line {
    width: 1.5rem;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        padding: 2rem 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

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

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-link {
        color: #111827 !important;
        font-weight: 700 !important;
        font-size: 1.1rem;
        padding: 0.5rem 0;
        text-shadow: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 10rem 0 8rem;
    background: linear-gradient(135deg, #1a1a3a 0%, #2d2d5f 50%, #3a3a7a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%);
    opacity: 0.4;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    min-width: 220px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-large svg {
    margin-left: 0.5rem;
}

/* Hero Trust Indicators */
.hero-trust {
    margin-top: 4rem;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ===== SEARCH BAR ===== */
.search-container {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-500);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-500);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-btn:hover {
    background: var(--primary-600);
}

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

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

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

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===== HEADER SCROLL EFFECT ===== */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

/* ===== FOCUS STYLES ===== */
.btn:focus,
.search-input:focus,
.form-input:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* ===== INSTANT RECOMMENDATIONS ===== */
.instant-recommendations {
    padding: 8rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.instant-recommendations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.8;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-icon-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 3s;
}

.floating-icon-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

.recommendations-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.recommendations-header .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recommendations-header .section-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.use-case-card {
    background: white;
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.use-case-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
}

.use-case-card:hover .use-case-icon {
    transform: scale(1.1);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0) scale(1.1);
    }
    40% {
        transform: translateY(-10px) scale(1.1);
    }
    80% {
        transform: translateY(-5px) scale(1.1);
    }
}

.use-case-card:hover .recommended-tool {
    animation: pulse 0.8s ease infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.use-case-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.use-case-description {
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.use-case-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.recommended-tool {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.recommended-tool:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.use-case-cta {
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.use-case-cta:hover {
    color: var(--primary-700);
    transform: translateX(4px);
}

.use-case-cta::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.use-case-cta:hover::after {
    transform: translateX(4px);
}

.recommendations-cta {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-primary {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-600) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-primary:hover {
    background: white !important;
    color: var(--primary-700) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.cta-secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-color: white;
    transform: translateY(-2px);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.inline-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.inline-link:hover {
    color: white;
}

/* ===== PRODUCT SHOWCASE ===== */
.product-showcase {
    padding: 8rem 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    opacity: 0.6;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.showcase-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.showcase-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.showcase-features {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.visual-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.showcase-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.visual-overlay {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 3;
}

.overlay-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.recommended-tools-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.recommended-tools-mini span {
    background: var(--gradient-primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
    h1, .hero-title {
        font-size: 2.5rem;
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        font-weight: 600;
        text-shadow: none;
    }

    .trust-stats {
        gap: 2rem;
    }

    .trust-number {
        font-size: 2rem;
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .trust-label {
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .showcase-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .showcase-title {
        font-size: 2.5rem;
    }

    .showcase-subtitle {
        font-size: 1.1rem;
    }

    .visual-overlay {
        position: static;
        margin-top: 1rem;
    }

    .overlay-card {
        margin: 0 auto;
        max-width: 280px;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        text-align: left;
    }
}

/* ===== SUCCESS STORIES ===== */
.success-stories {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.story-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.story-image {
    height: 200px;
    overflow: hidden;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-img {
    transform: scale(1.05);
}

.story-content {
    padding: 2rem;
}

.story-metric {
    margin-bottom: 1.5rem;
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4f46e5;
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.story-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.story-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-200);
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-family: serif;
}

.story-author strong {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.story-author span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* ===== NEWSLETTER UPDATES ===== */
.newsletter {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    opacity: 0.6;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-header {
    margin-bottom: 2.5rem;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.newsletter-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.newsletter-form {
    margin-bottom: 2rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form .form-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.newsletter-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-input:focus {
    outline: none;
    border-color: var(--primary-400);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 1rem 2rem;
    font-weight: 600;
    white-space: nowrap;
}

.newsletter-btn svg {
    margin-left: 0.5rem;
}

.newsletter-social-proof {
    margin-top: 2rem;
}

.social-proof-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -0.5rem;
    margin-bottom: 0.75rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -0.5rem;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-count {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.social-proof-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== MOBILE RESPONSIVE UPDATES ===== */
@media (max-width: 768px) {
    .newsletter-form .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form .form-input {
        min-width: auto;
        width: 100%;
        color: white !important;
        font-weight: 500;
    }

    .newsletter-form .form-input::placeholder {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .newsletter-btn {
        width: 100%;
        font-weight: 600;
    }

    .newsletter-title {
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .newsletter-subtitle {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-proof-avatars {
        gap: -0.25rem;
    }

    .avatar {
        width: 35px;
        height: 35px;
        margin-left: -0.25rem;
    }

    .recommendations-header .section-title {
        font-size: 2.2rem;
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .recommendations-header .section-subtitle {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        font-weight: 600;
    }

    .floating-icon {
        display: none;
    }

    /* 确保所有深色背景上的文字都有足够的对比度 */
    .instant-recommendations *,
    .product-showcase *,
    .newsletter * {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .use-case-card {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
    }

    .use-case-title {
        color: #1a202c !important;
        text-shadow: none;
    }

    .use-case-description {
        color: #4a5568 !important;
        text-shadow: none;
    }
}
