@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary: #091433;
    --light: #f1f8ff;
    --dark: #111a24;
    --gradient: linear-gradient(135deg, #091433 0%, #1e3c72 50%, #2a5298 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Sans', sans-serif;
    background: var(--gradient);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Анімовані фонові елементи */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.wrapper-1 {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.wrapper-2 {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(9, 20, 51, 0.2),
        0 15px 30px rgba(9, 20, 51, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

.wrapper-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: shimmer 2s infinite;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Декоративні елементи */
.wrapper-2::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(9, 20, 51, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

h1 {
    font-family: 'Fira Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
    animation: fadeInScale 1s ease-out 0.3s both;
}

.wrapper-2 p {
    font-size: 1.2rem;
    color: #555;
    font-family: 'Fira Sans', sans-serif;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.go-home {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    text-transform: uppercase;
    padding: 16px 40px;
    margin-top: 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.go-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.go-home:hover::before {
    left: 100%;
}

.go-home:hover {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(9, 20, 51, 0.2);
}

.go-home:active {
    transform: translateY(0);
}

/* Адаптивний дизайн */
@media (max-width: 768px) {
    .wrapper-2 {
        padding: 40px 30px;
        margin: 20px;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    
    .wrapper-2 p {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .go-home {
        padding: 14px 35px;
        font-size: 13px;
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .wrapper-2 {
        padding: 35px 25px;
        margin: 15px;
    }
    
    h1 {
        font-size: 2.3rem;
        margin-bottom: 18px;
    }
    
    .wrapper-2 p {
        font-size: 1rem;
    }
    
    .go-home {
        padding: 12px 30px;
        font-size: 12px;
        border-radius: 40px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 2rem;
    }
    
    .wrapper-2 p {
        font-size: 0.95rem;
    }
}

/* Анімація завантаження */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Додаткові покращення для доступності */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Додаткові стилі для кращого вигляду */
a {
    text-decoration: none;
}

.wrapper-2:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 60px rgba(9, 20, 51, 0.25),
        0 20px 40px rgba(9, 20, 51, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
