/* Tinify.ai - SEO-Optimized Landing Page CSS */

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

:root {
    /* Apple Color Palette with Improved Accessibility */
    --primary: #0056CC;
    --primary-dark: #003D94;
    --primary-light: #4DA2FF;
    --primary-bg: #F0F7FF;
    
    --text-primary: #000000;
    --text-secondary: #424242;
    --text-tertiary: #616161;
    
    --background: #FFFFFF;
    --background-secondary: #F5F5F7;
    --background-tertiary: #FBFBFD;
    
    --border: #BDBDBD;
    --border-light: #E0E0E0;
    
    --success: #1B5E20;
    --success-bg: #E8F5E8;
    
    --warning: #E65100;
    --error: #C62828;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px;
    --section-padding-mobile: 60px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

/* Base Typography */
html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

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

.brand-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 17px;
    transition: var(--transition-fast);
    position: relative;
}

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

.login-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Common Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 21px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Compact Hero Layout */
.hero-compact {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    flex: 1;
}

.hero-title-compact {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-subtitle-compact {
    font-size: 18px;
    line-height: 1.4;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Compact Upload Area */
.upload-area-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--background-tertiary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-height: 80px;
}

.upload-area-compact:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upload-area-compact.dragover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: scale(1.02);
}

.upload-icon-compact {
    color: var(--primary);
    flex-shrink: 0;
}

.upload-text-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    flex: 1;
}

.upload-primary-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.upload-secondary-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Output Settings Section */
.output-settings-section {
    max-width: 640px;
    margin: 24px auto 0;
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: left;
}

/* Processing Settings Panel */
.processing-settings-panel {
    background: var(--background-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Radio Group for Upscaling */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.radio-option:hover {
    color: var(--text-primary);
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.radio-label {
    font-weight: 400;
}

/* Format Select */
.format-select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--background);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 80px;
}

.format-select:hover {
    border-color: var(--primary);
}

.format-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 86, 204, 0.1);
}


/* Dimensions Group */
.dimensions-group {
    flex-grow: 1;
}

.dimensions-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dimension-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--background);
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
    transition: var(--transition-fast);
}

.dimension-input:hover {
    border-color: var(--primary);
}

.dimension-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 86, 204, 0.1);
}

.dimension-input::placeholder {
    color: var(--text-tertiary);
}

.dimension-separator {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.dimension-unit {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Validation Messages */
.validation-messages {
    margin-top: 8px;
}

.error-message {
    padding: 8px 12px;
    background: #FFF2F2;
    border: 1px solid var(--error);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.warning-message {
    padding: 8px 12px;
    background: #FFF8E1;
    border: 1px solid #F57F17;
    border-radius: var(--radius-sm);
    color: #E65100;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 4px;
}

.upgrade-prompt {
    padding: 8px 12px;
    background: #E3F2FD;
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

/* Upload Section */
.upload-section {
    max-width: 640px;
    margin: 0 auto;
}

.upload-area {
    background: var(--background-tertiary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    margin-bottom: 48px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: scale(1.02);
}

.upload-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.upload-bg-image {
    width: 200px;
    height: auto;
    max-width: 100%;
}

.upload-content {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 24px;
}

.upload-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.upload-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Progress Section */
.progress-section {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.progress-header h3 {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-count {
    font-size: 15px;
    color: var(--text-secondary);
}

.progress-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.progress-file-info {
    flex: 1;
    min-width: 0;
}

.progress-file-info strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-status {
    font-size: 13px;
    color: var(--text-secondary);
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

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

.progress-percentage {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
}

/* Results Section */
.results-section {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-header h3 {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
}

.download-all-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.download-all-btn:hover {
    background: var(--primary-dark);
}

.results-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.result-preview {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.result-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-filename {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
    font-weight: 500;
}

.stat-value.success {
    color: var(--success);
}

.result-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.result-seo {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.result-actions {
    flex-shrink: 0;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Features Section */
.features-section {
    padding: var(--section-padding) 0;
    background: var(--background-secondary);
}

.features-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--background);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    color: var(--primary);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 16px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 15px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Before/After Comparison */
.comparison-section {
    padding: var(--section-padding) 0;
    background: var(--background);
}

.comparison-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Interactive Comparison Slider */
.comparison-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    user-select: none;
}

.comparison-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
    cursor: grab;
}

.comparison-wrapper.dragging {
    cursor: grabbing;
}

.comparison-images {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.comparison-before {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.1s ease-out;
}

/* Comparison Handle */
.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.comparison-line {
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.comparison-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    transition: var(--transition);
}

.comparison-button:hover {
    background: var(--primary);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.comparison-button svg {
    width: 20px;
    height: 20px;
}

.image-label {
    position: absolute;
    top: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
}

.before-image .image-label {
    left: 16px;
}

.after-image .image-label {
    right: 16px;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    z-index: 10;
}

.slider-line {
    width: 2px;
    height: 400px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat {
    padding: 24px;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Social Proof Section */
.social-proof-section {
    padding: var(--section-padding) 0;
    background: var(--background-secondary);
}

.social-proof-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.testimonial {
    background: var(--background);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}

.testimonial-content p::before {
    content: '"';
    font-size: 24px;
    color: var(--primary);
}

.testimonial-content p::after {
    content: '"';
    font-size: 24px;
    color: var(--primary);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-title {
    font-size: 14px;
    color: var(--text-secondary);
}

.trusted-by {
    text-align: center;
}

.trusted-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.company-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-tertiary);
    padding: 12px 24px;
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

/* Pricing Section */
.pricing-section {
    padding: 60px 0;
    background: var(--background);
}

.pricing-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.pricing-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.pricing-card {
    background: var(--background);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
}

.plan-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.plan-price {
    margin-bottom: 24px;
}

.currency {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-secondary);
}

.amount {
    font-size: 52px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.period {
    font-size: 19px;
    color: var(--text-secondary);
}

.plan-features {
    text-align: left;
    margin-bottom: 32px;
}

.plan-features .feature-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
    color: var(--text-primary);
}

.plan-features .feature-item:last-child {
    border-bottom: none;
}

.plan-button {
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.plan-button.primary {
    background: var(--primary);
    color: white;
}

.plan-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.plan-button.secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--border);
}

.plan-button.secondary:hover {
    background: var(--background-tertiary);
    border-color: var(--primary);
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.pricing-note p {
    margin-bottom: 8px;
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--background-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.faq-item.expanded {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question:hover {
    background: var(--background-tertiary);
    color: var(--primary);
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.faq-question-text {
    flex: 1;
    text-align: left;
}

.faq-icon {
    color: var(--text-secondary);
    transition: var(--transition);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.faq-item.expanded .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--background-tertiary);
}

.faq-answer.open {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

.faq-answer-content p {
    margin: 0 0 16px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.faq-answer-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--primary-bg);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.cta-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-primary);
}

.cta-benefit svg {
    color: var(--success);
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 180px;
}

.cta-button.primary {
    background: var(--primary);
    color: white;
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: var(--background);
    color: var(--text-primary);
    border-color: var(--border);
}

.cta-button.secondary:hover {
    background: var(--background-secondary);
    border-color: var(--primary);
}

.cta-note {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 64px 0 32px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 48px 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
    align-items: start;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .brand-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: white;
    transform: translateY(-1px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    align-items: start;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 0.5px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 14px;
    font-size: 15px;
    transition: var(--transition);
    line-height: 1.4;
}

.footer-column a:hover {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-container,
    .hero-container,
    .features-container,
    .comparison-container,
    .social-proof-container,
    .pricing-container,
    .faq-container,
    .cta-container,
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .comparison-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .upload-area {
        padding: 32px 20px;
        min-height: 280px;
    }
    
    .upload-bg-image {
        width: 150px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-images {
        height: 300px;
    }
    
    .slider-line {
        height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-logos {
        gap: 24px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .progress-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .progress-bar {
        width: 100%;
    }
    
    .progress-percentage {
        text-align: center;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .result-stats {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-container,
    .features-container,
    .comparison-container,
    .social-proof-container,
    .pricing-container,
    .faq-container,
    .cta-container,
    .footer-container {
        padding: 0 16px;
    }
    
    .upload-area {
        padding: 24px 16px;
        min-height: 240px;
    }
    
    .upload-bg-image {
        width: 120px;
    }
    
    .progress-section,
    .results-section {
        padding: 24px 16px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 16px;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
    }
}

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

/* Focus styles */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
}

/* Animation utilities */
.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

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

/* AIDA Features Section Styles */
.attention-hook {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

.features-grid-aida {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card-aida {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-aida:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.15);
    border-color: var(--primary);
}

.feature-card-aida.compress {
    border-top: 4px solid #FF6B6B;
}

.feature-card-aida.upscale {
    border-top: 4px solid #4ECDC4;
}

.feature-card-aida.optimize {
    border-top: 4px solid #45B7D1;
}

.feature-badge {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.feature-icon-large {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-result {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.result-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
    line-height: 1;
}

.result-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.feature-description {
    color: #dc3545;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-solution {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-solution strong {
    color: var(--success);
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.benefit-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.features-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(0, 122, 255, 0.1));
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.cta-headline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cta-subtext {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.cta-btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    min-width: 200px;
}

.cta-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-btn-primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cta-btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition);
}

.cta-btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.cta-guarantee {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive adjustments for AIDA features */
@media (max-width: 768px) {
    .features-grid-aida {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card-aida {
        padding: 2rem;
    }
    
    .result-number {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* =============================================================================
   AUTHENTICATION MODAL STYLES
   ============================================================================= */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.auth-modal-content {
    background: var(--background);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

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

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-modal:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.auth-tabs {
    display: flex;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-tab:hover {
    color: var(--primary);
}

#auth-form {
    padding: 1.5rem;
}

#auth-form-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#auth-form input {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition-fast);
    background: var(--background);
}

#auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.auth-submit-btn {
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 0.5rem;
}

.auth-submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-benefits {
    padding: 1.5rem;
    background: var(--background-secondary);
    border-top: 1px solid var(--border-light);
}

.auth-benefits h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
}

.auth-benefits li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* User Menu Styles */
.user-menu {
    position: fixed;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.user-menu-content {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 200px;
}

.user-info {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.75rem;
}

.user-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.user-tier {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: capitalize;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-actions button {
    padding: 0.5rem 0.75rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-actions button:hover {
    background: var(--background-secondary);
    border-color: var(--primary);
}

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

/* Mobile responsive for auth modal */
@media (max-width: 768px) {
    .auth-modal {
        padding: 0.5rem;
    }
    
    .auth-modal-content {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
    
    .auth-header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .auth-header h2 {
        font-size: 1.25rem;
    }
    
    #auth-form {
        padding: 1rem;
    }
    
    .auth-benefits {
        padding: 1rem;
    }
}

/* ===================================
   IMPROVED PROCESSING TRACKER STYLES
   =================================== */

/* Processing Section */
.processing-section {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-top: 32px;
}

.processing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.processing-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.processing-count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.processing-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Compact Processing Item - One Row Design */
.processing-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--background-tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(4px);
    min-height: 56px;
}

.processing-item:hover {
    background: var(--background-secondary);
    border-color: var(--border);
}

.processing-item[data-state="completed"] {
    background: var(--success-bg);
    border-color: var(--success);
}

.processing-item[data-state="failed"] {
    background: #FFF2F2;
    border-color: var(--error);
}

.processing-item[data-state="processing"] {
    background: var(--primary-bg);
    border-color: var(--primary-light);
}

/* File Icon */
.processing-file-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.processing-item[data-state="completed"] .processing-file-icon {
    background: var(--success);
}

.processing-item[data-state="failed"] .processing-file-icon {
    background: var(--error);
}

.processing-item[data-state="processing"] .processing-file-icon {
    background: var(--primary);
    animation: processing-pulse 2s infinite;
}

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

/* File Info - Main Content */
.processing-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.processing-file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.processing-file-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.processing-file-size {
    font-weight: 400;
}

.processing-file-type {
    text-transform: uppercase;
    font-weight: 500;
    padding: 1px 4px;
    background: var(--border-light);
    border-radius: 3px;
}

/* Status and Progress Section */
.processing-status-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Status Badge */
.processing-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.processing-status-badge.uploading {
    background: var(--border-light);
    color: var(--text-secondary);
}

.processing-status-badge.queued {
    background: #FFF4E6;
    color: var(--warning);
}

.processing-status-badge.processing {
    background: var(--primary-bg);
    color: var(--primary);
}

.processing-status-badge.completed {
    background: var(--success-bg);
    color: var(--success);
}

.processing-status-badge.failed {
    background: #FFF2F2;
    color: var(--error);
}

/* Progress Bar - Compact Version */
.processing-progress-compact {
    width: 80px;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

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

.processing-item[data-state="completed"] .processing-progress-fill {
    background: var(--success);
}

.processing-item[data-state="failed"] .processing-progress-fill {
    background: var(--error);
}

/* Results Stats - Inline */
.processing-results-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 120px;
    justify-content: flex-end;
}

.processing-compression-stat {
    color: var(--success);
    font-weight: 500;
}

.processing-size-stat {
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Action Button - Compact */
.processing-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.9);
}

.processing-item[data-state="completed"] .processing-action-btn {
    opacity: 1;
    transform: scale(1);
    background: var(--success);
}

.processing-action-btn:hover {
    background: var(--success);
    transform: scale(1.05);
}

.processing-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Download All Button */
.processing-download-all {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(4px);
}

.processing-download-all.visible {
    opacity: 1;
    transform: translateY(0);
}

.processing-download-all:hover {
    background: var(--primary-dark);
}

.processing-download-all svg {
    width: 16px;
    height: 16px;
}

/* Spinner for Loading States */
.processing-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .processing-item {
        padding: 10px 12px;
        gap: 8px;
        min-height: 48px;
    }
    
    .processing-file-icon {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .processing-file-name {
        font-size: 13px;
    }
    
    .processing-file-meta {
        font-size: 11px;
    }
    
    .processing-status-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .processing-progress-compact {
        width: 60px;
        height: 4px;
    }
    
    .processing-results-inline {
        font-size: 11px;
        min-width: 80px;
    }
    
    .processing-action-btn {
        width: 28px;
        height: 28px;
    }
    
    .processing-action-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ===================================
   COMPACT FEATURES LAYOUT
   =================================== */

/* Compact Features Section */
.section-header-compact {
    text-align: center;
    margin-bottom: 48px;
}

.section-header-compact h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.features-intro {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Single Row Features Grid */
.features-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Compact Feature Cards - shadcn inspired */
.feature-card-compact {
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
}

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

.feature-card-compact.compress {
    border-top: 3px solid #FF6B6B;
}

.feature-card-compact.upscale {
    border-top: 3px solid #4ECDC4;
}

.feature-card-compact.optimize {
    border-top: 3px solid #45B7D1;
}

/* Feature Icon */
.feature-icon-compact {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.feature-card-compact.compress .feature-icon-compact {
    background: #FFF5F5;
    color: #FF6B6B;
}

.feature-card-compact.upscale .feature-icon-compact {
    background: #F0FDFA;
    color: #4ECDC4;
}

.feature-card-compact.optimize .feature-icon-compact {
    background: #F0F9FF;
    color: #45B7D1;
}

/* Feature Content */
.feature-content-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-title-compact {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-stat-compact {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.feature-card-compact.compress .stat-number {
    color: #FF6B6B;
}

.feature-card-compact.upscale .stat-number {
    color: #4ECDC4;
}

.feature-card-compact.optimize .stat-number {
    color: #45B7D1;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-desc-compact {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex: 1;
}

/* Benefit Tags */
.feature-benefits-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.benefit-tag {
    background: var(--background-secondary);
    color: var(--text-tertiary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-compact {
        gap: 24px;
    }
    
    .hero-title-compact {
        font-size: 32px;
    }
    
    .hero-subtitle-compact {
        font-size: 16px;
    }
    
    .upload-area-compact {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 12px;
    }
    
    .upload-text-compact {
        text-align: center;
    }
    
    .upload-primary-text {
        font-size: 15px;
    }
    
    .upload-secondary-text {
        font-size: 13px;
    }
    
    /* Mobile Responsive for Settings Panel */
    .processing-settings-panel {
        padding: 12px;
    }
    
    .settings-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .setting-group {
        justify-content: space-between;
    }
    
    .radio-group {
        gap: 8px;
    }
    
    .dimensions-inputs {
        justify-content: center;
    }
    
    .dimension-input {
        width: 70px;
    }
    
    .features-grid-compact {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card-compact {
        height: auto;
        min-height: 240px;
        padding: 20px;
    }
    
    .section-header-compact h2 {
        font-size: 28px;
    }
    
    .features-intro {
        font-size: 16px;
    }
    
    .feature-icon-compact {
        width: 40px;
        height: 40px;
    }
    
    .feature-title-compact {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* Focus States for Better Accessibility */
button:focus-visible,
.upload-area-compact:focus-visible,
.processing-action-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High Contrast Button States */
button:hover {
    filter: brightness(0.95);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Screen Reader Only Content */
.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;
}

/* Improved Link Contrast */
a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition);
}

a:hover,
a:focus {
    text-decoration-color: var(--primary);
    color: var(--primary-dark);
}

/* Better Error and Success States */
.processing-status-badge.failed {
    background: #FFEBEE;
    color: var(--error);
    border: 1px solid var(--error);
}

.processing-status-badge.completed {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}