/* Оглавление (ищите по названию):
   1. Цвета и шрифты (меняйте здесь)
   2. Базовые стили
   3. Полоса прокрутки сверху и свой курсор
   4. Плавное появление блоков
   5. Кнопки
   6. Заголовки секций
   7. Шапка и меню
   8. Первый экран
   9. Бегущая строка
   10. Возможности
   11. Скачивание
   12. Подвал
   13. Всплывающее уведомление
*/

/* ===== 1. Цвета и шрифты (меняйте здесь) ===== */
:root {
  --bg: #07070a;
  --surface: #131318;
  --surface-2: #191a20;
  --border: #26262f;
  --border-soft: #1a1a21;
  --text: #f3f2ee;
  --text-muted: #8c8d99;
  --text-dim: #54545e;
  --accent-rgb: 38, 116, 229;
  --accent: rgb(var(--accent-rgb));
  --accent-2: #4b9bff;
  --accent-dim: #14307a;
  --glow: rgba(var(--accent-rgb), 0.4);
  --display: "Unbounded", sans-serif;
  --body: "Inter", sans-serif;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* ===== 2. Базовые стили ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--accent);
  color: #fff;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
section {
  position: relative;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 6px;
  border: 2px solid var(--bg);
}

/* ===== 3. Полоса прокрутки сверху и свой курсор ===== */
.progress {
  box-shadow: 0 0 12px var(--glow);
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  z-index: 200;
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
  mix-blend-mode: difference;
  width: 6px;
  height: 6px;
  background: #fff;
}
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
  mix-blend-mode: difference;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition:
    width 0.2s,
    height 0.2s,
    opacity 0.2s;
}
.cursor-ring.big {
  width: 64px;
  height: 64px;
  border-color: var(--accent-2);
  opacity: 0.7;
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ===== 4. Плавное появление блоков ===== */
.reveal {
  opacity: 0;
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transform: translateY(28px);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 5. Кнопки ===== */
.btn {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--body);
  padding: 12px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s,
    background 0.3s,
    border-color 0.3s;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%) skewX(-20deg);
  transition: transform 0.6s;
}
.btn-accent:hover::before {
  transform: translateX(120%) skewX(-20deg);
}
.btn-accent:hover {
  box-shadow: 0 10px 30px -6px var(--glow);
  background: var(--accent-2);
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.magnetic {
  will-change: transform;
}
.btn-lg {
  padding: 15px 28px;
  font-size: 14.5px;
}

/* ===== 6. Заголовки секций ===== */
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  box-shadow: 0 0 12px var(--glow);
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
  animation: 1.8s ease-in-out infinite pulseDot;
}
.section-pad {
  padding: 120px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  margin-top: 16px;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* ===== 7. Шапка и меню ===== */
.nav-links a:hover {
  color: var(--text);
}
.nav-links a {
  transition: color 0.25s;
  position: relative;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition:
    transform 0.4s var(--ease),
    background 0.4s,
    backdrop-filter 0.4s,
    border-color 0.4s;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(7, 7, 10, 0.75);
  backdrop-filter: blur(16px);
  border-color: var(--border-soft);
  padding: 13px 0;
}
header.hide {
  transform: translateY(-110%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  align-items: center;
  display: flex;
  gap: 11px;
}
nav {
  align-items: center;
  display: flex;
  gap: 34px;
}
.brand img {
  width: 32px;
  height: 32px;
  display: block;
}
.brand svg {
  width: 32px;
  height: 32px;
  display: block;
}
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.brand-name span {
  color: var(--accent);
}
.nav-links {
  font-size: 13.5px;
  display: flex;
  gap: 28px;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--accent-2);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after {
  width: 100%;
}
.brand svg circle {
  stroke: var(--accent);
}
.brand svg path {
  fill: var(--accent);
}

/* ===== 8. Первый экран ===== */
.hero {
  overflow: hidden;
  position: relative;
  padding: 190px 0 140px;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.75;
}
.hero-glow {
  pointer-events: none;
  position: absolute;
  top: -200px;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 62%);
  z-index: 0;
  animation: 7s ease-in-out infinite breathe;
}
.hero-inner {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 7.2vw, 92px);
  line-height: 1;
  letter-spacing: -0.015em;
  max-width: 960px;
}
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(40deg);
  animation: wordIn 0.9s var(--ease) forwards;
  transform-origin: bottom;
}
.hero-title .grad {
  background: linear-gradient(
    100deg,
    var(--accent) 0,
    var(--accent-2) 30%,
    #fff 50%,
    var(--accent-2) 70%,
    var(--accent) 100%
  );
  background-size: 280% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    shine 5s linear infinite,
    wordIn 0.9s var(--ease) forwards;
}
.os-pill b {
  color: var(--accent-2);
}
.hero-sub {
  color: var(--text-muted);
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.7;
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 42px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.68s forwards;
}
.os-pill {
  font-family: var(--body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 16px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.82s forwards;
}
.hero-stats {
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 0;
  margin-top: 80px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.95s forwards;
  padding-top: 28px;
}
.stat {
  text-align: center;
  padding: 0 34px;
}
.stat + .stat {
  border-left: 1px solid var(--border-soft);
}
.stat-num {
  font-weight: 600;
  font-family: var(--body);
  font-size: 30px;
  color: var(--text);
}
.stat-num .u {
  color: var(--accent-2);
  font-size: 16px;
  margin-left: 2px;
}
.stat-label {
  letter-spacing: 0.02em;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 6px;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}
@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}
@keyframes shine {
  to {
    background-position: -280% center;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 9. Бегущая строка ===== */
.marquee-wrap {
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
}
.marquee {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: 44s linear infinite marquee;
}
.marquee span {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.marquee span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== 10. Возможности ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 28px 24px;
  transition:
    transform 0.45s var(--ease),
    border-color 0.4s,
    box-shadow 0.4s;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    220px 140px at var(--mx, 50%) var(--my, 0),
    rgba(var(--accent-rgb), 0.16),
    transparent 70%
  );
}
.feature:hover::before {
  opacity: 1;
}
.feature:hover {
  transform: translateY(-8px);
  border-color: var(--accent-dim);
  box-shadow: 0 22px 44px -22px rgba(var(--accent-rgb), 0.4);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  margin-bottom: 20px;
  transition:
    transform 0.4s var(--ease),
    background 0.4s;
}
.feature:hover .feature-icon {
  transform: rotate(-6deg) scale(1.08);
  background: var(--accent-dim);
}
.feature h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.feature p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ===== 11. Скачивание ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.os-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s,
    box-shadow 0.4s;
}
.os-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-dim);
  box-shadow: 0 24px 48px -24px rgba(var(--accent-rgb), 0.45);
}
.os-card.recommended {
  border-color: var(--accent);
}
.os-card.recommended::after {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  content: "Рекомендуется";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--body);
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 999px;
}
.os-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--text);
}
.os-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.os-meta {
  font-family: var(--body);
  font-size: 11.5px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.os-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 220px;
}
.os-buttons .btn {
  justify-content: center;
}
.os-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 14px;
}
.progress-track {
  width: 100%;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 14px;
  display: none;
}
.progress-track.show {
  display: block;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s linear;
}
@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ===== 12. Подвал ===== */
.footer-links a {
  transition: color 0.25s;
}
.footer-links a:hover {
  color: var(--accent-2);
}
footer {
  border-top: 1px solid var(--border-soft);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 12.5px;
}
.footer-brand img {
  width: 20px;
  height: 20px;
  opacity: 0.75;
}
.footer-brand svg {
  width: 20px;
  height: 20px;
  opacity: 0.75;
}
.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 13. Всплывающее уведомление ===== */
.toast svg {
  color: var(--accent-2);
  flex-shrink: 0;
}
.toast {
  pointer-events: none;
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--surface-2);
  border: 1px solid var(--accent-dim);
  color: var(--text);
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: all 0.35s var(--ease);
  z-index: 300;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Телефоны ===== */
@media (max-width: 600px) {
  .wrap {
    padding: 0 18px;
  }
  .nav-links {
    display: none;
  }
  .brand-name {
    font-size: 14px;
  }
  .stat {
    padding: 0 22px;
  }
}
