/* Baku site: one page per language, no build step. Colors follow the night-sky illustration and the extension's jade. */
@font-face { font-family: 'Geologica'; src: url('fonts/geologica-cyrillic.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; src: url('fonts/geologica-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --bg: #07121b;
  --surface: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .09);
  --ink: #f2f5f6;
  --ink-2: rgba(242, 245, 246, .68);
  --ink-3: rgba(242, 245, 246, .44);
  --jade: #34d1a8;
  --moon: #f6dfa0;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 'Geologica', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
/* a calm glow at the top, like the night sky in the illustration */
body::before {
  content: ''; position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 22% 28%, rgba(11, 54, 81, .9), transparent 70%),
    radial-gradient(30% 40% at 78% 18%, rgba(52, 209, 168, .2), transparent 70%),
    radial-gradient(18% 22% at 60% 8%, rgba(246, 223, 160, .12), transparent 70%);
  filter: blur(24px);
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; color: var(--ink-2); }
.nav a { text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav .lang { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 13px; }
@media (max-width: 640px) { .nav a:not(.lang) { display: none; } }

/* first screen */
.hero { text-align: center; padding: 52px 0 24px; }
.hero h1 { margin: 0 auto; max-width: 840px; font-size: clamp(30px, 7vw, 66px); overflow-wrap: break-word; line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.hero h1 em { white-space: nowrap; font-style: normal; background: linear-gradient(90deg, #7ff0cf, var(--moon)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 20px auto 0; max-width: 620px; font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.note { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }
.note a { color: var(--ink-2); text-underline-offset: 3px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn.primary:hover { background: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 420px) { .cta .btn { width: 100%; justify-content: center; white-space: normal; } .support { padding: 24px 20px; } .support .btn { width: 100%; justify-content: center; } }
/* store not live yet: a placeholder link (href="#") labeled with data-soon, not clickable */
.btn[data-soon] { pointer-events: none; opacity: .55; }
.btn[data-soon]::after { content: attr(data-soon); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--ink-2); }
.btn.primary[data-soon]::after { background: rgba(0, 0, 0, .1); color: rgba(0, 0, 0, .55); }

/* the before/after demo: drag to fade the illustration */
.demo { position: relative; margin: 46px auto 0; max-width: 980px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 120px -30px rgba(52, 209, 168, .28), 0 30px 80px -40px rgba(0, 0, 0, .85); user-select: none; touch-action: pan-y; cursor: ew-resize; --pos: 50%; }
.demo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.demo .gray { filter: grayscale(1) brightness(.8); clip-path: inset(0 0 0 var(--pos)); }
.demo .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 18px rgba(0, 0, 0, .4); }
.demo .knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0b2633;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.demo .knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo .tag { position: absolute; top: 16px; padding: 5px 12px; border-radius: 999px; background: rgba(7, 18, 27, .55); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.demo .tag.l { left: 16px; } .demo .tag.r { right: 16px; }
.demo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.demo-cap { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }

/* sections */
section { padding: 76px 0 0; }
.h2 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.lead { margin: 0 0 32px; color: var(--ink-2); max-width: 640px; }

/* feature rows: text beside a real piece of the UI, alternating sides */
.rows { display: flex; flex-direction: column; gap: 96px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.row.flip .txt { order: 2; }
.row .txt h2 { margin: 0 0 16px; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.row .txt p { margin: 0 0 12px; max-width: 460px; font-size: 18px; color: var(--ink-2); }
.row .ui { justify-self: center; width: auto; max-width: 100%; max-height: 560px; border-radius: 16px;
  box-shadow: 0 40px 100px -30px rgba(52, 209, 168, .25), 0 24px 60px -24px rgba(0, 0, 0, .8); }
@media (max-width: 780px) {
  .rows { gap: 64px; }
  .row { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .txt { order: 0; }
  .row .ui { max-height: 480px; }
}
.private { margin: 8px auto 0; max-width: 760px; text-align: center; font-size: clamp(22px, 3vw, 32px); line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.private span { color: var(--jade); }
/* the name */
.legend { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.legend img { border-radius: 14px; }
.legend h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.legend p { margin: 0 0 10px; color: var(--ink-2); }
@media (max-width: 720px) { .legend { grid-template-columns: 1fr; } }

/* where to install */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.store { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: background .2s, border-color .2s; }
.store:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.store svg { width: 32px; height: 32px; flex: none; }
.store b { display: block; font-size: 15.5px; }
.store span { display: block; font-size: 13px; color: var(--ink-3); }
.store[data-soon] { pointer-events: none; }
/* not published yet: a small label under the store name */
.store .soon { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(52, 209, 168, .12); color: var(--jade); font-size: 11.5px; font-weight: 600; font-style: normal; }
.also { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* support */
.support { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 32px; border-radius: 22px; background: linear-gradient(120deg, rgba(241, 95, 44, .16), rgba(52, 209, 168, .12)); border: 1px solid var(--line); }
.support h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.support p { margin: 0; color: var(--ink-2); max-width: 560px; }
.btn.boosty { background: #f15f2c; color: #fff; border-color: transparent; }
.btn.boosty:hover { background: #ff6d39; }
/* English page: Tribute (Telegram) instead of Boosty */
.btn.tribute { background: #2aabee; color: #fff; border-color: transparent; }
.btn.tribute:hover { background: #3cb9f7; }
.support.tg { background: linear-gradient(120deg, rgba(42, 171, 238, .16), rgba(52, 209, 168, .12)); }

/* footer */
footer { margin-top: 88px; padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--ink-3); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
