/* ресет + палитра */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
img {
  user-select: none;
  -webkit-user-drag: none;
}
::selection {
  background-color: var(--selection-color);
  color: var(--black-color);
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background-color: var(--bg-block-color);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--stroke-color);
}

:root {
  --white-color: #FFFFFF;
  --gray-color: #808080;
  --black-color: #000000;

  --accent-color-1: #2569ED;
  --accent-color-2: #3D7DFB;
  --selection-color: #9bb9f5cc;

  --bg-color: #121212;
  --navbar-color: rgba(25, 25, 25, 0.8);
  --learnmore-button-color: #1F1F1F;
  --bg-block-color: #1D1D1D;
  --bg-footer-color: #191919;

  --stroke-color: #2A2A2A;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-color);
  color: var(--white-color);
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* прелоадер */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 1s ease;
}
.preloader-bar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
}
.preloader-bar {
  height: 100%;
  width: 0;
  background: var(--accent-color-1);
  transition: width 0.3s ease;
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* glow */
.hero-container {
  position: relative;
  overflow: hidden;
}
.hero-container::before {
  content: "";
  pointer-events: none;
  position: absolute;
  opacity: 0.7;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px; 
  height: 1000px;
  background: radial-gradient(circle, var(--accent-color-1) 0%, transparent 50%);
  filter: blur(200px);
  z-index: 0;
}

/* навбар */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: var(--navbar-color);
  border: 2px solid var(--stroke-color);
  border-radius: 15px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

.navbar .logo img {
  height: 40px;
  margin-top: 4px;
}

.menu-toggle {
  display: none;
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-left: auto;
  transition: transform 0.3s ease;
}
.spacer {
  flex: 1;
  height: 20px;
  width: 2px;
  background: var(--gray-color);
  margin: 0 -2px;
}

.navbar .nav-link {
  position: relative;
  color: var(--white-color);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.1px;
  width: 100%;
  background: var(--accent-color-1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.navbar .nav-link:hover {
  color: var(--accent-color-1);
}
.navbar .nav-link:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* хиро */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 11rem 1rem 9rem;
}
.hero .title {
  font-size: 5rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
  cursor: default;
  max-width: 900px;
  margin: 0 auto 1rem;
}
.hero .title .accent2 {
  color: var(--accent-color-2);
}
.hero .subtitle {
  font-size: 1.4rem;
  color: var(--gray-color);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

/* кнопки */
.buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 15px;
  transition: background 0.3s ease, color 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}
.btn i {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.btn-join {
  background: var(--accent-color-1);
  color: var(--white-color);
}
.btn-join:hover {
  background: var(--accent-color-2);
}
.btn-learnmore {
  background: var(--learnmore-button-color);
  color: var(--white-color);
  border: 2px solid var(--stroke-color);
}
.btn-learnmore:hover {
  background: var(--bg-block-color);
  padding-right: 1.8rem;
}
.btn-learnmore:hover i {
  transform: translateX(6px);
}

/* особенности */
.features {
  background: var(--bg-color);
  padding: 6rem 1rem 4rem;
  text-align: center;
}
.features-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  cursor: default;
}
.features-subtitle {
  font-size: 1.4rem;
  color: var(--gray-color);
  margin-bottom: 3rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.features-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 520px));
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  position: relative;
  background: var(--bg-block-color);
  border: 2px solid var(--stroke-color);
  border-radius: 12px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.feature-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--accent-color-1) 0%, transparent 50%);
  filter: blur(150px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.feature-card:hover::before {
  opacity: 0.7;
}
.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.feature-header h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  cursor: default;
}
.icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--bg-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.icon-wrap .bi {
  font-size: 1.5rem;
  color: var(--accent-color-1);
}
.content {
  position: relative;
  z-index: 1;
  text-align: left;
}
.content p {
  color: var(--gray-color);
  line-height: 1.5;
}
.feature-card--full {
  grid-column: 1 / -1;
  max-width: 700px;
  margin: 0 auto;
}

/* галерея */
.gallery {
  background: var(--bg-color);
  padding: 6rem 1rem 4rem;
  text-align: center;
}
.gallery-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  cursor: default;
}
.gallery-subtitle {
  font-size: 1.4rem;
  color: var(--gray-color);
  margin-bottom: 3rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.gallery-container {
  width: 100%;
  overflow: hidden;
  background-color: transparent;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.gallery-track {
  display: flex;
}

.gallery-track img {
  height: 300px;
  border-radius: 15px;
  object-fit: cover;
  margin-right: 1rem;
}

/* футер */
.footer {
  background: var(--bg-footer-color);
  border-top: 2px solid var(--stroke-color);
  color: var(--white-color);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 300px;
}
.footer-logo img {
  height: 40px;
}
.footer-note {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white-color);
}
.footer-copy {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-color);
}
.footer-links {
  margin-left: 2rem;
}
.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.links-columns {
  display: flex;
  gap: 2rem;
}
.links-columns ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.links-columns a {
  text-decoration: none;
  color: var(--white-color);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.links-columns a:hover {
  color: var(--accent-color-1);
}

.footer-extra {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin-left: auto;
}
.footer-credit {
  position: relative;
  display: inline-block; 
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-color);
  margin-bottom: 0.5rem;
  overflow: hidden;
  cursor: default;
}

.footer-credit::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  color: transparent; 
  
  background: 
    linear-gradient(
      120deg,
      rgba(255,255,255,0) 30%,
      rgba(255,255,255,0.8) 50%,
      rgba(255,255,255,0) 70%
    )
    no-repeat;
  background-size: 200% 100%;
  
  -webkit-background-clip: text;
  background-clip: text;
  
  animation: shimmer 3s ease infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  60% { background-position: -100% 0; }
  100% { background-position: -100% 0; }
}

.footer-extra a {
  margin-left: 52px;
}
.footer-extra img {
  display: block;
  height: 48px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.footer-extra img:hover {
  transform: scale(1.1);
}

/* адаптация */

@media (min-width: 1921px) {
  .hero {
    padding: 15rem 1rem 17rem;
  }

  .hero-container::before {
    width: 1200px;
    height: 1200px;
    filter: blur(300px);
  }
  
  .hero .title {
    font-size: 6rem;
    max-width: 1100px;
  }
  
  .features-title,
  .gallery-title {
    font-size: 5rem;
  }
  
  .footer-container {
    max-width: 1400px;
  }
}

@media (max-width: 1440px) {
  .hero .title {
    font-size: 4.5rem;
  }
  
  .features-title,
  .gallery-title {
    font-size: 3.5rem;
  }
  
  .features-list {
    grid-template-columns: repeat(2, minmax(250px, 450px));
  }
  
  .btn {
    font-size: 1.1rem;
    padding: 0.9rem 1.3rem;
  }
  
  .nav-list {
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .navbar {
    padding: 0.75rem 1rem;
    gap: 1.5rem;
  }
  
  .nav-list {
    gap: 1.5rem;
  }
  
  .hero {
    padding: 10rem 1rem 9rem;
  }
  
  .hero .title {
    font-size: 3.8rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .features,
  .gallery {
    padding: 4rem 1rem 3rem;
  }
  
  .features-list {
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .gallery-track img {
    height: 250px;
  }
  
  .footer-container {
    gap: 2rem;
  }
  
  .footer-links {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 1rem;
    width: 95%;
    padding: 0.5rem 1rem;
  }
  .navbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
  }
  
  .navbar .logo img {
    height: 36px;
  }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 20;
  }
  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    border-radius: 2px;
  }

  .nav-list {
    position: absolute;
    top: 150%;
    left: 0;
    width: 100%;
    background: var(--bg-block-color);
    border: 2px solid var(--stroke-color);
    border-radius: 15px;
    flex-direction: column;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 15;
    align-items: center;
  }

  .nav-list a {
    width: 95%;
    background: var(--bg-block-color);
    filter: brightness(1.2);
    border-radius: 10px;
  }
  .nav-list li {
    margin: 0.5rem 1.5rem;
  }

  .nav-list.active {
    opacity: 1;
    visibility: visible;
  }
  
  .spacer {
    display: none;
  }
  
  .hero {
    padding: 9rem 1rem 7rem;
  }
  
  .hero .title {
    font-size: 3.2rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
    max-width: 500px;
  }
  
  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .features-list {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .feature-card--full {
    grid-column: auto;
    max-width: 500px;
  }
  
  .gallery-track img {
    height: 200px;
  }
  
  .footer-container {
    flex-direction: column;
  }
  
  .footer-left {
    max-width: 100%;
  }
  
  .footer-links {
    width: 100%;
  }
  
  .footer-extra {
    margin-left: 0;
  }
  .footer-extra a {
    margin-left: 0;
  }
  
  .navbar .nav-link:hover {
    color: var(--white-color);
  }
  .navbar .nav-link:hover::after {
    transform: scaleX(0);
  }
  .btn:hover {
    background: initial;
    color: initial;
  }
  .btn-join:hover {
    background: var(--accent-color-1);
    color: var(--white-color)
  }
  .btn-learnmore:hover {
    background: var(--learnmore-button-color);
    color: var(--white-color);
    padding-right: 1.5rem;
  }
  .btn-learnmore:hover i {
    transform: none;
  }
  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }
  .feature-card:hover::before {
    opacity: 0;
  }
  .links-columns a:hover {
    color: var(--white-color);
  }
  .footer-extra img:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    height: auto;
  }
  
  .navbar-inner {
    order: 3;
    width: 100%;
  }
  
  .nav-list {
    top: 150%;
    left: 0;
    width: 100%;
  }
  
  .hero {
    padding: 9rem 1rem 9rem;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .features-title,
  .gallery-title {
    font-size: 2.8rem;
  }
  
  .features-subtitle,
  .gallery-subtitle {
    font-size: 1.1rem;
  }

  .feature-card h3 {
    font-size: 1rem;
  }
  
  .gallery-track img {
    height: 180px;
  }
  
  .footer-note {
    font-size: 1rem;
  }
}