/* Общие стили и шрифты */
body {
    font-family: 'Roboto Mono', monospace; /* Моноширинный шрифт как основной */
    background-color: #0c0c0c;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Скрываем горизонтальный скролл */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Эффект Glitch */
.glitch-text {
    position: relative;
    color: #f0f0f0;
    font-family: 'Major Mono Display', monospace; /* Шрифты для Glitch-эффекта */
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5); /* Неоновое свечение */
    transition: color 0.3s;
}

.glitch-text.active {
    animation: glitch 1s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip-path: inset(60% 0 0 0);
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 #00fff2;
    clip-path: inset(0 0 60% 0);
}

@keyframes glitch {
    0% { clip-path: inset(50% 0 40% 0); }
    5% { clip-path: inset(10% 0 80% 0); }
    10% { clip-path: inset(70% 0 10% 0); }
    15% { clip-path: inset(20% 0 70% 0); }
    /* ... и так далее, можно добавить больше шагов для более сложного эффекта */
    100% { clip-path: inset(50% 0 40% 0); }
}

/* Шапка */
.header {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #333;
    overflow: hidden; /* Скрываем частицы, выходящие за пределы */
}

.header h1 {
    font-size: 3.5em;
    margin: 0;
    color: #4CAF50;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    position: relative;
}

.header p {
    font-size: 1.2em;
    color: #a0a0a0;
    margin-top: 10px;
    position: relative;
}

/* Секция Hero (главный баннер) */
.hero {
    background-color: #121212;
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    margin-right: 40px;
}

.hero-text h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.8em;
    color: #f0f0f0;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1em;
    color: #c0c0c0;
    margin-bottom: 30px;
}

.hero-image {
    flex: 0 0 auto;
    max-width: 50%;
    margin-left: 40px;
    animation: fadeIn 2s ease-in-out;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #333;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    border-radius: 5px;
}

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

/* Кнопки */
.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.05em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #5cb85c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.download-hint {
    color: #a0a0a0;
    font-size: 0.9em;
    margin-top: 15px;
}

/* Секция возможностей (сетка) */
.features-grid {
    background-color: #1a1a1a;
    padding: 60px 0;
    border-bottom: 1px solid #333;
}

.features-grid h2 {
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #f0f0f0;
    border-left: none;
    padding-left: 0;
}

.feature-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #222;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.3);
}

.feature-item h3 {
    font-family: 'Roboto Mono', monospace;
    color: #4CAF50;
    font-size: 1.4em;
    margin-top: 0;
}

.feature-item p {
    color: #c0c0c0;
}

/* Секция "Как пользоваться" */
.how-to-use {
    padding: 60px 0;
    background-color: #121212;
}

.how-to-use h2 {
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #f0f0f0;
    border-left: none;
    padding-left: 0;
}

.how-to-use > p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #c0c0c0;
}

.code-block {
    background-color: #0d0d0d;
    border: 1px solid #4CAF50;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.code-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.3);
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Roboto Mono', monospace;
    color: #c0c0c0;
    font-size: 1.1em;
}

.code-block p {
    margin: 10px 0 0;
    color: #a0a0a0;
    font-size: 0.9em;
}
/* Стили для футера */
.footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 5%;
    font-size: 0.95rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    color: var(--secondary-color);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col a,
.footer-col p {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-links a {
    font-size: 1.3rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}


@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .hero-image {
        margin-left: 0;
        max-width: 80%;
    }
}