@font-face {
    font-family: 'BrittiSans';
    src: url('fonts/britti-.woff2') format('woff2'),
         url('fonts/britti-sans.woff2') format('woff2');
    font-weight: 300 600;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'BrittiSans', 'BrittiSans Fallback', 'Inter', 'Inter Fallback', sans-serif;
    overflow-x: hidden;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}


.notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgb(217, 119, 6) 0%, rgb(180, 83, 9) 100%);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
}

.notification-bar.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.notification-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 0.875rem;
    position: relative;
}

.notification-content .message {
    color: #fefefe;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.notification-content .message a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.notification-content .message a:hover {
    color: #fdfdfd;
}

.notification-content .close-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    position: absolute;
    right: 0;
}

.notification-content .close-btn:hover {
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Изначально прячем элемент */
  opacity: 0;
  transform: translateY(20px) scale(0);
  
  /* Анимация */
  animation: fadeInScaleUp 1.2s ease forwards;
  animation-delay: 1.2s;
}

.hero-logo svg {
  width: 100%;
  height: 100%;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




.hero-title {
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 300;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-title .line {
    display: flex;
    gap: 0.5rem;
}

.hero-title .line span {
    display: inline-block;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #e0d5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}
.hero-title .line span:first-child {
    margin-right: 0.5rem; /* Добавляем пробел после первого элемента */
}

/* Задержки внутри строки */
.hero-title .line:nth-child(1) span:nth-child(1) { animation-delay: 0s; }
.hero-title .line:nth-child(1) span:nth-child(2) { animation-delay: 0.1s; }
.hero-title .line:nth-child(1) span:nth-child(3) { animation-delay: 0.2s; }

.hero-title .line:nth-child(2) span:nth-child(1) { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) span:nth-child(2) { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) {
    justify-content: center;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-subtitle span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* Задаём задержки для каждого слова, чтобы появлялись по очереди */
.hero-subtitle span:nth-child(1) { animation-delay: 0.8s; }
.hero-subtitle span:nth-child(2) { animation-delay: 0.9s; }
.hero-subtitle span:nth-child(3) { animation-delay: 1s; }
.hero-subtitle span:nth-child(4) { animation-delay: 1.1s; }
.hero-subtitle span:nth-child(5) { animation-delay: 1.2s; }
.hero-subtitle span:nth-child(6) { animation-delay: 1.3s; }
.hero-subtitle span:nth-child(7) { animation-delay: 1.4s; }


.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  height: 2.375rem;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: white;
  background: rgba(139, 92, 246, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(10px);
  user-select: none;
  position: relative;

  /* Изначально прячем элемент */
  opacity: 0;
  transform: translateY(20px) scale(0);

  animation: fadeInScaleUp 0.6s ease forwards;
  animation-delay: 1.2s;
}

@keyframes fadeInScaleUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.hero-cta:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

.hero-cta:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none;
}

.hero-cta:hover:not(:disabled) {
    background: rgba(139, 92, 246, 1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Ключевые кадры анимации */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;

}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

        .modal {
            background: #0a0b0d;
            border-radius: 24px;
            width: 100%;
            max-width: 460px;
            max-height: 90vh;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .modal-header {
            display: flex;
            justify-content: flex-end;
            padding: 20px 20px 0;
        }

        .close-btn {
            background: transparent;
            border: none;
            color: #6b7280;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #9ca3af;
        }

        .close-btn svg {
            width: 20px;
            height: 20px;
        }

        .modal-content {
            padding: 0 40px 40px;
            text-align: center;
        }

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 40px;
        }

        .logo-icon {
            width: 148px;
            height: 48px;
        }

        .logo-text {
            font-size: 32px;
            font-weight: 600;
            color: white;
            letter-spacing: 0.5px;
        }

        .title {
            font-size: 28px;
            font-weight: 500;
            color: white;
            margin-bottom: 36px;
        }

        .wallet-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 40px;
        }

        .wallet-btn {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            cursor: pointer;
            transition: all 0.2s;
            color: white;
            font-size: 16px;
            font-weight: 500;
        }

        .wallet-btn:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-1px);
        }

        .wallet-btn:active {
            transform: translateY(0);
        }

        .wallet-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .footer {
            padding: 24px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }

        .footer-text {
            color: #6b7280;
            font-size: 13px;
        }

        .privy-logo {
            width: 120px; /* Устанавливаем ширину */
            height: auto; /* Сохраняем пропорции */
        }
        .footer a {
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: opacity 0.2s;
        }

        .footer a:hover {
            opacity: 0.8;
        }
    .telegram-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #0088cc; /* фирменный цвет Telegram */
    border-radius: 50%; /* делает круг */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.telegram-float svg {
    width: 28px;
    height: 28px;
}

.telegram-float:hover {
    transform: scale(1.1);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-10px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 1.5rem;
    }

    .hero-logo::before {
        width: 22px;
        height: 22px;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
    }

    .hero-cta {
        padding: 0.875rem 2.5rem;
        font-size: 1rem;
    }
}
/* Стиль для модалки на мобильных устройствах */
@media (max-width: 420px) {
    .modal-overlay {
        display: flex;
        justify-content: flex-end; /* Модалка будет выезжать снизу */
        align-items: flex-end; /* Модалка будет позиционироваться снизу */
        padding-bottom: 20px;
    }

    .modal {
        margin-bottom: -100px;
        width: 100%;
        max-width: 100%;
        max-height: 80vh; /* Ограничение высоты модалки */
        border-radius: 16px 16px 0 0; /* Скругляем только верхние углы */
        transform: translateY(100%); /* Изначально скрываем модалку ниже экрана */
        animation: slideUp 0.4s ease forwards; /* Анимация для подъема модалки */
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3); /* Тень сверху для эффекта подъема */
    }

    /* Анимация появления модалки снизу */
    @keyframes slideUp {
        from {
            transform: translateY(100%); /* Начинаем ниже экрана */
        }
        to {
            transform: translateY(0); /* Поднимаем модалку в видимую область */
        }
    }

    .modal-header {
        padding: 12px;
    }

    .modal-content {
        padding: 20px 20px 40px;
    }

    .wallet-buttons {
        gap: 8px;
    }
}
