/* Сброс стилей и базовые настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

/* Навигация */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #1a1a1a;
  z-index: 1000;
  animation: fadeInUp 0.6s ease-out;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 8px;
  position: relative;
  animation: breathe 4s ease-in-out infinite;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: #000000;
  border-radius: 2px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #999999;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

/* Главная секция */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  background: radial-gradient(ellipse at center, #111111 0%, #0a0a0a 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  margin-bottom: 2rem;
  animation: fadeInScale 0.6s ease-out 0.2s both;
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #999999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: #999999;
  margin-bottom: 2.5rem;
  max-width: 500px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.download-btn, .demo-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-btn {
  background: #ffffff;
  color: #000000;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.demo-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid #333333;
}

.demo-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

.download-icon, .play-icon {
  width: 20px;
  height: 20px;
}

/* Визуал приложения */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeInScale 1s ease-out 0.6s both;
}

.app-preview {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.app-window {
  width: 350px;
  height: 450px;
  background: #0a0a0a;
  border-radius: 16px;
  border: 1px solid #1a1a1a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
}

.app-header {
  display: flex;
  align-items: center;
  background: #111111;
  padding: 10px 16px;
  border-bottom: 1px solid #1a1a1a;
}

.app-logo {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 6px;
  margin-right: 12px;
  position: relative;
}

.app-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #000000;
  border-radius: 1px;
}

.app-title {
  font-size: 0.95rem;
  font-weight: 500;
  flex: 1;
  color: #ffffff;
}

.app-close {
  color: #666666;
  font-size: 18px;
  cursor: pointer;
}

.app-content {
  padding: 16px;
  height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
}

.chat-message {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeInUp 0.5s ease-out;
}

.ai-message {
  animation-delay: 1s;
}

.user-message {
  flex-direction: row-reverse;
  animation-delay: 2s;
}

.message-avatar {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.message-avatar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: #000000;
  border-radius: 2px;
}

.message-text {
  background: #111111;
  padding: 12px 16px;
  border-radius: 12px;
  color: #e5e5e5;
  font-size: 0.9rem;
  max-width: 250px;
}

.user-message .message-text {
  background: #ffffff;
  color: #000000;
}

.chat-input {
  margin-top: auto;
  display: flex;
  gap: 8px;
  animation: fadeInUp 0.5s ease-out 3s both;
}

.chat-input input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #1a1a1a;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 0.9rem;
}

.chat-input button {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: #000000;
  font-size: 16px;
  cursor: pointer;
}

/* Секция возможностей */
.features {
  padding: 100px 0;
  background: #0a0a0a;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #111111;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.8s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #333333;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  color: #000000;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.feature-description {
  color: #999999;
  line-height: 1.6;
}

/* Секция скачивания */
.download-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
}

.download-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.download-description {
  font-size: 1.25rem;
  color: #999999;
  margin-bottom: 3rem;
}

.download-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: #333333;
  transform: translateY(-5px);
}

.download-info {
  text-align: left;
}

.download-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.download-info p {
  color: #999999;
  margin-bottom: 1rem;
}

.download-features {
  list-style: none;
}

.download-features li {
  color: #999999;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.download-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
}

.download-main-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2.5rem;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-main-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.download-main-btn:hover::before {
  left: 100%;
}

.download-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

/* Секция обратной связи */
.feedback-section {
  padding: 100px 0;
  background: #0a0a0a;
}

.feedback-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.feedback-description {
  font-size: 1.25rem;
  color: #999999;
  margin-bottom: 3rem;
}

.feedback-card {
  background: #111111;
  border: 1px solid #1a1a1a;
  border-radius: 20px;
  padding: 3rem;
  text-align: left;
}

.contact-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.contact-column {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-column h3 {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.contact-info p {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 5px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-button .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  color: white;
}

.email-button {
  background-color: #333;
  color: white;
}

.email-button:hover {
  background-color: #555;
}

.instagram-button {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

.instagram-button:hover {
  background-color: #555;
  border-color: #777;
}

.telegram-button {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

.telegram-button:hover {
  background-color: #555;
  border-color: #777;
}

/* Футер */
.footer {
  background: #111111;
  border-top: 1px solid #1a1a1a;
  padding: 2rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-text {
  color: #666666;
  font-size: 0.9rem;
}

.contact-link {
  color: #999999;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #ffffff;
}

/* Адаптивность */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .features-container,
  .download-container,
  .feedback-container {
    padding: 0 1rem;
  }
  
  .download-card {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Скролл анимации */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Дополнительные эффекты */
.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffffff, transparent, #ffffff);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
  opacity: 0.3;
}