@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand-1: #6366f1;
  --brand-2: #8b5cf6;
  --brand-3: #06b6d4;
  --ink: #172033;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --shadow: 0 18px 50px rgba(30, 41, 59, .09);
  --glass-fill: rgba(255, 255, 255, .58);
  --glass-highlight: rgba(255, 255, 255, .86);
  --glass-border: rgba(255, 255, 255, .78);
  --glass-shadow: 0 22px 60px rgba(51, 65, 85, .12);
  --glass-glow: rgba(99, 102, 241, .14);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.16, 1.25, .3, 1);
  --radius: 16px;
  --header-h: 72px;
}

.dark {
  --ink: #f8fafc;
  --muted: #94a3b8;
  --surface: #111827;
  --surface-2: #0b1220;
  --line: #263248;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --glass-fill: rgba(15, 23, 42, .48);
  --glass-highlight: rgba(51, 65, 85, .68);
  --glass-border: rgba(165, 180, 252, .24);
  --glass-shadow: 0 24px 70px rgba(2, 6, 23, .42);
  --glass-glow: rgba(129, 140, 248, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { position: relative; margin: 0; color: var(--ink); background: radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--brand-1) 14%, transparent), transparent 30rem), radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--brand-3) 12%, transparent), transparent 28rem), var(--surface-2); font-family: Inter, system-ui, sans-serif; max-width: 100%; overflow-x: clip; }
body::before, body::after { position: fixed; z-index: -1; width: 22rem; height: 22rem; border-radius: 999px; content: ""; pointer-events: none; filter: blur(70px); opacity: .42; }
body::before { top: 16%; left: -12rem; background: color-mix(in srgb, var(--brand-1) 30%, transparent); }
body::after { right: -12rem; bottom: 8%; background: color-mix(in srgb, var(--brand-3) 24%, transparent); }
[lang="bn"], .bn { font-family: "Hind Siliguri", Inter, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, canvas, svg { max-width: 100%; }
.prose-readable { max-width: 70ch; }
.glass { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(145deg, var(--glass-highlight), var(--glass-fill)); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(99, 102, 241, .06); backdrop-filter: blur(24px) saturate(155%); -webkit-backdrop-filter: blur(24px) saturate(155%); transition: transform .42s var(--ease-out), border-color .35s ease, box-shadow .42s var(--ease-out), background .35s ease; }
.glass::before { position: absolute; z-index: -1; inset: -35%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .3) 50%, transparent 62%); content: ""; opacity: 0; pointer-events: none; transform: translateX(-45%) rotate(8deg); transition: opacity .25s ease, transform .7s var(--ease-out); }
.glass:hover { border-color: color-mix(in srgb, var(--brand-1) 42%, var(--glass-border)); box-shadow: 0 26px 70px color-mix(in srgb, var(--brand-1) 14%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5); }
.glass:hover::before { opacity: .8; transform: translateX(45%) rotate(8deg); }
.workspace-card { position: relative; overflow: hidden; background: linear-gradient(145deg, color-mix(in srgb, var(--glass-highlight) 82%, var(--brand-1)), var(--glass-fill)); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .42); backdrop-filter: blur(28px) saturate(155%); -webkit-backdrop-filter: blur(28px) saturate(155%); }
.workspace-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3)); }
.workspace-content { position: relative; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.workspace-kicker { color: var(--brand-1); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.workspace-title { margin-top: .25rem; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; }
.workspace-help { max-width: 62ch; margin-top: .35rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.workspace-badge { display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--brand-3) 35%, var(--line)); border-radius: 999px; padding: .45rem .7rem; color: var(--brand-3); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.upload-field { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 74px; margin-top: 1.25rem; padding: 1rem; border: 1px dashed color-mix(in srgb, var(--brand-1) 60%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--brand-1) 5%, var(--surface)); cursor: pointer; transition: .2s ease; }
.upload-field:hover, .upload-field:focus-within { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-1) 10%, var(--surface)); transform: translateY(-1px); }
.upload-field strong, .upload-field small { display: block; }
.upload-copy { min-width: 0; }
.upload-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-field small { margin-top: .2rem; color: var(--muted); font-size: .8rem; }
.upload-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }
.file-list { display: grid; gap: .5rem; }
.file-row { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .7rem .8rem; border: 1px solid var(--glass-border); border-radius: 12px; background: color-mix(in srgb, var(--glass-fill) 82%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.file-row small { display: block; margin-top: .15rem; color: var(--muted); font-size: .75rem; }
.file-order { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: 0 0 auto; border-radius: 8px; color: white; background: var(--brand-1); font-size: .8rem; font-weight: 800; }
.gradient-text { background: linear-gradient(110deg, var(--brand-1), var(--brand-2), var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-bg { background: linear-gradient(110deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3)); }
.focus-ring:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-3) 70%, white); outline-offset: 3px; }
.btn { position: relative; isolation: isolate; overflow: hidden; min-height: 44px; border-radius: 12px; padding: .7rem 1rem; display: inline-flex; gap: .5rem; align-items: center; justify-content: center; font-weight: 700; transition: transform .32s var(--ease-spring), box-shadow .32s var(--ease-out), background .3s ease, border-color .3s ease; cursor: pointer; }
.btn::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: -75%; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent); content: ""; transform: skewX(-18deg); transition: left .65s var(--ease-out); }
.btn:hover::before { left: 135%; }
.flex.gap-2 { flex-wrap: wrap !important; }
.btn:active { transform: scale(.97); }
.btn-primary { color: white; background: linear-gradient(110deg, var(--brand-1), var(--brand-2)); background-size: 140% 140%; box-shadow: 0 8px 20px rgba(99, 102, 241, .25); }
.btn-secondary { color: var(--ink); background: linear-gradient(145deg, var(--glass-highlight), var(--glass-fill)); border: 1px solid var(--glass-border); box-shadow: 0 8px 20px rgba(30, 41, 59, .06), inset 0 1px 0 rgba(255, 255, 255, .25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn:disabled { cursor: not-allowed; opacity: .48; transform: none !important; box-shadow: none; }
.field { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; color: var(--ink); background: var(--surface); }
.field::placeholder { color: var(--muted); }
.tool-card { transition: transform .42s var(--ease-out), box-shadow .42s var(--ease-out), border-color .35s ease; }
.tool-card .icon-tile { transition: transform .42s var(--ease-spring), box-shadow .42s var(--ease-out); }
.tool-card:hover { transform: translateY(-8px) scale(1.012); box-shadow: 0 26px 55px color-mix(in srgb, var(--brand-1) 18%, transparent); border-color: color-mix(in srgb, var(--brand-1) 45%, var(--line)); }
.tool-card:hover .icon-tile { transform: rotate(-4deg) scale(1.08); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-2) 28%, transparent); }
.icon-tile { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); flex: 0 0 auto; }
.dropzone { border: 2px dashed #a5b4fc; background: color-mix(in srgb, var(--brand-1) 6%, var(--surface)); transition: transform .42s var(--ease-out), border-color .35s ease, background .35s ease, box-shadow .42s var(--ease-out); }
.dropzone.dragover, .dropzone:hover { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-1) 12%, var(--surface)); transform: translateY(-4px) scale(1.01); box-shadow: 0 20px 45px color-mix(in srgb, var(--brand-1) 14%, transparent); }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
#file-suggestions { width: 100%; }
.chip { border: 1px solid var(--glass-border); background: linear-gradient(145deg, var(--glass-highlight), var(--glass-fill)); color: var(--muted); border-radius: 999px; padding: .5rem .85rem; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chip.active { color: white; border-color: transparent; background: var(--brand-1); }
.reading-progress { position: fixed; z-index: 60; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand-1), var(--brand-3)); }
.toast { animation: slide-up .25s ease both; }
@keyframes slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (hover:hover) { .btn-primary:hover { transform: translateY(-3px) scale(1.02); background-position: 100% 50%; box-shadow: 0 14px 32px rgba(99, 102, 241, .38); } .btn-secondary:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-1) 40%, var(--glass-border)); box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-1) 12%, transparent), inset 0 1px 0 rgba(255,255,255,.4); } }
@media (max-width: 640px) { .workspace-heading { flex-direction: column; } .workspace-badge { align-self: flex-start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media print { header, footer, .no-print { display: none !important; } body { background: white; color: black; } }

.brand-mark { display: inline-flex; align-items: center; flex: 0 0 auto; width: 128px; height: 58px; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-mark-footer { width: 160px; height: 76px; }
.developer-credit { color: var(--muted); font-weight: 600; }
.developer-credit strong { color: var(--brand-1); font-weight: 800; }
.site-footer { position: relative; margin-top: 2rem; border-top: 1px solid var(--glass-border); background: linear-gradient(180deg, color-mix(in srgb, var(--glass-fill) 55%, transparent), color-mix(in srgb, var(--surface-2) 84%, transparent)); }
.site-footer::before { position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--brand-2), var(--brand-3), transparent); content: ""; opacity: .8; }
.footer-top { display: grid; grid-template-columns: minmax(220px, 1.15fr) minmax(0, 2fr); gap: 3rem; padding: 1.25rem; border: 1px solid var(--glass-border); border-radius: 24px; background: linear-gradient(145deg, var(--glass-highlight), var(--glass-fill)); box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.35); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); }
.footer-brand { min-width: 0; }
.footer-tagline { margin-top: .5rem; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.footer-copy { max-width: 28ch; margin-top: .65rem; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.privacy-badge { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.15rem; padding: .55rem .75rem; border: 1px solid color-mix(in srgb, var(--brand-3) 34%, var(--glass-border)); border-radius: 999px; color: color-mix(in srgb, var(--brand-3) 75%, var(--ink)); background: color-mix(in srgb, var(--brand-3) 8%, transparent); font-size: .75rem; font-weight: 800; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.footer-group h3 { margin-bottom: .15rem; color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-group a { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; transition: color .2s ease, transform .2s ease; }
.footer-group a svg { width: 15px; height: 15px; color: var(--brand-1); }
.footer-group a { position: relative; }
.footer-group a::after { position: absolute; right: 0; bottom: -.25rem; left: 1.5rem; height: 1px; background: linear-gradient(90deg, var(--brand-1), var(--brand-3)); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.footer-group a:hover { color: var(--brand-1); transform: translateX(3px); }
.footer-group a:hover::after { transform: scaleX(1); }
.footer-bottom, .footer-credit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .78rem; }
.footer-bottom { margin-top: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.footer-bottom > div:first-child, .footer-credit { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.footer-bottom-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--brand-1); }
.footer-credit { padding-top: 1.1rem; }
.footer-dot { color: color-mix(in srgb, var(--brand-2) 60%, var(--muted)); }
@supports not ((backdrop-filter: blur(1px))) {
  .glass, .workspace-card, .btn-secondary, .chip { background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) {
  .glass, .tool-card, .btn, .dropzone, .upload-field, .footer-group a, .tool-card .icon-tile { transition: none !important; }
  .glass::before, .btn::before, .footer-group a::after { display: none; }
}
@media (max-width: 640px) { .brand-mark { width: 108px; height: 52px; } .brand-mark-footer { width: 148px; height: 70px; } }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; } .footer-group:last-child { grid-column: 1 / -1; } .footer-bottom, .footer-credit { align-items: flex-start; flex-direction: column; } .footer-dot { display: none; } }
