/*
  Wisot Landing Page — style.css
  ==============================
  
  Архитектура CSS:
  ----------------
  1. CSS Custom Properties (переменные) — единый источник истины для цветов,
     отступов, шрифтов. Позволяет легко менять палитру.
  2. Reset / Base — сброс браузерных стилей + базовая типографика.
  3. Утилиты — .container, .gradient-text, .section-title и т.д.
  4. Компоненты — кнопки, карточки.
  5. Секции — стили для каждой секции (hero, problem, solution...).
  6. Медиа-запросы — mobile-first: базовые стили для 320px,
     breakpoints на 640px, 768px, 1024px, 1280px.
  
  Обоснование mobile-first:
  - Большинство трафика из VK Ads — мобильный
  - Progressive enhancement: начинаем с минимума, добавляем сложность
  - Браузеры оптимизируют CSS сверху вниз → базовые стили быстрее
*/


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ==========================================================================
   Централизованная система дизайн-токенов.
   Обоснование: изменение одной переменной каскадно обновляет весь сайт.
*/
:root {
  /* Цвета: тёмная палитра */
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-bg-card: #161616;
  --color-bg-card-hover: #1a1a1a;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);

  /* Текст */
  --color-text-primary: #f5f5f5;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;

  /* Акцентные цвета */
  --color-accent-primary: #7C3AED;     /* Electric Violet */
  --color-accent-secondary: #06B6D4;   /* Cyan */
  --color-accent-warm: #F59E0B;        /* Amber для CTA */

  /* Градиенты */
  --gradient-accent: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  --gradient-accent-warm: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-warm));
  --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124, 58, 237, 0.06), transparent 40%);

  /* Типографика */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-size-5xl: 3.5rem;    /* 56px */

  /* Отступы */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Скругления */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 50%;

  /* Анимации */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-index система — предотвращает хаос со слоями */
  --z-base: 1;
  --z-header: 100;
  --z-mobile-menu: 90;
  --z-modal: 200;
}


/* ==========================================================================
   1b. СВЕТЛАЯ ТЕМА — переопределение переменных
   ==========================================================================
   Активируется через data-theme="light" на <html>.
   Переопределяем только цветовые переменные — типографика, отступы,
   скругления остаются общими для обеих тем.
   
   Обоснование подхода:
   - CSS Custom Properties каскадируются → достаточно переопределить :root
   - Нет дублирования кода (все компоненты используют переменные)
   - Акцентные цвета одинаковые в обеих темах (контраст достаточен)
*/
[data-theme="light"] {
  /* Фоны: светлые оттенки серого */
  --color-bg-primary: #fafafa;
  --color-bg-secondary: #f0f0f0;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #f5f5f5;

  /* Границы: чёрные полупрозрачные (вместо белых) */
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);

  /* Текст: тёмные оттенки */
  --color-text-primary: #18181b;
  --color-text-secondary: #52525b;
  --color-text-muted: #a1a1aa;

  color-scheme: light;
}

/* --- Переопределения hardcoded rgba для светлой темы ---
   Некоторые элементы используют жёстко прописанные rgba-значения
   (тени, свечения, полупрозрачные фоны). Их нельзя контролировать
   через переменные, поэтому переопределяем точечно. */

/* Хедер при скролле: светлый полупрозрачный фон */
[data-theme="light"] .header--scrolled {
  background: rgba(250, 250, 250, 0.85);
}

/* Мобильное меню: светлый оверлей */
[data-theme="light"] .mobile-menu {
  background: rgba(250, 250, 250, 0.97);
}

/* Hero: glow-эффекты менее интенсивные на светлом фоне */
[data-theme="light"] .hero__bg-glow--1 {
  background: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .hero__bg-glow--2 {
  background: rgba(6, 182, 212, 0.06);
}

/* Hero: сетка — тёмные линии вместо светлых */
[data-theme="light"] .hero__bg-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Телефон-мокап: светлая тень вместо тёмной */
[data-theme="light"] .hero__phone {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Плашки внутри телефона */
[data-theme="light"] .hero__phone-title-bar {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero__phone-subtitle-bar {
  background: rgba(0, 0, 0, 0.05);
}

/* Чат-пузырь пользователя */
[data-theme="light"] .hero__phone-bubble--user {
  background: rgba(0, 0, 0, 0.04);
}

/* Индикатор скролла */
[data-theme="light"] .hero__scroll-mouse {
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .hero__scroll-dot {
  background: rgba(0, 0, 0, 0.3);
}

/* Карточки: светлые тени при hover */
[data-theme="light"] .problem__card:hover,
[data-theme="light"] .solution__card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* CTA-секция: свечение для светлого фона */
[data-theme="light"] .cta-section__glow {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06), transparent 70%);
}

/* Форма: фон инпута */
[data-theme="light"] .cta-section__input-wrapper {
  background: rgba(0, 0, 0, 0.02);
}

/* Выделение текста */
[data-theme="light"] ::selection {
  background: rgba(124, 58, 237, 0.15);
  color: #18181b;
}


/* ==========================================================================
   2. RESET / BASE
   ==========================================================================
   Минимальный сброс стилей + базовая типографика.
   Обоснование: не используем normalize.css, т.к. нужен только подмножество правил.
*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Prevent layout shift from scrollbar */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Плавный переход при смене темы (300ms для bg и цвета текста) */
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Вспомогательные стили для плавного скролла к якорям
   с учётом фиксированного хедера */
html {
  scroll-padding-top: 80px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

input {
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

::selection {
  background: rgba(124, 58, 237, 0.3);
  color: white;
}


/* ==========================================================================
   3. УТИЛИТЫ
   ==========================================================================
   Переиспользуемые компоненты: контейнер, заголовки секций, градиентный текст.
*/

/* Контейнер — ограничивает ширину контента, центрирует */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Градиентный текст — переиспользуемый эффект для акцентных слов */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Лейбл секции — маленький бейдж над заголовком */
.section-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Заголовок секции */
.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

/* Подзаголовок секции */
.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* Центрирование текста в секциях — по умолчанию центрируем всё */
.problem,
.solution,
.steps,
.proof {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.problem .section-subtitle,
.solution .section-subtitle,
.steps .section-subtitle,
.proof .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================================
   4. КНОПКИ
   ==========================================================================
   Система кнопок с модификаторами для размеров и стилей.
   Обоснование: BEM-подобная структура с модификаторами через --
*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Основная кнопка с градиентом */
.btn--primary {
  background: var(--gradient-accent);
  color: white;
  border: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 15px rgba(124, 58, 237, 0.4),
    0 0 40px rgba(124, 58, 237, 0.15);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Маленькая кнопка (хедер) */
.btn--small {
  font-size: var(--font-size-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

/* Большая кнопка (hero) */
.btn--large {
  font-size: var(--font-size-lg);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
}

/* Эффект свечения для главной CTA */
.btn--glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gradient-accent);
  z-index: -1;
  filter: blur(15px);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.btn--glow:hover::before {
  opacity: 0.8;
}

.btn__arrow {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Кнопка отправки формы */
.btn--submit {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 0.75rem 1.5rem;
  flex-shrink: 0;
}

.btn--submit .btn__text {
  transition: opacity var(--transition-fast);
}

.btn--submit.loading .btn__text {
  opacity: 0;
}

.btn--submit .btn__loader {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: var(--radius-full);
  opacity: 0;
  animation: none;
}

.btn--submit.loading .btn__loader {
  opacity: 1;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ==========================================================================
   5. HEADER
   ==========================================================================
   Фиксированная навигация: прозрачная вверху, с фоном при скролле.
   Обоснование: backdrop-filter для красивого blur-эффекта,
   но с fallback на solid color для неподдерживающих браузеров.
*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.header--scrolled {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--font-size-xl);
  z-index: var(--z-header);
}

.header__logo-icon {
  width: 36px;
  height: 36px;
}

.header__logo-text {
  letter-spacing: -0.02em;
}

/* Навигация — скрыта на мобильных */
.header__nav {
  display: none;
  gap: var(--space-2xl);
}

.header__nav-link {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.header__nav-link:hover {
  color: var(--color-text-primary);
}

/* CTA в хедере — скрыта на мобильных */
.header__cta {
  display: none;
}

/* Бургер-кнопка */
.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: var(--z-header);
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Анимация бургера при открытии */
.header__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Правая группа хедера: toggle + CTA + бургер */
.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}


/* ==========================================================================
   ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ (.theme-toggle)
   ==========================================================================
   Круглая кнопка с двумя SVG-иконками (солнце/луна).
   В тёмной теме видна иконка солнца (нажми → станет светло).
   В светлой теме видна иконка луны (нажми → станет темно).
   
   Обоснование: visibility + opacity вместо display:none —
   позволяет анимировать переход между иконками.
*/

.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: var(--z-header);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-hover);
  background: rgba(124, 58, 237, 0.08);
}

/* Иконки внутри кнопки */
.theme-toggle__icon {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

/* По умолчанию (тёмная тема): солнце видно, луна скрыта */
.theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Светлая тема: луна видна, солнце скрыто */
[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Мобильная версия toggle в мобильном меню */
.theme-toggle--mobile {
  width: auto;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
}

.theme-toggle--mobile .theme-toggle__icon {
  position: static;
}

/* Скрываем неактивную иконку в мобильной версии полностью */
.theme-toggle--mobile .theme-toggle__icon--moon {
  display: none;
}

[data-theme="light"] .theme-toggle--mobile .theme-toggle__icon--sun {
  display: none;
}

[data-theme="light"] .theme-toggle--mobile .theme-toggle__icon--moon {
  display: block;
  opacity: 1;
  transform: none;
}

.theme-toggle__label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap;
}


/* ==========================================================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ (.lang-switcher)
   ==========================================================================
   Компактная кнопка EN / RU. Активный язык подсвечивается акцентным цветом.
   Переключатель работает через data-lang на <html>:
   - По умолчанию (нет атрибута) = EN
   - data-lang="ru" = RU
*/

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-family: var(--font-family);
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
  z-index: var(--z-header);
  flex-shrink: 0;
}

.lang-switcher:hover {
  border-color: var(--color-border-hover);
  background: rgba(124, 58, 237, 0.08);
}

.lang-switcher__option {
  padding: 2px 4px;
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.lang-switcher__divider {
  opacity: 0.3;
}

/* По умолчанию (EN) — EN подсвечен */
.lang-switcher__option--en {
  color: var(--color-accent-primary);
}

.lang-switcher__option--ru {
  color: var(--color-text-muted);
}

/* Когда выбран RU — подсвечиваем RU */
[data-lang="ru"] .lang-switcher__option--en {
  color: var(--color-text-muted);
}

[data-lang="ru"] .lang-switcher__option--ru {
  color: var(--color-accent-primary);
}

/* Мобильная версия с текстовым лейблом */
.lang-switcher--mobile {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
}

.lang-switcher__label {
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-left: var(--space-xs);
}

/* Анимация появления в мобильном меню */
.mobile-menu .lang-switcher--mobile {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.mobile-menu.active .lang-switcher--mobile {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 310ms;
}


/* ==========================================================================
   МОБИЛЬНОЕ МЕНЮ
   ==========================================================================
   Полноэкранный оверлей с навигационными ссылками.
   Появляется с анимацией fade + slide.
*/

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

.mobile-menu__link {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-base);
}

.mobile-menu.active .mobile-menu__link {
  transform: translateY(0);
  opacity: 1;
}

/* Задержка анимации для последовательного появления ссылок */
.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 100ms; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 150ms; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 200ms; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 250ms; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 300ms; }

/* Toggle темы в мобильном меню — тоже анимируется при появлении */
.mobile-menu .theme-toggle--mobile {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.mobile-menu.active .theme-toggle--mobile {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 320ms;
}

.mobile-menu__link:hover {
  color: var(--color-text-primary);
}

.mobile-menu__cta {
  margin-top: var(--space-lg);
  font-size: var(--font-size-lg);
}


/* ==========================================================================
   6. HERO SECTION
   ==========================================================================
   Главный экран — занимает ~100vh, содержит заголовок и визуализацию.
   
   Обоснование компоновки:
   - На мобильных: вертикально, текст → визуал
   - На десктопе: горизонтально, текст слева — визуал справа
   - Декоративные glow-эффекты создают глубину без изображений
*/

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(80px + var(--space-2xl)) 0 var(--space-3xl);
}

/* Декоративные светящиеся круги — имитация освещения */
.hero__bg-glow {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(120px);
  pointer-events: none;
}

.hero__bg-glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(124, 58, 237, 0.15);
  top: -200px;
  right: -200px;
}

.hero__bg-glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.1);
  bottom: -100px;
  left: -100px;
}

/* Декоративная сетка */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 30%, transparent 70%);
  pointer-events: none;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xl);
  position: relative;
  z-index: var(--z-base);
}

.hero__content {
  text-align: center;
}

/* Бейдж «Набираем бета-тестеров» */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-accent-primary);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-lg) var(--space-xs) var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-primary);
  border-radius: var(--radius-full);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero__cta-hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Визуализация — имитация интерфейса на телефоне */
.hero__visual {
  width: 100%;
  max-width: 320px;
  perspective: 1000px;
}

.hero__phone {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-md);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.5);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform var(--transition-slow);
}

.hero__phone:hover {
  transform: rotateY(0) rotateX(0);
}

.hero__phone-notch {
  width: 120px;
  height: 24px;
  background: var(--color-bg-primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin: 0 auto var(--space-md);
}

.hero__phone-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
}

.hero__phone-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
}

.hero__phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  flex-shrink: 0;
}

.hero__phone-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__phone-title-bar {
  height: 10px;
  width: 70%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.hero__phone-subtitle-bar {
  height: 8px;
  width: 50%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.hero__phone-wave {
  padding: var(--space-sm) 0;
}

.hero__phone-wave svg {
  width: 100%;
  height: 40px;
}

/* Чат-пузыри — имитация диалога с ИИ */
.hero__phone-chat {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero__phone-bubble {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  max-width: 85%;
  animation: bubble-in 0.5s ease backwards;
}

.hero__phone-bubble--ai {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.2);
  align-self: flex-start;
}

.hero__phone-bubble--user {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  align-self: flex-end;
}

.hero__phone-bubble-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-accent-primary);
  margin-bottom: 2px;
}

.hero__phone-bubble:nth-child(1) { animation-delay: 0.5s; }
.hero__phone-bubble:nth-child(2) { animation-delay: 1s; }
.hero__phone-bubble:nth-child(3) { animation-delay: 1.5s; }

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Индикатор скролла */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll-dot {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   7. PROBLEM SECTION
   ==========================================================================
   Сетка из 3 карточек с проблемами. На мобильных — стек, на десктопе — ряд.
*/

.problem {
  background: var(--color-bg-secondary);
  position: relative;
}

/* Верхний градиент — плавный переход от hero */
.problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--color-bg-primary), var(--color-bg-secondary));
  pointer-events: none;
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.problem__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: left;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.problem__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.problem__card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.problem__card:hover::before {
  opacity: 1;
}

.problem__card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-lg);
}

.problem__card-icon svg {
  width: 100%;
  height: 100%;
}

.problem__card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.problem__card-text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ==========================================================================
   8. SOLUTION SECTION
   ==========================================================================
   Сетка 2x2 для 4 фич. Карточки с номерами и иконками.
*/

.solution {
  position: relative;
}

.solution__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.solution__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: left;
  transition: all var(--transition-base);
  position: relative;
}

.solution__card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.solution__card-number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.2;
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  line-height: 1;
}

.solution__card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-lg);
}

.solution__card-icon svg {
  width: 100%;
  height: 100%;
}

.solution__card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.solution__card-text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ==========================================================================
   9. STEPS (КАК ЭТО РАБОТАЕТ) SECTION
   ==========================================================================
   Вертикальный timeline с 3 шагами. Линия соединяет шаги визуально.
*/

.steps {
  background: var(--color-bg-secondary);
  position: relative;
}

.steps__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.steps__item {
  display: flex;
  gap: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-3xl);
}

.steps__item:last-child {
  padding-bottom: 0;
}

/* Номер шага */
.steps__item-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: white;
  position: relative;
  z-index: var(--z-base);
}

/* Вертикальная линия между шагами */
.steps__item-line {
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent-primary), rgba(124, 58, 237, 0.1));
}

.steps__item-content {
  flex: 1;
  padding-top: var(--space-xs);
}

.steps__item-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.steps__item-text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ==========================================================================
   10. PROOF (СОЦИАЛЬНОЕ ДОКАЗАТЕЛЬСТВО) SECTION
   ==========================================================================
   Метрики в ряд + карточки отзывов. Создают доверие к продукту.
*/

.proof__metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
}

.proof__metric {
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.proof__metric-value {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.proof__metric-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Отзывы */
.proof__testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.proof__testimonial {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: left;
  transition: all var(--transition-base);
}

.proof__testimonial:hover {
  border-color: var(--color-border-hover);
}

.proof__testimonial-quote {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.proof__testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.proof__testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.proof__testimonial-name {
  font-weight: 600;
  font-size: var(--font-size-base);
  margin-bottom: 2px;
}

.proof__testimonial-role {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}


/* ==========================================================================
   11. CTA SECTION (WAITLIST)
   ==========================================================================
   Финальный блок с формой подписки. Выделен градиентным фоном.
*/

.cta-section {
  padding: var(--space-4xl) 0;
}

.cta-section__wrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Декоративное свечение */
.cta-section__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  pointer-events: none;
}

.cta-section__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  position: relative;
}

.cta-section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  position: relative;
}

/* Форма waitlist */
.cta-section__form {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.cta-section__input-wrapper {
  display: flex;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.cta-section__input-wrapper:focus-within {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.cta-section__input {
  flex: 1;
  padding: 0.875rem var(--space-lg);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  background: transparent;
  min-width: 0;
}

.cta-section__input::placeholder {
  color: var(--color-text-muted);
}

/* Статус формы */
.cta-section__status {
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
  min-height: 1.5em;
}

.cta-section__status--success {
  color: #10B981;
}

.cta-section__status--error {
  color: #EF4444;
}

/* Счётчик людей в waitlist */
.cta-section__counter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xl);
  position: relative;
}

.cta-section__counter-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: var(--radius-full);
  animation: pulse-dot 2s ease-in-out infinite;
}


/* ==========================================================================
   12. FOOTER
   ==========================================================================
   Простой футер с 3 колонками: бренд, ссылки, контакты.
*/

.footer {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-primary);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.footer__logo-icon {
  width: 32px;
  height: 32px;
}

.footer__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__link {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-text-primary);
}

.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
}


/* ==========================================================================
   13. SCROLL REVEAL ANIMATIONS
   ==========================================================================
   Элементы с классом .reveal анимируются при появлении в viewport.
   CSS определяет начальное и конечное состояние,
   JS (IntersectionObserver) переключает класс .revealed.
   
   Обоснование: CSS-анимации производительнее JS-анимаций,
   т.к. используют GPU-compositing (transform, opacity).
*/

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки для каскадного появления в сетках */
.problem__card.reveal:nth-child(1),
.solution__card.reveal:nth-child(1),
.proof__metric.reveal:nth-child(1),
.proof__testimonial.reveal:nth-child(1) {
  transition-delay: 0ms;
}

.problem__card.reveal:nth-child(2),
.solution__card.reveal:nth-child(2),
.proof__metric.reveal:nth-child(2),
.proof__testimonial.reveal:nth-child(2) {
  transition-delay: 100ms;
}

.problem__card.reveal:nth-child(3),
.solution__card.reveal:nth-child(3),
.proof__metric.reveal:nth-child(3),
.proof__testimonial.reveal:nth-child(3) {
  transition-delay: 200ms;
}

.solution__card.reveal:nth-child(4) {
  transition-delay: 300ms;
}


/* ==========================================================================
   14. MEDIA QUERIES — АДАПТИВНОСТЬ
   ==========================================================================
   Breakpoints (mobile-first):
   - 640px — маленькие планшеты / большие телефоны (landscape)
   - 768px — планшеты (portrait)
   - 1024px — десктоп
   - 1280px — широкие экраны
*/

/* --- 640px: Средние экраны --- */
@media (min-width: 640px) {
  .problem__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof__metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof__testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-section__wrapper {
    padding: var(--space-3xl) var(--space-3xl);
  }
}

/* --- 768px: Планшеты --- */
@media (min-width: 768px) {
  .section-title {
    font-size: var(--font-size-4xl);
  }

  .hero__title {
    font-size: var(--font-size-5xl);
  }

  .problem__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .cta-section__title {
    font-size: var(--font-size-4xl);
  }
}

/* --- 1024px: Десктоп --- */
@media (min-width: 1024px) {
  /* Показываем десктопную навигацию, скрываем бургер */
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__burger {
    display: none;
  }

  /* Hero: горизонтальная компоновка */
  .hero__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero__content {
    text-align: left;
    max-width: 560px;
    flex-shrink: 0;
  }

  .hero__subtitle {
    margin: 0 0 var(--space-2xl);
  }

  .hero__actions {
    align-items: flex-start;
  }

  .hero__visual {
    max-width: 360px;
  }

  /* Стили для секций */
  .steps__timeline {
    max-width: 700px;
  }

  .proof__testimonials {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Увеличенные отступы секций */
  .problem,
  .solution,
  .steps,
  .proof {
    padding: var(--space-5xl) 0;
  }

  .cta-section {
    padding: var(--space-5xl) 0;
  }

  .cta-section__wrapper {
    padding: var(--space-4xl);
  }
}

/* --- 1280px: Широкие экраны --- */
@media (min-width: 1280px) {
  .hero__title {
    font-size: 3.75rem;
  }

  .container {
    padding: 0 var(--space-2xl);
  }
}


/* ==========================================================================
   15. ACCESSIBILITY & REDUCED MOTION
   ==========================================================================
   Уважаем настройки пользователя: отключаем анимации для тех,
   кто предпочитает минимум движения (prefers-reduced-motion).
*/

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   16. FOCUS STYLES
   ==========================================================================
   Видимые стили фокуса для навигации с клавиатуры.
   Обоснование: критично для доступности (WCAG 2.1 AA).
*/

:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

input:focus-visible {
  outline: none;
}
