/* A quiet file-workbench: clear surfaces, blue actions, and generous type. */
:root {
    --bg: #eef2f7;
    --surface: #ffffff;
    --surface-alt: #f5f7fa;
    --ink: #172435;
    --ink-soft: #536174;
    --border: #dce3eb;
    --primary: #245ac5;
    --primary-dark: #1949aa;
    --primary-soft: #eaf0fc;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow-md: 0 8px 24px #1724350b;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.container { max-width: 1200px; padding-inline: 32px; }
.site-header { background: var(--surface); backdrop-filter: none; }
.header-inner { gap: 20px; min-height: 80px; }
.brand { gap: 10px; font-size: 1.2rem; letter-spacing: -.045em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: white; font-size: 26px; line-height: 1; font-weight: 500; }
.brand-name { font-family: "Plus Jakarta Sans", sans-serif; }
.main-nav { gap: 24px; }
.main-nav a { padding-block: 10px; }
.btn { min-height: 44px; border-radius: 12px; padding: 10px 20px; font-weight: 600; }
.btn-primary { background: var(--primary); box-shadow: none; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: none; transform: none; }
.hero { background: var(--surface); color: var(--ink); padding: 76px 0 58px; border-bottom: 1px solid var(--border); }
.hero::before { display: none; }
.hero-inner { text-align: center; }
.eyebrow { padding: 0; background: none; border: 0; border-radius: 0; color: var(--primary); font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-family: "Plus Jakarta Sans", sans-serif; max-width: 820px; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 700; margin-bottom: 22px; text-wrap: balance; }
.hero-sub { color: var(--ink-soft); max-width: 490px; font-size: 1.1rem; margin-bottom: 30px; }
.search-bar { max-width: 620px; border: 1px solid #acb9ca; border-radius: 16px; padding: 6px 20px; box-shadow: 0 4px 16px #17243506; background: var(--surface-alt); text-align: start; }
.search-icon { color: var(--ink-soft); opacity: 1; display: flex; flex: 0 0 22px; }
.search-icon svg { width: 22px; height: 22px; }
.search-bar input { min-width: 0; width: 100%; font-size: 1rem; padding: 13px 0; }
.search-bar input::placeholder { color: var(--ink-soft); opacity: 1; }
.search-bar:focus-within { border-color: var(--primary); outline: 3px solid var(--primary-soft); }
.hero-stats { margin-top: 26px; gap: 0; }
.stat { flex-direction: row; gap: 7px; padding-inline: 24px; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat strong { font-size: .95rem; font-weight: 700; }
.stat span { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.section { padding: 52px 0; scroll-margin-top: 110px; }
.section-heading { max-width: none; text-align: start; margin: 0 0 26px; }
.section-heading h2 { font-size: 1.65rem; line-height: 1.3; font-weight: 700; letter-spacing: -.035em; margin-bottom: 6px; }
.featured { padding-bottom: 6px; }
.tool-grid, .featured-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 16px; }
.tool-card { padding: 24px; border-radius: 18px; gap: 14px; min-width: 0; box-shadow: 0 2px 3px #17243502; }
.tool-card:hover { transform: translateY(-2px); border-color: #a9bbdc; box-shadow: var(--shadow-md); }
.tool-icon { background: var(--primary-soft); border-radius: 13px; width: 46px; height: 46px; font-size: 1.5rem; }
.tool-card h3, .tool-card h4 { margin: 0; font-size: 1.06rem; line-height: 1.4; font-weight: 650; letter-spacing: -.02em; }
.tool-card p { font-size: .95rem; line-height: 1.6; }
.tool-cta { margin-top: 4px; font-weight: 600; }
.status-badge { text-transform: none; letter-spacing: 0; font-size: .75rem; font-weight: 600; padding: 4px 9px; }
.status-available { background: #eaf5ef; color: #236344; }
.status-beta, .alert-warning { background: #fff3d9; color: #79500b; }
.category-filters { justify-content: flex-start; gap: 8px; margin-bottom: 36px; }
.filter-chip { min-height: 44px; font: inherit; font-size: .9rem; border-radius: 12px; padding: 9px 17px; background: var(--surface); }
.filter-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.category-header { margin-bottom: 18px; gap: 12px; }
.category-icon { background: transparent; width: 40px; height: 44px; font-size: 1.55rem; }
.category-header h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.025em; }
.category-header p { font-size: .95rem; }
.category-block { margin-bottom: 42px; }
.workspace-card { max-width: 900px; margin-inline: auto; box-shadow: var(--shadow-md); }
.tool-detail-header { align-items: flex-start; }
.tool-detail-header h1 { letter-spacing: -.04em; line-height: 1.2; }
.file-drop { border-color: #9cacc1; padding: 48px 24px; }
.file-drop:focus-within { outline: 3px solid var(--primary); outline-offset: 4px; }
.form-group { text-align: start; }
.form-group select, .form-group input { min-height: 44px; }
.alert-success { color: #236344; }
.site-footer { background: var(--surface); color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: 40px; }
.footer-brand .brand-name { color: var(--ink); font-weight: 700; }
.footer-inner { border-color: var(--border); }
.footer-links a, .footer-bottom { color: var(--ink-soft); }
.footer-links a:hover { color: var(--primary); }
.footer-links h2 { color: var(--ink); }
.footer-bottom { padding: 20px 24px; }
.language-switcher summary { min-height: 44px; border-radius: 10px; }
.language-switcher nav a { color: var(--ink); min-height: 44px; border-radius: 6px; }
.language-switcher nav a:hover { background: var(--primary-soft); }
.skip-link { position: fixed; top: -100px; inset-inline-start: 20px; z-index: 100; background: var(--surface); color: var(--primary); padding: 12px 20px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
[dir="rtl"] .search-bar input { padding: 13px 0; }
@media (max-width: 640px) {
    .container { padding-inline: 20px; }
    .header-inner { gap: 8px; padding-block: 12px; }
    .header-actions { width: auto; margin-inline-start: auto; gap: 6px; }
    .header-actions .btn { display: none; }
    .brand { font-size: 1.05rem; }
    .hero { padding: 48px 0 36px; }
    .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-sub { font-size: 1rem; }
    .section { padding-block: 36px; }
    .featured { padding-bottom: 0; }
    .tool-card { padding: 20px; }
    .workspace-card { padding: 20px; }
    .tool-detail-header { gap: 14px; }
    .tool-detail-header h1 { font-size: 1.65rem; overflow-wrap: anywhere; }
    .tool-icon-lg { flex-shrink: 0; width: 54px; height: 54px; }
    .category-filters { gap: 7px; }
    .filter-chip { padding-inline: 13px; }
    .result-header { flex-wrap: wrap; gap: 12px; }
    .result-filename-label { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .tool-card:hover { transform: none; }
}
@media (prefers-contrast: more) {
    :root { --ink-soft: #344155; --border: #7b899b; }
}
.search-bar input:focus-visible { outline: none; }
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #131c29;
        --surface: #192332;
        --surface-alt: #111a27;
        --ink: #edf2f9;
        --ink-soft: #acb9ca;
        --border: #3a495c;
        --primary: #9cbbff;
        --primary-dark: #bdd1ff;
        --primary-soft: #273c60;
    }
    .btn-primary, .filter-chip.is-active, .brand-mark { color: #102447; }
    .tool-card, .workspace-card, .tool-placeholder, .form-group select,
    .form-group input[type="number"], .form-group input[type="text"],
    .form-group input[type="color"] { background: var(--surface); }
    .language-switcher nav a[aria-current] { background: var(--primary-soft); }
    .status-available, .alert-success { background: #213e31; color: #b1e1c4; }
    .status-beta, .alert-warning { background: #493b21; color: #f5d89d; }
    .status-coming_soon { background: #334154; }
    .alert-error { background: #4a2c30; color: #ffc4c3; }
}
.line-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.tool-icon, .category-icon, .file-drop-icon { color: var(--primary); }
.tool-icon-lg .line-icon, .file-drop-icon .line-icon { width: 32px; height: 32px; }
.filter-chip .line-icon { width: 18px; height: 18px; }
.filter-chip.is-active .line-icon { color: inherit; }
.upload-requirements { color: var(--ink-soft); font-size: .875rem; max-width: 48ch; }
.selected-files { color: var(--primary); font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; max-width: 100%; }
.selected-files:empty { display: none; }
.file-drop.is-dragging { border-color: var(--primary); background: var(--primary-soft); }
.search-feedback { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -16px 0 24px; }
.search-feedback p { color: var(--ink-soft); margin: 0; }
.search-feedback .btn { color: var(--primary); }
