:root {
  --bg: #0a0a0a;
  --bg2: #121212;
  --surface: #1e1e1e;
  --accent: #0070f3;
  --accent-hover: #3291ff;
  --text: #ffffff;
  --text2: #a1a1a1;
  --text3: #888888;
  --border: #262626;
  --border2: #333333;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === Доступность и фокус === */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* === Класс no-js (если JS отключен) === */
.no-js .menu-toggle { display: none; }
.no-js .nav-links { display: flex !important; position: static; clip-path: none; }

/* === Навигация === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(12px)) {
  nav { background: rgba(10, 10, 10, 0.95); }
}

.logo {
  font-size: 1.2rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.02em; z-index: 101;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Бургер-кнопка */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 101;
  background: none; border: none; padding: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  transition: 0.3s; transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Кнопки === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px; font-family: inherit;
  font-size: 0.88rem; font-weight: 500; text-decoration: none;
  cursor: pointer; border: none; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 112, 243, 0.3); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--text); background: rgba(255,255,255,0.03); transform: translateY(-2px); }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* === Hero-секция === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: 64px;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px) brightness(0.7);
  background: linear-gradient(135deg, #1a1a2e, #16213e); /* fallback */
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 40px 24px;
  max-width: 900px; width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(18,18,18,0.8); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 14px 5px 10px;
  font-size: 0.78rem; font-weight: 500; color: var(--text2);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Зелёная точка через псевдо-элемент */
.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600; line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text2);
  margin: 0 auto 40px;
  max-width: 600px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === Статистика === */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.stats-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat-item {
  padding: 40px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item:nth-child(3n) { border-right: none; }
.stat-val { font-size: 1.6rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.stat-label { font-size: 0.85rem; color: var(--text3); }

/* === Общие секции === */
.section-container { padding: clamp(60px, 10vw, 120px) 24px; max-width: 1000px; margin: 0 auto; }
.section-eyebrow {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 14px; }
.section-sub { font-size: 1.05rem; color: var(--text2); max-width: 500px; margin-bottom: 50px; line-height: 1.7; }

/* === Сетка функций === */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-row {
  background: var(--bg2); padding: 30px;
  display: flex; gap: 20px; transition: 0.3s;
}
.feature-row:hover { background: #161616; }
.feature-row:hover .feature-ico {
  transform: translateX(4px);
  background: var(--accent);
  color: #fff;
}
.feature-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--surface); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s; color: var(--text2);
}
.feature-ico svg { width: 24px; height: 24px; }
.feature-row h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-row p { font-size: 0.88rem; color: var(--text2); line-height: 1.5; }
.feature-badge {
  display: inline-block; margin-top: 10px;
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  color: var(--accent); background: rgba(0,112,243,0.1);
  border: 1px solid rgba(0,112,243,0.2);
  border-radius: 4px; padding: 2px 8px;
}
.feature-badge.soon { color: var(--text3); background: transparent; border-color: var(--border2); }

/* === Скачивание === */
#download { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 40px;
}
.dl-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: 0.3s;
  display: flex; flex-direction: column;
}
.dl-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.dl-card.primary { border-color: rgba(0,112,243,0.4); background: rgba(0,112,243,0.02); }
.dl-platform {
  font-family: 'DM Mono', monospace; font-size: 0.75rem;
  color: var(--text3); text-transform: uppercase;
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.dl-platform svg { width: 18px; height: 18px; stroke: var(--text3); }
.dl-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.dl-meta { font-size: 0.85rem; color: var(--text3); margin-bottom: 24px; font-family: 'DM Mono', monospace; }
.dl-card .btn { margin-top: auto; }

/* Инструкция */
details summary { cursor: pointer; list-style: none; user-select: none; }
details summary::-webkit-details-marker { display: none; }
.install-guide { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.install-guide summary {
  font-size: 0.85rem; color: var(--text3);
  display: flex; align-items: center; gap: 8px;
}
.install-guide[open] summary { color: var(--accent); margin-bottom: 16px; }
.install-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.install-steps li { display: flex; gap: 12px; font-size: 0.85rem; color: var(--text2); }
.step-num {
  flex-shrink: 0; width: 20px; height: 20px;
  border-radius: 50%; background: var(--border2);
  color: var(--text); font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
}

/* === FAQ === */
.faq-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { background: var(--bg2); border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  padding: 24px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  transition: 0.2s;
}
.faq-item summary:hover { background: #161616; }
.faq-arrow { font-size: 0.8rem; color: var(--text3); transition: 0.3s; }
.faq-item[open] .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-body { padding: 0 24px 24px; color: var(--text2); font-size: 0.95rem; line-height: 1.7; }
.faq-link { color: var(--accent); text-decoration: underline; }

/* === Футер === */
footer {
  padding: 40px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
footer p { color: var(--text3); font-size: 0.85rem; font-family: 'DM Mono', monospace; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text3); text-decoration: none; font-size: 0.85rem; transition: 0.2s; }
.footer-links a:hover { color: var(--text); }

/* === Кнопка «Наверх» === */
.scroll-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); cursor: pointer;
  opacity: 0; visibility: hidden; transition: 0.3s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { border-color: var(--accent); color: var(--accent); }
.scroll-top svg { width: 20px; height: 20px; stroke: currentColor; }

/* === Reveal-анимация === */
.reveal {
  opacity: 0;
  animation: revealAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
}
.reveal.visible { animation-play-state: running; }
@keyframes revealAnim {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
/* задержки в stats */
.stat-item.reveal-delay-1 { animation-delay: 0.1s; }
.stat-item.reveal-delay-2 { animation-delay: 0.2s; }

/* === Адаптивность === */
@media (max-width: 820px) {
  nav { padding: 0 20px; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg2);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    visibility: visible;
  }
  .nav-links a { width: 100%; padding: 20px; border-bottom: 1px solid var(--border); }
  .nav-links a.btn { margin: 20px; width: calc(100% - 40px); border: none; }

  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero-content { padding: 20px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .features-list, .download-cards { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}