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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #7e22ce 75%, #c026d3 100%);
    overflow: hidden;
}

/* Pattern Background */
.pattern-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('pattern.svg');
    background-size: 600px;
    background-repeat: repeat;
    
    
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 600px 600px;
    }
}

/* Main Card */
.card {
    position: relative;
    width: 420px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 80px rgba(126, 34, 206, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    overflow: hidden;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(126, 34, 206, 0.15) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
}

/* Logo Section */
.logo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle {
    position: relative;
    width: 160px;
    height: 160px;
    background: #ffffff;
    border-radius: 50%;
    padding: 8px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(126, 34, 206, 0.2),
        0 0 60px rgba(126, 34, 206, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
    overflow: hidden;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

.logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Content Section */
.content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(126, 34, 206, 0.1);
    letter-spacing: -0.5px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #4a4a6a;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.description {
    margin-top: 15px;
    font-size: 18px;
    color: #3f3d3d;
    line-height: 1.6;
    margin-bottom: 32px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Join Button */
.join-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #7e22ce 0%, #c026d3 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 30px;
    font-weight: 600;
    border-radius: 16px;
    box-shadow:
        0 8px 24px rgba(126, 34, 206, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.join-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.join-button:hover::before {
    left: 100%;
}

.join-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 12px 32px rgba(126, 34, 206, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.join-button:active {
    transform: translateY(0) scale(0.98);
}

.telegram-icon {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Decorative Elements */
.decoration {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-1 {
    width: 120px;
    height: 120px;
    top: -40px;
    right: -40px;
    animation: float1 6s ease-in-out infinite;
}

.decoration-2 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: -20px;
    animation: float2 5s ease-in-out infinite;
}

.decoration-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: -10px;
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-10px, 10px) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(10px, -10px) scale(1.2);
        opacity: 0.4;
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    50% {
        transform: translate(-5px, 5px) scale(1.15);
        opacity: 0.45;
    }
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        width: 90%;
        max-width: 380px;
        padding: 40px 32px;
    }

    .title {
        font-size: 28px;
    }

    .logo-container {
        width: 120px;
        height: 120px;
    }

    .logo-circle {
        width: 120px;
        height: 120px;
    }

    .pattern-background {
        background-size: 300px;
    }

    @keyframes patternMove {
        0% {
            background-position: 0 0;
        }
        100% {
            background-position: 300px 300px;
        }
    }
}

@media (max-width: 480px) {
    .card {
        padding: 32px 24px;
    }

    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .description {
        font-size: 14px;
    }

    .join-button {
        padding: 14px 36px;
        font-size: 16px;
    }
}
