/* Base Styles */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-primary: #2a96ff; /* Неоново-синий */
    --accent-secondary: #00ffcc; /* Неоново-голубой */
    --code-bg: #1a1a1a;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

.accent {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 150vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('img/hero-bg.png') no-repeat center center/cover;
    text-align: center;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 200px;
    width: auto;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-link {
    color: var(--text-primary);
    font-weight: 500;
}

.hero-content {
    margin-top: 5rem;
}

.code-block {
    background-color: var(--code-bg);
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    border-radius: 4px;
    text-align: left;
}

code {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 1.1rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(42, 150, 255, 0.5);
}

.cta-button:hover {
    background-color: var(--accent-secondary);
    color: var(--bg-primary);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.7);
    transform: translateY(-2px);
}

.cta-button-large {
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
}

/* Sections */
section {
    padding: 6rem 0;
}

.about, .features, .cta {
    text-align: center;
}

.about {
    background-color: var(--bg-secondary);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.version {
    color: var(--accent-secondary);
    font-size: 1.5rem;
}

.about p, .features-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.about-image {
    margin-top: 3rem;
}
.about-image img {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.feature-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(42, 150, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(42, 150, 255, 0.2);
    border-color: rgba(42, 150, 255, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.feature-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
}

.features-footer {
    font-size: 1.3rem;
    font-weight: 500;
}

/* CTA Section */
.cta {
    background: linear-gradient(to right, #0a1a2a, #0a2a3a);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .social-links {
        gap: 1rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    min-height: 80vh;
    margin-top: 0;
}

.hero-image img {
    width: 100%;
    max-width: 420px; /* Увеличили с 400px */
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(3deg);
}
.hero-image img:hover {
    transform: rotate(0deg);
    transition: transform 0.5s ease;
}

.hero-text {
    padding-left: 2rem;
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Steps Section */
.steps {
    background-color: var(--bg-secondary);
    padding: 6rem 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem auto;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.steps-illustration {
    text-align: center;
}
.steps-illustration img {
    max-width: 500px; /* Уменьшили с 600px */
    width: 100%;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-item {
    padding: 1.5rem;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
}
.benefit-item h3 {
    margin-bottom: 0.7rem;
}

/* Final CTA */
.final-cta {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(to right, #0a1a2a, #0a2a3a);
}
.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    padding: 4rem 0 2rem 0;
}
.footer-brand {
    text-align: center;
    margin-bottom: 3rem;
}
.footer-logo {
    height: 200px;
    margin-bottom: 1rem;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}
.footer-links-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-links-column a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
}
.footer-copyright {
    text-align: center;
    color: var(--text-secondary);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для новой секции "Для кого подходит" */
.for-whom {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.audience-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.audience-item:hover {
    transform: translateY(-5px);
}

.audience-item h3 {
    margin-bottom: 12px;
    color: #2d3748;
}

.audience-item p {
    color: #718096;
    line-height: 1.5;
}

/* Мобильная версия - изменяем порядок и добавляем отступы */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        grid-template-areas: 
            "image"
            "text";
        margin-top: 4rem; /* Добавляем отступ сверху */
        padding-top: 2rem; /* Дополнительный отступ */
    }
    
    .hero-text {
        grid-area: text;
        padding-left: 0;
    }
    
    .hero-image {
        grid-area: image;
        margin-top: 1rem;
    }
    
    /* Увеличиваем картинку на мобильных */
    .hero-image img {
        max-width: 350px;
        transform: rotate(0deg); /* Убираем вращение для мобильных */
    }
    
    /* Уменьшаем steps-infographic на мобильных */
    .steps-illustration img {
        max-width: 400px;
    }
    
    /* Корректируем header для мобильных */
    .hero-header {
        position: relative;
        padding: 1rem 0;
    }
    
    .logo {
        height: 150px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .hero-image img {
        max-width: 300px;
    }
    
    .steps-illustration img {
        max-width: 320px;
    }
    
    .hero {
        min-height: auto;
        padding: 1rem 0 3rem 0;
    }
    
    .hero-content {
        margin-top: 2rem;
        gap: 2rem;
    }
}
