/* === Hero Banner === */
.hero-banner {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: #fff;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  z-index: 1;
}
.hero-content {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.hero-content h1 {
  font-size: calc(var(--index)*1.5);
  margin-bottom: 20px;
  color: #c084fc;
}
.hero-content .subtitle {
  font-size: calc(var(--index)*.8);
  max-width: 700px;
  margin: 0 auto 30px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}
.hero-buttons button,
#signup form button {
  background: transparent;
  color: #c084fc;
  border: 2px solid #c084fc;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.hero-buttons button:hover,
#signup form button:hover {
  background: #c084fc;
  color: #000;
  padding: 12px 24px;
}
.hero button,
#scrollTopBtn {
  background: transparent;
  color: #c084fc;
  border: 2px solid #c084fc;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  box-shadow: 0 4px 10px rgba(192, 132, 252, 0.3);
}
.hero button:hover {
  background-color: #a855f7;
  transform: translateY(-2px);
  color: #000;
}
.hero button:active {
  transform: scale(0.98);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  font-size: 16px;
}
.hero-stats div {
  text-align: center;
}
.hero-stats strong {
  font-size: 28px;
  display: block;
  margin-bottom: 5px;
}

/*===анимация текста==*/
.typewriter-container {
  font-size: calc(var(--index)*1.2);
  color: #c084fc;
  height: 2.5em;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  margin-bottom: 30px;
}

#typewriter-text {
  display: inline-block;
  border-right: 2px solid #c084fc;
  animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: #c084fc; }
}
