:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --muted: #9b9b9b;
  --accent: #ffffff;
  --glass: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}


/* Content containers */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
  position: relative;
  z-index: 2;
}

/* Topbar */
.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: transparent;
}

.topbar .container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}

.brand .dot {
  color: var(--accent);
  margin-right: 6px;
  opacity: 0.95;
}

.navlinks {
  margin-left: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.navlinks a {
  cursor: pointer;
  opacity: 0.9;
}

.download-ghost {
  margin-left: auto;
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 68px 0 40px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  align-items: center;
}

.hero-left h1 {
  color: white;
  font-size: 64px;
  line-height: 0.95;
  margin: 0 0 18px 0;
  font-weight: 800;
  letter-spacing: -1px;
}

.lead {
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
}

.btn {
  border-radius: 12px;
  padding: 14px 20px;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: white;
  color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-weight: 600;
}

/* Features list */
.features {
  list-style: disc;
  margin-top: 24px;
  color: var(--muted);
  padding-left: 18px;
}

.features li {
  margin: 10px 0;
}

/* Mockup */
.mockup-wrap {
  width: 640px;
  height: 400px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2));
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  padding: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: floatUpDown 5.5s ease-in-out infinite;
}

.mockup-wrap:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(0, 150, 255, 0.4);
}

@keyframes floatUpDown {
  0% { transform: translateY(0) scale(1.04); }
  50% { transform: translateY(-8px) scale(1.05); }
  100% { transform: translateY(0) scale(1.04); }
}

.mockup-slider {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
  border-radius: 10px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
}

.mockup-slider img.active {
  opacity: 1;
}

.caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Metrics */
.metrics {
  padding: 48px 0;
}

.metrics h3 {
  color: var(--accent);
  margin-bottom: 18px;
}

.metrics-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  background: var(--panel);
  padding: 26px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.9);
}

.metric .big {
  font-size: 36px;
  font-weight: 700;
  color: white;
}

.metric .small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* Download Banner */
.download-banner {
  padding: 100px 0;
  position: relative;
  z-index: 2;
  color: white;
}

.download-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.download-left {
  max-width: 600px;
}

.download-left h2 {
  font-size: 2.8em;
  margin-bottom: 10px;
}

.download-subtext {
  font-size: 1.1em;
  color: #ccc;
  margin-bottom: 24px;
}

.download-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.btn.primary {
  background: #2e90fa;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn.secondary {
  background: #1c1c1c;
  color: #fff;
  border: 1px solid #444;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
}

.download-info {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #aaa;
}

.download-info li {
  margin-bottom: 6px;
}

.download-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: rgba(20, 20, 20, 0.9);
  padding: 20px 30px;
  border-radius: 12px;
  width: 220px;
  transition: all 0.3s ease;
  border: 1px solid #222;
}

.stat-card:hover {
  background: #1f1f1f;
  transform: translateY(-4px);
  box-shadow: 0 0 10px rgba(46, 144, 250, 0.4);
}

.stat-number {
  font-size: 1.6em;
  font-weight: bold;
  color: #2e90fa;
}

.stat-label {
  margin-top: 8px;
  color: #bbb;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px 0;
  margin-top: 40px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: 1fr 520px;
    gap: 32px;
  }

  .mockup-wrap {
    width: 520px;
    height: 320px;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-left h1 {
    font-size: 42px;
  }

  .mockup-wrap {
    width: 100%;
    max-width: 600px;
    height: 320px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 30px;
  }

  .stat-card {
    width: 48%;
  }
}

@media (max-width: 680px) {
  .hero-left h1 {
    font-size: 34px;
  }

  .mockup-wrap {
    height: 260px;
  }

  .stat-card {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .navlinks {
    display: none;
  }

  .brand {
    font-size: 14px;
  }

  .hero-left h1 {
    font-size: 26px;
  }

  .mockup-wrap {
    height: 200px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric {
  background: rgba(255, 255, 255, 0.03); /* чуть-чуть прозрачный фон */
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.metric:hover {
  box-shadow: 0 0 18px 4px rgba(170, 100, 255, 0.6); /* фиолетовое свечение */
  transform: translateY(-2px); /* лёгкий подъём */
  cursor: default;
}

.team-section {
  padding: 100px 0;
  background: transparent;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 60px;
  font-weight: 700;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px;
  justify-items: center;
}

.team-member {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: 
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease,
    opacity 1.2s ease;
  opacity: 0;
  transform: translateY(60px);
}


.team-member.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-member:hover {
  box-shadow: 0 0 25px rgba(180, 90, 255, 0.7);
  transform: translateY(-6px);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  border: 3px solid #ccc;
}

.team-member h3 {
  font-size: 1.5rem;
  margin: 10px 0 5px;
}

.team-member .role {
  font-size: 1rem;
  opacity: 0.85;
}

/* Hover-свечение фиолетовое */
.btn.primary:hover,
.btn.secondary:hover {
  box-shadow: 0 0 16px rgba(180, 90, 255, 0.6);
  transition: box-shadow 0.3s ease;
}

/* Уведомление */
#copy-notification {
  margin-top: 20px;
  color: #bb86fc;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#copy-notification.visible {
  opacity: 1;
  transform: translateY(0);
}

.install-guide h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 600;
}

.guide-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-steps li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 40px;
  font-size: 1rem;
  color: #ddd;
}

.guide-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #bb86fc;
  color: #000;
  font-weight: bold;
  text-align: center;
  line-height: 28px;
  font-size: 0.9rem;
  box-shadow: 0 0 8px rgba(187, 134, 252, 0.5);
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 8px #b388ff, 0 0 16px #cba0ff, 0 0 24px #e0c4ff;
    color: #f2e6ff;
  }
  50% {
    text-shadow: 0 0 12px #d6aaff, 0 0 24px #e3c1ff, 0 0 36px #f8e8ff;
    color: #ffffff;
  }
}

.guide-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: rgba(150, 80, 255, 0.15);
  color: #fff;
  animation: glow 1.8s ease-in-out infinite;
}

.faq-section {
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.faq-item {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.faq-question {
  background: none;
  border: none;
  color: #caaaff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #dfbfff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  padding-left: 12px;
  font-size: 0.95rem;
  color: #ccc;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* достаточно для текста */
  opacity: 1;
  margin-top: 6px;
}

.site-footer {
  padding: 24px 0;
  font-size: 0.9rem;
  color: #bbb;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-right a {
  margin-left: 20px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: #caaaff;
  text-decoration: underline;
}

.install-card {
  background: rgba(30, 20, 60, 0.4);
  border: 1px solid rgba(170, 100, 255, 0.3);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 0 30px rgba(140, 90, 255, 0.2);
  backdrop-filter: blur(12px);
  color: #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.install-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(180, 120, 255, 0.35);
}

.install-card h2 {
  margin-bottom: 18px;
  font-size: 2.2rem;
  color: #fff;
  text-align: center; /* вот это добавь */
}


.install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.install-steps li {
  position: relative;
  padding-left: 42px;
  margin-bottom: 18px;
  font-size: 1.1rem;
  color: #ddd;
}

.install-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(145deg, #8e44ff, #c884ff);
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px #a66cff;
}
