/* === 1. НАСТРОЙКИ И ПЕРЕМЕННЫЕ === */

:root {
  --c-bg: #080808;
  /* Глубокий черный */
  --c-bg-soft: #111111;
  --c-primary: #00d2ff;
  /* Неоновый голубой */
  --c-secondary: #3a7bd5;
  --c-text: #ffffff;
  --c-text-muted: #a0a0a0;
  --c-glass: rgba(255, 255, 255, 0.03);
  --c-glass-border: rgba(255, 255, 255, 0.08);
  --font-main: "Montserrat", sans-serif;
  --font-display: "Unbounded", sans-serif;
  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === 2. ТИПОГРАФИКА === */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.section-title.center {
  text-align: center;
}

.text-accent {
  color: var(--c-primary);
  /* Градиент текста */
  background: linear-gradient(135deg, var(--c-primary), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-body {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

/* === 3. HEADER === */

/* === HEADER === */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  /* ВАЖНО: 6.5% - это отступ вашего основного контента (Hero, Team и т.д.). 
     Ставим такой же, чтобы логотип был на одной линии с текстом. */
  padding: 1.2rem 6.5%;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  box-sizing: border-box;
  /* Чтобы padding не расширял ширину */
}

.nav__container {
  width: 100%;
  /* Убираем max-width и margin, так как мы задали отступы в .nav */
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  /* Лого слева, элементы справа */
  align-items: center;
  position: relative;
  /* Важно для центрирования меню */
}

/* МЕНЮ ПО ЦЕНТРУ */

.nav__menu {
  display: flex;
  gap: 2rem;
  /* Абсолютное центрирование */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__item {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: 0.3s;
}

.nav__item:hover,
.nav__item--active {
  color: var(--c-text);
}

/* БУРГЕР (Скрыт на ПК) */

.nav__burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
  /* Чтобы был поверх меню */
}

.nav__burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
}

/* АДАПТИВ */

@media (max-width: 1024px) {
  /* На планшетах убираем абсолютное центрирование, 
     так как меню может наехать на логотип */
  .nav__menu {
    position: static;
    transform: none;
    display: none;
    /* Или display: flex, если хотите оставить меню */
  }
  .nav__burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav {
    /* На мобильных отступы меньше */
    padding: 1rem 2rem;
  }
}

/* === 4. HERO СЕКЦИЯ (PARALLAX & CAMERA IN) === */

.hero-wrapper {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* 3D Контекст для глубины */
  perspective: 1000px;
}

/* Стили для слоев фона */

.hero-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Фоновый градиент */

.hero-layer--bg {
  background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, var(--c-bg) 70%);
  z-index: -5;
}

/* Сетка */

.hero-layer--grid {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
  opacity: 0.5;
  animation: gridMove 20s linear infinite;
  z-index: -4;
}

/* Плавающие формы */

.hero-layer--shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--c-primary) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  top: -20%;
  left: -10%;
  filter: blur(60px);
  animation: float 10s ease-in-out infinite;
}

.hero-layer--shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--c-secondary) 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
  bottom: 10%;
  right: -5%;
  filter: blur(50px);
  animation: float 12s ease-in-out infinite reverse;
}

.hero-content {
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  padding: 0 1rem;
  /* Начальное состояние для анимации влета */
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--c-glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  margin-bottom: 2rem;
  animation: fadeInDown 1s var(--easing) backwards;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* Эффект раскрытия текста */

.reveal-text {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(30px) scale(0.9);
  animation: cameraIn 1s var(--easing) forwards;
  animation-delay: var(--d);
}

.gradient-text {
  background: linear-gradient(to right, #fff, var(--c-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto;
  color: var(--c-text-muted);
}

/* Индикатор скролла */

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  display: block;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

/* === 5. ОБЩИЕ СЕКЦИИ И КАРТОЧКИ === */

.section {
  padding: 8rem 0;
  position: relative;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Стеклянные эффекты */

.card-glass {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 2rem;
  transition: 0.4s var(--easing);
}

.philosophy__visual {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.glow-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--c-primary);
  filter: blur(80px);
  opacity: 0.4;
  animation: pulse 4s infinite;
}

.icon-xl {
  width: 100px;
  height: 100px;
  z-index: 2;
  color: #fff;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.check-list li::before {
  content: "✓";
  color: var(--c-primary);
  font-weight: bold;
}

/* Карточки цифр */

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

.stat-card {
  background: #131313;
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 1px solid #222;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: var(--c-primary);
}

.stat-value {
  font-size: 3.5rem;
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA Секция */

.cta {
  text-align: center;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid #333;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 1.2rem 3rem;
  background: var(--c-primary);
  color: #000;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 50px;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.4);
  background: #fff;
}

/* === 6. АНИМАЦИИ (KEYFRAMES) === */

/* Эффект "Камера входит в текст" */

@keyframes cameraIn {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(50px) scale(1.2) translateZ(-100px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1) translateZ(0);
  }
}

/* Движение сетки */

@keyframes gridMove {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0) scale(2);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(50px) scale(2);
  }
}

/* Левитация фигур */

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes scrollWheel {
  0% {
    top: 5px;
    opacity: 1;
  }
  100% {
    top: 25px;
    opacity: 0;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Адаптив */

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .nav__menu {
    display: none;
  }
  /* Здесь нужен JS для бургера */
}
