/* «Просто. Мессенджер.» — лендинг ru-messenger.ru. Бренд «Электрик». */

:root {
  --bg: #0A0C12; --s1: #10131B; --s2: #151A26; --s3: #1C2231;
  --ink: #E9ECF5; --mut: #9BA3B8; --faint: #5F6779;
  --line: rgba(154,170,210,0.14); --line2: rgba(154,170,210,0.08);
  --acc: #6E95FF; --acc-solid: #4A77FF; --acc-deep: #2B5CE6;
  --ok: #3DD68C;
  --sans: 'Golos Text', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px;
  --max: 1120px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* фоновое свечение + сетка — локально в hero (без fixed/mask) */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg .glow { position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 760px; border-radius: 50%; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(74,119,255,0.20), rgba(74,119,255,0) 70%); }
.hero-bg .grid { position: absolute; inset: 0; opacity: 0.7;
  background-image: linear-gradient(var(--line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 56px 56px; }
.hero-bg .grid::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 25%, var(--bg) 92%); }
.nav, .footer { position: relative; z-index: 2; }

/* марка + вордмарк */
.mark { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: block;
  background: linear-gradient(180deg, var(--acc-solid), var(--acc-deep));
  box-shadow: 0 6px 18px rgba(43,92,230,0.35); }
.mark svg { width: 100%; height: 100%; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark .a { color: var(--acc); }
.wordmark .b { color: var(--ink); font-weight: 600; }

/* nav */
.nav { position: sticky; top: 0; background: rgba(10,12,18,0.90);
  border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) {
  .nav { background: rgba(10,12,18,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.nav-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-links a.lnk { padding: 8px 12px; border-radius: var(--r-sm); color: var(--mut);
  font-size: 14.5px; font-weight: 500; transition: color .18s, background-color .18s; }
.nav-links a.lnk:hover { color: var(--ink); background: var(--s2); }
.nav-links .lnk-hide { }
@media (max-width: 720px) { .nav-links .lnk-hide { display: none; } }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px;
  border-radius: var(--r-xs); border: 1px solid var(--line); background: rgba(74,119,255,0.10);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--acc); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: var(--r-md); font-family: var(--sans);
  font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s var(--ease), filter .18s, background-color .18s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(180deg, var(--acc-solid), var(--acc-deep)); color: #fff;
  box-shadow: 0 10px 30px rgba(43,92,230,0.35); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary svg { width: 20px; height: 20px; }
.btn-ghost { background: var(--s2); color: var(--mut); border-color: var(--line); cursor: default; }
.btn-ghost:active { transform: none; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-nav { background: linear-gradient(180deg, var(--acc-solid), var(--acc-deep)); color: #fff;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; }
.btn-nav svg { width: 17px; height: 17px; }

/* sections */
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 68px 0; } }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--acc); margin-bottom: 16px; }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.sec-head p { color: var(--mut); font-size: 18px; margin-top: 14px; }

/* hero */
.hero { padding-top: 76px; padding-bottom: 64px; position: relative; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 700; }
.hero h1 .hl { background: linear-gradient(120deg, #fff, var(--acc)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--mut); font-size: 19px; margin-top: 22px; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 13px; color: var(--faint); letter-spacing: 0.03em; }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.hero-art { display: flex; justify-content: center; }

/* phone mockup */
.phone { width: 300px; max-width: 100%; border-radius: 34px; background: var(--bg); border: 1px solid var(--line);
  padding: 9px; box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  flex-shrink: 0; }
.phone.light { --bg: #F6F7FB; --s1: #FFFFFF; --s2: #EEF1F8; --s3: #E3E8F4;
  --ink: #161A24; --mut: #525A6E; --faint: #878FA3; --line: rgba(22,30,60,0.12);
  --acc: #2B5CE6; --acc-solid: #2B5CE6; }
.phone-screen { border-radius: 26px; overflow: hidden; background: var(--bg); height: 600px;
  display: flex; flex-direction: column; }
.scr-top { height: 30px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; flex-shrink: 0; }
.scr-top .mono { font-size: 11px; color: var(--ink); font-weight: 600; }
.scr-dots { display: flex; gap: 4px; }
.scr-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

/* chat header */
.ch-head { display: flex; align-items: center; gap: 9px; padding: 6px 12px 10px;
  border-bottom: 1px solid var(--line); flex-shrink: 0; }
.ch-head .av { width: 34px; height: 34px; }
.ch-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.ch-e2e { display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.ch-e2e svg { width: 9px; height: 9px; color: var(--acc); }
.ch-e2e span { font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--acc); }

.av { border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--mono); font-weight: 600; color: #fff; }

/* messages */
.msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 14px; }
.day { text-align: center; padding: 4px 0; }
.day span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--faint); font-weight: 600; }
.bub { max-width: 78%; padding: 8px 12px; font-size: 13.5px; line-height: 1.4; }
.bub.them { align-self: flex-start; background: var(--s3); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; }
.bub.me { align-self: flex-end; color: #fff; border-radius: 16px 16px 5px 16px;
  background: linear-gradient(180deg, var(--acc-solid), var(--acc-deep)); }
.bub .quote { display: flex; gap: 7px; margin-bottom: 5px; padding: 4px 8px 4px 0;
  background: rgba(255,255,255,0.14); border-radius: 5px; }
.bub .quote i { width: 3px; border-radius: 2px; background: rgba(255,255,255,0.8); flex-shrink: 0; }
.bub .quote .qauth { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.95); }
.bub .quote .qt { font-size: 11.5px; color: rgba(255,255,255,0.78); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.photo-ph { width: 150px; height: 110px; border-radius: 16px 16px 5px 16px; align-self: flex-end;
  border: 1px solid var(--line); display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, var(--s3), var(--s3) 7px, var(--s2) 7px, var(--s2) 14px); }
.photo-ph span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--faint); }
.status { align-self: flex-end; margin-top: 2px; }
.status span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em; color: var(--faint); }
.composer { display: flex; align-items: center; gap: 7px; padding: 9px 11px;
  border-top: 1px solid var(--line); flex-shrink: 0; }
.composer .field { flex: 1; height: 38px; border-radius: 12px; background: var(--s1);
  border: 1px solid var(--line); display: flex; align-items: center; padding: 0 13px; }
.composer .field span { font-size: 13px; color: var(--faint); }
.composer .send { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--acc-solid), var(--acc-deep)); }
.composer .send svg { width: 17px; height: 17px; color: #fff; }
.composer .ic { width: 38px; height: 38px; display: grid; place-items: center; }
.composer .ic svg { width: 19px; height: 19px; color: var(--mut); }

/* chat list mockup */
.cl-head { padding: 14px 18px 10px; flex-shrink: 0; }
.cl-head h4 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.cl-head .chip { margin-top: 6px; font-size: 9px; padding: 4px 8px; }
.cl-head .chip svg { width: 10px; height: 10px; }
.cl-rows { flex: 1; }
.cl-row { display: flex; align-items: center; gap: 11px; padding: 9px 16px; position: relative; }
.cl-row .av { width: 42px; height: 42px; font-size: 14px; }
.cl-row .nm { font-size: 14px; font-weight: 600; color: var(--ink); }
.cl-row .ms { font-size: 12.5px; color: var(--mut); margin-top: 1px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.cl-row .tm { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.cl-row .badge { min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  background: var(--acc-solid); display: grid; place-items: center; }
.cl-row .badge span { font-family: var(--mono); font-size: 10px; font-weight: 700; color: #fff; }
.cl-sep { position: absolute; left: 69px; right: 0; bottom: 0; height: 1px; background: var(--line); }

/* value tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; transition: border-color .2s, transform .2s var(--ease); }
.tile:hover { border-color: rgba(110,149,255,0.4); transform: translateY(-3px); }
.tile .ti { width: 44px; height: 44px; border-radius: var(--r-sm); background: rgba(74,119,255,0.12);
  display: grid; place-items: center; margin-bottom: 18px; }
.tile .ti svg { width: 22px; height: 22px; color: var(--acc); }
.tile h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.tile p { color: var(--mut); font-size: 14.5px; line-height: 1.55; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 14px; } }
.step { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; }
.step .n { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--acc);
  letter-spacing: 0.1em; margin-bottom: 16px; }
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--mut); font-size: 15px; }

/* encryption panel */
.enc { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.enc-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--bg); }
.enc-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--s3); }
.enc-bar .ttl { margin-left: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.06em; }
.enc-body { padding: 28px 30px; font-family: var(--mono); font-size: 14.5px; line-height: 2; }
@media (max-width: 600px) { .enc-body { padding: 20px 18px; font-size: 12.5px; } }
.enc-line { display: flex; gap: 14px; }
.enc-line .k { color: var(--acc); white-space: nowrap; }
.enc-line .v { color: var(--mut); }
.enc-line .v b { color: var(--ink); font-weight: 600; }
.enc-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 14px; color: var(--faint); line-height: 1.6; }

/* screenshots */
.shots { display: flex; gap: 36px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.shot-cap { text-align: center; margin-top: 16px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* download */
.dl { background: linear-gradient(180deg, var(--s1), var(--bg)); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 48px; }
@media (max-width: 600px) { .dl { padding: 32px 22px; } }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; gap: 32px; } }
.dl h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; }
.dl p { color: var(--mut); margin-top: 14px; font-size: 16px; }
.dl-sha { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  word-break: break-all; line-height: 1.5; }
.dl-sha b { color: var(--mut); font-weight: 600; }
.install .ins { display: flex; gap: 16px; padding: 14px 0; }
.install .ins:not(:last-child) { border-bottom: 1px solid var(--line); }
.install .ins .n { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--acc);
  flex-shrink: 0; width: 24px; }
.install .ins h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.install .ins p { margin: 0; color: var(--mut); font-size: 14px; line-height: 1.5; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa-q { width: 100%; background: none; border: none; cursor: pointer; color: var(--ink);
  font-family: var(--sans); font-size: 18px; font-weight: 600; text-align: left;
  padding: 22px 0; display: flex; align-items: center; gap: 16px; }
.qa-q .ico { margin-left: auto; width: 20px; height: 20px; color: var(--mut); flex-shrink: 0;
  transition: transform .25s var(--ease); }
.qa.open .qa-q .ico { transform: rotate(180deg); color: var(--acc); }
.qa-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.qa-a p { color: var(--mut); font-size: 15.5px; padding-bottom: 22px; max-width: 660px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .chip { background: transparent; }
.footer .meta { margin-left: auto; display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.footer .meta a:hover { color: var(--acc); }

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero-sub { font-size: 17px; }
  .sec-head p { font-size: 16px; }
  .tile, .step { padding: 22px 20px; }
}

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
