/* Clarity Studio — design system. Dark cinematic, violet/cyan accents. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Noto Sans Georgian"; src: url("../fonts/noto-sans-georgian.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #07070b;
  --bg-2: #0c0c13;
  --panel: rgba(18, 18, 28, 0.72);
  --panel-solid: #12121b;
  --panel-2: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eeedf5;
  --muted: #a3a1b6;
  --dim: #6f6d84;
  --violet: #a78bfa;
  --violet-strong: #8b5cf6;
  --cyan: #22d3ee;
  --grad: linear-gradient(115deg, #8b5cf6 0%, #6d7cf6 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(115deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .14));
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #fb7185;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  --font: "Inter", "Noto Sans Georgian", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Instrument Serif", "Noto Sans Georgian", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before { /* ambient light */
  content: ""; position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40vw 40vh at 18% 20%, rgba(139, 92, 246, .20), transparent 70%),
    radial-gradient(36vw 34vh at 85% 10%, rgba(34, 211, 238, .12), transparent 70%),
    radial-gradient(50vw 40vh at 50% 100%, rgba(76, 29, 149, .10), transparent 70%);
  filter: blur(10px);
}
body::after { /* film grain */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: rgba(139, 92, 246, .45); color: #fff; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: #c4b5fd; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-feature-settings: "zero"; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden { display: none !important; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------ layout */
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap-wide { width: min(1400px, 100% - 32px); margin-inline: auto; }

.nav {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(to bottom, rgba(7, 7, 11, .86), rgba(7, 7, 11, .62));
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: -.01em; font-size: 16px; }
.brand:hover { color: #fff; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand small { font-weight: 500; color: var(--dim); margin-left: 2px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a, .tab {
  color: var(--muted); padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; border: 0; background: none; cursor: pointer;
}
.nav-links a:hover, .tab:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a.active, .tab.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.lang-toggle button { border: 0; background: none; padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--dim); cursor: pointer; letter-spacing: .04em; }
.lang-toggle button.on { background: rgba(255, 255, 255, .09); color: var(--text); }

/* ------------------------------------------------------------ buttons */
.btn {
  --h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text);
  font-weight: 600; font-size: 14px; letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .42; cursor: not-allowed; transform: none; }
.btn-primary {
  border: 0; color: #fff; background: var(--grad); background-size: 140% 100%;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 36px -10px rgba(34, 211, 238, .55), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); border-color: transparent; }
.btn-danger { color: #fecdd3; border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .06); }
.btn-danger:hover { background: rgba(251, 113, 133, .14); border-color: rgba(251, 113, 133, .5); color: #fff; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ panels & forms */
.panel {
  position: relative; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); padding: 22px;
}
.panel-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.panel-title .step {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font: 600 11px var(--mono);
  color: #fff; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .35);
}
.panel-title .grow { flex: 1; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.input {
  height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .28);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.input:focus { border-color: rgba(167, 139, 250, .7); box-shadow: 0 0 0 4px rgba(139, 92, 246, .16); background: rgba(0, 0, 0, .4); }
.input::placeholder { color: var(--dim); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; border: 1px solid; }
.alert svg { flex: none; margin-top: 2px; }
.alert-err { color: #fecdd3; background: rgba(251, 113, 133, .08); border-color: rgba(251, 113, 133, .28); }
.alert-ok { color: #a7f3d0; background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .28); }
.alert-warn { color: #fde68a; background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .25); }
.alert-info { color: var(--muted); background: rgba(255, 255, 255, .025); border-color: var(--line); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255, 255, 255, .03); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip.plain::before { display: none; }
.chip.queued { color: #c4b5fd; border-color: rgba(167, 139, 250, .35); }
.chip.processing { color: var(--cyan); border-color: rgba(34, 211, 238, .35); }
.chip.processing::before { animation: pulse 1.2s ease-in-out infinite; }
.chip.completed { color: var(--ok); border-color: rgba(52, 211, 153, .35); }
.chip.failed { color: var(--err); border-color: rgba(251, 113, 133, .35); }
.chip.cancelled { color: var(--dim); }
.chip.accent { color: #e9d5ff; border-color: rgba(167, 139, 250, .4); background: rgba(139, 92, 246, .12); }
@keyframes pulse { 50% { opacity: .25; } }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border-radius: 13px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.seg button { border: 0; background: none; height: 38px; min-width: 76px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 14px; }
.seg button.on { background: rgba(255, 255, 255, .09); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.seg button[disabled] { opacity: .35; cursor: not-allowed; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--violet-strong); cursor: pointer; box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 4px solid var(--violet-strong); cursor: pointer; }

.progress { position: relative; height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--grad); transition: width .6s ease; }
.progress.live > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--text); }

/* ------------------------------------------------------------ toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast {
  padding: 13px 16px; border-radius: 13px; background: rgba(22, 22, 34, .96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000;
  font-size: 13.5px; animation: toast-in .25s ease; display: flex; gap: 10px; align-items: flex-start;
}
.toast.err { border-color: rgba(251, 113, 133, .4); }
.toast.ok { border-color: rgba(52, 211, 153, .4); }
.toast b { display: block; font-weight: 600; margin-bottom: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------ marketing */
.hero { padding: 92px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted);
}
.eyebrow b { padding: 2px 8px; border-radius: 999px; background: var(--grad-soft); color: #e9d5ff; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.display {
  font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(46px, 7.4vw, 96px); margin: 22px auto 18px; max-width: 14ch;
}
.display em { font-style: italic; }
html[lang="ka"] .display { font-family: "Noto Sans Georgian", var(--font); font-weight: 600; letter-spacing: -.035em; font-size: clamp(36px, 5.6vw, 70px); line-height: 1.12; max-width: 18ch; }
html[lang="ka"] .display em { font-style: normal; }
.lede { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.65; }
.hero-cta { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.showcase { margin: 64px auto 0; max-width: 1040px; }
.frame {
  position: relative; aspect-ratio: 21 / 9; border-radius: 22px; overflow: hidden; box-shadow: 0 60px 120px -40px rgba(76, 29, 149, .55), 0 0 0 1px var(--line-2);
  background: #000;
}
.frame .scene { position: absolute; inset: 0; }
.frame .scene svg { width: 100%; height: 100%; display: block; }
.frame .scene.before { clip-path: inset(0 50% 0 0); filter: blur(2.4px) saturate(.7) contrast(.85); }
.frame .scene.before::after { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.frame .divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 24px rgba(34, 211, 238, .8); }
.frame .divider::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(10,10,16,.75); border: 2px solid #fff; backdrop-filter: blur(6px); }
.frame .tag { position: absolute; top: 16px; padding: 5px 10px; border-radius: 8px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.frame .tag.l { left: 16px; } .frame .tag.r { right: 16px; }
.frame .caption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: rgba(255,255,255,.55); }
.letterbox::before, .letterbox::after { content: ""; position: absolute; left: 0; right: 0; height: 7%; background: #000; z-index: 2; }
.letterbox::before { top: 0; } .letterbox::after { bottom: 0; }

.section { padding: 100px 0 20px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .kicker { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.02em; line-height: 1.08; margin: 12px 0 14px; }
html[lang="ka"] .section-head h2 { font-family: "Noto Sans Georgian", var(--font); font-weight: 600; letter-spacing: -.03em; font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.feature:hover { border-color: var(--line-2); background: rgba(255,255,255,.035); }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(167,139,250,.28); margin-bottom: 18px; color: #e9d5ff; }
.feature h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden; }
.step-card::before { counter-increment: step; content: "0" counter(step); font: 400 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(167,139,250,.45); display: block; margin-bottom: 18px; }
.step-card h3 { margin: 0 0 8px; font-size: 17px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.honest { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; padding: 34px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(139,92,246,.07), rgba(34,211,238,.03) 60%, transparent); }
.honest ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.honest li { display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; }
.honest li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--cyan); }

.cta-band { margin: 100px 0 0; padding: 56px; border-radius: 26px; text-align: center; position: relative; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(60% 120% at 50% 0%, rgba(139,92,246,.25), transparent 70%), var(--bg-2); }
.cta-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 50px); margin: 0 0 12px; letter-spacing: -.02em; }
html[lang="ka"] .cta-band h2 { font-family: "Noto Sans Georgian", var(--font); font-weight: 600; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: var(--muted); margin: 0 auto 26px; max-width: 520px; }

.footer { margin-top: 110px; padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 18px; }
.footer a { color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel-2); position: relative; }
.plan.featured { border-color: rgba(167,139,250,.45); background: linear-gradient(180deg, rgba(139,92,246,.10), rgba(18,18,28,.4) 50%); box-shadow: 0 40px 90px -50px rgba(139,92,246,.8); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { margin: 0; font-size: 20px; font-weight: 600; }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price b { font: 400 54px/1 var(--display); letter-spacing: -.02em; }
.price span { color: var(--dim); font-size: 14px; }
.plan .note { color: var(--dim); font-size: 12.5px; min-height: 38px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; font-size: 14.5px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--muted); }
.plan li svg { flex: none; margin-top: 4px; color: var(--cyan); }
.plan li b { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th, .t td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.t th { color: var(--dim); font-weight: 500; font-size: 12.5px; letter-spacing: .03em; background: rgba(255,255,255,.02); }
.t tr:last-child td { border-bottom: 0; }
.t td.mono { font-size: 13px; }

.prose { max-width: 760px; }
.prose h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.02em; margin: 60px 0 10px; }
html[lang="ka"] .prose h1 { font-family: "Noto Sans Georgian", var(--font); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); }
.prose h2 { font-size: 19px; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--muted); }

/* ------------------------------------------------------------ auth */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px 80px; }
.auth-card { width: min(430px, 100%); padding: 36px 34px 30px; }
.auth-card h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 18px 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; font-size: 14.5px; }
.auth-foot { margin-top: 20px; font-size: 12.5px; color: var(--dim); text-align: center; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--dim); cursor: pointer; display: grid; place-items: center; }
.pw-wrap button:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ------------------------------------------------------------ studio */
.studio { padding: 26px 0 80px; }
.studio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.studio-head h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.studio-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }

.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; padding: 46px 22px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed rgba(167, 139, 250, .35); background: radial-gradient(80% 120% at 50% 0%, rgba(139,92,246,.08), transparent 70%), rgba(0,0,0,.18);
  transition: border-color .2s, background .2s, transform .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--cyan); background: radial-gradient(80% 120% at 50% 0%, rgba(34,211,238,.10), transparent 70%), rgba(0,0,0,.2); }
.dropzone.drag { transform: scale(1.005); }
.dropzone .orb { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--grad-soft); border: 1px solid rgba(167,139,250,.35); color: #e9d5ff; }
.dropzone h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.dropzone p { margin: 0; color: var(--dim); font-size: 13px; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-progress { padding: 26px 4px 8px; }
.upload-progress .row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 10px; gap: 12px; }

.file-card { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.poster { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.poster img { width: 100%; height: 100%; object-fit: contain; }
.file-name { font-weight: 600; font-size: 15.5px; word-break: break-word; margin: 0 0 10px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.meta { padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.meta span { display: block; font-size: 11.5px; color: var(--dim); }
.meta b { font: 500 13.5px var(--mono); }
.notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.recent { margin-top: 16px; }
.recent h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 500; color: var(--dim); }
.recent-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.recent-item { flex: none; display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.02); cursor: pointer; max-width: 240px; font-size: 13px; color: var(--muted); }
.recent-item:hover, .recent-item.on { border-color: rgba(167,139,250,.45); color: var(--text); }
.recent-item img { width: 46px; height: 28px; object-fit: cover; border-radius: 6px; background: #000; }
.recent-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.models { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.model {
  text-align: left; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.model:hover { border-color: var(--line-2); }
.model.on { border-color: rgba(167,139,250,.6); background: linear-gradient(160deg, rgba(139,92,246,.12), rgba(34,211,238,.04)); box-shadow: inset 0 0 0 1px rgba(167,139,250,.2); }
.model .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.model b { font-size: 14.5px; }
.model p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.settings-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 20px; align-items: flex-end; }
.settings-row .grow { flex: 1; min-width: 220px; }
.label { display: block; font-size: 12.5px; font-weight: 500; color: var(--dim); margin-bottom: 8px; }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 6px; }

.estimate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.est { padding: 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.est span { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.est b { font: 500 17px var(--mono); letter-spacing: -.02em; }
.est small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }
.est.hl { border-color: rgba(167,139,250,.4); background: linear-gradient(160deg, rgba(139,92,246,.10), transparent); }
.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.actions .hint { font-size: 12.5px; color: var(--dim); flex-basis: 100%; }
.blockers { display: grid; gap: 8px; margin-top: 14px; }

.meter-big { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.meter-big b { font: 400 40px/1 var(--display); letter-spacing: -.02em; }
html[lang="ka"] .meter-big b { font-family: var(--mono); font-size: 30px; font-weight: 500; }
.meter-big span { color: var(--dim); font-size: 13px; }
.usage-rows { display: grid; gap: 12px; margin-top: 18px; }
.usage-row .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin-bottom: 6px; }
.usage-row .row b { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 12px; }
.progress.thin { height: 5px; }

.job-active .name { font-weight: 600; margin: 0 0 4px; word-break: break-word; }
.job-active .sub { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--dim); margin: 12px 0 8px; }
.job-active .pct { font: 500 30px/1 var(--mono); letter-spacing: -.03em; }
.empty { text-align: center; color: var(--dim); font-size: 13.5px; padding: 18px 8px; }
.empty svg { margin: 0 auto 10px; opacity: .6; }

/* compare viewer */
.viewer-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.viewer-head h3 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; min-width: 200px; word-break: break-word; }
.compare { position: relative; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); user-select: none; }
.compare.side { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #111; }
.compare .pane { position: relative; background: #000; }
.compare video { width: 100%; height: 100%; aspect-ratio: var(--ar, 16/9); object-fit: contain; background: #000; }
.compare .lab { position: absolute; top: 10px; padding: 4px 9px; border-radius: 7px; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.16); z-index: 3; pointer-events: none; }
.compare .lab.l { left: 10px; } .compare .lab.r { right: 10px; }
.compare.wipe .pane.before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); z-index: 2; }
.compare.wipe .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #fff; z-index: 4; cursor: ew-resize; box-shadow: 0 0 18px rgba(34,211,238,.7); }
.compare.wipe .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,10,16,.8); border: 2px solid #fff; font-size: 14px; }
.compare.side .handle { display: none; }
.controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.controls .time { font: 500 12px var(--mono); color: var(--dim); min-width: 92px; text-align: right; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); cursor: pointer; color: var(--text); flex: none; }
.icon-btn:hover { background: rgba(255,255,255,.09); }

/* history */
.history { display: grid; gap: 10px; }
.h-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.015); transition: border-color .2s, background .2s; }
.h-item:hover { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.h-item.sel { border-color: rgba(167,139,250,.5); }
.h-thumb { width: 96px; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; background: #0a0a10 center/cover; border: 1px solid var(--line); display: grid; place-items: center; color: var(--dim); }
.h-thumb img { width: 100%; height: 100%; object-fit: cover; }
.h-main { min-width: 0; }
.h-main .title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h-main .title b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.h-main .sub { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.h-main .err { font-size: 12.5px; color: #fda4af; margin-top: 4px; }
.h-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mini-progress { margin-top: 8px; max-width: 320px; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: 1fr; }
  .grid > aside { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 900px) {
  .features, .steps, .plans { grid-template-columns: 1fr; }
  .honest { grid-template-columns: 1fr; }
  .estimate { grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .nav-links.marketing { display: none; }
}
@media (max-width: 720px) {
  .wrap, .wrap-wide { width: calc(100% - 28px); }
  .grid > aside { grid-template-columns: 1fr; }
  .file-card { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .h-item { grid-template-columns: 72px minmax(0, 1fr); }
  .h-thumb { width: 72px; }
  .h-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .compare.side { grid-template-columns: 1fr; }
  .nav-inner { gap: 10px; }
  .app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; justify-content: space-around; padding: 8px; background: rgba(10,10,16,.94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
  .studio { padding-bottom: 110px; }
  .panel { padding: 18px; }
  .hero { padding-top: 60px; }
  .cta-band { padding: 36px 22px; }
  .frame { aspect-ratio: 4 / 3; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ dialog viewer */
dialog.viewer {
  width: min(1240px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 20px; border: 0; border-radius: 22px;
  background: var(--panel-solid); color: var(--text); box-shadow: 0 50px 120px -30px #000, 0 0 0 1px var(--line-2);
}
dialog.viewer::backdrop { background: rgba(3, 3, 6, .78); backdrop-filter: blur(6px); }
dialog.viewer[open] { animation: toast-in .25s ease; }
.section-gap { margin-top: 26px !important; }
.actions .grow, .panel-title .grow { flex: 1; }
.v-hint { margin-top: 10px; font-size: 12px; color: var(--dim); }
