/* ===== VARIABLES ===== */
:root {
  --gradient: linear-gradient(135deg, #1a1aff 0%, #7b2fff 100%);
  --gradient-soft: linear-gradient(135deg, #e8e8ff 0%, #f0e8ff 100%);
  --color-primary: #3d2fff;
  --color-secondary: #7b2fff;
  --color-accent: #00a8d4;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-text: #1a1a2e;
  --color-text-muted: #5a5a7a;
  --color-border: #e2e4ef;
  --color-card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(61,47,255,0.08);
  --shadow-md: 0 8px 32px rgba(61,47,255,0.12);
  --shadow-lg: 0 20px 60px rgba(61,47,255,0.16);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --header-h: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(123,47,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123,47,255,0.45);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition), filter var(--transition);
  mix-blend-mode: multiply;
}
.logo-img:hover { opacity: 0.85; }

/* На hero: белая подложка чтобы логотип был виден на градиенте */
.header:not(.scrolled) .nav-logo {
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 4px 10px;
}

.header:not(.scrolled) .logo-img {
  mix-blend-mode: multiply;
}

.logo-img-footer {
  height: 40px;
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
}

.nav-menu {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  transition: all var(--transition);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.12); }
.header.scrolled .nav-link { color: var(--color-text-muted); }
.header.scrolled .nav-link:hover { color: var(--color-primary); background: var(--gradient-soft); }
.header.scrolled .nav-link.active-link { color: var(--color-primary); font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  transition: background var(--transition);
}
.header.scrolled .lang-switcher {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  font-family: inherit;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.header.scrolled .lang-btn { color: var(--color-text-muted); }
.header.scrolled .lang-btn.active {
  background: var(--gradient);
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}
.burger:hover { background: rgba(255,255,255,0.15); }
.burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.35s ease;
  transform-origin: center;
}
.header.scrolled .burger span { background: var(--color-text); }

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Radial glow overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,255,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 20%, rgba(0,168,212,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Animated background particles */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 2px at 15% 25%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 85% 15%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(circle 2px at 60% 80%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(circle 1px at 40% 60%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(circle 2px at 90% 70%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: var(--header-h);
  padding-bottom: 80px;
  min-height: 100vh;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.brand {
  display: block;
  text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.6;
  font-weight: 400;
  max-width: 440px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-platforms {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-platforms span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.hero-platforms span:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

/* Orbit animation */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-system {
  position: relative;
  width: 380px;
  height: 380px;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  transform-origin: center center;
}

.orbit-1 {
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  animation: orbit-spin 6s linear infinite;
}
.orbit-2 {
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  animation: orbit-spin 10s linear infinite reverse;
}
.orbit-3 {
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  animation: orbit-spin 15s linear infinite;
}

.orbit-dot {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
}

.orbit-1 .orbit-dot { animation: orbit-counter 6s linear infinite; }
.orbit-2 .orbit-dot { animation: orbit-counter 10s linear infinite reverse; }
.orbit-3 .orbit-dot { animation: orbit-counter 15s linear infinite; }

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 0 40px rgba(255,255,255,0.15);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbit-counter {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(-360deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.15), 0 0 60px rgba(255,255,255,0.05); }
  50%       { box-shadow: 0 0 40px rgba(255,255,255,0.25), 0 0 80px rgba(255,255,255,0.1); }
}

/* Hero wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ===== SECTION BASE ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--color-bg-alt); }

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

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(123,47,255,0.2);
}

.feature-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(123,47,255,0.3);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card:hover::before { opacity: 0.03; }

.product-card > * { position: relative; z-index: 1; }

.product-card-wide {
  grid-column: span 4;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.product-card-wide .product-icon { flex-shrink: 0; margin-bottom: 0; }

.product-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(123,47,255,0.3);
  position: relative;
}

.product-icon-watch { overflow: visible; }
.sub-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.75rem;
  background: var(--color-secondary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}
.product-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.product-tag {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--gradient-soft);
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.01em;
}

/* ===== TECHNOLOGIES ===== */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.tech-badge i {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
}
.tech-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(123,47,255,0.25);
  background: var(--gradient-soft);
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(123,47,255,0.3);
}

.contact-item h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.contact-item a, .contact-item p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.55;
}
.contact-item a {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
.contact-item a:hover { opacity: 0.8; }

/* Contact Form */
.contact-form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(61,47,255,0.1);
}

.contact-form .btn { align-self: flex-start; }

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

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

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

.footer-copy {
  font-size: 0.85rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }

.products-grid .product-card:nth-child(2) { transition-delay: 0.1s; }
.products-grid .product-card:nth-child(3) { transition-delay: 0.2s; }
.products-grid .product-card:nth-child(4) { transition-delay: 0.3s; }
.products-grid .product-card:nth-child(5) { transition-delay: 0.15s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card-wide {
    grid-column: span 2;
  }
  .hero-container {
    gap: 40px;
  }
  .orbit-system {
    width: 300px;
    height: 300px;
  }
  .orbit-3 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
  }
  .orbit-2 {
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
  }
  .orbit-1 {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 999;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-menu .nav-link {
    color: var(--color-text-muted);
    font-size: 1rem;
    padding: 12px 16px;
  }
  .nav-menu .nav-link:hover { color: var(--color-primary); background: var(--gradient-soft); }

  .burger { display: flex; }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 100px;
  }
  .hero-content { max-width: 100%; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-platforms { justify-content: center; }
  .hero-visual {
    order: -1;
    margin-bottom: -20px;
  }
  .orbit-system { width: 240px; height: 240px; }
  .orbit-3 {
    width: 240px; height: 240px; margin: -120px 0 0 -120px;
  }
  .orbit-2 {
    width: 170px; height: 170px; margin: -85px 0 0 -85px;
  }
  .orbit-1 {
    width: 100px; height: 100px; margin: -50px 0 0 -50px;
  }
  .orbit-center { width: 60px; height: 60px; font-size: 1.4rem; }

  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card-wide { grid-column: span 1; flex-direction: column; }

  .contact-wrapper { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 28px 20px; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links { justify-content: center; }

  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -1px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-btns .btn { max-width: 300px; }
  .lang-switcher { display: none; }
}
