/* Fonts & reset */
:root {
	--bg: #0b1020;
	--panel: #0f172a;
	--elev: #111a33;
	--text: #e5e7eb;
	--muted: #94a3b8;
	--primary: #4f46e5;
	--primary-600: #4338ca;
	--ring: 0 0 0 3px rgba(79,70,229,.35);
}
html.theme-light {
	--bg: #f3f4f6;
	--panel: #ffffff;
	--elev: #f9fafb;
	--text: #0f172a;
	--muted: #475569;
	--primary: #4f46e5;
	--primary-600: #4338ca;
	--ring: 0 0 0 3px rgba(79,70,229,.25);
}
html.theme-light body { background: #ffffff; color: var(--text); }
html.theme-light .site-header { background: rgba(255,255,255,.85); border-bottom: 1px solid #e5e7eb; }
html.theme-light .dropzone { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7)); border-color: #e5e7eb; }
html.theme-light .acc-item { background: #ffffff; border-color: #e5e7eb; }
html.theme-light .btn { background: #f3f4f6; color: var(--text); border: 1px solid #e5e7eb; }
html.theme-light .btn:hover { background: #eaeef3; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	background: linear-gradient(180deg, var(--bg), #0c1326 50%, #0b1020);
	color: var(--text);
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.55;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,16,32,.7); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid rgba(148,163,184,.1); }
.header-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo { width: 36px; height: 36px; }
.brand-text h1 { font-size: 18px; margin: 0; text-align: center; }
.brand-text p { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.header-actions { display: flex; gap: 16px; justify-content: center; }
.header-actions .link { color: var(--text); text-decoration: none; opacity: .85; }
.header-actions .link:hover { opacity: 1; }
html.theme-light .header-actions .link { color: #0f172a; }
html.theme-light .brand-text p { color: #64748b; }
.how-it-works, .capabilities, .faq { background: var(--panel); border: 1px solid rgba(148,163,184,.1); border-radius: 12px; padding: 16px; margin: 18px 0; text-align: center; }
.steps { margin: 10px 0 0; list-style: none; padding-left: 0; }
.steps li { margin: 6px 0; }
.cap-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin: 10px auto 0; max-width: 1000px; }
.cap-item { background: rgba(17,26,51,.5); border: 1px solid rgba(148,163,184,.1); border-radius: 10px; padding: 10px; display: flex; align-items: center; gap: 8px; }
.cap-icon { font-size: 18px; }

/* Accordion */
.accordion { display: grid; gap: 6px; }
.acc-item { width: 100%; background: rgba(17,26,51,.5); border: 1px solid rgba(148,163,184,.1); color: var(--text); border-radius: 10px; padding: 12px; text-align: left; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.acc-item[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.acc-panel { display: none; padding: 10px 12px; color: var(--muted); }
.acc-panel.open { display: block; }

/* Uploader */
.uploader { margin: 36px 0 18px; text-align: center; }
.dropzone { border: 1px dashed rgba(148,163,184,.35); border-radius: 16px; background: linear-gradient(180deg, rgba(17,26,51,.6), rgba(17,26,51,.3)); padding: 30px; transition: border-color .2s, transform .1s; }
.dropzone:focus { outline: none; box-shadow: var(--ring); }
.dropzone.dragover { border-color: var(--primary); transform: translateY(-1px); }
.dropzone-inner { display: grid; place-items: center; gap: 8px; text-align: center; }
.drop-icon { font-size: 40px; }
.drop-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; min-height: 20px; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(148,163,184,.35); border-top-color: var(--text); border-radius: 50%; display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* Controls */
.controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0 10px; justify-items: center; text-align: center; }
.control { background: var(--panel); border: 1px solid rgba(148,163,184,.1); border-radius: 12px; padding: 14px; }
.control label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.control select, .control input[type="range"] { width: 100%; }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

/* File list */
.queue { background: var(--panel); border: 1px solid rgba(148,163,184,.1); border-radius: 12px; padding: 16px; margin-bottom: 24px; text-align: center; }
.queue h3 { margin: 0 0 10px; }
.counts-badge { margin-left: 8px; background: rgba(148,163,184,.15); color: var(--muted); padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.file-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.file-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: rgba(17,26,51,.5); border: 1px solid rgba(148,163,184,.08); margin-bottom: 8px; }
html.theme-light .file-item { background: #ffffff; border-color: #e5e7eb; }
.file-meta { display: flex; flex-direction: column; gap: 4px; }
.file-name { font-weight: 600; }
.file-sub { color: var(--muted); font-size: 12px; }
.file-actions { display: flex; gap: 8px; align-items: center; }
.badge { background: rgba(79,70,229,.15); color: #c7d2fe; padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.progress { width: 140px; height: 8px; background: rgba(148,163,184,.15); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--primary-600)); }

/* Buttons */
.btn { background: #1f2937; color: var(--text); border: 1px solid rgba(148,163,184,.18); border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: transform .05s ease, background .2s, border-color .2s; }
.btn:hover { background: #273244; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: transparent; }
.btn.primary:hover { background: var(--primary-600); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--elev); color: var(--text); border: 1px solid rgba(148,163,184,.18); padding: 10px 12px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Widgets */
.widgets { background: var(--panel); border: 1px solid rgba(148,163,184,.1); border-radius: 12px; padding: 16px; margin: 18px 0; text-align: center; }
.widget-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.widget-card { background: rgba(17,26,51,.5); border: 1px solid rgba(148,163,184,.1); border-radius: 10px; padding: 14px; }
html.theme-light .widget-card { background: #ffffff; border-color: #e5e7eb; }
/* (removed widget-list) */

/* Footer */
.site-footer { border-top: 1px solid rgba(148,163,184,.1); padding: 24px 0 36px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 0; }
.footer-links a { color: var(--text); opacity: .85; text-decoration: none; }
.footer-links a:hover { opacity: 1; }
.footer-copy { text-align: center; margin-top: 8px; }
.small { font-size: 12px; }

/* Responsive */
@media (max-width: 900px) {
	.controls { grid-template-columns: 1fr 1fr; }
	.cap-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.widget-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
	.controls { grid-template-columns: 1fr; }
	.header-actions { display: none; }
	.cap-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.widget-grid { grid-template-columns: 1fr; }
}

/* Footer (dark, matches site palette) */
.footer-lite { background: var(--panel); color: var(--text); margin-top: 24px; border-top: 1px solid rgba(148,163,184,.1); }
.footer-lite .container { padding-top: 28px; padding-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }
.footer-col h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--text); }
.footer-col p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: 6px 0; }
.footer-link { color: var(--text); text-decoration: none; opacity: .9; transition: opacity .2s ease, color .2s ease; }
.footer-link:hover { opacity: 1; color: #ffffff; text-decoration: underline; }
.footer-bar { text-align: center; padding: 16px 0 22px; color: var(--muted); font-size: 14px; border-top: 1px solid rgba(148,163,184,.1); margin-top: 10px; }

@media (max-width: 900px) {
	.footer-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
}


