/* Общие стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    text-align: center;
    max-width: 500px;
    padding: 20px;
}

/* Глитч-текст */
.glitch {
    position: relative;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    animation: noise-anim 3s infinite alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    animation: noise-anim 2s infinite alternate-reverse;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes noise-anim {
    0%   { clip-path: inset(0 100% 0 0); }
    25%  { clip-path: inset(25% 75% 25% 0); }
    50%  { clip-path: inset(50% 50% 50% 0); }
    75%  { clip-path: inset(75% 25% 75% 0); }
    100% { clip-path: inset(0 0 0 0); }
}

.subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #ccc;
}

/* Форма подписки */
form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

input[type="email"] {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    width: 220px;
    outline: none;
    font-size: 1rem;
}

button {
    padding: 10px 15px;
    background-color: #00bcd4;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #0097a7;
}

#message {
margin-top: 15px;
font-style: italic;
color: #00e676;
}
