/* ==== ОБНУЛЕНИЕ ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: radial-gradient(ellipse at center, #000 0%, #0a0a0a 100%);
  font-family: 'Arial', sans-serif;
  color: #fff;
  overflow: hidden;
}

/* ==== CANVAS ==== */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  z-index: 0;
}

#background-canvas { z-index: 0; }
#ripples { z-index: 1; }
#trail { z-index: 2; }

/* ==== КОНТЕЙНЕР ==== */
.container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 100px 20px 20px; /* отступ сверху — чтобы логотипу было место */
  text-align: center;
}

.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 120px;
  z-index: 10;
}

/* ==== ЗАГОЛОВОК ==== */
h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #00f6ff, 0 0 20px #00f6ff;
}

/* ==== БАННЕР ==== */
.banner {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  overflow: hidden;
  animation: floatBanner 6s ease-in-out infinite;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==== КНОПКИ ==== */
.buttons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 12px 30px;
  font-size: 16px;
  border: 2px solid #00f6ff;
  background: transparent;
  color: #00f6ff;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn:hover {
  background: #00f6ff;
  color: #000;
  box-shadow: 0 0 15px #00f6ff, 0 0 30px #00f6ff;
  animation: flicker 0.15s infinite alternate, shake 0.2s infinite;
}

/* ==== АНИМАЦИИ ==== */
@keyframes floatBanner {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes flicker {
  0%   { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes shake {
  0%   { transform: translate(0); }
  50%  { transform: translate(1px, -1px); }
  100% { transform: translate(-1px, 1px); }
}

/* ==== АДАПТИВ ==== */
@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  .container {
    padding-top: 120px;
  }

  .logo {
    width: 70px;
    top: 5px;
    left: 8px;
  }

  .buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  .btn {
    width: 200px;
    padding: 14px;
    font-size: 16px;
  }

  .banner {
    max-width: 90vw;
  }
}
