/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

/* Background Mosaic */
.background-mosaic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 2px;
    opacity: 0.12;
    filter: blur(1px) grayscale(30%);
}

.background-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
}

/* Overlay */
.background-mosaic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: -1;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 1;
}

.main-content {
    text-align: center;
    max-width: 550px;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 60px 45px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shimmer 4s infinite;
}

/* Typography */
.title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.intro-text {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(15px);
    color: #ffffff;
    padding: 18px 42px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.telegram-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.cta-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

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

.cta-button:active {
    transform: translateY(-1px);
}

/* Animations */
@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .background-mosaic {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(7, 1fr);
    }
    
    .main-content {
        padding: 45px 35px;
        margin: 20px;
        border-radius: 20px;
    }
    
    .title {
        font-size: 3.2rem;
        margin-bottom: 25px;
    }
    
    .intro-text {
        font-size: 1.08rem;
        margin-bottom: 35px;
    }
    
    .cta-button {
        padding: 16px 38px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .background-mosaic {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(8, 1fr);
        gap: 1px;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .main-content {
        padding: 40px 30px;
        margin: 15px;
        border-radius: 18px;
    }
    
    .title {
        font-size: 2.8rem;
        margin-bottom: 22px;
        letter-spacing: -0.5px;
    }
    
    .intro-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 32px;
    }
    
    .cta-button {
        padding: 15px 32px;
        font-size: 0.95rem;
        border-radius: 45px;
    }
}

@media (max-width: 320px) {
    .title {
        font-size: 2.4rem;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    .main-content {
        padding: 35px 25px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
}

/* High-end devices */
@media (min-width: 1200px) {
    .background-mosaic {
        grid-template-columns: repeat(9, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
    
    .main-content {
        padding: 75px 55px;
        max-width: 650px;
    }
    
    .title {
        font-size: 4.2rem;
        margin-bottom: 35px;
    }
    
    .intro-text {
        font-size: 1.25rem;
        margin-bottom: 45px;
    }
    
    .cta-button {
        padding: 20px 48px;
        font-size: 1.1rem;
    }
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    .cta-button:hover {
        transform: none;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    }
    
    .main-content::before {
        animation: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .main-content::before {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body {
        background: #000000;
    }
    
    .main-content {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid #ffffff;
    }
    
    .cta-button {
        background: #ffffff;
        color: #000000;
        border: 2px solid #ffffff;
    }
}

