/* Лендинг и страница входа. Цвета — те же, что в приложении. */
:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel2: #1c2128;
  --border: #30363d;
  --text: #c9d1d9;
  --muted: #8b949e;
  --accent: #58a6ff;
  --pos: #3fb950;
  --neg: #f85149;
  --warn: #d29922;
  --tg: #2aabee;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(13, 17, 23, 0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }
.logo span { letter-spacing: -0.02em; }
.logo em { font-style: normal; color: var(--accent); }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav .btn--sm { margin-left: 8px; }
.lang { display: inline-flex; flex: none; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang__btn { padding: 4px 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang__btn:hover { color: var(--text); background: var(--panel2); text-decoration: none; }
.lang__btn--on { color: var(--text); background: var(--panel2); }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--text); text-decoration: none; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid var(--border); background: var(--panel2); color: var(--text); }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #0d1117; }
.btn--primary:hover { filter: brightness(1.1); }
.btn--sm { padding: 7px 14px; font-size: 14px; }
.btn--tg { background: var(--tg); border-color: var(--tg); color: #fff; font-size: 16px; padding: 12px 22px; }
.btn--tg:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* Первый экран: заголовок по центру, ниже большой скриншот с карточками цифр */
.hero { padding: 76px 0 24px; overflow: hidden; }
.hero__head { text-align: center; max-width: 880px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.2); }
.hero h1 { font-size: 60px; line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 20px; color: #f0f6fc; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #58a6ff, #3fb950); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 19px; color: var(--muted); margin: 0 auto 30px; max-width: 720px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.btn--lg { font-size: 16px; padding: 13px 24px; border-radius: 10px; }
.btn--ghost { background: transparent; }
.stage { position: relative; margin-top: 56px; }
.stage__glow { position: absolute; inset: -40px 10% auto; height: 70%; background: radial-gradient(closest-side, rgba(88, 166, 255, 0.28), transparent); filter: blur(30px); pointer-events: none; }
.frame { position: relative; margin: 0 auto; max-width: 1080px; border: 1px solid #3b434d; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
.frame__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1c2128; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #30363d; }
.frame__bar span { margin-left: 10px; }
.frame img { display: block; width: 100%; height: auto; }
.float { position: absolute; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 12px; background: rgba(22, 27, 34, 0.92); border: 1px solid #3b434d; backdrop-filter: blur(8px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7); min-width: 190px; }
.float b { font-size: 30px; line-height: 1.15; color: #f0f6fc; }
.float b.pos { color: var(--pos); }
.float__label { font-size: 12px; color: var(--muted); }
.float__sub { font-size: 12px; color: var(--muted); }
.float--l { left: -8px; top: 34%; }
.float--r { right: -8px; bottom: 14%; }
@media (max-width: 1180px) { .float--l { left: 12px; } .float--r { right: 12px; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; text-align: center; }
.facts b { display: block; font-size: 22px; color: #f0f6fc; }
.facts span { color: var(--muted); font-size: 14px; }
.shot { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.shot svg { width: 100%; height: auto; display: block; }

/* Разделы */
section { padding: 56px 0; }
section h2 { font-size: 32px; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 720px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.feature h3 { margin: 12px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(88, 166, 255, 0.12); color: var(--accent); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding: 22px 22px 22px 70px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #0d1117; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.coins { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.coin { padding: 6px 12px; border-radius: 20px; background: var(--panel2); border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.cta { text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 48px 24px; }
.cta p { color: var(--muted); margin: 0 0 24px; }
/* Подвал */
.foot { border-top: 1px solid var(--border); background: var(--panel); color: var(--muted); font-size: 14px; margin-top: 24px; }
.foot__cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 40px 0 28px; }
.foot__brand p { margin: 12px 0 0; max-width: 340px; }
.foot h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.foot__cols > div:not(.foot__brand) { display: flex; flex-direction: column; gap: 8px; }
.foot a:not(.logo) { color: var(--muted); }
.foot a:not(.logo):hover { color: var(--text); text-decoration: none; }
.foot__bottom { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--border); padding: 18px 0 28px; font-size: 13px; }

/* Вход */
.auth { min-height: calc(100vh - 61px - 220px); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth__card { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; text-align: center; }
.auth__card h1 { font-size: 26px; margin: 0 0 6px; }
.auth__card > p { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.code { font: 700 44px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.18em; margin: 14px 0 6px; color: var(--text); }
.hint { color: var(--muted); font-size: 14px; }
.state { margin-top: 18px; font-size: 15px; min-height: 24px; }
.state--err { color: var(--neg); }
.state--ok { color: var(--pos); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.dev { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--border); }
.dev input { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); width: 100%; margin: 8px 0; }
.small { font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 38px; }
  .hero__sub { font-size: 17px; }
  .stage { margin-top: 36px; }
  .float { position: static; min-width: 0; padding: 10px 14px; }
  .float b { font-size: 22px; }
  .stage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stage .frame { grid-column: 1 / -1; }
  .frame__bar span { display: none; }
  .facts { grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
  .eyebrow { font-size: 12px; padding: 5px 12px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav .lang { margin-left: auto; }
  .nav .btn--sm { margin-left: 8px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
