/* ============================================
   HEIC → JPG Converter - Neon Brutalist Design
   Tokyo Night Palette | Outfit + Sora Typography
   With Light/Dark Mode Support
   ============================================ */

/* ============================================
   CSS Variables - Dark Theme (Default)
   ============================================ */
:root,
[data-theme="dark"] {
    /* Background Colors - Deep Night */
    --bg-void: #0f0f14;
    --bg-deep: #1a1b26;
    --bg-surface: #24283b;
    --bg-elevated: #2a2e42;
    --bg-hover: #3b4261;

    /* Accent Colors - Neon Warmth */
    --accent-coral: #f7768e;
    --accent-coral-muted: rgba(247, 118, 142, 0.15);
    --accent-coral-glow: rgba(247, 118, 142, 0.4);
    --accent-amber: #e0af68;
    --accent-amber-muted: rgba(224, 175, 104, 0.15);
    --accent-cyan: #7dcfff;
    --accent-cyan-muted: rgba(125, 207, 255, 0.15);
    --accent-green: #9ece6a;
    --accent-green-muted: rgba(158, 206, 106, 0.15);
    --accent-purple: #bb9af7;

    /* Text Colors */
    --text-primary: #c0caf5;
    --text-secondary: #7982a9;
    --text-muted: #565f89;
    --text-bright: #ffffff;

    /* Border Colors */
    --border-subtle: rgba(65, 72, 104, 0.4);
    --border-default: rgba(86, 95, 137, 0.5);
    --border-strong: #565f89;
    --border-accent: var(--accent-coral);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow-coral: 0 0 30px var(--accent-coral-glow);
    --shadow-glow-cyan: 0 0 30px rgba(125, 207, 255, 0.3);

    /* Color scheme */
    color-scheme: dark;
}

/* ============================================
   CSS Variables - Light Theme
   ============================================ */
[data-theme="light"] {
    /* Background Colors - Clean Light */
    --bg-void: #f8fafc;
    --bg-deep: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-elevated: #f8fafc;
    --bg-hover: #e2e8f0;

    /* Accent Colors - Vibrant */
    --accent-coral: #e11d48;
    --accent-coral-muted: rgba(225, 29, 72, 0.1);
    --accent-coral-glow: rgba(225, 29, 72, 0.25);
    --accent-amber: #d97706;
    --accent-amber-muted: rgba(217, 119, 6, 0.1);
    --accent-cyan: #0891b2;
    --accent-cyan-muted: rgba(8, 145, 178, 0.1);
    --accent-green: #16a34a;
    --accent-green-muted: rgba(22, 163, 74, 0.1);
    --accent-purple: #9333ea;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-bright: #0f172a;

    /* Border Colors */
    --border-subtle: rgba(148, 163, 184, 0.3);
    --border-default: rgba(148, 163, 184, 0.5);
    --border-strong: #cbd5e1;
    --border-accent: var(--accent-coral);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-glow-coral: 0 0 20px var(--accent-coral-glow);
    --shadow-glow-cyan: 0 0 20px rgba(8, 145, 178, 0.2);

    /* Color scheme */
    color-scheme: light;
}

/* ============================================
   Shared Variables (Both Themes)
   ============================================ */
:root {
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Sora', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing - Fluid */
    --space-2xs: clamp(0.125rem, 0.25vw, 0.25rem);
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 0.75rem);
    --space-md: clamp(0.75rem, 1.5vw, 1rem);
    --space-lg: clamp(1rem, 2vw, 1.5rem);
    --space-xl: clamp(1.5rem, 3vw, 2rem);
    --space-2xl: clamp(2rem, 4vw, 3rem);
    --space-3xl: clamp(3rem, 6vw, 5rem);

    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 150ms var(--ease-out-expo);
    --transition-base: 300ms var(--ease-out-expo);
    --transition-slow: 500ms var(--ease-out-expo);
    --transition-spring: 400ms var(--ease-spring);
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* Visually Hidden (Accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Animated Background System
   ============================================ */
.app {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    isolation: isolate;
}

/* Base gradient layer */
.app::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -20%, rgba(247, 118, 142, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 50%, rgba(125, 207, 255, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse 60% 80% at 10% 80%, rgba(224, 175, 104, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
    animation: gradientShift 20s ease-in-out infinite alternate;
}

/* Grid pattern overlay */
.app::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(65, 72, 104, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 72, 104, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

@keyframes gradientShift {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Floating orb - decorative element */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    animation: orbFloat 15s ease-in-out infinite;
}

.bg-orb--coral {
    width: 400px;
    height: 400px;
    background: var(--accent-coral-glow);
    top: -100px;
    right: -100px;
    opacity: 0.4;
}

.bg-orb--cyan {
    width: 300px;
    height: 300px;
    background: rgba(125, 207, 255, 0.2);
    bottom: -50px;
    left: -50px;
    opacity: 0.3;
    animation-delay: -7s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

/* ============================================
   Header - Asymmetric Brutalist
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    animation: headerSlide 0.6s var(--ease-out-expo) 0.1s both;
}

@keyframes headerSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-coral) 30%, var(--accent-amber) 70%, transparent 100%);
    opacity: 0.5;
}

.header-content {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: translateX(4px);
}

.logo-icon {
    color: var(--accent-coral);
    display: flex;
    align-items: center;
    transition: transform var(--transition-spring);
}

.logo:hover .logo-icon {
    transform: rotate(-8deg) scale(1.1);
}

.logo h1 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-bright);
}

.logo-arrow {
    display: inline-block;
    color: var(--accent-coral);
    margin: 0 var(--space-2xs);
    transition: transform var(--transition-fast);
}

.logo:hover .logo-arrow {
    transform: translateX(3px);
}

/* Header Badges - Brutalist Pills */
.header-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: var(--radius-xs);
    border: 1.5px solid;
    background: transparent;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.badge-success {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.badge-success:hover {
    background: var(--accent-green-muted);
}

.badge-info {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.badge-info:hover {
    background: var(--accent-cyan-muted);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

.badge-icon {
    flex-shrink: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Header Actions (Theme Toggle + Badges) */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
    background: var(--accent-amber-muted);
    transform: rotate(15deg);
}

.theme-toggle:active {
    transform: rotate(15deg) scale(0.95);
}

/* Light theme header adjustments */
[data-theme="light"] .header {
    background: rgba(248, 250, 252, 0.9);
}

[data-theme="light"] .bg-orb {
    opacity: 0.15;
}

/* ============================================
   Main Content
   ============================================ */
.main {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    position: relative;
    z-index: 1;
}

/* ============================================
   Hero Section - Dramatic Typography
   ============================================ */
.converter-section {
    margin-bottom: var(--space-3xl);
}

.hero-text {
    text-align: center;
    margin-bottom: var(--space-2xl);
    animation: heroReveal 0.8s var(--ease-out-expo) 0.3s both;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text-bright);
}

.hero-tagline .highlight {
    color: var(--accent-coral);
    text-shadow: 0 0 40px rgba(247, 118, 142, 0.4);
}

/* ============================================
   Drop Zone - Brutalist Container
   ============================================ */
.drop-zone {
    position: relative;
    border: 2.5px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    padding: clamp(2.5rem, 8vw, 5rem) var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
    animation: dropZoneReveal 0.8s var(--ease-out-expo) 0.5s both;
}

@keyframes dropZoneReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Grid pattern inside drop zone */
.drop-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(125, 207, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 207, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.drop-zone:hover::before,
.drop-zone:focus-visible::before {
    opacity: 1;
}

.drop-zone:hover,
.drop-zone:focus-visible {
    border-color: var(--accent-coral);
    background: var(--bg-elevated);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-coral);
    outline: none;
}

.drop-zone.drag-over {
    border-color: var(--accent-cyan);
    border-style: solid;
    transform: scale(1.02);
    box-shadow: var(--shadow-glow-cyan);
}

.drop-zone.drag-over::before {
    opacity: 1;
    background-image:
        linear-gradient(rgba(125, 207, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 207, 255, 0.08) 1px, transparent 1px);
}

.drop-zone-content {
    position: relative;
    z-index: 1;
}

.drop-zone-icon {
    color: var(--accent-coral);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-spring);
}

.drop-zone:hover .drop-zone-icon {
    transform: translateY(-8px) scale(1.1);
    color: var(--accent-amber);
}

.drop-zone-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-bright);
    margin-bottom: var(--space-xs);
}

.drop-zone-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: var(--space-xl);
}

.drop-zone-formats {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.format-tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    transition: all var(--transition-fast);
}

.drop-zone:hover .format-tag {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

/* ============================================
   Controls - Mode Selector
   ============================================ */
.controls {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-subtle);
    flex-wrap: wrap;
    animation: controlsReveal 0.6s var(--ease-out-expo) 0.7s both;
}

@keyframes controlsReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.control-group {
    flex: 1;
    min-width: min(100%, 280px);
}

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.label-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Mode Selector - Brutalist Cards */
.mode-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.mode-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-deep);
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    overflow: hidden;
}

.mode-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(247, 118, 142, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.mode-btn:hover {
    border-color: var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.mode-btn:hover::before {
    opacity: 1;
}

.mode-btn.active {
    border-color: var(--accent-coral);
    background: var(--bg-surface);
    color: var(--text-bright);
    box-shadow: 0 0 25px rgba(247, 118, 142, 0.15);
}

.mode-btn.active::before {
    opacity: 1;
}

.mode-btn.active svg {
    color: var(--accent-coral);
    transform: scale(1.1);
}

.mode-btn svg {
    color: var(--text-muted);
    transition: all var(--transition-spring);
}

.mode-btn:hover svg {
    color: var(--accent-amber);
    transform: scale(1.05);
}

.mode-label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mode-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mode-btn.active .mode-desc {
    color: var(--text-secondary);
}

/* ============================================
   File Queue Section
   ============================================ */
.file-queue-section {
    margin-bottom: var(--space-3xl);
}

.file-queue-section[hidden] {
    display: none;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.queue-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-bright);
}

.queue-count {
    color: var(--accent-coral);
}

.queue-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons - Brutalist Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 10px var(--space-lg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    min-height: 40px;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
    color: var(--bg-void);
}

.btn-primary:hover:not(:disabled) {
    background: transparent;
    color: var(--accent-coral);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-coral);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--text-secondary);
    color: var(--text-bright);
    background: var(--bg-elevated);
}

.btn-outline {
    background: transparent;
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

.btn-outline:hover:not(:disabled) {
    background: var(--accent-coral);
    color: var(--bg-void);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-coral);
}

/* Queue Footer */
.queue-footer {
    display: flex;
    justify-content: center;
    padding-top: var(--space-xl);
    margin-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

/* Conversion Active Mode - Hide other sections */
.conversion-active~.how-it-works,
.conversion-active~.faq-section {
    display: none;
}

/* File Queue List */
.file-queue {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* File Item - Horizontal Card */
.file-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-subtle);
    transition: all var(--transition-fast);
    animation: fileSlideIn 0.4s var(--ease-out-expo) backwards;
}

@keyframes fileSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-item:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
}

.file-preview {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-placeholder {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.file-info {
    min-width: 0;
}

.file-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.file-meta {
    display: flex;
    gap: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.file-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Status Badges */
.status-badge {
    padding: 4px var(--space-sm);
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid;
}

.status-pending {
    background: transparent;
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.status-processing {
    background: var(--accent-cyan-muted);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    animation: processingPulse 1.5s ease-in-out infinite;
}

@keyframes processingPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.status-complete {
    background: var(--accent-green-muted);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.status-error {
    background: var(--accent-coral-muted);
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

/* Progress Bar - Segmented */
.file-progress {
    position: relative;
    width: 100%;
    height: 3px;
    background: var(--bg-deep);
    border-radius: var(--radius-full);
    margin-top: var(--space-sm);
    overflow: hidden;
}

.file-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-amber));
    border-radius: var(--radius-full);
    transition: width 0.3s var(--ease-out-expo);
}

/* File Actions */
.file-actions {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    border-color: var(--text-secondary);
    color: var(--text-bright);
    background: var(--bg-elevated);
    transform: scale(1.05);
}

.btn-icon.btn-download {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-icon.btn-download:hover {
    background: var(--accent-green);
    color: var(--bg-void);
    transform: scale(1.05);
}

/* ============================================
   How It Works - Vertical Timeline
   ============================================ */
.how-it-works {
    margin-bottom: var(--space-3xl);
    padding: var(--space-2xl) 0;
}

.how-it-works h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text-bright);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-lg);
    position: relative;
}

/* Connecting line between cards on larger screens */
@media (min-width: 768px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 5%;
        right: 5%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--border-default) 20%, var(--border-default) 80%, transparent);
        z-index: 0;
    }
}

.step-card {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    border: 1.5px solid var(--border-subtle);
    transition: all var(--transition-base);
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-coral);
    box-shadow: var(--shadow-md), 0 0 30px rgba(247, 118, 142, 0.1);
}

.step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    border: 2px solid var(--accent-coral);
    border-radius: var(--radius-lg);
    color: var(--accent-coral);
    transition: all var(--transition-spring);
}

.step-card:hover .step-icon {
    background: var(--accent-coral);
    color: var(--bg-void);
    transform: scale(1.05) rotate(-3deg);
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-sm);
    color: var(--text-bright);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   FAQ Section - Editorial Accordion
   ============================================ */
.faq-section {
    margin-bottom: var(--space-3xl);
}

.faq-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text-bright);
}

.faq-grid {
    display: grid;
    gap: var(--space-sm);
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-subtle);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--border-default);
}

.faq-item[open] {
    border-color: var(--accent-coral);
    background: var(--bg-elevated);
}

.faq-item summary {
    padding: var(--space-lg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.faq-item summary:hover {
    color: var(--text-bright);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--accent-coral);
    transition: transform var(--transition-spring);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   Footer - Premium Design
   ============================================ */
.footer {
    padding: var(--space-2xl) var(--space-xl) var(--space-lg);
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-deep);
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-coral) 20%,
            var(--accent-amber) 50%,
            var(--accent-cyan) 80%,
            transparent 100%);
    opacity: 0.5;
}

.footer-content {
    width: min(100%, 1280px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Footer Logo */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    text-decoration: none;
}

.footer-logo svg {
    color: var(--accent-coral);
}

.footer-logo .logo-arrow {
    color: var(--accent-coral);
    margin: 0 2px;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.footer-privacy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--accent-green-muted);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-privacy svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-coral);
    background: var(--accent-coral-muted);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.footer-divider {
    display: none;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.footer-made-with {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-made-with .heart {
    color: var(--accent-coral);
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
    }

    /* Hide badges on mobile */
    .header-badges {
        display: none;
    }

    /* Keep theme toggle visible */
    .header-actions {
        gap: var(--space-sm);
    }

    .footer-links {
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 640px) {
    .file-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .file-preview {
        width: 40px;
        height: 40px;
    }

    .file-status {
        grid-column: 2;
        justify-self: start;
    }

    .file-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: var(--space-sm);
        border-top: 1px solid var(--border-subtle);
        margin-top: var(--space-xs);
    }

    .queue-header {
        flex-direction: column;
        align-items: stretch;
    }

    .queue-actions {
        justify-content: stretch;
    }

    .queue-actions .btn {
        flex: 1;
    }

    .mode-selector {
        grid-template-columns: 1fr;
    }

    .mode-btn {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .mode-btn svg {
        flex-shrink: 0;
    }
}

/* ============================================
   Static Pages (About, Privacy, Terms)
   ============================================ */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-md);
    color: var(--accent-coral);
}

.page-meta {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-2xl);
}

.content-section {
    margin-bottom: var(--space-2xl);
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--text-bright);
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.content-section a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.content-section a:hover {
    border-color: var(--accent-cyan);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--accent-coral);
    border-radius: 2px;
    transform: rotate(45deg);
}

.page-cta {
    margin-top: var(--space-3xl);
    text-align: center;
}

/* ============================================
   404 Error Page
   ============================================ */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-content {
    max-width: 500px;
}

.error-icon {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    opacity: 0.4;
}

.error-title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--accent-coral);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-message {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-bright);
}

.error-hint {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.error-actions {
    display: flex;
    justify-content: center;
}

/* ============================================
   Utility Animations
   ============================================ */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Stagger animation helper classes */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
}

[data-animate].animated {
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Reduced 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;
    }

    .bg-orb {
        display: none;
    }
}