:root {
  --bg: #f7f6ff; --surface: #fff; --surface-2: #f1f0fd; --text: #1e1b4b; --muted: #4b5563;
  --line: #e0e7ff; --primary: #4f46e5; --on-primary: #fff; --primary-soft: #e8e7fe;
  --accent: #059669; --ok: #047857; --err: #b91c1c;
  --art-a: #4f46e5; --art-b: #818cf8; --art-c: #10b981;
  --shadow-sm: 0 1px 2px rgb(49 46 129 / .06), 0 4px 12px rgb(49 46 129 / .06);
  --shadow-lg: 0 2px 4px rgb(49 46 129 / .05), 0 24px 56px -12px rgb(49 46 129 / .2);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --fast: 160ms; --base: 260ms; --slow: 640ms;
  --font-head: Outfit, system-ui, "Noto Sans Devanagari", sans-serif;
  --font-body: "Work Sans", system-ui, "Segoe UI", "Noto Sans Devanagari", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0c1d; --surface: #17162d; --surface-2: #211f3d; --text: #eeedfb; --muted: #b4b5cc;
    --line: #2e2c50; --primary: #a5b4fc; --on-primary: #14123a; --primary-soft: #2a2858;
    --accent: #34d399; --ok: #6ee7b7; --err: #fca5a5;
    --art-a: #4338ca; --art-b: #818cf8; --art-c: #34d399;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 4px 12px rgb(0 0 0 / .25);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 56px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0c1d; --surface: #17162d; --surface-2: #211f3d; --text: #eeedfb; --muted: #b4b5cc;
  --line: #2e2c50; --primary: #a5b4fc; --on-primary: #14123a; --primary-soft: #2a2858;
  --accent: #34d399; --ok: #6ee7b7; --err: #fca5a5;
  --art-a: #4338ca; --art-b: #818cf8; --art-c: #34d399;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 4px 12px rgb(0 0 0 / .25);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 56px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); overflow-x: clip; transition: background-color var(--base), color var(--base); }
h1, h2, h3 { font-family: var(--font-head); text-wrap: balance; }
a { color: var(--primary); }
.sprite { position: absolute; width: 0; height: 0; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--primary); color: var(--on-primary); border-radius: 8px; transition: top var(--fast); }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 20; background: transparent; border-bottom: 1px solid transparent; transition: background-color var(--base), border-color var(--base), box-shadow var(--base); }
.top.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); box-shadow: var(--shadow-sm); }
.top-inner { display: flex; align-items: center; gap: 24px; max-width: 1180px; height: 68px; margin: auto; padding: 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--font-head); color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: linear-gradient(135deg, #4f46e5, #818cf8); border-radius: 10px; box-shadow: 0 6px 14px -4px rgb(79 70 229 / .6); }
.top-nav { display: flex; gap: 4px; margin-left: 8px; }
.top-nav a { padding: 8px 12px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; border-radius: 8px; transition: color var(--fast), background-color var(--fast); }
.top-nav a:hover { color: var(--text); background: var(--primary-soft); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-actions select { width: auto; height: 44px; margin: 0; padding: 0 10px; background: var(--surface); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--surface); }

.hero { position: relative; padding: 36px 16px 56px; }
.aurora { position: absolute; inset: -68px 0 auto; height: 640px; z-index: -1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .42; will-change: transform; }
.aurora::before { width: 560px; height: 420px; right: 4%; top: 30px; background: var(--art-b); animation: drift 16s ease-in-out infinite alternate; }
.aurora::after { width: 400px; height: 320px; left: 8%; top: 120px; background: color-mix(in srgb, var(--art-c) 60%, transparent); opacity: .15; animation: drift 20s ease-in-out infinite alternate-reverse; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; max-width: 1148px; margin: auto; align-items: start; }
.hero-main { min-width: 0; animation: rise var(--slow) var(--ease-out) both; }
h1 { margin: 0 0 12px; font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; }
.lead { margin: 0; max-width: 58ch; color: var(--muted); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 22px; padding: 0; list-style: none; font-size: 14px; font-weight: 500; }
.chips li { display: inline-flex; align-items: center; gap: 6px; }
.chips .icon { width: 16px; height: 16px; color: var(--accent); stroke-width: 3; }

.workspace { position: relative; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 13px; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--muted); font-weight: 600; background: transparent; border: 0; border-radius: 10px; }
.tab:hover { color: var(--text); background: transparent; }
.tab.active { color: var(--primary); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel { padding: 16px 10px 6px; animation: fade var(--base) var(--ease-out); }
form { position: relative; }
form > * + * { margin-top: 12px; }
label { display: block; font-size: 14px; font-weight: 600; }
textarea, input:not([type=checkbox]), select {
  width: 100%; margin-top: 5px; padding: 11px 12px; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 10px; transition: border-color var(--fast), box-shadow var(--fast);
}
textarea { resize: vertical; min-height: 76px; }
textarea:focus, input:not([type=checkbox]):focus, select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 24%, transparent); }
input[type=file] { padding: 18px 12px; border-style: dashed; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 14px; font: 600 14px var(--font-body); color: var(--primary); background: var(--primary-soft); border: 0; border-radius: 8px; cursor: pointer; }

button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; font: 600 15px var(--font-body); color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; transition: transform var(--fast) var(--ease-out), background-color var(--fast), border-color var(--fast), box-shadow var(--fast), opacity var(--fast); }
button:hover { border-color: var(--primary); }
button:active { transform: scale(.97); }
button:disabled { opacity: .55; cursor: wait; transform: none; }
button.primary { color: var(--on-primary); background: var(--primary); border-color: var(--primary); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--primary) 80%, transparent); }
button.primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 12px 22px -8px color-mix(in srgb, var(--primary) 90%, transparent); transform: translateY(-1px); }
button.wide { width: 100%; min-height: 50px; font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.rights { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding: 10px; font-weight: 500; color: var(--muted); cursor: pointer; }
.rights input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }

.status { margin: 8px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.status:empty { display: none; }
.status.ok { color: var(--ok); font-weight: 600; animation: pop var(--base) var(--ease-out); }
.status.err { color: var(--err); font-weight: 500; }
.status.skeleton { position: relative; overflow: hidden; margin-top: 14px; padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.status.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--primary) 16%, transparent) 50%, transparent 70%); animation: sweep 1.3s linear infinite; }
.progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; margin: 0; overflow: hidden; border-radius: 3px; opacity: 0; transition: opacity var(--fast); }
.progress::after { content: ""; display: block; width: 40%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }
.is-busy > .progress { opacity: 1; }
.is-busy > .progress::after { animation: load 1.2s ease-in-out infinite; }

#results:empty { display: none; }
.card { position: relative; display: flex; gap: 16px; margin-top: 14px; padding: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); animation: rise 420ms var(--ease-out) both; }
.card img { width: 122px; height: 176px; object-fit: cover; border-radius: 10px; flex: none; background: var(--surface-2); }
.body { flex: 1; min-width: 0; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.card .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.output { max-height: 280px; overflow: auto; margin: 10px 0; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.6 var(--font-body); background: var(--surface-2); border-radius: 10px; }

.hero-art { position: sticky; top: 92px; animation: fade 900ms var(--ease-out) both; }
.hero-art svg { display: block; width: 100%; max-height: calc(100vh - 110px); overflow: visible; }
.hero-art text { font-family: var(--font-head); }
.stop-a { stop-color: var(--art-a); } .stop-b { stop-color: var(--art-b); } .stop-c { stop-color: var(--art-c); }
.orbit { fill: none; stroke: var(--art-b); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 3 11; transform-origin: 260px 290px; animation: spin 60s linear infinite; }
.orbit-2 { animation-direction: reverse; animation-duration: 42s; }
.device { fill: #1e1b4b; }
.notch { fill: rgb(255 255 255 / .28); }
.play-bg { fill: #fff; }
.play { fill: #4f46e5; }
.pulse { fill: #fff; opacity: .4; transform-box: fill-box; transform-origin: center; animation: ping 2.6s var(--ease-out) infinite; }
.line { fill: rgb(255 255 255 / .92); }
.line-soft { fill: rgb(255 255 255 / .5); }
.track { fill: color-mix(in srgb, var(--art-b) 34%, transparent); }
.track-fill { fill: #6ee7b7; transform-box: fill-box; transform-origin: left; animation: fill 5s var(--ease-out) infinite; }
.tile { fill: var(--surface); stroke: var(--line); }
.tile-title { fill: var(--text); font-size: 18px; font-weight: 700; }
.tile-sub { fill: var(--muted); font-size: 14px; font-weight: 500; }
.eq rect { fill: url(#bar); transform-box: fill-box; transform-origin: center; animation: eq 1.25s ease-in-out infinite alternate; }
.eq rect:nth-child(2) { animation-delay: -.9s; } .eq rect:nth-child(3) { animation-delay: -.3s; }
.eq rect:nth-child(4) { animation-delay: -1.1s; } .eq rect:nth-child(5) { animation-delay: -.5s; }
.eq rect:nth-child(6) { animation-delay: -.75s; } .eq rect:nth-child(7) { animation-delay: -.15s; }
.eq rect:nth-child(8) { animation-delay: -1s; } .eq rect:nth-child(9) { animation-delay: -.4s; } .eq rect:nth-child(10) { animation-delay: -.65s; }
.done-bg { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.done-check { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 32; animation: draw 5s var(--ease-out) infinite; }
.trim { fill: color-mix(in srgb, var(--art-b) 45%, transparent); stroke: var(--primary); stroke-width: 2; transform-box: fill-box; animation: trim 6s ease-in-out infinite alternate; }
.float { animation: float 6s ease-in-out infinite alternate; }
.float-b { animation-duration: 5s; animation-delay: -2s; } .float-c { animation-duration: 7s; animation-delay: -1s; } .float-d { animation-duration: 5.5s; animation-delay: -3.5s; }

.section { max-width: 1180px; margin: auto; padding: 56px 16px; }
.section-head { max-width: 640px; margin-bottom: 26px; }
.section h2 { margin: 0 0 6px; font-size: clamp(27px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.015em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool { display: block; padding: 22px; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform var(--base) var(--ease-out), box-shadow var(--base), border-color var(--base), opacity var(--slow) var(--ease-out); }
.tool-lg { grid-column: span 2; }
.tool:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.tool-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; color: var(--primary); background: var(--primary-soft); border-radius: 12px; transition: transform var(--base) var(--ease-out); }
.tool:hover .tool-icon { transform: scale(1.08) rotate(-4deg); }
.tool h3 { margin: 0 0 3px; font-size: 19px; }
.tool p { margin: 0; color: var(--muted); font-size: 15px; }

@media (min-width: 961px) {
  .bento.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento.compact .tool { grid-column: span 2; }
  .bento.compact .tool-lg { grid-column: span 3; }
}
@media (min-width: 561px) and (max-width: 960px) {
  .bento.compact .tool:nth-child(3) { grid-column: span 2; }
}
.guide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.guide h2 { margin-bottom: 12px; }
.guide article p { max-width: 62ch; margin: 0 0 14px; color: var(--muted); }
.guide-faq h3 { margin: 6px 0 12px; font-size: 19px; }
@media (max-width: 860px) { .guide { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: calc((100% - 36px) / 3 - 24px); height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: .4; }
.steps li { position: relative; }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; font: 700 19px var(--font-head); color: var(--on-primary); background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 6px var(--bg); }
.steps h3 { margin: 0 0 3px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); max-width: 32ch; }

details { max-width: 780px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color var(--fast), opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out); }
details[open] { border-color: var(--primary); }
summary { position: relative; padding: 14px 48px 14px 18px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 20px; top: 21px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform var(--base) var(--ease-out); }
details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
details p { margin: 0; padding: 0 18px 16px; color: var(--muted); animation: fade var(--base) var(--ease-out); }

footer { margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; max-width: 1180px; margin: auto; padding: 24px 16px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-inner nav a { display: inline-block; padding: 6px 0; color: var(--muted); }
.footer-inner p { margin: 0 0 0 auto; }

.legal { max-width: 700px; margin: auto; padding: 36px 16px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-top: 20px; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out), box-shadow var(--base), border-color var(--base); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tool.reveal.in:hover { transform: translateY(-4px); transition-duration: var(--base); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
@keyframes float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
@keyframes drift { from { transform: translate3d(-24px, -10px, 0) scale(1); } to { transform: translate3d(34px, 26px, 0) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes eq { from { transform: scaleY(.28); } to { transform: scaleY(1); } }
@keyframes fill { 0% { transform: scaleX(.04); } 70%, 100% { transform: scaleX(1); } }
@keyframes draw { 0%, 45% { stroke-dashoffset: 32; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes trim { from { transform: translateX(-26px); } to { transform: translateX(44px); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes load { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-art { position: static; max-width: 400px; width: 100%; margin: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .top-nav { display: none; }
  .top-inner { gap: 10px; }
  .hero { padding-top: 20px; }
  .hero-art { max-width: 300px; }
  .lead { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { top: 24px; bottom: 64px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--primary), var(--accent)); }
  .steps li { padding-left: 66px; min-height: 56px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .footer-inner p { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tool-lg { grid-column: auto; }
  .card { flex-direction: column; }
  .card img { width: 100%; height: 200px; }
  .actions button { flex: 1 1 auto; }
  .aurora::before { width: 340px; height: 300px; }
  .aurora::after { width: 260px; height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .track-fill { transform: scaleX(.7); }
  .done-check { stroke-dashoffset: 0; }
  .eq rect:nth-child(odd) { transform: scaleY(.55); }
}

@font-face { font-family: Outfit; src: url("/assets/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/work-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.lang-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; transition: border-color var(--fast); }
.lang-link:hover { border-color: var(--primary); }

.workspace { padding: 18px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 132px; padding: 18px; text-align: center; background: var(--bg); border: 2px dashed color-mix(in srgb, var(--primary) 38%, var(--line)); border-radius: 14px; cursor: pointer; transition: border-color var(--fast), background-color var(--fast), transform var(--fast) var(--ease-out); }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); }
.drop.over { transform: scale(1.01); }
.drop:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.drop-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; color: var(--primary); background: var(--primary-soft); border-radius: 12px; }
.drop strong { font-size: 16px; }
.drop span.hint { color: var(--muted); font-size: 14px; font-weight: 400; }
.file-name { margin: 8px 0 0; color: var(--text); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.file-name:empty { display: none; }
#tool-form .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#tool-form .grid > .full { grid-column: 1 / -1; }
.note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.note .icon { width: 17px; height: 17px; color: var(--accent); }
#meter { display: block; width: 100%; height: 8px; margin-top: 12px; overflow: hidden; appearance: none; border: 0; border-radius: 8px; background: var(--surface-2); }
#meter::-webkit-progress-bar { background: var(--surface-2); border-radius: 8px; }
#meter::-webkit-progress-value { background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 8px; transition: width var(--base); }
#meter::-moz-progress-bar { background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 8px; }
#meter:indeterminate { background: linear-gradient(90deg, var(--surface-2) 25%, var(--primary) 50%, var(--surface-2) 75%); background-size: 220% 100%; animation: meter 1.3s linear infinite; }
#meter:indeterminate::-webkit-progress-bar { background: transparent; }
#meter:indeterminate::-moz-progress-bar { background: transparent; }
@keyframes meter { from { background-position: 120% 0; } to { background-position: -120% 0; } }
button.ghost-danger { width: 100%; min-height: 50px; color: var(--err); }
button.ghost-danger:hover { border-color: var(--err); }
.result { margin-top: 14px; padding: 14px; background: var(--surface-2); border-radius: 14px; animation: rise 360ms var(--ease-out) both; }
.result video { display: block; width: 100%; max-height: 340px; background: #000; border-radius: 10px; }
.result audio { display: block; width: 100%; }
.result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
a.save { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 14px; color: var(--on-primary); font-weight: 600; text-decoration: none; background: var(--primary); border-radius: 10px; transition: filter var(--fast), transform var(--fast) var(--ease-out); }
a.save:hover { filter: brightness(1.08); }
a.save:active { transform: scale(.97); }
.legal h2 { margin: 26px 0 6px; font-size: 21px; }
.legal li { margin-bottom: 10px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
html[lang="hi"] h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.25; letter-spacing: 0; }
html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.35; letter-spacing: 0; }
@media (max-width: 720px) {
  .top-actions .lang-link { padding: 0 10px; font-size: 14px; }
  .brand { font-size: 18px; }
}
@media (max-width: 400px) {
  .result-actions { grid-template-columns: minmax(0, 1fr); }
  .top-inner { padding: 0 12px; }
}

@media (min-width: 961px) { .bento.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
