* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: url("../photo/background.jpg") no-repeat center center / cover;
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
    color: white;
}


/* затемнення */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 0;
}

/* фон glow */
body::before {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent);
    top: 20%;
    left: 10%;
    filter: blur(100px);
    z-index: 0;
}


/* логотип */
.logo {
    position: relative;
    display: inline-block;
    font-size: 28px;
    letter-spacing: 3px;
    font-weight: 600;
    margin: 30px 40px;
    z-index: 2;
    text-decoration: none;
    color: white;
}

/* контейнер */
.container {
    position: relative;
    z-index: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ОСНОВНА РАМКА */
.box {
    max-width: 800px;
    width: 100%;
    padding: 25px;

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.5);

    line-height: 1.6;

    position: relative;
    overflow: hidden;
}

/* glow рамка */
.box::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;

    background: linear-gradient(
        120deg,
        transparent 30%,
        #8b5cf6,
        transparent 70%
    );

    background-size: 200% 200%;

    -webkit-mask: 
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    opacity: 0; /* ⬅️ було світіння постійно — тепер вимкнено */
}

/* 🔥 включається тільки при наведенні */
.box:hover::before {
    opacity: 1;
    animation: borderRun 1.2s linear infinite;
}
.box:hover {
    box-shadow: 0 0 25px rgba(139,92,246,0.5);
}
/* заднє світіння */
.box::after {
    content: "";
    position: absolute;
    inset: -25px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

/* текст */
.box p {
    margin-bottom: 12px;
}

.box p:last-child {
    margin-bottom: 0;
}
.box ol {
    padding-left: 20px;
}

.box li {
    margin-bottom: 10px;
}

.box ul {
    list-style: none;      /* прибирає крапки */
    padding-left: 20px;    /* залишає відступ */
    margin-top: 8px;
}


/* кнопка */
.btn {
    position: relative;
    margin-top: 25px;
    padding: 22px 120px;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.15);

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);

    color: white;
    font-size: 20px;
    cursor: pointer;

    overflow: hidden;
    transition: 0.3s;
}

/* glow кнопки */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;

    background: linear-gradient(
        120deg,
        transparent 30%,
        #8b5cf6,
        transparent 70%
    );

    background-size: 200% 200%;

    -webkit-mask: 
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    opacity: 0;
}

.btn:hover::before {
    opacity: 1;
    animation: borderRun 1.2s linear infinite;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(139,92,246,0.5);
}
.tg-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.tg-link:hover {
    text-shadow: 0 0 10px #8b5cf6;
}
body::before,
body::after {
    pointer-events: none;
}

/* анімація */
@keyframes borderRun {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    body::before {
        width: 320px;
        height: 320px;
        top: 8%;
        left: 50%;
        transform: translateX(-50%);
        filter: blur(80px);
    }

    .logo {
        display: block;
        margin: 24px auto 8px;
        width: fit-content;
        font-size: 22px;
        letter-spacing: 2px;
    }

    .container {
        padding: 16px 16px 32px;
    }

    .box {
        padding: 18px;
        border-radius: 22px;
        line-height: 1.55;
        font-size: 14px;
    }

    .box ul,
    .box ol {
        padding-left: 16px;
    }

    .btn {
        width: min(100%, 340px);
        padding: 18px 24px;
        font-size: 16px;
    }

    .btn:hover {
        transform: none;
    }
}
