﻿:root {
  color-scheme: dark;
  --bg-base: #0a0e14;
  --bg-surface: #141922;
  --bg-elevated: #1a1f2e;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-tertiary: #6e7681;
  --accent-primary: #2f81f7;
  --accent-hover: #539bf5;
  --accent-muted: rgba(47, 129, 247, 0.15);
  --border-default: rgba(240, 246, 252, 0.1);
  --border-muted: rgba(240, 246, 252, 0.05);
  --success: #3fb950;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.32);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-base: #ffffff;
  --bg-surface: #f6f8fa;
  --bg-elevated: #ffffff;
  --text-primary: #1f2328;
  --text-secondary: #656d76;
  --text-tertiary: #8b949e;
  --accent-primary: #0969da;
  --accent-hover: #0550ae;
  --accent-muted: rgba(9, 105, 218, 0.08);
  --border-default: rgba(31, 35, 40, 0.15);
  --border-muted: rgba(31, 35, 40, 0.08);
  --success: #1a7f37;
  --shadow-sm: 0 1px 3px rgba(140, 149, 159, 0.15);
  --shadow-md: 0 4px 16px rgba(140, 149, 159, 0.2);
  --shadow-lg: 0 8px 32px rgba(140, 149, 159, 0.25);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
}

html[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.8);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

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

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.mobile-menu-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.hamburger {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg) translateY(0);
  top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg) translateY(0);
  top: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-muted);
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  flex-shrink: 0;
}

.btn-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.hero {
  padding: 80px 0 120px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-muted);
  border: 1px solid rgba(47, 129, 247, 0.2);
  border-radius: 999px;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

@media (min-width: 769px) {
  .hero-subtitle {
    white-space: nowrap;
  }
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-secondary:hover {
  border-color: var(--text-tertiary);
  transform: translateY(-1px);
}

.preview {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.preview-window {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-muted);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-default);
}

.preview-content {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-base);
}

.preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.preview-slide.active {
  opacity: 1;
}

.preview-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 25, 34, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
  padding: 0;
}

html[data-theme="light"] .carousel-arrow {
  background: rgba(255, 255, 255, 0.7);
}

.carousel-arrow:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(20, 25, 34, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid var(--border-default);
  z-index: 2;
}

html[data-theme="light"] .carousel-controls {
  background: rgba(255, 255, 255, 0.7);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--accent-primary);
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-muted);
  border-radius: 999px;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-description {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.feature-card {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.step {
  position: relative;
  padding-left: 48px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  border: 1px solid rgba(47, 129, 247, 0.3);
  border-radius: 50%;
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 700;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-section {
  padding: 100px 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-default);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-text {
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-default);
    padding: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav.active {
    max-height: 400px;
  }
  
  .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }
  
  .btn-toggle {
    width: 100%;
    height: 44px;
    justify-content: flex-start;
    padding: 0 16px;
    gap: 12px;
    font-size: 14px;
  }

  .btn-toggle::after {
    content: attr(data-i18n-text);
  }
  
  .hero {
    padding: 60px 0 80px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  
  .preview {
    padding: 12px;
  }
  
  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
  
  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }
  
  .carousel-prev {
    left: 12px;
  }
  
  .carousel-next {
    right: 12px;
  }
  
  .cta-content {
    padding: 40px 24px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .step {
    padding-left: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .preview {
    padding: 8px;
  }
  
  .window-bar {
    padding: 8px 12px;
  }
  
  .window-title {
    font-size: 12px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  .carousel-arrow {
    width: 32px;
    height: 32px;
  }
  
  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }
  
  .carousel-prev {
    left: 8px;
  }
  
  .carousel-next {
    right: 8px;
  }
}
