/* Дополнительные стили для улучшений */

/* Навигация в header */
.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  transition: width 0.3s ease;
}

.header-nav a:hover {
  color: #ffd700;
}

.header-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Кнопка переключения темы */
.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(15deg) scale(1.1);
}

/* Светлая тема */
[data-theme="light"] {
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --text-primary: #1a1f2e;
  --text-secondary: #4a5568;
  --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="light"] .landing-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="light"] .feature-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

[data-theme="light"] .header-nav a {
  color: var(--text-secondary);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

/* Demo Section */
.demo-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.demo-video {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.video-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: rgba(255, 255, 255, 0.6);
}

.video-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.demo-commands {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-commands h3 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.command-example {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.command-example:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateX(8px);
}

.command-example code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  color: #ffd700;
  font-size: 0.9rem;
}

.command-example span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-question i {
  color: #ffd700;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(90deg);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 3.5rem;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.faq-answer code {
  background: rgba(255, 215, 0, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #ffd700;
  font-family: 'Courier New', monospace;
}

/* Reviews Section */
.reviews-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.review-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.review-info h4 {
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.review-stars {
  color: #ffd700;
  font-size: 0.9rem;
}

.review-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-style: italic;
  margin: 1rem 0;
}

.review-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Stats Section */
.stats-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .demo-container {
    grid-template-columns: 1fr;
  }
  
  .reviews-container,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Анимация счётчиков */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-value {
  animation: countUp 0.8s ease;
}
