* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5B5FFF;
    --primary-dark: #4A4EE8;
    --primary-light: #E8E9FF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --background: #FFFFFF;
    --background-secondary: #F9FAFB;
    --background-hover: #F3F4F6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.logo-text {
    letter-spacing: -0.02em;
}

.pro-badge {
    background: linear-gradient(135deg, #5B5FFF, #8B5CF6);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: super;
}

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

.nav-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.btn-text:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, var(--background-secondary) 0%, var(--background) 100%);
    padding: 80px 0;
    text-align: center;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #5B5FFF, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pill {
    background: var(--background);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Main */
.main {
    padding: 40px 0 80px;
    min-height: calc(100vh - 64px);
}

/* Pricing Card Minimal */
.pricing-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.pricing-card-minimal {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

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

.trial-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.pricing-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.comparison-grid {
    margin: 30px 0;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--background-secondary);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.comparison-item:last-child {
    border-bottom: none;
}

.check {
    color: var(--success);
    font-weight: 600;
    font-size: 1.1rem;
}

.price-section {
    text-align: center;
    margin: 30px 0;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

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

.guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guarantee svg {
    color: var(--success);
}

/* Processing Section */
.processor-section {
    max-width: 1000px;
    margin: 0 auto;
}

/* Controls Bar */
.controls-bar {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 30px;
}

.control-tabs-minimal {
    display: flex;
    gap: 8px;
}

.tab {
    background: var(--background);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.tab-icon {
    font-size: 1rem;
}

.custom-controls {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.slider-group {
    flex: 1;
}

.slider-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    margin: 10px 0;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(91, 95, 255, 0.1);
}

.slider-value {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

/* Upload Area */
.upload-container {
    margin-bottom: 40px;
}

.upload-area {
    background: var(--background-secondary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

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

.upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--background);
    border-radius: 50%;
    margin-bottom: 16px;
}

.upload-icon {
    color: var(--primary);
}

.upload-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

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

.btn-secondary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Results Grid */
.results-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s;
    flex-wrap: wrap;
}

.result-item:hover {
    box-shadow: var(--shadow-md);
}

.image-comparison {
    display: flex;
    gap: 12px;
    max-width: 100%;
}

.image-box {
    text-align: center;
    max-width: 300px;
}

.image-box label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.image-thumb {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--background-secondary);
}

.result-info {
    flex: 1;
}

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

.result-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-status.success {
    color: var(--success);
}

.result-actions {
    display: flex;
    gap: 10px;
}

.btn-download {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download:hover {
    background: #059669;
}

/* Batch Bar */
.batch-bar {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 20px;
    box-shadow: var(--shadow-lg);
}

.batch-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.batch-buttons {
    display: flex;
    gap: 10px;
}

.btn-primary-small {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: var(--background-hover);
}

/* Comparison Section */
.comparison-section {
    margin-top: 80px;
    padding: 60px 0;
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
}

.comparison-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    background: var(--background-secondary);
    padding: 16px 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.our-column {
    position: relative;
    color: var(--primary);
}

.badge-best {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.table-row:last-child {
    border-bottom: none;
}

.feature-name {
    font-weight: 500;
    color: var(--text-primary);
}

.check-green {
    color: var(--success);
    font-weight: 600;
}

.check-gray {
    color: var(--text-light);
}

.x-red {
    color: var(--danger);
}

/* Footer */
.footer {
    background: var(--background-secondary);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-spinner p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #8B5CF6);
    transition: width 0.5s ease;
}

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

.result-item {
    animation: fadeIn 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        font-size: 0.85rem;
    }
    
    .feature-pills {
        justify-content: center;
    }
    
    .control-tabs-minimal {
        flex-wrap: wrap;
    }
    
    .custom-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .batch-bar {
        flex-direction: column;
        gap: 15px;
    }
}