/* ═══════════════════════════════════════════════
   Snatchr — landing, guide, about, privacy
   Palette: cold sky blue, soft and rounded.
   Deliberately unlike the portfolio (dark glass),
   Foldr (dark taupe) and Ember (warm paper).
   ═══════════════════════════════════════════════ */

:root {
  --bg: #f2f7fd;
  --bg-2: #e6effb;
  --card: #ffffff;
  --ink: #0d1b2a;
  --ink-2: #33465c;
  --muted: #6b7f96;
  --line: #dbe6f4;
  --line-2: #c3d5ea;

  --blue: #2563eb;
  --sky: #0ea5e9;
  --cyan: #38bdf8;
  --blue-soft: rgba(37, 99, 235, 0.09);
  --ok: #16a34a;

  --deep: #0b1728;
  --deep-2: #12243c;
  --deep-line: rgba(255, 255, 255, 0.1);
  --deep-text: #e6effb;
  --deep-muted: #8ba3bf;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --r: 14px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(13, 27, 42, 0.04), 0 10px 30px rgba(13, 27, 42, 0.07);
  --shadow-lift: 0 2px 6px rgba(13, 27, 42, 0.06), 0 24px 54px rgba(37, 99, 235, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  /* clip, а не hidden: hidden делает body контейнером прокрутки, и Firefox
     из-за этого может считать анимацию в основном потоке вместо GPU. */
  overflow-x: hidden;
  overflow-x: clip;
  background-image:
    radial-gradient(70% 44% at 50% -6%, rgba(56, 189, 248, 0.22), transparent 70%),
    radial-gradient(46% 32% at 92% 6%, rgba(37, 99, 235, 0.14), transparent 72%);
  background-repeat: no-repeat;
}

::selection { background: rgba(56, 189, 248, 0.3); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* язык */
html[lang="en"] .only-ru { display: none !important; }
html[lang="ru"] .only-en { display: none !important; }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: 99px;
  border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #a8c2de; background-clip: padding-box; }

/* ═══ Nav ═══ */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  /* Без backdrop-filter: Firefox пересчитывает размытие подложки на каждом
     кадре любой анимации на странице. Фон и так почти непрозрачный, так что
     разницы не видно, а парящая иконка перестаёт дёргаться. */
  background: rgba(242, 247, 253, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--ink); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.brand .ver {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  color: var(--blue); background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 1px 6px; border-radius: 6px; letter-spacing: 0;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-2); font-size: 0.92rem; font-weight: 500;
  padding: 7px 12px; border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--blue); background: var(--blue-soft); }
.nav-cta {
  background: linear-gradient(180deg, var(--sky), var(--blue)) !important;
  color: #fff !important; font-weight: 600 !important;
  padding: 9px 18px !important; margin-left: 20px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.nav-cta:hover { filter: brightness(1.06); }

.lang-btn {
  background: var(--card); color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 6px 12px; margin-left: 8px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }

.burger {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: 10px; width: 40px; height: 36px; cursor: pointer;
  color: var(--ink); font-size: 1rem; align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 24px 16px; box-shadow: var(--shadow);
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: 10px 12px; }
  .nav-cta { text-align: center; margin: 6px 0 0; }
  .lang-btn { margin: 8px 0 0; width: 100%; }
}

/* ═══ Section furniture ═══ */
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

section { padding: 84px 0; }
section h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 36px; }

/* ═══ Hero ═══ */
.hero { padding: 76px 0 60px; text-align: center; }
/* Иконка парит, тень лежит на месте и сжимается, когда иконка уходит вверх.
   Обе анимации только transform/opacity: никаких фильтров, которые браузер
   пересчитывал бы каждый кадр. */
.hero-logo-wrap {
  position: relative;
  width: 116px; height: 148px;
  margin: 0 auto 14px;
}
/* Двигается обычный блок, а не сама картинка: replaced-элементы Firefox
   иногда перерисовывает заново вместо того, чтобы просто сдвинуть слой. */
.hero-float {
  position: absolute;
  top: 12px; left: 0;
  width: 116px; height: 116px;
  animation: float 5s ease-in-out infinite;
  will-change: transform;
}
.hero-logo { width: 100%; height: 100%; display: block; }
.hero-shadow {
  position: absolute;
  bottom: 0; left: 50%;
  width: 88px; height: 14px;
  margin-left: -44px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0) 70%);
  animation: float-shadow 5s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
@keyframes float { 50% { transform: translate3d(0, -10px, 0); } }
@keyframes float-shadow { 50% { transform: scale(0.7); opacity: 0.5; } }

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  line-height: 1.04; letter-spacing: -0.045em; margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue), var(--sky) 60%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: 1.14rem; color: var(--ink-2); max-width: 640px; margin: 0 auto 12px; }
.hero .sub { color: var(--muted); font-size: 0.98rem; max-width: 620px; margin: 0 auto 32px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.97rem; font-weight: 600; padding: 13px 26px;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--sky), var(--blue));
  color: #fff; box-shadow: 0 10px 26px rgba(37, 99, 235, 0.34);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(37, 99, 235, 0.42); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
  margin-top: 28px; font-size: 0.87rem; color: var(--muted);
}
.hero-meta b { color: var(--ink); font-weight: 600; }

/* ═══ Media placeholders (screenshots / GIFs) ═══ */
.shot {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  margin: 44px auto 0;
  max-width: 940px;
}
.shot img, .shot video { width: 100%; display: block; }
.ph {
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--muted);
  background:
    repeating-linear-gradient(45deg, rgba(37, 99, 235, 0.045) 0 12px, transparent 12px 24px),
    var(--bg-2);
}
.ph b { font-size: 0.95rem; color: var(--ink-2); font-weight: 600; }
.ph span { font-family: var(--mono); font-size: 0.76rem; }

/* ═══ Features with GIF slots ═══ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 20px;
}
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lift); }
.feature .gif {
  aspect-ratio: 16 / 10; background: var(--bg-2);
  border-bottom: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.feature .gif img, .feature .gif video { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature .body { padding: 20px 22px 24px; }
.feature .ico {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; font-size: 1.1rem; margin-bottom: 13px;
  background: linear-gradient(150deg, rgba(56, 189, 248, 0.2), var(--blue-soft));
  border: 1px solid rgba(37, 99, 235, 0.16);
}
.feature h3 { font-size: 1.06rem; letter-spacing: -0.015em; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 0.92rem; }
.feature kbd {
  font-family: var(--mono); font-size: 0.8em; background: var(--bg-2);
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 6px; color: var(--ink-2);
}

/* ═══ Sites strip ═══ */
.sites { display: flex; flex-wrap: wrap; gap: 10px; }
.site-chip {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
  transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s;
}
.site-chip:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.site-chip.more { background: var(--blue-soft); border-color: rgba(37, 99, 235, 0.2); color: var(--blue); font-weight: 600; }

/* ═══ Download block ═══ */
.download {
  background: var(--deep); color: var(--deep-text);
  border-radius: 28px; padding: 52px 44px; text-align: center;
  box-shadow: var(--shadow-lift);
  background-image:
    radial-gradient(60% 90% at 50% 0%, rgba(56, 189, 248, 0.28), transparent 62%),
    radial-gradient(40% 60% at 92% 100%, rgba(37, 99, 235, 0.24), transparent 70%);
}
.download h2 { color: #fff; }
.download .section-sub { color: var(--deep-muted); margin-left: auto; margin-right: auto; }
.download .eyebrow { color: var(--cyan); justify-content: center; }
.download .eyebrow::after { display: none; }
.download .btn-ghost {
  background: rgba(255, 255, 255, 0.08); color: #fff;
  border-color: var(--deep-line); box-shadow: none;
}
.download .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255,255,255,.3); }
@media (max-width: 640px) { .download { padding: 36px 22px; border-radius: 20px; } }

.req { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.req span {
  font-family: var(--mono); font-size: 0.76rem; color: var(--deep-muted);
  border: 1px solid var(--deep-line); border-radius: 999px; padding: 5px 14px;
}
.note-line { margin-top: 18px; font-size: 0.86rem; color: var(--deep-muted); }

/* ═══ FAQ ═══ */
.faq { display: grid; gap: 10px; max-width: 840px; }
details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 22px; transition: border-color 0.2s;
}
details[open] { border-color: var(--line-2); }
summary {
  cursor: pointer; font-weight: 600; font-size: 0.99rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.25rem;
  color: var(--blue); transition: transform 0.2s; flex: none;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); font-size: 0.93rem; margin-top: 12px; }
details kbd {
  font-family: var(--mono); font-size: 0.82em; background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px;
}

/* ═══ Prose (guide / about / privacy) ═══ */
.prose { padding: 52px 0 84px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -0.04em; margin-bottom: 12px; }
.prose .lead-p { color: var(--muted); font-size: 1.04rem; margin-bottom: 34px; }
.prose h2 {
  font-size: 1.42rem; letter-spacing: -0.025em; margin: 46px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 16px 24px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose code, .prose kbd {
  font-family: var(--mono); font-size: 0.87em;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; color: #14488f;
}
.prose img, .prose video {
  max-width: 100%; border-radius: var(--r); border: 1px solid var(--line);
  margin: 12px 0 20px; display: block; box-shadow: var(--shadow);
}
.callout {
  background: var(--blue-soft); border: 1px solid rgba(37, 99, 235, 0.2);
  border-left: 3px solid var(--blue); border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 18px; margin-bottom: 20px; font-size: 0.95rem; color: var(--ink-2);
}
.callout b, .callout strong { color: var(--ink); }

/* ═══ Footer ═══ */
.foot { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--blue); }
.foot small { color: var(--muted); font-size: 0.84rem; }

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