:root {
  --bg: #0a0b10;
  --bg-2: #0f1118;
  --surface: #14161f;
  --surface-2: #1b1e2a;
  --line: #262a3a;
  --line-2: #333850;
  --text: #eef0f6;
  --muted: #9aa0b4;
  --dim: #6b7188;
  --violet: #7c5cff;
  --pink: #ff4f8b;
  --amber: #ffb547;
  --mint: #25d9a4;
  --red: #ff6b6b;
  --grad: linear-gradient(115deg, #7c5cff 0%, #c34dff 45%, #ff4f8b 100%);
  --grad-warm: linear-gradient(115deg, #ff4f8b 0%, #ffb547 100%);
  --radius: 18px;
  --font: "Noto Sans Georgian", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-lat: "Inter", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* background */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 18% -8%, rgba(124, 92, 255, .28), transparent 70%),
    radial-gradient(620px 380px at 88% 4%, rgba(255, 79, 139, .18), transparent 70%),
    radial-gradient(900px 500px at 50% 110%, rgba(37, 217, 164, .07), transparent 70%);
}
.bg-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
}

/* header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 11, 16, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-lat); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 6px 20px -6px rgba(195, 77, 255, .7);
}
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brand-name b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.small .brand-name { font-size: 17px; }
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* hero */
.hero { text-align: center; padding-top: 64px; padding-bottom: 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: #cfd3e2;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(37,217,164,.16); }
h1 {
  margin: 0 0 18px; font-size: clamp(34px, 6.2vw, 64px); line-height: 1.12;
  font-weight: 800; letter-spacing: -.02em;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 620px; margin: 0 auto 34px; color: var(--muted); font-size: clamp(15px, 2vw, 17px); }

/* input card, as in the reference: field + big light button */
.grab {
  max-width: 720px; margin: 0 auto; padding: 14px;
  background: linear-gradient(180deg, rgba(27,30,42,.92), rgba(20,22,31,.92));
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  display: grid; gap: 12px;
}
.grab-field {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 8px 0 16px; height: 60px; transition: border-color .2s, box-shadow .2s;
}
.grab-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.18); }
.ico-link { width: 20px; height: 20px; flex: none; color: var(--dim); }
.grab-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 16px;
}
.grab-field input::placeholder { color: var(--dim); }
.detected {
  flex: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(124,92,255,.16); color: #c7b8ff; border: 1px solid rgba(124,92,255,.35);
}
.paste {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; color: #d6d9e6;
  transition: background .2s;
}
.paste:hover { background: #242839; }
.paste svg { width: 17px; height: 17px; }
.cta {
  position: relative; height: 58px; border: 0; border-radius: 14px;
  background: var(--grad); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 14px 34px -12px rgba(195, 77, 255, .75);
  transition: transform .15s, filter .2s, box-shadow .2s;
}
.cta:hover { filter: brightness(1.08); box-shadow: 0 18px 40px -12px rgba(255, 79, 139, .7); }
.cta:active { transform: translateY(1px); }
.cta .spinner { display: none; }
.cta.busy { pointer-events: none; }
.cta.busy .cta-label { opacity: 0; }
.cta.busy .spinner {
  display: block; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  max-width: 720px; margin: 16px auto 0; padding: 12px 16px; border-radius: 12px; text-align: left; font-size: 14px;
  background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.35); color: #ffc1c1;
}

.mini-plat { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 26px 0 0; }
.mini-plat li { font-size: 13px; color: var(--muted); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-family: var(--font-lat); }

/* result */
.result {
  max-width: 720px; margin: 22px auto 0; padding: 18px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.media { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur { position: absolute; right: 8px; bottom: 8px; font: 600 12px var(--font-lat); padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.75); }
.chip { display: inline-block; font: 700 11px var(--font-lat); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: rgba(124,92,255,.16); color: #c7b8ff; }
.meta h2 { margin: 8px 0 4px; font-size: 17px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.by { margin: 0; color: var(--muted); font-size: 14px; }

.tabs { display: inline-flex; gap: 4px; margin: 18px 0 10px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.tab { border: 0; background: transparent; padding: 7px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tab.on { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; }

.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.opt {
  display: grid; grid-template-columns: 1fr auto 170px; align-items: center; gap: 14px;
  padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
}
.q { display: flex; align-items: center; gap: 10px; min-width: 0; }
.q-label { font: 700 15px var(--font); white-space: nowrap; }
.q-ext { font: 600 11px var(--font-lat); color: var(--muted); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-2); text-transform: uppercase; }
.q-size { font: 500 13px var(--font-lat); color: var(--muted); white-space: nowrap; }
.dl {
  position: relative; overflow: hidden; height: 42px; border: 0; border-radius: 11px;
  background: rgba(37,217,164,.12); color: #6ff0c6; font-weight: 700; font-size: 14px;
  border: 1px solid rgba(37,217,164,.35); transition: background .2s, color .2s;
}
.dl:hover { background: var(--mint); color: #062a1f; }
.dl-fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, rgba(37,217,164,.35), rgba(37,217,164,.55)); transition: width .4s ease; }
.dl-text { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.dl svg { width: 17px; height: 17px; }
.dl.working { pointer-events: none; background: rgba(37,217,164,.08); color: #bff7e6; }
.dl.working svg { display: none; }
.dl.done { background: var(--mint); color: #062a1f; }
.dl.err { background: rgba(255,107,107,.12); color: #ffb3b3; border-color: rgba(255,107,107,.4); }
.note { display: flex; align-items: center; gap: 8px; margin: 14px 2px 0; font-size: 13px; color: var(--dim); }
.note svg { width: 16px; height: 16px; flex: none; color: var(--mint); }

/* blocks */
.block { padding-top: 72px; padding-bottom: 8px; }
.h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.01em; text-align: center; }
.sub { margin: 0 auto 26px; text-align: center; color: var(--muted); max-width: 560px; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font: 800 16px var(--font-lat); color: #fff; background: var(--grad); margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

.plat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.plat-grid li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); font: 600 14.5px var(--font-lat);
  transition: border-color .2s, transform .2s;
}
.plat-grid li:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mono { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; font: 800 13px var(--font-lat); color: #fff; }

.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feats article { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feats h3 { margin: 14px 0 6px; font-size: 16.5px; }
.feats p { margin: 0; color: var(--muted); font-size: 14px; }
.fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.fi svg { width: 22px; height: 22px; }
.fi-a { background: rgba(37,217,164,.12); color: var(--mint); }
.fi-b { background: rgba(124,92,255,.14); color: #a995ff; }
.fi-c { background: rgba(255,79,139,.13); color: #ff86ae; }
.fi-d { background: rgba(255,181,71,.13); color: var(--amber); }

.faq { max-width: 760px; margin: 26px auto 0; display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--font-lat); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

.foot { margin-top: 90px; border-top: 1px solid var(--line); padding: 30px 0 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.muted { color: var(--dim); font-size: 13px; max-width: 460px; margin: 8px 0 0; }
.foot-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* legal page */
.legal { max-width: 760px; padding-top: 50px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal h2 { margin-top: 38px; font-size: 22px; }
.legal p, .legal li { color: #c9cddb; }

/* responsive */
@media (max-width: 860px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .hero { padding-top: 40px; }
  .grab { padding: 10px; border-radius: 18px; }
  .grab-field { height: 56px; padding-left: 12px; }
  .paste span { display: none; }
  .paste { padding: 0 11px; }
  .detected { display: none !important; }
  .media { grid-template-columns: 1fr; }
  .opt { grid-template-columns: 1fr auto; padding: 12px; }
  .opt .dl { grid-column: 1 / -1; }
  .feats { grid-template-columns: 1fr; }
  .foot-in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- language switcher ---------- */
html:not([lang="ka"]) body { font-family: var(--font-lat); }
.top-right { display: flex; align-items: center; gap: 22px; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 11px;
  border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font: 600 13px var(--font-lat); color: #d6d9e6; transition: background .2s, border-color .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--surface-2); border-color: #414766; }
.lang-btn svg { width: 17px; height: 17px; }
.lang-btn .chev { width: 14px; height: 14px; opacity: .7; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px;
  list-style: none; margin: 0; padding: 6px; border-radius: 14px;
  background: #171a25; border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.7);
  animation: rise .18s ease both;
}
.lang-menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 14.5px; color: #d6d9e6;
}
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--surface-2); outline: none; color: var(--text); }
.lang-menu li small { font: 600 11px var(--font-lat); color: var(--dim); letter-spacing: .04em; }
.lang-menu li[aria-selected="true"] { color: #fff; background: rgba(124,92,255,.16); }
.lang-menu li[aria-selected="true"] small { color: #c7b8ff; }
@media (max-width: 640px) {
  .top-right { gap: 10px; }
}

/* direct download hint */
.opt-hint { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
  margin-top: -2px; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--muted);
  background: rgba(37,217,164,.06); border: 1px dashed rgba(37,217,164,.3); }
.linkish { border: 0; background: none; padding: 0; color: #6ff0c6; font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: #fff; }

/* ---- ბანერები FAQ-ის გვერდებზე (ადმინიდან; ცარიელზე არაფერი ჩანს) ---- */
.faq-row.has-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); gap: 28px; margin-top: 26px; }
.faq-row.has-side .faq { margin: 0; max-width: none; }
.faq-sec:has(.has-side) { max-width: 1480px; }
.fside { position: relative; min-width: 0; }
.fside .fs-in { position: absolute; inset: 0; width: 100%; max-width: 300px; overflow: hidden; border-radius: 14px; }
.fside-left .fs-in { left: auto; right: 0; }
.fside-right .fs-in { right: auto; left: 0; }
.fside-image .fs-in { border: 1px solid var(--line); background: var(--surface); }
.fside-image a, .fside-image img { display: block; width: 100%; height: 100%; }
.fside-image img { object-fit: cover; transition: transform .3s ease; }
.fside-image a:hover img { transform: scale(1.02); }
.fside-html .fs-in { display: flex; justify-content: center; align-items: flex-start; }
.fside-html .fs-in > * { max-width: 100%; }
@media (max-width: 1200px) {
  .faq-row.has-side { grid-template-columns: 1fr 1fr; grid-template-areas: "faq faq" "l r"; gap: 18px; }
  .faq-row.has-side .faq { grid-area: faq; }
  .fside-left { grid-area: l; } .fside-right { grid-area: r; }
  .fside-empty { display: none; }
  .fside .fs-in { position: static; margin: 8px auto 0; }
  .fside-image .fs-in { aspect-ratio: 3 / 4; }
  .faq-row.has-side:has(.fside-empty) { grid-template-columns: 1fr; grid-template-areas: "faq" "l" "r"; }
}
@media (max-width: 640px) {
  .faq-row.has-side { grid-template-columns: 1fr; grid-template-areas: "faq" "l" "r"; }
}

/* platform pages: about block + footer links to platform pages */
.about-in { max-width: 760px; margin: 22px auto 0; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.about-in p { margin: 0; color: #c9cddb; font-size: 15.5px; line-height: 1.65; }
.about-in p + p { margin-top: 12px; }
.plinks { margin-top: 18px; }
.plinks-t { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.plinks-in { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.plinks-in a { color: var(--muted); }
.plinks-in a:hover { color: var(--text); }
@media (max-width: 640px) { .about-in { padding: 18px; } .block.about { padding-top: 44px; padding-bottom: 20px; } }
