@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg: #09090b;
  --panel: #101013;
  --panel2: #18181b;
  --ink: #fafafa;
  --dim: #a1a1aa;
  --faint: #71717a;
  --line: #27272a;
  --teal: #2dd4bf;
  --teal-deep: #0f766e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.mono, .label, .num { font-family: 'JetBrains Mono', monospace; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; letter-spacing: -.03em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(15,118,110,.55); color: #fff; }
.shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── шапка ── */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,9,11,.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead-in {
  display: flex; align-items: center; gap: 40px;
  height: 68px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800; letter-spacing: .12em; font-size: 15px;
}
.wordmark svg { width: 20px; height: 20px; color: var(--teal); }
.wordmark span { color: var(--teal); }
.wordmark-icon { width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0; }
.masthead nav { display: flex; gap: 28px; margin-left: auto; }
.masthead nav a {
  font-size: 14px; font-weight: 500; color: var(--dim);
  transition: color .2s;
}
.masthead nav a:hover, .masthead nav a.active { color: var(--ink); }
.head-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #09090b;
  font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: 10px;
  transition: background .2s, transform .2s;
}
.head-cta:hover { background: var(--teal); transform: translateY(-1px); }
.head-cta.ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.head-cta.ghost:hover { background: var(--panel2); color: var(--ink); }

/* ── модалка авторизации ── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9,9,11,.7);
  backdrop-filter: blur(8px);
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: 100%; max-width: 400px;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line), 0 32px 80px rgba(0,0,0,.6);
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--faint);
  font-size: 22px; cursor: pointer; line-height: 1;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }
.modal-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.modal-note { color: var(--faint); font-size: 13px; margin-bottom: 24px; }
.modal-note .mono { color: var(--teal); }
.modal-card form { display: flex; flex-direction: column; gap: 16px; }
.modal-card label span {
  display: block; color: var(--faint);
  font-size: 12.5px; font-weight: 500; margin-bottom: 6px;
}
.modal-card input {
  width: 100%;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 14.5px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: border-color .2s;
}
.modal-card input:focus { border-color: var(--teal-deep); }
.modal-error {
  background: rgba(239,68,68,.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px;
  font-size: 13.5px;
  padding: 10px 14px;
}
.modal-card .btn { justify-content: center; }
.modal-user {
  display: flex; align-items: center; gap: 16px;
}
.modal-user .avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800; font-size: 20px;
  flex-shrink: 0;
}
.modal-user b { font-family: 'JetBrains Mono', monospace; font-size: 16px; display: block; }
.modal-user span { color: var(--faint); font-size: 12.5px; }
.modal-user .btn { margin-left: auto; padding: 9px 16px; font-size: 13px; }

/* ── герой ── */
.hero { position: relative; overflow: hidden; }
.hero .bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(9,9,11,.86), rgba(9,9,11,.95)),
    url(/img/bg_city.jpg) center 30%/cover no-repeat;
  opacity: .9;
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px; align-items: center;
  padding-top: 88px; padding-bottom: 88px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--teal);
  background: rgba(45,212,191,.08);
  border: 1px solid rgba(45,212,191,.25);
  border-radius: 999px;
  padding: 6px 14px;
}
.hero h1 {
  font-size: clamp(36px, 4.2vw, 54px);
  font-weight: 800; margin: 24px 0 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--teal), #7ee6d8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .sub { color: var(--dim); font-size: 16.5px; max-width: 460px; margin-bottom: 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 600;
  padding: 12px 24px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2); color: var(--ink);
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: #202024; border-color: #3f3f46; transform: translateY(-1px); }
.btn.primary {
  background: #fff; color: #09090b; border: none;
}
.btn.primary:hover { background: var(--teal); }
.btn.big { padding: 15px 32px; font-size: 16px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; font-weight: 600; display: block;
}
.hero-stats span { color: var(--faint); font-size: 12.5px; letter-spacing: .05em; }

/* сцена со скринами */
.stage { position: relative; }
.shot-main {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 24px 64px rgba(0,0,0,.5);
}
.shot-main img { display: block; width: 100%; }
.shot-login {
  position: absolute; right: 20px; bottom: 20px;
  width: 32%;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 16px 48px rgba(0,0,0,.55);
  transform: rotate(-1.5deg);
}
.shot-login img { display: block; width: 100%; }

.glowline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,212,191,.75), transparent);
  filter: blur(.5px);
  opacity: .8;
}

/* ── фичи ── */
.spec { padding: 80px 0; }
.spec h2 { font-size: 34px; font-weight: 800; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel);
  border-radius: 14px;
  padding: 28px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.card:hover {
  background: var(--panel2);
  box-shadow: inset 0 0 0 1px #3f3f46, 0 8px 32px rgba(0,0,0,.4);
  transform: translateY(-2px);
}
.card .num {
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  color: var(--teal); margin-bottom: 16px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--dim); font-size: 14.5px; margin-bottom: 20px; }
.card .label {
  display: block;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  color: var(--faint);
}

/* ── тикер ── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker .rail {
  display: flex; gap: 48px; white-space: nowrap;
  animation: slide 28s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--faint);
}
.ticker span:nth-child(4n+1) { color: var(--teal); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── cta ── */
.cta { padding: 96px 0; }
.faq { padding: 24px 0 96px; }
.faq h2 { font-size: 34px; font-weight: 800; margin-bottom: 32px; }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq details {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, box-shadow .2s;
}
.faq details[open] {
  background: var(--panel2);
  box-shadow: inset 0 0 0 1px #3f3f46;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  font-weight: 600; font-size: 15px;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span {
  color: var(--teal); font-size: 18px; font-weight: 400;
  transition: transform .25s;
}
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p {
  padding: 0 22px 20px;
  color: var(--dim); font-size: 14px;
}
.faq .mono { color: var(--teal); }
.cta-card {
  position: relative;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 44px 48px;
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 48px; align-items: center;
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(45,212,191,.07), transparent 40%);
  pointer-events: none;
}
.cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.cta-left p { color: var(--dim); font-size: 15px; margin-bottom: 24px; }
.cta-left .btn { justify-self: start; }
.cta-card ol { list-style: none; margin: 0 0 28px; }
.cta-card ol li {
  display: grid; grid-template-columns: auto 1fr;
  gap: 6px 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cta-card ol li:last-child { border-bottom: none; }
.cta-card ol li::before {
  content: counter(cta-step, decimal-leading-zero) " —";
  counter-increment: cta-step;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--teal);
  align-self: center;
}
.cta-card ol { counter-reset: cta-step; }
.cta-card ol b { font-size: 15px; font-weight: 600; align-self: center; }
.cta-card ol span { grid-column: 2; color: var(--faint); font-size: 13px; }

/* мокапы лаунчера */
.mockapp {
  display: flex; flex-direction: column;
  background: #101014;
  box-shadow: inset 0 0 0 1px #27272a;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9.5;
}
.mock-bar {
  display: flex; align-items: center; gap: 14px;
  height: 34px; padding: 0 12px;
  background: #0c0c0e;
  box-shadow: inset 0 -1px 0 #1f1f23;
  flex-shrink: 0;
}
.mock-logo {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800; font-size: 10px; letter-spacing: .14em;
  color: #e4e4e7;
}
.mock-logo svg { width: 13px; height: 13px; color: #2dd4bf; }
.mock-links { display: flex; gap: 10px; }
.mock-links i {
  font-style: normal; font-size: 8.5px; letter-spacing: .1em;
  font-family: 'JetBrains Mono', monospace;
  color: #52525b;
}
.mock-win { margin-left: auto; font-size: 9px; color: #3f3f46; letter-spacing: .14em; }
.mock-body {
  display: flex; flex: 1; min-height: 0;
  background: radial-gradient(ellipse 80% 90% at 60% 15%, #1b2a28, #121216 70%);
}
.mock-rail {
  width: 42px;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 12px 0;
  background: rgba(0,0,0,.25);
  flex-shrink: 0;
}
.mock-avatar {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, #0f766e, #2dd4bf);
  color: #fff; font-weight: 800; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif;
}
.mock-out { font-size: 11px; color: #52525b; margin-top: auto; }
.mock-content { padding: 22px 26px; display: flex; flex-direction: column; }
.mock-tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px; letter-spacing: .16em;
  color: #2dd4bf;
  background: rgba(45,212,191,.09);
  border: 1px solid rgba(45,212,191,.3);
  border-radius: 99px;
  padding: 3px 8px;
}
.mock-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px; margin-top: 10px; }
.mock-sub { color: #71717a; font-size: 10.5px; margin: 2px 0 10px; }
.mock-desc { color: #d4d4d8; font-size: 10px; line-height: 1.55; max-width: 340px; }
.mock-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
}
.mock-meta b { display: block; font-size: 10px; font-weight: 600; color: #e4e4e7; }
.mock-meta span { font-size: 8.5px; color: #2dd4bf; }
.mock-play {
  background: linear-gradient(180deg, #f7b95c, #d98f2f);
  color: #14100a;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 10px; letter-spacing: .12em;
  padding: 9px 22px; border-radius: 8px;
}
.mock-login .mock-form {
  display: flex; flex-direction: column;
  padding: 22px 24px;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, #17211f, #101014 75%);
  width: 100%;
}
.mock-login { aspect-ratio: 16/10.5; }
.mock-title.sm { font-size: 13px; margin: 0 0 6px; }
.mock-note { color: #71717a; font-size: 8px; margin-bottom: 14px; line-height: 1.5; }
.mock-field { margin-bottom: 9px; }
.mock-field span { display: block; font-size: 7.5px; color: #52525b; margin-bottom: 3px; letter-spacing: .08em; font-family: 'JetBrains Mono', monospace; }
.mock-field i {
  display: block; font-style: normal;
  background: #0c0c0e; border: 1px solid #27272a; border-radius: 5px;
  color: #e4e4e7; font-size: 9px; padding: 6px 9px;
  font-family: 'JetBrains Mono', monospace;
}
.mock-play.sm {
  align-self: stretch; text-align: center;
  margin-top: 6px; padding: 8px;
  font-size: 9px;
}

/* ── внутренние страницы ── */
.page { padding: 72px 0 96px; }
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.page h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-bottom: 14px; }
.page .lead { color: var(--dim); font-size: 16.5px; max-width: 640px; margin-bottom: 44px; }
.page h2 { font-size: 26px; font-weight: 800; margin: 56px 0 24px; }
.page h2:first-of-type { margin-top: 48px; }

.shots { margin: 0 0 48px; }
.dl {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: var(--panel); border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 28px 32px; margin-bottom: 8px;
}
.dl[hidden] { display: none; }
.dl .meta h3 { font-size: 19px; font-weight: 700; }
.dl .meta h3 .v { font-family: 'JetBrains Mono', monospace; color: var(--teal); font-size: 15px; margin-left: 8px; }
.dl .meta p { color: var(--faint); font-size: 13.5px; margin-top: 6px; }
.dl-linux .meta h3 .v { color: var(--dim); }
.dl-hint { color: var(--faint); font-size: 13px; margin: -28px 0 8px; }
.dl-hint code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--teal);
  background: rgba(45,212,191,.07);
  padding: 3px 8px; border-radius: 6px;
}
.dl.secondary { opacity: .55; }
.dl.secondary .btn { background: var(--panel2); color: var(--ink); }
.dl.secondary:hover { opacity: .8; }
.dl-os { color: var(--teal); font-size: 12px; font-family: 'JetBrains Mono', monospace; }

table.req { border-collapse: collapse; width: 100%; }
table.req td {
  padding: 9px 0; font-size: 14px;
  border-bottom: 1px solid var(--line);
}
table.req td:first-child { color: var(--faint); width: 40%; }
table.req tr:last-child td { border-bottom: none; }
.cards-req { grid-template-columns: 1fr 1fr; }

.about-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px; align-items: start;
}
.about-grid h2 { margin: 0 0 16px; }
.about-grid p { color: var(--dim); margin-bottom: 16px; }

.statwall {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat {
  background: var(--panel); border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 22px 24px;
}
.stat b { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; display: block; }
.stat span { color: var(--faint); font-size: 12.5px; }

.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.gallery img {
  display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s, box-shadow .25s;
}
.gallery img:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px #3f3f46, 0 12px 40px rgba(0,0,0,.5);
}
.gallery img { cursor: pointer; }
.hint-egg {
  color: var(--teal);
  font-size: 13px;
  opacity: .7;
}
.site-bg {
  position: fixed; inset: 0; z-index: -1;
  background: var(--bg) center/cover no-repeat;
  transition: background-image .3s;
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ── футер ── */
footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.foot-in {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; padding-bottom: 24px;
  color: var(--faint); font-size: 13px;
}
.foot-in nav { display: flex; gap: 24px; }
.foot-in a:hover { color: var(--ink); }
.foot-in .wordmark { font-size: 13px; }
.foot-in .wordmark svg { width: 16px; height: 16px; }
.foot-in .wordmark-icon { width: 16px; height: 16px; }

/* ── адаптив ── */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 72px; }
  .cards { grid-template-columns: 1fr; }
  .masthead-in { gap: 20px; }
  .masthead nav { display: none; }
  .shot-login { bottom: -24px; right: 8px; width: 40%; }
  .faq-list { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
}
