/* Критические CSS стили для landing.blade.php - above-the-fold */

/* CSS переменные */
:root {
    --primary-color: #667eea;
    --secondary-color: #8592A3;
    --success-color: #71DD37;
    --warning-color: #FFB400;
    --danger-color: #FF3E1D;
    --info-color: #03C3EC;
    --dark-color: #566A7F;
    --light-color: #F5F5F9;
}

/* Базовые стили */
body {
    font-family: "Public Sans", -apple-system, blinkmacsystemfont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.375;
    color: #646e78;
}

/* Навигация (LCP элемент) */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.app-brand-logo.demo {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.app-brand-text.demo {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    color: #22303e !important;
}

/* Hero секция (первый экран) */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

        .btn {
            text-decoration: none;
            display: inline-block;
            cursor: pointer;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            color: white;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        }

        .btn-outline-primary {
            border: 2px solid #7941ea;
            color: #5a5fd8;
            background: transparent;
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-outline-primary:hover {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            transform: translateY(-2px);
            border-color: transparent;
        }

        .hero-section .btn-outline-primary {
            border: 2px solid white;
            color: white;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
        }

        .hero-section .btn-outline-primary:hover {
            background: white;
            color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
        }

        .btn-lg {
            padding: 12px 30px;
            font-size: 1.1rem;
        }

        .w-100 {
            width: 100% !important;
        }

/* Стили для контейнера кнопок */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: relative;
    z-index: 4;
    margin-top: 0;
}

/* Статистика хиро блока */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.hero-stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Визуальная часть хиро блока */
.hero-visual {
    position: relative;
    z-index: 3;
}

.hero-dashboard-container {
    position: relative;
    perspective: 1000px;
}

.hero-dashboard-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: rotateY(-15deg) rotateX(10deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.hero-dashboard-container:hover .hero-dashboard-img {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-elements-container {
    position: absolute;
    top: -20px;
    right: -30px;
    z-index: 2;
}

.hero-elements-img {
    width: 120px;
    height: 120px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-25px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(-2deg); 
    }
}

/* Новые стили для хиро кнопок */
.hero-btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.hero-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid white;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* Основные цвета и утилиты */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-stat-item {
        padding: 1rem;
        min-width: 120px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .hero-dashboard-img {
        transform: none;
        margin-top: 2rem;
    }
    
    .hero-dashboard-container:hover .hero-dashboard-img {
        transform: scale(1.02);
    }
    
    .hero-section {
        padding: 120px 0 80px;
        min-height: auto;
    }
    
    /* Улучшения мобильного меню */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
        padding: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(105, 108, 255, 0.1);
        color: var(--primary-color) !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25);
    }
    
    .navbar-toggler-icon {
        transition: transform 0.3s ease;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        transform: rotate(90deg);
    }
    
    /* Стили для кнопки входа в мобильном меню */
    .navbar-nav .btn {
        margin: 0.5rem auto;
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    /* Dropdown в мобильном меню */
    .navbar-nav .dropdown-menu {
        background: transparent;
        border: none;
        box-shadow: none;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    
    .navbar-nav .dropdown-item {
        color: var(--secondary-color);
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item.active {
        background: rgba(105, 108, 255, 0.1);
        color: var(--primary-color);
    }
    

}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stat-item {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    .hero-stat-number {
        font-size: 1.8rem;
    }
}
