/* Synapse, bittensor-messenger.com
   Цвета и шрифты бренда. Раскладка переключается на 960px. */

@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap; }

:root {
  --bg: #F4F5F4; --card: #FFFFFF; --line: #E3E6E4;
  --ink: #0E1012; --body: #3C4450; --muted: #6B7370;
  --mint: #12C2A0; --mint-ink: #0B7A64; --tint: #DDF6F0;
  --dark2: #1A1D20; --dmuted: #8A949E; --dbody: #C9CED3;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --word: "Hanken Grotesk", "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, figure, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--mint-ink); }
a:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 3px; border-radius: 4px; }

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

/* шапка */
.site-header { display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; padding-bottom: 32px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--word); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link { text-decoration: none; font-size: 16px; }

/* кнопки */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px;
  border-radius: 999px; background: var(--mint); color: var(--ink); font-size: 18px; font-weight: 500;
  text-decoration: none; }
.button:hover { background: #10AE90; color: var(--ink); }
.button-sm { min-height: 44px; padding: 0 22px; font-size: 16px; }
.button-ghost { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  margin-top: 16px; border: 1px solid #3A4046; border-radius: 999px; color: #FFFFFF; font-size: 16px;
  text-decoration: none; }
.button-ghost:hover { border-color: var(--mint); color: #FFFFFF; }

/* первый экран */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 80px; align-items: center;
  padding-top: 72px; padding-bottom: 120px; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
h1 { font-size: 76px; line-height: 1.02; letter-spacing: -0.025em; font-weight: 700; }
.lead { font-size: 21px; line-height: 1.5; color: var(--body); max-width: 540px; }
.hero-cta { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.note { font-size: 15px; color: var(--muted); }

/* картинка переписки */
.chat { display: flex; flex-direction: column; gap: 20px; }
.bubble { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border: 1px solid var(--line);
  border-radius: 20px; background: var(--card); }
.line { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.lab { color: var(--muted); }
.uid { font-family: var(--mono); font-weight: 500; }
.strong { font-weight: 500; }
.quote { padding: 13px 16px; border-radius: 13px; background: var(--tint); font-size: 17px; line-height: 1.45; }
.aside { font-size: 14px; font-style: italic; color: var(--muted); }
.pills { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid #C9CED3;
  border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 500; }
.pill-dark { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }

/* разделы */
.section { display: flex; flex-direction: column; gap: 20px; padding-top: 112px; padding-bottom: 96px; }
.section-rule { border-top: 1px solid var(--line); padding-top: 96px; }
.section-tight { padding-top: 0; padding-bottom: 112px; }
h2 { font-size: 44px; line-height: 1.1; letter-spacing: -0.015em; font-weight: 700; margin-bottom: 28px; }
.eyebrow { display: flex; gap: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
.eyebrow-dark { color: var(--dmuted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 56px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.num { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.step h3 { font-size: 24px; font-weight: 500; }
.step p { color: var(--body); }

/* тёмная полоса с командой */
.band { background: var(--ink); color: #FFFFFF; padding: 112px 0; }
.band .wrap { display: flex; flex-direction: column; gap: 20px; }
.band h2 { color: #FFFFFF; margin-bottom: 24px; }
.band-slim { padding: 72px 0; }
.command { padding: 36px 40px; border-radius: 20px; background: var(--dark2); font-family: var(--mono);
  font-size: 19px; line-height: 1.75; color: var(--dmuted); white-space: pre-wrap;
  overflow-wrap: break-word; }
.command code { font: inherit; }
.command .cmd-narrow { display: none; }
.command .tok { white-space: nowrap; }
.command .phrase { color: #FFFFFF; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 56px; margin-top: 24px; }
.facts p { font-size: 18px; line-height: 1.6; color: var(--dbody); }

/* для кого */
.roles { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: center; column-gap: 32px;
  padding: 26px 0; border-top: 1px solid var(--line); }
.chip { display: inline-flex; justify-self: start; align-items: center; gap: 10px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-family: var(--mono);
  font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: #4A524F; }
.role p { font-size: 18px; color: var(--body); }

/* приватность */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 18px; padding: 36px; border: 1px solid var(--line);
  border-radius: 24px; background: var(--card); }
.card h3 { font-size: 22px; font-weight: 500; }
.card p { color: var(--body); }

/* обновления */
.updates { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.update { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 40px; padding: 24px 0;
  border-top: 1px solid var(--line); }
.update time { font-family: var(--mono); font-size: 16px; color: var(--mint-ink); padding-top: 3px; }
.update p { font-size: 18px; line-height: 1.6; color: var(--body); }
.more { margin-top: 20px; font-size: 18px; color: var(--body); }

/* страница «почему это безопасно» */
.intro { display: flex; flex-direction: column; gap: 20px; padding-top: 64px; padding-bottom: 72px; }
/* отступ снизу у вступления складывался с отступом сверху у пунктов, и
   между ними получалась пустая полоса почти в экран высотой */
.intro-tight { padding-bottom: 28px; }
.section-top { padding-top: 0; padding-bottom: 72px; }
.band .eyebrow { margin-bottom: 20px; }
.intro h1 { font-size: 64px; line-height: 1.04; }
.intro .lead { max-width: 720px; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.point { gap: 14px; padding: 32px; border-radius: 20px; }
.point .tag { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.point h2 { font-size: 23px; line-height: 1.25; font-weight: 500; letter-spacing: 0; margin: 0; }
.point p { line-height: 1.6; }

/* подвал */
.site-footer { background: var(--card); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) 280px 240px; column-gap: 64px;
  padding-top: 72px; padding-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.brand-footer img { width: 38px; height: 38px; }
.footer-brand p { font-size: 18px; color: var(--muted); max-width: 420px; }
.footer-col { display: flex; flex-direction: column; gap: 18px; }
.footer-col h2, .footer-col a { font-family: var(--mono); font-size: 15px; letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.4; margin: 0; }
.footer-col h2 { font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--mint-ink); }
.footer-copy { border-top: 1px solid var(--line); padding: 24px 0 40px; font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; }

/* телефон */
@media (max-width: 960px) {
  body { font-size: 16px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .wrap { padding: 0 20px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 21px; }
  .nav-link, .nav-cta { display: none; }
  .nav-link.nav-keep { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
  .hero { grid-template-columns: 1fr; row-gap: 40px; padding-top: 28px; padding-bottom: 0; }
  .hero-text { gap: 22px; }
  h1 { font-size: 44px; line-height: 1.04; letter-spacing: -0.02em; }
  .lead { font-size: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 0; }
  .button { min-height: 54px; }
  .note { font-size: 14px; text-align: center; }
  .chat { gap: 16px; }
  .bubble { padding: 18px; gap: 10px; border-radius: 18px; }
  .line { font-size: 14px; }
  .quote { font-size: 16px; }
  .section { padding-top: 64px; padding-bottom: 56px; gap: 14px; }
  .section-rule { border-top: 0; }
  .section-tight { padding-top: 0; padding-bottom: 64px; }
  h2 { font-size: 32px; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 12px; }
  .eyebrow { font-size: 12px; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { gap: 10px; }
  .step h3 { font-size: 21px; }
  .band { padding: 64px 0; }
  .band-slim { padding: 40px 0; }
  .band h2 { margin-bottom: 12px; }
  .command { padding: 20px; font-size: 14px; line-height: 1.7; border-radius: 16px; }
  .command .cmd-wide { display: none; }
  .command .cmd-narrow { display: inline; }
  .facts { grid-template-columns: 1fr; row-gap: 16px; margin-top: 6px; }
  .facts p { font-size: 16px; }
  .button-ghost { align-self: stretch; justify-content: center; min-height: 48px; }
  .role { grid-template-columns: 1fr; row-gap: 12px; padding: 20px 0; }
  .chip { font-size: 13px; }
  .role p { font-size: 16px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 24px; gap: 14px; border-radius: 20px; }
  .card h3 { font-size: 19px; }
  .update { grid-template-columns: 1fr; row-gap: 8px; padding: 18px 0; }
  .update time { font-size: 14px; padding-top: 0; }
  .update p, .more { font-size: 16px; }
  .intro { padding-top: 28px; padding-bottom: 40px; }
  .intro-tight { padding-bottom: 20px; }
  .section-top { padding-bottom: 48px; }
  .intro h1 { font-size: 40px; }
  .points { grid-template-columns: 1fr; gap: 14px; }
  .point { padding: 24px; }
  .point h2 { font-size: 20px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; column-gap: 20px;
    padding-top: 44px; padding-bottom: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .brand-footer img { width: 32px; height: 32px; }
  .footer-brand p { font-size: 16px; }
  .footer-col { gap: 14px; }
  .footer-col h2, .footer-col a { font-size: 14px; }
  .footer-copy { padding: 20px 0 36px; font-size: 13px; }
}
