/* ============================================
   Gemini Watermark Remover - Tech Professional Theme
   Electric Blue & Dark theme
   ============================================ */

:root {
    /* Color Palette - Electric Tech */
    --bg-primary: #0a0e14;
    --bg-secondary: #0d1117;
    --bg-tertiary: #161b22;
    --bg-card: rgba(13, 17, 23, 0.95);
    --bg-card-hover: rgba(22, 27, 34, 0.98);
    
    /* Electric Blue Accents */
    --accent-primary: #00a8ff;
    --accent-secondary: #0070e0;
    --accent-tertiary: #00d4ff;
    --accent-glow: rgba(0, 168, 255, 0.35);
    --accent-subtle: rgba(0, 168, 255, 0.1);
    
    /* Success & Error */
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --error: #ef4444;
    --error-glow: rgba(239, 68, 68, 0.3);
    
    /* Text Colors */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Borders */
    --border-default: rgba(48, 54, 61, 0.8);
    --border-accent: rgba(0, 168, 255, 0.3);
    
    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #00a8ff 0%, #0070e0 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 168, 255, 0.2), rgba(0, 112, 224, 0.1));
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        linear-gradient(rgba(0, 168, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -2;
}

/* Ambient glow */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 168, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.navbar-logo svg {
    width: 18px;
    height: 18px;
    color: white;
}

.navbar-brand span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.navbar-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-link:hover {
    color: var(--text-primary);
    background: var(--accent-subtle);
}

.navbar-link.active {
    color: var(--accent-primary);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-md);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-default);
    background: rgba(10, 14, 20, 0.98);
}

.mobile-menu .mobile-link {
    display: block;
    padding: var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-menu .mobile-link:hover {
    color: var(--text-primary);
    background: var(--accent-subtle);
}

/* ============================================
   Section Containers
   ============================================ */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(64px + var(--space-3xl)) var(--space-lg) var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Large screen: side by side layout */
@media (min-width: 1100px) {
    .hero-section {
        padding: calc(64px + var(--space-2xl)) var(--space-xl) var(--space-2xl);
    }
    
    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
        align-items: center;
        max-width: 1200px;
        text-align: left;
    }
    
    .hero-text-content {
        align-items: flex-start;
    }
    
    .hero-visual {
        margin-top: 0;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-comparison {
        max-width: 550px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    margin-bottom: var(--space-xl);
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

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

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.hero-description strong {
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-blue);
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-hero-primary svg {
    width: 20px;
    height: 20px;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-hero-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-default);
}

/* Hero Visual - Before/After Comparison */
.hero-visual {
    margin-top: var(--space-3xl);
    display: flex;
    justify-content: center;
}

.hero-comparison {
    max-width: 500px;
    width: 100%;
}

.hero-comparison-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
    border: 2px solid var(--border-accent);
    cursor: ew-resize;
    user-select: none;
    background: var(--bg-tertiary);
}

.hero-after-container,
.hero-before-container {
    position: relative;
}

.hero-after-container {
    display: block;
    line-height: 0;
}

.hero-before-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0);
    z-index: 2;
}

.hero-comparison-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-comparison-label {
    position: absolute;
    top: var(--space-md);
    padding: 8px 16px;
    background: rgba(10, 14, 20, 0.95);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-label-before {
    left: var(--space-md);
}

.hero-label-after {
    right: var(--space-md);
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    cursor: ew-resize;
}

.hero-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--accent-primary);
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--accent-glow);
}

.hero-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-slider-handle:hover,
.hero-comparison-wrapper:active .hero-slider-handle {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

.hero-slider-handle svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.hero-comparison-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-comparison-hint svg {
    color: var(--accent-primary);
    animation: slideHint 1.5s ease-in-out infinite;
}

@keyframes slideHint {
    0%, 100% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.5) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: rgba(0, 168, 255, 0.15);
    box-shadow: 0 0 20px var(--accent-glow);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Differentiation Section
   ============================================ */

.diff-section {
    padding: var(--space-4xl) 0;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.diff-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.diff-others {
    border: 1px solid var(--border-default);
}

.diff-ours {
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 40px var(--accent-glow);
}

.diff-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.diff-label {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

.diff-label-others {
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

.diff-label-ours {
    color: var(--accent-primary);
    background: var(--accent-subtle);
}

.diff-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    color: white;
    background: var(--gradient-blue);
    border-radius: 100px;
}

.diff-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.diff-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.diff-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.diff-item-bad svg {
    color: var(--error);
}

.diff-item-bad span {
    color: var(--text-muted);
}

.diff-item-good svg {
    color: var(--success);
}

.diff-item-good span {
    color: var(--text-primary);
}

/* ============================================
   Tool Section
   ============================================ */

.tool-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 168, 255, 0.03) 50%, transparent 100%);
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* ============================================
   Upload Section - Dropzone
   ============================================ */

.dropzone {
    background: var(--bg-card);
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.dropzone:hover,
.dropzone.drag-over {
    border-color: var(--accent-primary);
    border-style: solid;
    box-shadow: 0 0 0 1px var(--accent-primary), 0 0 40px var(--accent-glow);
}

.dropzone:hover::before,
.dropzone.drag-over::before {
    opacity: 1;
}

.dropzone-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.dropzone-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.dropzone:hover .dropzone-icon {
    background: rgba(0, 168, 255, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.05);
}

.dropzone-icon svg {
    width: 36px;
    height: 36px;
    color: var(--accent-primary);
}

.dropzone h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.supported-formats {
    font-family: 'JetBrains Mono', Monaco, 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

/* ============================================
   Progress Section
   ============================================ */

.progress-container {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

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

.progress-count {
    font-family: 'JetBrains Mono', Monaco, monospace;
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: 3px;
    width: 0%;
    transition: width var(--transition-base);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ============================================
   Results Section
   ============================================ */

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

.results-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-1px);
}

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

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

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-lg);
}

/* Result Card */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.result-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.result-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-tertiary);
}

.result-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.result-card:hover .result-card-image img {
    transform: scale(1.03);
}

.result-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-md);
}

.result-card:hover .result-card-overlay {
    opacity: 1;
}

.result-card-overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.result-card-info {
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-default);
}

.result-card-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

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

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--accent-subtle);
    color: var(--accent-primary);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    counter-reset: step-counter;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    transition: all var(--transition-base);
}

.step-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-tertiary);
    text-stroke: 1px var(--border-accent);
    -webkit-text-stroke: 1px var(--border-accent);
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    opacity: 0.5;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.step-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.5) 50%, transparent 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--border-accent);
}

.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(0, 168, 255, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--accent-subtle);
}

.faq-question span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

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

.faq-answer {
    display: none;
    padding: 0 var(--space-xl) var(--space-lg);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: var(--space-4xl) 0;
}

.cta-content {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    position: relative;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    position: relative;
}

.cta-content .btn-hero-primary {
    position: relative;
}

/* ============================================
   Preview Modal
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 90vw;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-default);
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Comparison Container */
.comparison-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    user-select: none;
    border: 1px solid var(--border-default);
    margin: 0 auto;
    background: var(--bg-tertiary);
    display: inline-block;
    max-width: 90vw;
    max-height: calc(90vh - 200px);
    vertical-align: middle;
}

.comparison-image {
    position: relative;
    display: block;
}

.comparison-after {
    position: relative;
    z-index: 1;
    display: block;
    line-height: 0;
}

.comparison-after img {
    max-width: 90vw;
    max-height: calc(90vh - 200px);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-before img {
    max-width: 90vw;
    max-height: calc(90vh - 200px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.comparison-label {
    position: absolute;
    top: var(--space-md);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.comparison-before .comparison-label {
    left: var(--space-md);
    right: auto;
}

.comparison-after .comparison-label {
    right: var(--space-md);
    left: auto;
}

.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--accent-primary);
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 0 15px var(--accent-glow);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.slider-handle svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

.modal-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-default);
    background: var(--bg-secondary);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-contact {
    margin-bottom: var(--space-lg);
}

.footer-contact-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 18px;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.footer-email:hover {
    background: rgba(0, 168, 255, 0.15);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.footer-email svg {
    width: 18px;
    height: 18px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu:not([hidden]) {
        display: block;
    }
    
    .hero-section {
        padding-top: calc(64px + var(--space-xl));
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    /* Hero comparison mobile */
    .hero-visual {
        margin-top: var(--space-xl);
    }
    
    .hero-comparison {
        max-width: 100%;
    }
    
    .hero-comparison-wrapper {
        border-radius: var(--radius-lg);
    }
    
    .hero-comparison-label {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .hero-slider-handle {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-handle svg {
        width: 20px;
        height: 20px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .diff-grid {
        grid-template-columns: 1fr;
    }
    
    .dropzone {
        padding: var(--space-xl) var(--space-md);
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: var(--space-md);
    }
    
    .faq-question {
        padding: var(--space-md);
    }
    
    .faq-answer {
        padding: 0 var(--space-md) var(--space-md);
    }
    
    .cta-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-default);
}

/* ============================================
   Utilities
   ============================================ */

[hidden] {
    display: none !important;
}

/* Smooth anchor scroll offset */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Language Selector
   ============================================ */

.language-selector {
    position: relative;
    margin-left: auto;
    margin-right: var(--space-md);
}

.language-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.language-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.language-btn.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-subtle);
}

.language-btn svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.language-btn .dropdown-arrow {
    transition: transform var(--transition-fast);
}

.language-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    min-width: 180px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

/* Custom scrollbar for language dropdown */
.language-dropdown::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.language-option:hover {
    background: var(--bg-tertiary);
}

.language-option.active {
    background: var(--accent-subtle);
    color: var(--accent-primary);
}

.language-option .lang-flag {
    font-size: 1.125rem;
}

.language-option .lang-name {
    flex: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .language-selector {
        margin-right: var(--space-sm);
    }
    
    .language-btn span:not(.lang-flag) {
        display: none;
    }
    
    .language-btn {
        padding: var(--space-sm);
    }
    
    .language-dropdown {
        right: 0;
        left: auto;
        max-height: 280px;
        min-width: 160px;
    }
}

/* ============================================
   Blog Index Page
   ============================================ */

.blog-hero {
    padding: calc(64px + var(--space-3xl)) 0 var(--space-3xl);
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-body {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.blog-card-meta svg {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card-title a:hover {
    color: var(--accent-primary);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.blog-card-link:hover {
    gap: var(--space-md);
}

.blog-card-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Blog Article Page
   ============================================ */

.blog-article-page {
    padding: calc(64px + var(--space-2xl)) 0 var(--space-3xl);
}

.blog-article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.blog-article-header {
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-default);
}

.blog-article-header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.blog-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.blog-article-meta svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.blog-article-body h2 {
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.blog-article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-article-body p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.blog-article-body ul,
.blog-article-body ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.blog-article-body li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.blog-article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-article-body a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.blog-article-body a:hover {
    color: var(--accent-tertiary);
}

.blog-article-body blockquote {
    border-left: 3px solid var(--accent-primary);
    padding: var(--space-md) var(--space-xl);
    margin: var(--space-xl) 0;
    background: var(--accent-subtle);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.blog-article-body blockquote p {
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 0;
}

.blog-cta {
    margin-top: var(--space-3xl);
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 168, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.blog-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    position: relative;
}

.blog-cta p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    position: relative;
}

.blog-related {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-default);
}

.blog-related h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.blog-related-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    display: block;
}

.blog-related-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.blog-related-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-related-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-article-body h2 {
        font-size: 1.375rem;
    }
    
    .blog-article-body h3 {
        font-size: 1.125rem;
    }
    
    .blog-article-body p,
    .blog-article-body li {
        font-size: 1rem;
    }
    
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RTL (Right-to-Left) Support
   For Arabic and other RTL languages
   ============================================ */

[dir="rtl"] {
    text-align: right;
}

/* Navbar RTL */
[dir="rtl"] .navbar-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-selector {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .mobile-menu {
    text-align: right;
}

/* Hero Section RTL */
[dir="rtl"] .hero-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-stats {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-comparison-label.hero-label-before {
    left: auto;
    right: var(--space-md);
}

[dir="rtl"] .hero-comparison-label.hero-label-after {
    right: auto;
    left: var(--space-md);
}

/* Buttons with icons RTL */
[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn svg {
    margin-left: var(--space-sm);
    margin-right: 0;
}

/* Feature cards RTL */
[dir="rtl"] .feature-card {
    text-align: right;
}

/* Diff section RTL */
[dir="rtl"] .diff-grid {
    flex-direction: row-reverse;
}

[dir="rtl"] .diff-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .diff-item svg {
    margin-left: var(--space-sm);
    margin-right: 0;
}

[dir="rtl"] .diff-card-header {
    flex-direction: row-reverse;
}

/* Steps RTL */
[dir="rtl"] .step-card {
    text-align: right;
}

[dir="rtl"] .step-number {
    margin-left: auto;
    margin-right: 0;
}

/* FAQ RTL */
[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .faq-question span {
    text-align: right;
}

[dir="rtl"] .faq-answer {
    text-align: right;
}

/* Tool section RTL */
[dir="rtl"] .dropzone-content {
    text-align: right;
}

[dir="rtl"] .results-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .results-actions {
    flex-direction: row-reverse;
}

/* Footer RTL */
[dir="rtl"] .footer-brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-email {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-email svg {
    margin-left: var(--space-sm);
    margin-right: 0;
}

/* Modal RTL */
[dir="rtl"] .modal-close {
    right: auto;
    left: var(--space-md);
}

[dir="rtl"] .comparison-label {
    left: auto;
    right: var(--space-md);
}

[dir="rtl"] .comparison-after .comparison-label {
    right: auto;
    left: var(--space-md);
}

/* Result cards RTL */
[dir="rtl"] .result-card .result-actions {
    flex-direction: row-reverse;
}

/* Progress section RTL */
[dir="rtl"] .progress-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .progress-fill {
    right: 0;
    left: auto;
    transform-origin: right;
}

/* Section headers RTL */
[dir="rtl"] .section-header {
    text-align: right;
}

/* CTA section RTL */
[dir="rtl"] .cta-content {
    text-align: right;
}

/* General list items RTL */
[dir="rtl"] ul,
[dir="rtl"] ol {
    padding-right: var(--space-lg);
    padding-left: 0;
}

/* Blog RTL */
[dir="rtl"] .breadcrumb {
    flex-direction: row-reverse;
}

[dir="rtl"] .blog-article-body blockquote {
    border-left: none;
    border-right: 3px solid var(--accent-primary);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

[dir="rtl"] .blog-article-body ul,
[dir="rtl"] .blog-article-body ol {
    padding-left: 0;
    padding-right: var(--space-xl);
}

[dir="rtl"] .blog-card-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .blog-article-meta {
    flex-direction: row-reverse;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .hero-content {
        flex-direction: column;
    }
    
    [dir="rtl"] .hero-actions {
        flex-direction: column;
    }
    
    [dir="rtl"] .hero-stats {
        flex-direction: column;
    }
    
    [dir="rtl"] .diff-grid {
        flex-direction: column;
    }
    
    [dir="rtl"] .language-selector {
        margin-left: 0;
        margin-right: var(--space-sm);
    }
    
    [dir="rtl"] .language-dropdown {
        right: 0;
        left: auto;
    }
}
