:root {
  --main: #4060e9;
  --focus: #adff2f;
  --surface: #101528;
  --surface-deep: #0b0f1a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e7ebff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-deep);
  color: var(--text);
  font-family: "JetBrains Mono", Consolas, ui-monospace, monospace;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--focus);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Хедер */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  position: relative;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
}

.accent {
  color: var(--focus);
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  opacity: 0.8;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--focus);
}

/* Гамбургер-переключатель — чистый CSS, без JS. На десктопе скрыт, .nav-links всегда видны */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    order: 3;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    padding: 10px 4px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
}

/* Герой */
.hero {
  background: var(--main);
  color: white;
  text-align: center;
  padding: 72px 20px 56px;
}

.hero p.tagline {
  max-width: 640px;
  margin: 32px auto 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-accent {
  background: var(--focus);
  color: #0b0f1a;
}

.btn-accent:hover {
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: white;
}

.hero-banner {
  margin: 0 auto;
  max-width: 780px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Секции */
section {
  padding: 64px 0;
}

section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--focus);
  margin: 0 0 8px;
}

section .section-lead {
  color: rgba(231, 235, 255, 0.7);
  max-width: 640px;
  margin: 0 0 36px;
}

/* Карточки фич */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.6);
}

.card .emoji {
  font-size: 1.8rem;
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: rgba(231, 235, 255, 0.7);
  font-size: 0.95rem;
}

/* Скриншоты */
.shots {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.6);
}

.shot img {
  border-bottom: 1px solid var(--line);
}

.shot span {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: rgba(231, 235, 255, 0.75);
}

/* Шаги "как играть" */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--main);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: rgba(231, 235, 255, 0.85);
}

/* Установка */
.install pre {
  background: #05070d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.9rem;
  color: #c9e4ff;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tech-badges span {
  background: rgba(64, 96, 233, 0.18);
  border: 1px solid rgba(64, 96, 233, 0.4);
  color: #b9c8ff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Финальный призыв */
.cta {
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta h2 {
  color: var(--text);
}

/* Футер */
.site-footer {
  padding: 32px 0 48px;
  text-align: center;
  color: rgba(231, 235, 255, 0.55);
  font-size: 0.85rem;
}

.site-footer a {
  color: rgba(231, 235, 255, 0.75);
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
