:root {
  --bg-primary: #080d16;
  --bg-secondary: #111827;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --anydesk-red: #ef4444;
  --anydesk-red-glow: rgba(239, 68, 68, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-blur: blur(16px);
  --font-title: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --green-online: #10b981;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
}

/* Фоновые размытия / Меш-градиенты */
.mesh-gradient-1 {
  position: absolute;
  top: -10%;
  left: -20%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

.mesh-gradient-2 {
  position: absolute;
  top: 40%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

/* Навигационная панель */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 13, 22, 0.75);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--anydesk-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--anydesk-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--anydesk-red);
  border-color: var(--anydesk-red);
  box-shadow: 0 0 15px var(--anydesk-red-glow);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: var(--font-title);
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  color: var(--anydesk-red);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.lang-separator {
  color: rgba(255, 255, 255, 0.15);
  user-select: none;
}

/* Hero секция */
.hero {
  padding: 10rem 2rem 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--anydesk-red);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.btn {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--anydesk-red);
  color: #fff;
  border: 1px solid var(--anydesk-red);
}

.btn-primary:hover {
  background: #dc2626;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--border-color);
}

/* Hero превью макет */
.hero-preview-wrapper {
  perspective: 1000px;
}

.hero-preview-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.4s ease;
}

.hero-preview-card:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.card-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.window-dots {
  display: flex;
  gap: 0.35rem;
}

.window-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.session-id-display {
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.card-body-mock {
  height: 250px;
  background: radial-gradient(circle, #1a2333 0%, #080d16 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-glass-overlay {
  width: 90%;
  height: 85%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.inner-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toolbar-dot {
  width: 7px;
  height: 7px;
  background: var(--green-online);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green-online);
}

.stream-ui-mock {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  position: relative;
}

.chat-bubble-mock {
  font-size: 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  max-width: 75%;
}

.chat-bubble-mock.received {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  align-self: flex-start;
}

.chat-bubble-mock.sent {
  background: var(--anydesk-red);
  color: #fff;
  align-self: flex-end;
}

.virtual-cursor-mock {
  position: absolute;
  top: 25%;
  left: 60%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.virtual-cursor-mock .cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--anydesk-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--anydesk-red);
}

.virtual-cursor-mock .cursor-label {
  background: var(--anydesk-red);
  color: #fff;
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  margin-top: 4px;
}

/* Раздел возможностей */
.features {
  padding: 6rem 2rem;
  background: rgba(17, 24, 39, 0.3);
  border-top: 1px solid var(--border-color);
}

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

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--anydesk-red);
  width: 45px;
  height: 45px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Сравнительная Таблица */
.compare {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border-color);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.015);
  color: #fff;
  font-weight: 600;
}

.compare-table th.highlight {
  color: var(--anydesk-red);
  background: rgba(239, 68, 68, 0.04);
}

.compare-table td.yes {
  color: var(--green-online);
  font-weight: 600;
}

.compare-table td.yes-highlight {
  color: #fff;
  background: rgba(239, 68, 68, 0.04);
  font-weight: 700;
}

.compare-table td.no {
  color: #ef4444;
}

/* Секция скачивания */
.download {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border-color);
}

.download-card {
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.08), rgba(0,0,0,0) 50%), var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3.5rem 3rem;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
}

.download-card h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 550px;
  margin: 0 auto 3rem auto;
  line-height: 1.5;
}

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

.download-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s;
}

.download-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.os-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.download-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.file-size {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn-sm {
  width: 100%;
  padding: 0.6rem 1rem !important;
  font-size: 0.85rem !important;
}

/* Подвал */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
  background: #060910;
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Кнопка бургер-меню */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  outline: none;
}

.burger-menu span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Адаптивность */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  
  .badge-promo {
    margin: 0 auto 1.5rem auto;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-preview-card {
    transform: none;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 73px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background: rgba(8, 13, 22, 0.96);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--border-color);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.15rem;
    width: 100%;
    text-align: center;
    padding: 0.6rem 0;
    color: #fff;
  }

  .lang-switcher {
    margin: 0.5rem 0;
  }

  .nav-cta {
    width: 80%;
    text-align: center;
  }

  .features-grid,
  .downloads-grid,
  .download-grid {
    grid-template-columns: 1fr !important;
  }

  .feature-card,
  .download-item {
    max-width: 100%;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 8rem 1.25rem 4rem 1.25rem;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
