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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    background: #fff;
    padding: 16px 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
    text-decoration: none;
}

.logo span { color: #2c3e50; }

.hero {
    text-align: center;
    padding: 60px 20px 30px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    color: #6c757d;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.container {
    max-width: 680px;
    margin: 0 auto 40px;
    padding: 0 20px;
    width: 100%;
    flex: 1;
}

.upload-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 48px 40px;
    text-align: center;
}

/* Dropzone */
.dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 48px 32px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fafbfc;
}

.dropzone:hover, .dropzone.drag-over {
    border-color: #e74c3c;
    background: #fef5f5;
}

.dropzone-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone-icon svg { width: 28px; height: 28px; color: #e74c3c; }
.dropzone h3 { font-size: 18px; color: #1a1a2e; margin-bottom: 8px; }
.dropzone p { font-size: 14px; color: #9ca3af; }
.dropzone .browse-link { color: #e74c3c; font-weight: 600; text-decoration: underline; }

/* File info */
.file-info {
    display: none;
    align-items: center;
    gap: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 20px;
    text-align: left;
}

.file-info.show { display: flex; }

.file-icon {
    width: 44px;
    height: 44px;
    background: #e74c3c;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon svg { width: 22px; height: 22px; color: #fff; }
.file-details { flex: 1; min-width: 0; }

.file-details .name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-details .size { font-size: 13px; color: #9ca3af; }

.file-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    transition: color 0.2s;
}

.file-remove:hover { color: #e74c3c; }

/* Extract button */
.btn-extract {
    display: none;
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-extract:hover { background: #c0392b; }
.btn-extract.show { display: block; }

/* Result card */
.result-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 48px 40px;
    text-align: center;
}

.result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.result-icon.success { background: #d4edda; }
.result-icon.error { background: #fee2e2; }
.result-icon svg { width: 32px; height: 32px; }
.result-card h3 { font-size: 22px; margin-bottom: 8px; }
.result-card .result-desc { color: #6c757d; font-size: 15px; margin-bottom: 28px; }

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-download:hover { background: #219a52; }
.btn-download svg { width: 20px; height: 20px; }

.btn-again {
    display: inline-block;
    margin-top: 16px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-again:hover { color: #e74c3c; }

/* Error message */
.error-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Progress bar */
.progress-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-icon svg { width: 28px; height: 28px; color: #e74c3c; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 8px;
    margin: 24px 0 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 8px;
    transition: width 0.4s ease;
}

.progress-status { color: #6c757d; font-size: 14px; margin-top: 4px; }
.progress-percent { color: #1a1a2e; font-weight: 700; font-size: 18px; }

/* Steps */
.steps {
    display: flex;
    gap: 32px;
    justify-content: center;
    padding: 40px 20px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.step { text-align: center; flex: 1; }

.step-num {
    width: 36px;
    height: 36px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin: 0 auto 10px;
}

.step h4 { font-size: 14px; color: #1a1a2e; margin-bottom: 4px; }
.step p { font-size: 13px; color: #9ca3af; }

/* SEO content */
.seo-content {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
}

.seo-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 40px 0 16px;
}

.seo-content h2:first-child { margin-top: 0; }

.seo-content > p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.feature {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.feature h3 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

/* FAQ */
.faq { margin-top: 16px; }

.faq details {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.faq summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq summary::after {
    content: '+';
    font-size: 20px;
    color: #9ca3af;
    font-weight: 400;
    transition: transform 0.2s;
}

.faq details[open] summary::after {
    content: '-';
}

.faq details p {
    padding: 0 20px 16px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.7;
}

footer {
    text-align: center;
    padding: 32px 20px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .upload-card, .result-card { padding: 32px 24px; }
    .steps { flex-direction: column; gap: 16px; }
    .features { grid-template-columns: 1fr; }
}
