/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: #18181b; background: #fff; line-height: 1.6; font-size: 15px;
    letter-spacing: -0.01em;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92); backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 17px; font-weight: 700; color: #18181b; letter-spacing: -0.03em;
}
.logo i { font-size: 22px; color: #dc2626; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link-item {
    padding: 7px 14px; border-radius: 6px; font-size: 14px; font-weight: 500;
    color: #52525b; transition: .15s;
}
.nav-link-item:hover { background: #f4f4f5; color: #18181b; }

/* dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
    display: flex; align-items: center; gap: 5px; background: none;
    padding: 7px 14px; border-radius: 6px; font-size: 14px; font-weight: 500;
    color: #52525b; transition: .15s;
}
.dropdown-toggle:hover { background: #f4f4f5; color: #18181b; }
.dropdown-toggle i.bi-chevron-down { font-size: 11px; transition: .2s; }
.dropdown.open .dropdown-toggle i.bi-chevron-down { transform: rotate(180deg); }
.dropdown-menu {
    display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.05);
    padding: 6px; min-width: 200px; z-index: 200;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px;
    font-size: 13px; color: #3f3f46; transition: .12s;
}
.dropdown-menu a:hover { background: #f4f4f5; }
.dropdown-menu a i { font-size: 16px; width: 20px; text-align: center; color: #71717a; }

.hamburger { display: none; background: none; padding: 6px; font-size: 24px; color: #3f3f46; }

/* ===== HERO ===== */
.hero { padding: 72px 24px 56px; }
.hero .container { max-width: 720px; text-align: center; }
.hero h1 {
    font-size: clamp(30px, 5vw, 44px); font-weight: 750; color: #09090b;
    margin-bottom: 14px; line-height: 1.15; letter-spacing: -0.035em;
}
.hero p { font-size: 17px; color: #71717a; margin-bottom: 36px; line-height: 1.6; }
.hero p strong { color: #18181b; font-weight: 600; }

/* upload zone */
.upload-zone {
    max-width: 520px; margin: 0 auto;
    border: 1.5px dashed #d4d4d8; border-radius: 12px;
    padding: 40px 28px; background: #fafafa; transition: .2s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover { border-color: #a1a1aa; background: #f4f4f5; }
.upload-zone > i { font-size: 36px; color: #a1a1aa; margin-bottom: 10px; display: block; }
.upload-zone h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: #27272a; }
.upload-zone span { font-size: 13px; color: #a1a1aa; display: block; }
.upload-zone input[type="file"] { display: none; }
.upload-btn {
    margin-top: 18px; padding: 10px 28px; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: #fff; background: #18181b;
    display: inline-block; transition: .15s;
}
.upload-btn:hover { background: #09090b; }
.file-info { margin-top: 14px; font-size: 13px; color: #16a34a; font-weight: 500; display: none; }
.file-info.show { display: block; }

/* ===== TOOL WORKSPACE ===== */
.tool-workspace { background: #fafafa; min-height: 60vh; }
.back-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: none; font-size: 13px; font-weight: 600;
    color: #71717a; padding: 6px 0; margin-bottom: 20px; transition: .15s;
}
.back-btn:hover { color: #18181b; }
.workspace-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.workspace-icon {
    width: 48px; height: 48px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.workspace-header h2 { font-size: 22px; font-weight: 700; color: #09090b; letter-spacing: -0.02em; }
.workspace-header p { font-size: 14px; color: #71717a; margin-top: 2px; }

.ws-dropzone {
    border: 1.5px dashed #d4d4d8; border-radius: 12px; padding: 48px 28px;
    text-align: center; background: #fff; cursor: pointer; transition: .2s;
}
.ws-dropzone:hover, .ws-dropzone.dragover { border-color: #a1a1aa; background: #fafafa; }
.ws-dropzone > i { font-size: 36px; color: #a1a1aa; margin-bottom: 10px; display: block; }
.ws-dropzone h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ws-dropzone span { font-size: 13px; color: #a1a1aa; display: block; }
.ws-dropzone input[type="file"] { display: none; }

/* file cards */
.ws-file-list { margin-top: 20px; }
.file-cards { display: flex; flex-direction: column; gap: 8px; }
.file-card {
    display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 16px;
    border-radius: 10px; border: 1px solid #e4e4e7;
}
.file-card i { font-size: 20px; color: #dc2626; flex-shrink: 0; }
.file-card-info { flex: 1; min-width: 0; }
.file-card-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card-size { font-size: 12px; color: #a1a1aa; }
.file-card-remove { background: none; font-size: 16px; color: #a1a1aa; padding: 4px; border-radius: 4px; }
.file-card-remove:hover { color: #dc2626; background: #fef2f2; }
.add-more-btn {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    background: none; border: 1px dashed #d4d4d8; border-radius: 8px;
    padding: 8px 16px; font-size: 13px; font-weight: 600; color: #71717a; transition: .15s;
}
.add-more-btn:hover { border-color: #a1a1aa; color: #3f3f46; }

/* tool options */
.ws-options { margin-top: 20px; background: #fff; border-radius: 10px; padding: 20px; border: 1px solid #e4e4e7; }
.ws-options h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.opt-group { margin-bottom: 14px; }
.opt-group:last-child { margin-bottom: 0; }
.opt-group label { display: block; font-size: 12px; font-weight: 600; color: #52525b; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.opt-group input[type="text"], .opt-group input[type="number"], .opt-group select, .opt-group textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #e4e4e7; border-radius: 6px;
    font-size: 14px; color: #18181b; background: #fafafa; transition: .15s; font-family: inherit;
}
.opt-group input:focus, .opt-group select:focus, .opt-group textarea:focus {
    outline: none; border-color: #18181b; box-shadow: 0 0 0 2px rgba(24,24,27,.08);
}
.opt-group .opt-hint { font-size: 12px; color: #a1a1aa; margin-top: 3px; }
.opt-row { display: flex; gap: 12px; flex-wrap: wrap; }
.opt-row .opt-group { flex: 1; min-width: 160px; }

.radio-group { display: flex; gap: 6px; flex-wrap: wrap; }
.radio-group label {
    display: flex; align-items: center; gap: 5px; padding: 7px 14px;
    border: 1px solid #e4e4e7; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.radio-group label:hover { border-color: #a1a1aa; }
.radio-group input[type="radio"] { accent-color: #18181b; }

/* actions */
.ws-actions { margin-top: 20px; text-align: center; }
.process-btn {
    padding: 11px 36px; border-radius: 8px; font-size: 14px; font-weight: 600;
    color: #fff; background: #18181b; transition: .15s; display: inline-flex; align-items: center; gap: 6px;
}
.process-btn:hover { background: #09090b; }
.process-btn:disabled { background: #d4d4d8; color: #a1a1aa; cursor: not-allowed; }

/* progress */
.ws-progress { margin-top: 20px; text-align: center; }
.progress-bar-track { width: 100%; height: 4px; background: #e4e4e7; border-radius: 2px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: #18181b; border-radius: 2px; width: 0; transition: width .4s; }
.progress-text { margin-top: 10px; font-size: 13px; font-weight: 500; color: #71717a; }

/* result */
.ws-result { margin-top: 28px; text-align: center; }
.result-card {
    background: #fff; border-radius: 12px; padding: 32px; border: 1px solid #e4e4e7;
    display: inline-block; min-width: 340px;
}
.result-card > i { font-size: 36px; color: #16a34a; display: block; margin-bottom: 12px; }
.result-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.result-card > p { font-size: 13px; color: #71717a; margin-bottom: 20px; }
.download-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
    color: #fff; background: #18181b; transition: .15s;
}
.download-btn:hover { background: #09090b; }
.reset-btn {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 12px; background: none; font-size: 13px; font-weight: 500; color: #71717a;
}
.reset-btn:hover { color: #18181b; }

.info-table { width: 100%; border-collapse: collapse; margin-top: 14px; text-align: left; }
.info-table th { font-size: 12px; font-weight: 600; color: #71717a; padding: 6px 10px; border-bottom: 1px solid #e4e4e7; text-transform: uppercase; letter-spacing: .04em; }
.info-table td { font-size: 14px; padding: 8px 10px; border-bottom: 1px solid #f4f4f5; }

/* ===== SECTIONS ===== */
.section { padding: 72px 24px; }
.section-title {
    text-align: center; font-size: clamp(22px, 3.5vw, 32px); font-weight: 750;
    color: #09090b; margin-bottom: 10px; letter-spacing: -0.03em;
}
.section-sub { text-align: center; font-size: 15px; color: #71717a; max-width: 520px; margin: 0 auto 40px; }

/* ===== TOOLS ===== */
.tools-section { background: #fafafa; }
.tab-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.tab-btn {
    padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 600;
    background: transparent; color: #71717a; border: 1px solid transparent; transition: .15s;
}
.tab-btn:hover { color: #3f3f46; background: #f4f4f5; }
.tab-btn.active { background: #18181b; color: #fff; }
.tools-grid {
    display: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.tools-grid.active { display: grid; }
.tool-card {
    background: #fff; border-radius: 10px; padding: 20px 14px; text-align: center;
    border: 1px solid #e4e4e7; transition: .2s; cursor: pointer;
}
.tool-card:hover { border-color: #a1a1aa; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.tool-card .icon {
    width: 40px; height: 40px; border-radius: 8px; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.tool-card h4 { font-size: 13px; font-weight: 600; color: #27272a; }

/* icon colors */
.bg-red { background: #fef2f2; color: #dc2626; }
.bg-blue { background: #eff6ff; color: #2563eb; }
.bg-green { background: #f0fdf4; color: #16a34a; }
.bg-orange { background: #fff7ed; color: #ea580c; }
.bg-purple { background: #faf5ff; color: #9333ea; }
.bg-teal { background: #f0fdfa; color: #0d9488; }
.bg-pink { background: #fdf2f8; color: #db2777; }
.bg-amber { background: #fffbeb; color: #d97706; }
.text-red { color: #dc2626; }
.text-blue { color: #2563eb; }
.text-green { color: #16a34a; }
.text-orange { color: #ea580c; }
.text-purple { color: #9333ea; }
.text-teal { color: #0d9488; }
.text-pink { color: #db2777; }
.text-amber { color: #d97706; }

/* ===== FEATURES ===== */
.features-section { background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
    background: #fafafa; border-radius: 12px; padding: 28px 24px; transition: .2s;
}
.feature-card:hover { background: #f4f4f5; }
.f-icon {
    width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14px; color: #71717a; line-height: 1.6; }

/* ===== SECURITY ===== */
.security-section { background: #09090b; color: #fff; }
.security-section .section-title { color: #fafafa; }
.security-section .section-sub { color: #a1a1aa; }
.security-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.badge-item {
    display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06);
    padding: 14px 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08);
}
.badge-item i { font-size: 22px; color: #a1a1aa; }
.badge-item span { font-size: 13px; font-weight: 600; color: #d4d4d8; }

/* ===== FORMS ===== */
.forms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.form-card {
    background: #fff; border-radius: 10px; padding: 18px; border: 1px solid #e4e4e7;
    display: flex; align-items: center; gap: 12px; cursor: pointer; transition: .15s;
}
.form-card:hover { border-color: #a1a1aa; }
.fc-icon {
    width: 38px; height: 38px; border-radius: 8px; background: #fef2f2; color: #dc2626;
    display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.form-card h4 { font-size: 13px; font-weight: 600; }
.form-card p { font-size: 11px; color: #a1a1aa; margin-top: 1px; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: #fafafa; }
.testimonials-track {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px;
}
.test-card {
    background: #fff; border-radius: 10px; padding: 24px; border: 1px solid #e4e4e7;
}
.test-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; display: flex; gap: 1px; }
.test-card p { font-size: 14px; color: #3f3f46; margin-bottom: 14px; line-height: 1.6; }
.test-author { font-size: 13px; font-weight: 700; color: #18181b; }
.test-role { font-size: 12px; color: #a1a1aa; }

/* ===== FAQ ===== */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e4e4e7; }
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; font-size: 15px; font-weight: 600; cursor: pointer;
    background: none; width: 100%; text-align: left; color: #18181b;
}
.faq-q i { font-size: 12px; transition: .2s; color: #a1a1aa; }
.faq-item.open .faq-q i { transform: rotate(180deg); color: #18181b; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 0 18px; font-size: 14px; color: #71717a; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 300px; }

/* ===== CTA ===== */
.cta-banner {
    background: #09090b; color: #fff; text-align: center; padding: 52px 24px; border-radius: 14px;
}
.cta-banner h2 { font-size: clamp(20px, 3.5vw, 28px); font-weight: 750; margin-bottom: 10px; letter-spacing: -0.02em; }
.cta-banner p { font-size: 15px; color: #a1a1aa; margin-bottom: 24px; }
.btn-white {
    padding: 11px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
    color: #09090b; background: #fff; display: inline-flex; align-items: center; gap: 6px; transition: .15s;
}
.btn-white:hover { background: #f4f4f5; }

/* ===== FOOTER ===== */
footer { background: #09090b; color: #a1a1aa; padding: 52px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: #fafafa; font-size: 13px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; font-size: 13px; color: #71717a; padding: 3px 0; transition: .15s; }
.footer-col a:hover { color: #d4d4d8; }
.footer-bottom {
    border-top: 1px solid #27272a; padding-top: 20px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12px; color: #52525b; }
.social { display: flex; gap: 14px; }
.social a { font-size: 16px; color: #52525b; transition: .15s; }
.social a:hover { color: #d4d4d8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .nav-links.mobile-open {
        display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid #e4e4e7; padding: 12px; z-index: 200;
        box-shadow: 0 8px 20px rgba(0,0,0,.06);
    }
    .nav-links.mobile-open .dropdown-menu { position: static; transform: none; box-shadow: none; border: none; padding-left: 12px; }
    .hero { padding: 48px 16px 36px; }
    .upload-zone { padding: 28px 18px; }
    .section { padding: 48px 16px; }
    .tools-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
    .tool-card { padding: 16px 10px; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-track { grid-template-columns: 1fr; }
    .result-card { min-width: auto; width: 100%; }
    .workspace-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .opt-row { flex-direction: column; }
}
