/* Базовый сброс и защита от схлопывания */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #1a1a24 0%, #080808 100%);
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- ШАПКА --- */
header {
    flex-shrink: 0;
    width: 100%;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2e2e38;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.btn-header {
    border: 1px solid #2e2e38;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-header:hover {
    background-color: #1a1a24;
    border-color: #8888aa;
}

/* --- ГЛАВНЫЙ БЛОК --- */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

p.subtitle {
    font-size: 16px;
    color: #888899;
    margin-bottom: 20px;
    max-width: 500px;
}

/* --- ЖИВОЙ СЧЕТЧИК (Пункт 1) --- */
.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(90, 94, 255, 0.08);
    border: 1px solid rgba(90, 94, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #b8baff;
    margin-bottom: 30px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #5a5eff;
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(90, 94, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(90, 94, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(90, 94, 255, 0); }
}

/* --- ПОЛЕ ВВОДА (Форма пилюли) --- */
.chat-input-simulator {
    width: 100%;
    max-width: 600px;
    background: #15151a;
    border: 1px solid #2e2e38;
    border-radius: 40px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.chat-input-simulator:hover {
    border-color: #555566;
    background: #1c1c24;
    transform: translateY(-2px);
}

.typing-text {
    font-size: 16px;
    display: flex;
    align-items: center;
    color: #e0e0e0;
}

.blinking-cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background-color: #5a5eff;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.send-icon {
    width: 40px;
    height: 40px;
    background: #4a72ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chat-input-simulator:hover .send-icon {
    background: #3a62ef;
}

/* --- ТАБЫ --- */
.prompt-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.prompt-tab {
    background: #121216;
    border: 1px solid #2a2a32;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #d1d1d1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-tab:hover {
    background: #1c1c24;
    border-color: #5a5eff;
    color: #ffffff;
}

/* --- ПЛАШКА ПРЕИМУЩЕСТВ (Пункт 3) --- */
.benefits-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.benefit-item {
    font-size: 13px;
    color: #8888aa;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- КНОПКА И ПУЛЬСАЦИЯ (Пункт 4) --- */
.btn-primary {
    display: inline-block;
    background-color: #5a5eff;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 44px;
    border-radius: 12px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #4a4edf;
}

.btn-pulse {
    animation: btn-glow 2.5s infinite;
}

@keyframes btn-glow {
    0% { box-shadow: 0 0 0 0 rgba(90, 94, 255, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(90, 94, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(90, 94, 255, 0); }
}

/* --- ПОДВАЛ И SEO ТЕКСТ --- */
footer {
    flex-shrink: 0;
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: #666677;
    border-top: 1px solid #2e2e38;
    width: 100%;
}

.footer-seo {
    max-width: 650px;
    margin: 0 auto 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #555566;
}

/* --- АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ --- */
@media (max-width: 600px) {
    header {
        padding: 16px 20px;
    }

    h1 {
        font-size: 34px;
    }
    
    p.subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .live-counter {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .chat-input-simulator {
        padding: 6px 6px 6px 16px;
    }

    .typing-text {
        font-size: 15px;
    }

    .prompt-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .prompt-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .benefits-row {
        gap: 10px;
        margin-bottom: 24px;
        font-size: 12px;
    }

    .btn-primary {
        width: 100%;
        padding: 18px;
        font-size: 18px;
    }
}