@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
  --bg: #0d0d0f;
  --accent1: #e73c7e;
  --accent2: #23a6d5;
  --text: #fff;
}

* {
  -webkit-user-select: none;
  /* Chrome, Safari, Opera */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version */
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  text-align: center;
}

.no-scroll {
  overflow: hidden;
}

h1,
h2,
p {
  margin: 10px 0;
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  /* ← на весь экран */
  padding: 0;
  text-align: center;
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Таймер сверху */
.countdown {
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(90deg, #e73c7e, #23a6d5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 25px;
  border-radius: 15px;
  display: inline-block;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(231, 60, 126, 0.3);
  margin-bottom: 25px;

  transform: translateY(-50px);
  opacity: 0;
  animation: slideDown 0.8s ease forwards;
  animation-delay: 0.2s;
}

@keyframes slideDown {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Фоновые частицы */
#bgCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  animation: fadeCanvas 1s ease forwards;
  animation-delay: 0.2s;
}

@keyframes fadeCanvas {
  to {
    opacity: 0.25;
  }
}

/* Анимированный заголовок */
.hero-section h1 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #e73c7e, #23a6d5, #e73c7e);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flow 6s ease-in-out infinite;
  margin-bottom: 10px;
}

@keyframes flow {
  0% {
    background-position: 0%;
  }

  50% {
    background-position: 100%;
  }

  100% {
    background-position: 0%;
  }
}

.subtitle {
  color: #aaa;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

/* Кнопка */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 32px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: white;
  text-decoration: none;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent1);
}

/* === Видеофон === */
#bgVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#bgVideo[poster] {
  opacity: 1;
  background-size: cover;
  background-position: center;
}

#bgVideo:not([poster]) {
  opacity: 1;
}

/* === Затемнение === */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.95);
  /* ← регулируй уровень затемнения здесь */
  z-index: 1;
}

/* Анимация перехода между страницами */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e73c7e, #23a6d5, #e73c7e);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s ease-in-out;
    pointer-events: none;
}

.page-transition.active {
    transform: scaleY(1);
    transform-origin: top;
}

/* Анимация для ссылки перехода */
.fade-link {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.fade-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
}

.fade-link:hover::before {
    left: 100%;
}

/* === 📱 АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА === */

/* Базовые плавные размеры текста (чтобы не было скачков между устройствами) */
html {
  font-size: clamp(14px, 1.2vw + 0.5rem, 18px);
}

/* Контент в центре, с безопасными отступами по краям */
.hero-content {
  padding: 0 20px;
  text-align: center;
}

/* Таймер и текст на мобильных — меньше и аккуратнее */
@media (max-width: 768px) {
  .countdown {
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(231, 60, 126, 0.25);
    margin-bottom: 15px;
  }

  .hero-section h1 {
    font-size: 1.9rem;
    margin-bottom: 8px;
  }

  .subtitle {
    font-size: 0.85rem;
    margin-bottom: 18px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    border-radius: 30px;
  }

  #bgVideo {
    object-position: center center;
  }
}

/* Очень маленькие экраны (телефоны <480px) */
@media (max-width: 480px) {
  .countdown {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.75rem;
  }

  .btn {
    width: 80%;
    max-width: 280px;
    padding: 12px;
  }
}

/* Плавное приближение видео — эффект "Apple" */
#bgVideo {
  animation: zoomBg 20s ease-in-out infinite alternate;
}

@keyframes zoomBg {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* Эффекты */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.fade-in-page {
  animation: fadeIn 0.8s ease forwards;
}

.fade-out {
  animation: fadeOut 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}