@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =============================================================================
   WEPPER DESIGN SYSTEM v2 - Professional Redesign
   ============================================================================= */

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

:root {
    /* Brand */
    --brand-50: #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-300: #93c5fd;
    --brand-400: #60a5fa;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-800: #1e40af;
    --brand-900: #1e3a8a;

    /* Slate */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Semantic */
    --primary-color: var(--brand-600);
    --primary-hover: var(--brand-700);
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;

    --text-primary: var(--slate-900);
    --text-secondary: var(--slate-600);
    --text-muted: var(--slate-400);
    --text-inverse: #ffffff;

    --bg-body: var(--slate-50);
    --bg-surface: #ffffff;
    --bg-elevated: var(--slate-100);
    --bg-brand: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 50%, var(--brand-800) 100%);

    --border-color: var(--slate-200);
    --border-subtle: var(--slate-100);

    /* Shadows - ultra soft */
    --shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.04);
    --shadow-sm: 0 1px 3px 0 rgb(15 23 42 / 0.06), 0 1px 2px -1px rgb(15 23 42 / 0.06);
    --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.06), 0 2px 4px -2px rgb(15 23 42 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.06), 0 4px 6px -4px rgb(15 23 42 / 0.06);
    --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.06), 0 8px 10px -6px rgb(15 23 42 / 0.06);
    --shadow-brand: 0 10px 40px -10px rgb(37 99 235 / 0.3);
    --shadow-inset: inset 0 2px 4px 0 rgb(15 23 42 / 0.04);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Compatibility aliases */
    --text-color: var(--text-primary);
    --secondary-color: var(--brand-500);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 { font-size: clamp(1.875rem, 4vw + 0.5rem, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw + 0.3rem, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw + 0.2rem, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

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

/* Utility */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* =============================================================================
   TOP NAVIGATION
   ============================================================================= */
.top-nav {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.85);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.nav-brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.nav-brand .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-brand:hover {
    color: var(--text-primary);
}

/* =============================================================================
   NAVIGATION TABS
   ============================================================================= */
.nav-tabs {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-tabs.visible {
    display: flex;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.nav-tab:hover {
    color: var(--primary-color);
    background: var(--slate-100);
}

.nav-tab.active {
    color: var(--primary-color);
    background: var(--brand-50);
    font-weight: 600;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 1.5px;
}

.nav-tab .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tab .tab-label {
    font-size: 0.95rem;
}

/* Mobile Menu Toggle */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
    transition: color var(--transition-fast);
    margin-right: 0.5rem;
}

.nav-mobile-toggle:hover {
    color: var(--primary-color);
}

.nav-mobile-toggle.active {
    color: var(--primary-color);
}

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.nav-mobile-menu.open {
    display: flex;
}

.nav-mobile-menu .nav-tab {
    border-radius: 0;
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1.5rem;
    margin: 0;
}

.nav-mobile-menu .nav-tab.active::after {
    display: none;
}

.nav-mobile-menu .nav-tab.active {
    background: var(--brand-50);
    border-left: 3px solid var(--primary-color);
    padding-left: calc(1.5rem - 3px);
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero-section {
    padding: var(--space-16) 0 var(--space-10);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.hero-content h1 {
    margin-bottom: var(--space-5);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw + 0.3rem, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-xs);
}

.badge.badge-brand {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-700);
}

/* Social Proof Counter */
.social-proof {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.social-proof .counter-value {
    font-weight: 800;
    color: var(--brand-600);
    font-variant-numeric: tabular-nums;
}

.social-proof .counter-icon {
    color: var(--brand-500);
}

/* =============================================================================
   AD SLOTS
   ============================================================================= */
.ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-6) 0;
}

.ad-slot-banner {
    min-height: 90px;
}

.ad-slot-box {
    min-height: 250px;
}

.ad-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    text-align: center;
}

/* =============================================================================
   CONVERTER CARD
   ============================================================================= */
.converter-section {
    padding: var(--space-8) 0 var(--space-12);
}

.converter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.converter-section .converter-card {
    animation: cardEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: box-shadow var(--transition-base);
}

.converter-section .converter-card:hover {
    box-shadow: 0 24px 64px -16px rgb(15 23 42 / 0.16);
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Entrada escalonada dos 3 passos */
.converter-workflow .workflow-step {
    animation: stepEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.converter-workflow .workflow-step:nth-child(1) { animation-delay: 0.10s; }
.converter-workflow .workflow-step:nth-child(2) { animation-delay: 0.20s; }
.converter-workflow .workflow-step:nth-child(3) { animation-delay: 0.30s; }

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

.workflow-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px -4px rgb(37 99 235 / 0.45);
}

.workflow-step:hover .step-content {
    border-color: var(--brand-200, #bfdbfe);
    box-shadow: 0 10px 30px -12px rgb(37 99 235 / 0.18);
    transform: translateY(-2px);
}

.converter-card-header {
    padding: var(--space-6) var(--space-8);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.converter-card-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.converter-card-header .header-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-600);
    font-size: 1.25rem;
}

.converter-card-body {
    padding: var(--space-8);
}

/* Breadcrumb inside card */
.breadcrumb-nav {
    margin-bottom: var(--space-6);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.breadcrumb-item a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--slate-300);
}

/* Workflow */
.converter-workflow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.workflow-step {
    position: relative;
}

.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    right: calc(var(--space-6) / -2);
    width: var(--space-6);
    height: 2px;
    background: var(--border-color);
    border-radius: 1px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--bg-brand);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.step-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.step-content {
    background: var(--slate-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

/* Upload Area */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-6);
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    cursor: pointer;
    transition: all var(--transition-base);
    flex: 1;
    text-align: center;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--brand-400);
    background: var(--brand-50);
}

.upload-area.dragover {
    animation: dragPulse 1.2s ease-in-out infinite;
    border-style: solid;
}

@keyframes dragPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgb(37 99 235 / 0.25); }
    50% { box-shadow: 0 0 0 10px rgb(37 99 235 / 0); }
}

.upload-area.dragover .upload-icon {
    animation: iconBounce 0.6s ease infinite alternate;
}

@keyframes iconBounce {
    from { transform: translateY(0) scale(1.05); }
    to { transform: translateY(-6px) scale(1.1); }
}

.upload-area.has-files {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.04);
}

.upload-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-50);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-600);
    font-size: 1.5rem;
    transition: transform var(--transition-base);
}

.upload-area:hover .upload-icon {
    transform: scale(1.05);
}

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

.upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

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

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Selected Files */
.selected-files {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.files-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: var(--space-3);
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-height: 120px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    background: var(--slate-50);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    animation: fileItemEnter 0.3s ease-out both;
}

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

/* Quality Control */
.quality-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    flex: 1;
    text-align: center;
}

.quality-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.quality-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-600);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.quality-value.quality-pop {
    animation: qualityPop 0.18s ease-out;
}

@keyframes qualityPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.quality-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quality-slider-container {
    width: 100%;
    padding: 0 var(--space-2);
}

.quality-slider {
    width: 100%;
    height: 6px;
    background: var(--slate-200);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--bg-surface);
    border: 3px solid var(--brand-500);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    border-color: var(--brand-600);
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
}

.quality-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
    border-color: var(--brand-600);
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.15);
}

.quality-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--bg-surface);
    border: 3px solid var(--brand-500);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.quality-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    border-color: var(--brand-600);
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.quality-estimate {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--success-color);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: auto;
}

/* Convert Button */
.convert-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    flex: 1;
    text-align: center;
}

.convert-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-50);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-400);
    font-size: 1.5rem;
}

.convert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: var(--bg-brand);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-brand);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.convert-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.25), transparent);
    transform: skewX(-20deg);
    transition: none;
}

.convert-button:hover::before {
    animation: buttonShine 0.8s ease;
}

@keyframes buttonShine {
    from { left: -75%; }
    to { left: 125%; }
}

.convert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 48px -10px rgb(37 99 235 / 0.4);
}

.convert-button:active {
    transform: translateY(0) scale(0.98);
}

.convert-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.convert-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* =============================================================================
   PROGRESS & DOWNLOAD
   ============================================================================= */
.progress-section {
    padding: var(--space-8);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.progress-section h3 {
    margin-bottom: var(--space-5);
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-inset);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#progressText {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-600);
    font-variant-numeric: tabular-nums;
}

/* Download */
.download-section {
    padding: var(--space-8);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, transparent 100%);
    animation: stepEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes successPop {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
}

.download-success {
    max-width: 480px;
    margin: 0 auto;
}

.download-success .success-icon {
    width: 64px;
    height: 64px;
    background: var(--success-color);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    font-size: 1.75rem;
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.3);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.download-success h3 {
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.download-success p {
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--success-color);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.3);
    margin-bottom: var(--space-3);
}

.download-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -5px rgba(16, 185, 129, 0.4);
    color: white;
}

.download-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* =============================================================================
   ALERTS
   ============================================================================= */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    font-size: 0.9375rem;
}

.error-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.875rem;
    padding-left: 1.75rem;
}

.error-list li {
    position: relative;
    padding-left: var(--space-4);
}

.error-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.5;
}

/* =============================================================================
   TOOLS GRID
   ============================================================================= */
.tools-section {
    padding: var(--space-16) 0;
}

.tools-section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.tools-section-header h2 {
    margin-bottom: var(--space-3);
}

.tools-section-header p {
    font-size: 1.0625rem;
    max-width: 560px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    position: relative;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    height: 100%;
}

.tool-card:hover {
    border-color: var(--brand-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.tool-icon.jpg { background: linear-gradient(135deg, #f97316, #fb923c); }
.tool-icon.png { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.tool-icon.gif { background: linear-gradient(135deg, #ec4899, #f472b6); }
.tool-icon.webp { background: linear-gradient(135deg, var(--brand-500), var(--brand-400)); }
.tool-icon.jpeg-comp { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.tool-icon.png-comp { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.tool-icon.png-converter { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.tool-icon.jpeg-converter { background: linear-gradient(135deg, #f97316, #fb923c); }

.tool-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.tool-content p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.tool-arrow {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-300);
    transition: all var(--transition-base);
}

.tool-card-link:hover .tool-arrow {
    color: var(--brand-500);
    right: var(--space-3);
}

.tool-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    color: var(--success-color);
    font-size: 1.25rem;
}

.compression-indicator {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
}

.compression-percent {
    background: var(--success-color);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.format-indicator {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
}

.format-badge {
    background: var(--slate-800);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.result-card {
    background: linear-gradient(135deg, var(--brand-50), #ffffff);
    border-color: var(--brand-200);
}

/* =============================================================================
   FEATURES
   ============================================================================= */
.features-section {
    padding: var(--space-16) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.features-section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.features-section-header h2 {
    margin-bottom: var(--space-3);
}

.features-section-header p {
    font-size: 1.0625rem;
    max-width: 560px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.feature-item {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: var(--slate-50);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--brand-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-600);
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}

.feature-item h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   FAQ
   ============================================================================= */
.faq-section {
    padding: var(--space-16) 0;
}

.faq-section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.faq-section-header h2 {
    margin-bottom: var(--space-3);
}

.faq-section-header p {
    font-size: 1.0625rem;
    max-width: 560px;
    margin: 0 auto;
}

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

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.faq-item[open] {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--brand-700);
}

.faq-item summary h3 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
}

.faq-item summary .icon-toggle {
    color: var(--text-muted);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item[open] summary .icon-toggle {
    transform: rotate(45deg);
    color: var(--brand-500);
}

.faq-content {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-content ul,
.faq-content ol {
    padding-left: var(--space-5);
    margin-top: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.faq-content li {
    padding-left: var(--space-2);
}

/* =============================================================================
   COMPARISON TABLE
   ============================================================================= */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-4);
    font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--slate-50);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */
.cta-section {
    padding: var(--space-16) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-12) var(--space-8);
    background: var(--bg-brand);
    border-radius: var(--radius-2xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-4);
    position: relative;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
    position: relative;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: white;
    color: var(--brand-700);
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--brand-800);
}

/* =============================================================================
   WEBP INFO
   ============================================================================= */
.webp-info-section {
    padding: var(--space-16) 0;
}

.webp-info-section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.webp-info-section-header h2 {
    margin-bottom: var(--space-3);
}

.webp-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.webp-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
}

.webp-info-card:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.webp-info-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-600);
    font-size: 1.25rem;
    margin: 0 auto var(--space-4);
}

.webp-info-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.webp-info-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: var(--space-12) 0 var(--space-8);
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    letter-spacing: -0.03em;
}

.footer-brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-brand .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.footer-links a {
    color: var(--slate-400);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--slate-800);
    margin: var(--space-4) 0;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--slate-500);
    text-align: center;
}

/* =============================================================================
   BUILD VERSION (discrete)
   ============================================================================= */
.build-version {
    background: var(--slate-950);
    border-top: 1px solid var(--slate-800);
}

.build-version > div {
    font-family: 'SF Mono', monospace;
    font-size: 0.65rem;
    color: var(--slate-600);
    text-align: center;
    padding: 6px var(--container-padding);
    user-select: none;
}

/* =============================================================================
   LANGUAGE SELECTOR
   ============================================================================= */
.lang-selector {
    position: relative;
}

.lang-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-button:hover {
    border-color: var(--slate-300);
    color: var(--text-primary);
}

.lang-button .arrow {
    font-size: 0.625rem;
    transition: transform var(--transition-fast);
    color: var(--text-muted);
}

.lang-selector.open .lang-button .arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    list-style: none;
    padding: var(--space-2);
    margin: 0;
    min-width: 160px;
    display: none;
    z-index: 200;
}

.lang-selector.open .lang-menu {
    display: block;
    animation: fadeIn 150ms ease;
}

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

.lang-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: background var(--transition-fast);
}

.lang-menu li a:hover {
    background: var(--slate-50);
    color: var(--text-primary);
    text-decoration: none;
}

.lang-flag {
    font-size: 1rem;
}

/* =============================================================================
   BENEFITS & HOW-TO (Internal Pages)
   ============================================================================= */
.benefits-section,
.compression-benefits,
.conversion-benefits {
    padding: var(--space-16) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.benefits-section-header,
.compression-benefits-header,
.conversion-benefits-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.benefits-section-header h2,
.compression-benefits-header h2,
.conversion-benefits-header h2 {
    margin-bottom: var(--space-3);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}

.benefit-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    height: 100%;
}

.benefit-item:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-brand);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.benefit-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* How-to Section */
.howto-section {
    padding: var(--space-16) 0;
}

.howto-section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.howto-section-header h2 {
    margin-bottom: var(--space-3);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    height: 100%;
}

.step-card:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step-card .step-number {
    width: 48px;
    height: 48px;
    background: var(--bg-brand);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Compression Presets */
.compression-presets {
    margin: var(--space-4) 0;
    text-align: center;
}

.compression-presets h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preset-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.preset-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.preset-btn:hover {
    border-color: var(--brand-300);
    color: var(--brand-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.preset-btn.active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: white;
    box-shadow: var(--shadow-md);
}

.quality-marks {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1024px) {
    .converter-workflow {
        grid-template-columns: 1fr;
    }

    .workflow-step:not(:last-child)::after {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .webp-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Navigation Tabs - Hide labels on smaller screens */
    .nav-tabs {
        gap: 0.25rem;
        margin-right: 1rem;
    }

    .nav-tab .tab-label {
        display: none;
    }

    .nav-tab {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    /* Navigation Tabs - Hide on mobile, show toggle */
    .nav-tabs {
        display: none !important;
        margin: 0;
        margin-right: auto;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .hero-section {
        padding: var(--space-10) 0 var(--space-8);
    }

    .converter-card-header,
    .converter-card-body {
        padding: var(--space-5);
    }

    .step-content {
        min-height: auto;
        padding: var(--space-5);
    }

    .quality-value {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .webp-info-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: var(--space-8) var(--space-5);
    }

    .footer-links {
        gap: var(--space-4);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

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

    .preset-btn {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-badges {
        gap: var(--space-2);
    }

    .badge {
        font-size: 0.8125rem;
        padding: var(--space-1) var(--space-3);
    }

    .converter-card {
        border-radius: var(--radius-xl);
        border-left: none;
        border-right: none;
    }

    .converter-card-header h2 {
        font-size: 1rem;
    }
}

/* =============================================================================
   ACCESSIBILITY & MOTION
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--slate-900);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 9999;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: var(--space-4);
}

/* Loading states */
.js-loading * {
    cursor: progress !important;
}

.js-loading button,
.js-loading a {
    pointer-events: none;
    opacity: 0.7;
}
