* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #667eea;
  --primary-dark: #764ba2;
  --success: #11998e;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Hero */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Hero CTA - большая главная кнопка */
.btn-hero {
  padding: 20px 48px;
  font-size: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
  margin-bottom: 16px;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.btn-hero svg {
  width: 28px;
  height: 28px;
}

/* Hero Key */
.hero-key {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.hero-key code {
  background: #fff3cd;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 15px;
  color: #856404;
  margin-left: 8px;
}

/* Hero FAQ - компактный горизонтальный */
.hero-faq {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.hero-faq-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-faq-q {
  font-size: 14px;
  color: var(--text-light);
}

.hero-faq-a {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.hero-faq-divider {
  color: var(--border);
  font-size: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--bg-light);
}

/* Video */
.video-container {
  max-width: 800px;
  margin: 0 auto 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.key-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  font-size: 14px;
  color: #856404;
}

.key-info code {
  background: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
}

/* Screenshots */
.screenshots {
  padding: 60px 0;
  background: white;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}

.screenshot-card {
  text-align: center;
}

.screenshot-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top left;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 24px;
}

.screenshot-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.screenshot-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.screenshot-card p {
  color: var(--text-light);
  font-size: 16px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--bg-light);
}

.features h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 60px;
  color: var(--text);
}

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

.feature {
  text-align: center;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text);
}

.feature p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

/* Installation */
.installation {
  padding: 80px 0;
  background: white;
}

.installation h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 60px;
  color: var(--text);
}

.install-steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.step-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.step-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 15px;
}

.step-content code {
  background: var(--bg-light);
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--primary);
}

.step-content code.highlight {
  background: #fff3cd;
  color: #856404;
  font-weight: 600;
  padding: 6px 16px;
  font-size: 16px;
}

.install-help {
  margin-top: 60px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.install-help svg {
  flex-shrink: 0;
  color: var(--primary);
}

.install-help p {
  margin: 0;
  color: var(--text-light);
}

.install-help a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.install-help a:hover {
  text-decoration: underline;
}

/* Beta Info */
.beta-info {
  padding: 80px 0;
  background: var(--bg-light);
}

.beta-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
  text-align: center;
}

.beta-card h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

.beta-card > p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.6;
}

.beta-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.beta-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
}

.beta-feature svg {
  flex-shrink: 0;
}

.beta-feature span {
  font-size: 15px;
  color: var(--text);
}

/* Footer */
.footer {
  padding: 40px 0;
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer p {
  margin: 4px 0;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .subtitle {
    font-size: 16px;
  }

  .btn-hero {
    padding: 16px 32px;
    font-size: 18px;
  }

  .hero-faq {
    flex-direction: column;
    gap: 8px;
  }

  .hero-faq-divider {
    display: none;
  }

  .hero-faq-item {
    width: 100%;
    max-width: 340px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .screenshot-img {
    height: 250px;
  }

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

  .step {
    flex-direction: column;
  }

  .beta-card {
    padding: 32px 24px;
  }

  .header .container {
    flex-direction: column;
    gap: 16px;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}
