* {
  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);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-link:hover {
  color: var(--primary);
}

.lang-toggle {
  padding: 6px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(102, 126, 234, 0.08);
}

/* 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;
}

/* Diagram */
.diagram-container {
  max-width: 900px;
  margin: 0 auto 60px;
}

.diagram-img {
  width: 100%;
  height: auto;
}

.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);
}

/* What's New */
.whats-new {
  padding: 60px 0;
  background: white;
}

.whats-new-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf0ff 100%);
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.15);
  box-shadow: 0 4px 24px rgba(102, 126, 234, 0.1);
}

.whats-new-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.whats-new-toggle h2 {
  text-align: center;
  font-size: 32px;
  margin: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.whats-new-arrow {
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.whats-new-card.open .whats-new-arrow {
  transform: rotate(180deg);
}

.whats-new-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.whats-new-card.open .whats-new-list {
  max-height: 900px;
  margin-top: 32px;
}

.whats-new-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.whats-new-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.whats-new-icon--ai { background: #e8f5e9; color: #2e7d32; }
.whats-new-icon--stable { background: #e3f2fd; color: #1565c0; }
.whats-new-icon--retry { background: #fff3e0; color: #e65100; }
.whats-new-icon--counter { background: #f3e5f5; color: #7b1fa2; }
.whats-new-icon--lock { background: #fce4ec; color: #c62828; }
.whats-new-icon--id { background: #e0f2f1; color: #00695c; }

.whats-new-icon svg {
  stroke: currentColor;
}

.whats-new-item strong {
  display: block;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.whats-new-item p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .whats-new-card {
    padding: 32px 20px;
  }

  .whats-new-card h2 {
    font-size: 24px;
  }
}

/* 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);
}

/* FAQ Section */
.faq-section {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-card {
  background: white;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.faq-q {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.faq-a {
  font-size: 15px;
  color: var(--text-light);
  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-warning {
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-warning svg {
  flex-shrink: 0;
  color: #FBBF24;
  margin-top: 0;
}

.install-warning p {
  margin: 0;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.5;
}

.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;
  }

  .step {
    flex-direction: column;
  }

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

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

/* Browser links */
.browser-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.browser-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.browser-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.browser-link.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.ext-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 8px 0;
}

.ext-url-bar code {
  flex: 1;
  font-size: 14px;
  color: var(--primary);
  user-select: all;
}

.ext-url-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.ext-url-copy:hover {
  background: var(--primary-hover, #818cf8);
}

.browser-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Footer links */
.footer-links {
  margin: 8px 0;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #8da2ff;
}

/* Privacy page */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.privacy-content h1 {
  font-size: 36px;
  margin-bottom: 32px;
  color: var(--text);
}

.privacy-content h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.privacy-content p,
.privacy-content li {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.privacy-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Contact page */
.contact-cards {
  display: flex;
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  background: var(--bg-light);
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.contact-icon {
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
}

@media (max-width: 480px) {
  .contact-cards {
    flex-direction: column;
  }
}

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

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