/* === LANDING.CSS - СТИЛИ ЛЕНДИНГА FOCUSFLOW ===
 * /0_1_focus/assets/css/landing.css
 * ВЕРСИЯ: 1.0.10
 * ОБНОВЛЕНО: 2026-01-07
 */

/* ========== CSS ПЕРЕМЕННЫЕ ========== */
:root {
    /* Цвета фона */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #171717;

    /* Цвета текста */
    --text-primary: #fafafa;
    --text-muted: #a3a3a3;

    /* Границы */
    --border-color: #262626;

    /* Акценты */
    --color-primary: #3b82f6;
    --color-secondary: #8b5cf6;
    --gradient-primary: linear-gradient(to right, #3b82f6, #8b5cf6);

    /* Квадранты */
    --color-k1: #ef4444;
    --color-k2: #10b981;
    --color-k3: #f59e0b;
    --color-k4: #6b7280;

    /* Парето */
    --color-pareto: #fbbf24;

    /* Успех/Ошибка */
    --color-success: #10b981;
    --color-danger: #ef4444;

    /* Типографика */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Размеры шрифтов */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;
    --text-6xl: 60px;

    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(59, 130, 246, 0.15);
    --shadow-xl: 0 25px 50px rgba(59, 130, 246, 0.2);

    /* Скругления */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== СБРОС И БАЗОВЫЕ СТИЛИ ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-secondary);
}

/* ========== КОНТЕЙНЕР ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--color-primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Пульсация */
.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    }
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(59, 130, 246, 0.15), transparent);
    animation: gradient-pulse 8s ease-in-out infinite;
}

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

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
    animation: particles-float 20s linear infinite;
}

@keyframes particles-float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100px);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-principles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.principle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.principle-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
}

.principle-icon {
    font-size: 2rem;
    line-height: 1;
}

.principle-text {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.principle-divider {
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-login-link {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.hero-login-link span {
    color: var(--color-primary);
}

.hero-login-link:hover span {
    text-decoration: underline;
}

.hero-welcome {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.hero-welcome strong {
    color: var(--text-primary);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: var(--text-sm);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ========== СЕКЦИИ ========== */
.section-title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

/* ========== FEATURES ========== */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Матрица */
.matrix-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 60px;
    height: 60px;
}

.matrix-cell {
    border-radius: var(--radius-sm);
}

.matrix-cell.k1 { background: var(--color-k1); }
.matrix-cell.k2 { background: var(--color-k2); }
.matrix-cell.k3 { background: var(--color-k3); }
.matrix-cell.k4 { background: var(--color-k4); }

/* Парето */
.pareto-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pareto-star {
    font-size: 2rem;
    color: var(--color-pareto);
    animation: star-pulse 2s infinite;
}

@keyframes star-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.pareto-numbers {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--color-pareto);
}

/* Focus */
.focus-icon {
    display: flex;
    gap: 0.5rem;
}

.focus-item {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-sm);
}

.focus-item.done {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Матрица - объяснение квадрантов */
.matrix-explain {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.matrix-quadrant {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.matrix-quadrant span {
    font-weight: 700;
    font-size: var(--text-sm);
}

.matrix-quadrant.q1 {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-k1);
    border-left: 3px solid var(--color-k1);
}

.matrix-quadrant.q2 {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-k2);
    border-left: 3px solid var(--color-k2);
}

.matrix-quadrant.q3 {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-k3);
    border-left: 3px solid var(--color-k3);
}

.matrix-quadrant.q4 {
    background: rgba(107, 114, 128, 0.15);
    color: var(--color-k4);
    border-left: 3px solid var(--color-k4);
}

/* Парето - список параметров */
.params-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.param-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
}

.param-icon {
    font-size: var(--text-sm);
}

/* Focus - преимущества */
.focus-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.benefit-item {
    font-size: var(--text-sm);
    color: var(--text-muted);
    padding-left: 0.25rem;
}

.feature-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.tag-k1 {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-k1);
}

.tag-k2 {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-k2);
}

.tag-pareto {
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-pareto);
}

.tag-focus {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
}

/* ========== PRICING ========== */
.pricing {
    padding: 6rem 0;
}

.pricing-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: var(--text-lg);
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.price-amount {
    font-size: var(--text-5xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    color: var(--text-muted);
    font-size: var(--text-lg);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: var(--color-success);
    font-weight: 600;
}

.pricing-donation {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.donation-link {
    color: var(--color-primary);
}

.donation-link:hover {
    text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: var(--text-xl);
    font-weight: 700;
}

.footer-version {
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: 0.25rem 0.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-copy {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: var(--color-danger);
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-logo {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    color: var(--text-muted);
}

/* Формы */
.modal-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: var(--text-sm);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-family: inherit;
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-error {
    color: var(--color-danger);
    font-size: var(--text-sm);
    margin-top: 0.5rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-error-general {
    text-align: center;
    margin-top: 1rem;
}

.form-success {
    color: var(--color-success);
    font-size: var(--text-sm);
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.form-success.show {
    display: block;
}

.form-forgot {
    display: block;
    text-align: right;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.form-forgot:hover {
    color: var(--color-primary);
}

.modal-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.modal-link {
    color: var(--color-primary);
    font-weight: 500;
}

.modal-link:hover {
    text-decoration: underline;
}

/* ========== АНИМАЦИИ ПРИ СКРОЛЛЕ ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle br {
        display: none;
    }
}

/* Мобильные устройства */
@media (max-width: 640px) {
    .header-container {
        padding: 0 1rem;
    }

    .header-nav .btn {
        padding: 0.5rem 1rem;
        font-size: var(--text-sm);
    }

    .hero {
        padding: 5rem 1rem 3rem;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-principles {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .principle-item {
        padding: 0.75rem 1rem;
    }

    .principle-icon {
        font-size: 1.5rem;
    }

    .principle-text {
        font-size: var(--text-sm);
    }

    .principle-divider {
        display: none;
    }

    .principle {
        font-size: var(--text-base);
    }

    .hero-scroll-indicator {
        display: none;
    }

    .features {
        padding: 4rem 0;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    .pricing {
        padding: 4rem 0;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .modal {
        padding: 1.5rem;
        margin: 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
    .header-logo {
        font-size: var(--text-base);
    }

    .logo-icon {
        font-size: 1.25rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: var(--text-base);
    }
}
