/* ===== Базовые настройки ===== */
* {
    box-sizing: border-box;
}

:root {
    --bg-0: #0a0a0f;
    --bg-1: #111119;
    --accent: #00ff88;
    --accent-2: #7b5cff;
    --accent-3: #ff4d9d;
    --text: #e8e8f0;
    --text-dim: #9a9ab0;
    --card-bg: rgba(20, 20, 32, 0.6);
    --border: rgba(0, 255, 136, 0.25);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(123, 92, 255, 0.18), transparent 60%),
        radial-gradient(1000px 500px at 90% 10%, rgba(0, 255, 136, 0.12), transparent 55%),
        radial-gradient(900px 700px at 50% 120%, rgba(255, 77, 157, 0.10), transparent 60%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1));
    background-attachment: fixed;
    padding: 0;
    text-align: center;
    overflow-x: hidden;
}

/* ===== Шапка ===== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: 0.5px;
}

.logo .cat {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.7));
}

.gh-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.gh-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.35);
    transform: translateY(-2px);
}

.gh-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ===== Контент ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin: 20px 0 10px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.25));
    animation: fadeUp 0.8s ease both;
}

h2 {
    margin: 0 0 40px;
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeUp 0.9s ease 0.1s both;
}

/* ===== Карточка описания ===== */
.description {
    position: relative;
    max-width: 760px;
    margin: 0 auto 45px;
    padding: 34px 36px;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeUp 1s ease 0.2s both;
    overflow: hidden;
}

.description::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.5), transparent 40%, rgba(123, 92, 255, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.description strong {
    color: var(--accent);
    font-weight: 700;
}

/* ===== Кнопки ===== */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 10px;
    animation: fadeUp 1.1s ease 0.3s both;
}

button,
.download-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.5px;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

button::after,
.download-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.18), rgba(123, 92, 255, 0.18));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

button:hover,
.download-button:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.45), 0 10px 30px rgba(0, 0, 0, 0.5);
}

button:hover::after,
.download-button:hover::after {
    opacity: 1;
}

button > *,
.download-button > * {
    position: relative;
    z-index: 1;
}

/* ===== Ссылка GitHub в блоке кнопок ===== */
.github-button {
    border-color: rgba(123, 92, 255, 0.5);
}

.github-button:hover {
    border-color: var(--accent-2);
    box-shadow: 0 0 25px rgba(123, 92, 255, 0.55), 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ===== Футер ===== */
.footer {
    margin-top: 60px;
    font-size: 0.85rem;
    color: var(--text-dim);
    animation: fadeUp 1.2s ease 0.4s both;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 255, 136, 0.4);
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #fff;
}

/* ===== Анимации ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Адаптивность ===== */
@media (max-width: 600px) {
    .topbar {
        padding: 14px 18px;
    }

    .description {
        padding: 24px 22px;
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    button,
    .download-button {
        justify-content: center;
    }
}
