*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    background: none;
    border: 0;
    font: inherit;
    font-size: 100%;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

html {
    height: 100%;
    touch-action: manipulation;
}

body {
    background-color: #030205;
    color: #fbfbfb;
    font-family: "Montserrat", sans-serif;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.layout {
    margin: 0 auto;
    max-width: 1920px;
    min-height: 100dvh;
    padding: 24px;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(231, 56, 67, 0.25), transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(200, 44, 22, 0.2), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(17, 26, 41, 0) 0%, #030205 75%);
}

.backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    padding: 48px 40px 40px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), rgba(17, 26, 41, 0.9);
    border: 1px solid rgba(231, 56, 67, 0.2);
    border-radius: 20px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(231, 56, 67, 0.1) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    animation: fadeUp 0.6s ease-out both;
}

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

.iconWrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    color: #e73843;
    filter: drop-shadow(0 6px 24px rgba(231, 56, 67, 0.45));
}

.gear {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.gear--large {
    animation: spin 8s linear infinite;
}

.gear--small {
    width: 55%;
    height: 55%;
    top: 50%;
    left: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%);
    color: #c82c16;
    opacity: 0.95;
    animation: spinReverse 5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 20px;
    background: rgba(231, 56, 67, 0.12);
    border: 1px solid rgba(231, 56, 67, 0.35);
    border-radius: 999px;
    color: #ff5560;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e73843;
    box-shadow: 0 0 0 0 rgba(231, 56, 67, 0.6);
    animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 56, 67, 0.55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 56, 67, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 56, 67, 0);
    }
}

.title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #d9e3f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.textContainer {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(251, 251, 251, 0.85);
}

.textContainer p {
    margin-bottom: 10px;
}

.textContainer p:last-child {
    margin-bottom: 0;
}

.textContainer .thanks {
    margin-top: 18px;
    font-weight: 600;
    color: #ffffff;
}

.textContainer .muted {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(251, 251, 251, 0.55);
}

@media screen and (max-width: 599px) {
    .layout {
        padding: 16px;
    }

    .card {
        padding: 36px 24px 32px;
        border-radius: 16px;
    }

    .iconWrap {
        width: 96px;
        height: 96px;
        margin-bottom: 20px;
    }

    .title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .textContainer {
        font-size: 15px;
        line-height: 1.65;
    }

    .badge {
        font-size: 11px;
        padding: 5px 12px;
    }
}

@media screen and (max-width: 380px) {
    .title {
        font-size: 22px;
    }

    .iconWrap {
        width: 84px;
        height: 84px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gear--large,
    .gear--small,
    .badge__dot,
    .card {
        animation: none;
    }
}
