/* ============================================================
   index.css — стили главной страницы
   ============================================================ */

/* ---- Hero ---- */
.hero {
    position: relative;
    padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
    overflow: hidden;
}

/* Фоновые декоративные пятна */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.12) 0%, transparent 70%);
}

.hero::after {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    max-width: 560px;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
    padding: 0.35rem 0.875rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: var(--radius-full);
}

.hero__label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-purple);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
    margin-bottom: 1.25rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: none;
}

.hero__platforms {
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 2.5rem;
}

/* Мокап приложения */
.hero__mockup {
    position: relative;
}

.hero__mockup-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.hero__mockup-wrapper img,
.hero__mockup-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Декоративный ореол вокруг мокапа */
.hero__mockup-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* ---- Проблема / Решение ---- */
.problem-solution {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.problem-solution__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
}

.problem-solution__divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.problem-solution__divider::before,
.problem-solution__divider::after {
    content: '';
    width: 1px;
    height: 60px;
    background: var(--color-border);
}

.problem-block,
.solution-block {
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.problem-block {
    background: rgba(255, 94, 87, 0.05);
    border: 1px solid rgba(255, 94, 87, 0.15);
}

.solution-block {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.block-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.problem-block .block-label { color: #ff7b72; }
.solution-block .block-label { color: var(--accent-purple); }

.block-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.block-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: none;
}

/* ---- Ключевые возможности ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* ---- Платформы ---- */
.platforms-section {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
}

.platform-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}

.platform-card__icon svg {
    width: 32px;
    height: 32px;
}

.platform-card__name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

.platform-card__note {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: none;
}

.platforms-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    background: rgba(102, 126, 234, 0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    max-width: 600px;
    margin-inline: auto;
}

/* ---- CTA-секция (email подписка внизу) ---- */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .section-description {
    margin-inline: auto;
    margin-bottom: 2rem;
}

.cta-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ============================================================
   Адаптивность
   ============================================================ */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        max-width: none;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__platforms {
        justify-content: center;
    }

    .hero__mockup {
        order: -1;
        max-width: 600px;
        margin-inline: auto;
    }

    .problem-solution__grid {
        grid-template-columns: 1fr;
    }

    .problem-solution__divider {
        flex-direction: row;
        width: 100%;
    }

    .problem-solution__divider::before,
    .problem-solution__divider::after {
        width: 100%;
        height: 1px;
    }

    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }
}
