:root {
    --background-color: #1a1a1a;
    --text-color: #e0e0e0;
    --primary-color: #e53935; /* Красный акцент */
    --secondary-color: #333;
    --card-background: #2a2a2a;
    --border-color: #444;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл */
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner {
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content visibility */
#content.hidden {
    display: none;
    opacity: 0;
}

#content.visible {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* General Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 1)), url('images/header-bg.jpg') no-repeat center center/cover; /* Добавь фоновое изображение если есть */
    background-color: var(--secondary-color); /* Fallback */
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
}

header .subtitle {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #c62828; /* Darker red */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #444;
    transform: translateY(-2px);
}


section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #fff;
}

/* About Section */
#about .feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

#about .feature {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about .feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#about .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    filter: invert(34%) sepia(98%) saturate(1359%) hue-rotate(346deg) brightness(90%) contrast(95%);
}

#about .feature h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
}

#about .feature p {
    font-size: 0.9rem;
}

#about .screenshot {
    display: block;
    max-width: 80%;
    margin: 40px auto 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Download Section */
#download .version-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Added style for OS compatibility note */
#download .os-note {
    text-align: center;
    margin-top: -25px; /* Pull it closer to the heading */
    margin-bottom: 30px;
    color: #aaa; /* Lighter text color */
    font-size: 0.9rem;
}

#download .version-item {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--secondary-color); /* Default border */
}

#download .version-item.latest {
    border-left-color: var(--primary-color); /* Highlight latest */
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.2); /* Subtle glow for latest */
}


#download .version-item h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #fff;
}

#download .version-item p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
}

#download .version-item ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

#download .version-item li {
    margin-bottom: 5px;
}

/* Warning Note styles */
#download .warning-note {
    background-color: rgba(255, 255, 0, 0.05); /* Subtle yellow tint */
    border: 1px solid rgba(255, 255, 0, 0.2);
    border-radius: 5px;
    padding: 15px;
    margin-top: 30px; /* Space above the note */
    font-size: 0.9rem;
    color: #ccc;
}

#download .warning-note p {
    margin-bottom: 10px;
}

#download .warning-note strong {
    color: #eee;
}

#download .warning-note ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 5px;
    color: #bbb;
}

#download .warning-note li {
    margin-bottom: 5px;
}

/* How-to-use Section */
#how-to-use {
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

#how-to-use ol {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px; /* Для номеров списка */
}

#how-to-use li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#how-to-use code {
    background-color: var(--secondary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-color);
}

/* Future Plans Section */
#future-plans {
    padding: 30px 0; /* Reduced padding */
    text-align: center;
    background-color: #222; /* Slightly different background */
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

#future-plans h3 {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 10px;
    font-weight: 600;
}

#future-plans p {
    font-size: 0.9rem;
    color: #999; /* Lighter text */
    max-width: 600px; /* Limit width */
    margin: 0 auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    /* border-top: 1px solid var(--border-color); */
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.8rem;
    }
    header .subtitle {
        font-size: 1.2rem;
    }
    section h2 {
        font-size: 2rem;
    }
    #about .feature-grid {
        grid-template-columns: 1fr; /* Stack features on smaller screens */
    }
     #about .screenshot {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
     header h1 {
        font-size: 2.2rem;
    }
    header .subtitle {
        font-size: 1rem;
    }
     .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    .btn:last-child {
        margin-bottom: 0;
    }
}