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

body {
  background: #050505;
  color: #fff;
  font-family: 'Arial', sans-serif;
  overflow: hidden;
  cursor: none;
}

/* ===== Шум ===== */
.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== Canvas ===== */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* ===== Основной контент ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
  gap: 1rem;
  padding: 2rem;
}

/* ===== Свечение ===== */
.glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(100, 150, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* ===== Анимация букв ===== */
.brand {
  display: flex;
  gap: 0.05em;
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
  position: relative;
}

.letter {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #aac4ff 80%, #7a9fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  animation: letterReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: blur(8px);
  text-shadow: 0 0 60px rgba(100, 150, 255, 0.15);
}

@keyframes letterReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ===== Подзаголовок ===== */
.subtitle {
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  letter-spacing: 0.8em;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
  text-transform: uppercase;
  animation: fadeUp 2s ease-out 0.8s backwards;
  position: relative;
  margin-top: -0.2rem;
}

.subtitle::before,
.subtitle::after {
  content: '—';
  margin: 0 1.2rem;
  opacity: 0.3;
}

/* ===== Цифровой счётчик ===== */
.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.5rem;
  animation: fadeUp 2s ease-out 1.2s backwards;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.counter:hover {
  opacity: 1;
}

.counter-label {
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
  text-transform: uppercase;
}

.counter-number {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 200;
  color: rgba(255, 255, 255, 0.2);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
  transition: color 0.4s ease;
}

.counter:hover .counter-number {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Социальные сети ===== */
.social-links {
  display: flex;
  gap: 2rem;
  margin-top: 0.8rem;
  animation: fadeUp 2s ease-out 1.6s backwards;
}

.social-link {
  color: rgba(255, 255, 255, 0.15);
  width: 26px;
  height: 26px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link svg {
  width: 100%;
  height: 100%;
  transition: all 0.4s ease;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 150, 255, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: scale(0.8);
}

.social-link:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.social-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.social-link:hover svg {
  filter: drop-shadow(0 0 20px rgba(100, 150, 255, 0.2));
}

.social-link:active {
  transform: scale(0.9);
}

.social-links .social-link:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: rgba(255, 255, 255, 0.05);
}

/* ===== Индикатор скролла ===== */
.scroll-indicator {
  position: absolute;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 2s ease-out 2s backwards;
}

.scroll-text {
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.08);
  font-weight: 300;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== Footer ===== */
.footer {
  position: fixed;
  bottom: 30px;
  right: 40px;
  z-index: 4;
  animation: fadeUp 2s ease-out 2.2s backwards;
}

.footer-year {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.06);
  font-weight: 300;
  transition: color 0.4s ease;
}

.footer-year:hover {
  color: rgba(255, 255, 255, 0.2);
}

/* ===== Световая полоса ===== */
.light-bar {
  position: fixed;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(100, 150, 255, 0.02), rgba(150, 200, 255, 0.04), transparent);
  transform: skewX(-25deg);
  z-index: 1;
  pointer-events: none;
  animation: lightSweep 12s ease-in-out infinite;
}

@keyframes lightSweep {
  0% { left: -80%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

/* ===== Анимации ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ===== Кастомный курсор ===== */
.custom-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(100, 150, 255, 0.06) 0%, transparent 70%);
  box-shadow: 0 0 30px rgba(100, 150, 255, 0.03);
}

.custom-cursor.hover {
  width: 44px;
  height: 44px;
  border-color: rgba(100, 150, 255, 0.25);
  background: radial-gradient(circle, rgba(100, 150, 255, 0.12) 0%, transparent 70%);
  box-shadow: 0 0 60px rgba(100, 150, 255, 0.08);
}

/* ============================================ */
/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
/* ============================================ */

@media (max-width: 768px) {
  .hero {
    gap: 0.8rem;
    padding: 1.5rem;
  }

  .brand {
    gap: 0.03em;
    font-size: clamp(2.8rem, 12vw, 4rem);
    letter-spacing: 0.05em;
  }

  .subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.4em;
  }
  
  .subtitle::before,
  .subtitle::after {
    margin: 0 0.6rem;
  }

  .counter {
    margin-top: 0.3rem;
  }

  .counter-label {
    font-size: 0.4rem;
    letter-spacing: 0.25em;
  }

  .counter-number {
    font-size: 1.5rem;
  }

  .social-links {
    gap: 1.5rem;
    margin-top: 0.5rem;
  }

  .social-link {
    width: 22px;
    height: 22px;
  }

  .social-links .social-link:not(:last-child)::after {
    right: -0.75rem;
    height: 40%;
  }

  .scroll-indicator {
    bottom: 35px;
  }

  .scroll-text {
    font-size: 0.4rem;
  }

  .scroll-line {
    height: 30px;
  }

  .footer {
    bottom: 20px;
    right: 20px;
  }

  .footer-year {
    font-size: 0.5rem;
  }

  .glow {
    width: 80vw;
    height: 80vw;
    max-width: 500px;
    max-height: 500px;
    filter: blur(60px);
  }

  .light-bar {
    width: 80%;
    transform: skewX(-35deg);
    animation-duration: 15s;
  }

  .custom-cursor {
    display: none;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .brand {
    font-size: 2.2rem;
    gap: 0.02em;
  }

  .subtitle {
    font-size: 0.5rem;
    letter-spacing: 0.3em;
  }

  .subtitle::before,
  .subtitle::after {
    display: none;
  }

  .counter-number {
    font-size: 1.2rem;
  }

  .social-links {
    gap: 1.2rem;
  }

  .social-link {
    width: 20px;
    height: 20px;
  }

  .scroll-indicator {
    bottom: 25px;
  }

  .footer {
    bottom: 15px;
    right: 15px;
  }

  .footer-year {
    font-size: 0.4rem;
  }
}

/* Альбомная ориентация на телефонах */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    gap: 0.4rem;
    padding: 1rem;
  }

  .brand {
    font-size: clamp(2rem, 10vh, 3.5rem);
  }

  .subtitle {
    font-size: 0.5rem;
  }

  .counter {
    margin-top: 0.2rem;
  }

  .counter-number {
    font-size: 1rem;
  }

  .social-links {
    margin-top: 0.3rem;
    gap: 1rem;
  }

  .social-link {
    width: 18px;
    height: 18px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .scroll-line {
    height: 20px;
  }

  .footer {
    bottom: 15px;
    right: 15px;
  }
}