@import url("./fonts/fonts.css");

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

:root {
    --bg: #060711;
    --panel: #0d1120d1;
    --line: #ffffff29;
    --text: #f6f7fb;
    --muted: #a9b0c7;
    --accent: #5b7cfa;
    --accent-hot: #ff4fd8;
    --accent-fresh: #27e0b8;

    --accent2: #ffcfd2;
    --accent2-hot: #a3c4f3;
    --accent2-fresh: #b9fbc0;
}

body {
    min-height: 100dvh;
    font-family: "Space Grotesk", Arial, sans-serif;
    background: #181818;
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(#ffffff09 1px, transparent 1px),
        linear-gradient(90deg, #ffffff09 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000000bf, transparent);
}

#root {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px;
    text-align: center;
}

#root::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url('probleme.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;

    opacity: 0;
    z-index: -1;
    animation: probleme 10000ms 3000ms ease forwards;
}

.panel {
    width: min(100%, 760px);
    padding: clamp(28px, 7vw, 72px) 0;
}

.title {
    margin-top: 24px;
    font-size: clamp(2.6rem, 8vw, 6.6rem);
    line-height: 0.92;
    font-weight: 700;
    text-wrap: balance;
    color: transparent;
    background: linear-gradient(90deg, var(--accent2-fresh), var(--accent2), var(--accent2-hot));
    -webkit-background-clip: text;
    background-clip: text;
    padding-bottom: 0.7rem;
}

.subtitle {
    margin-top: 26px;
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 600;
}

.bold {
    margin-top: 10px;
    font-size: clamp(1.8rem, 5vw, 3.6rem);
    line-height: 1;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(90deg, var(--accent-fresh), var(--accent), var(--accent-hot));
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 12px 28px #5b7cfa47);
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;

    margin-top: 24px;
    padding: 12px 18px;

    color: #fff;
    background: rgba(255, 0, 0, 0.12);
    border: 1px solid rgba(255, 0, 0, 0.45);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.35);
}

.footer-gif {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 520px) {
    #root {
        padding: 18px;
    }

    .panel {
        border-radius: 20px;
    }
}

@keyframes probleme {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.3;
    }
}