:root {
    --primary: #3B82F6;
    --secondary: #10B981;
    --accent: #8B5CF6;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gradient-start: #4F46E5;
    --gradient-end: #10B981;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-item {
    position: relative;
    cursor: pointer;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s;
}

.nav-item:hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.wave-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.1'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='0.05'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpattern id='b' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle fill='%23ffffff' cx='50' cy='50' r='40' opacity='0.1'/%3E%3C/pattern%3E%3Crect width='100%25' height='100%25' fill='url(%23a)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23b)'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.neural-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.prompt-card {
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.prompt-card:hover {
    border-left: 4px solid var(--secondary);
}

.model-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    border-top: 3px solid transparent;
}

.model-card:hover {
    border-top: 3px solid var(--primary);
    transform: translateY(-5px);
}

.radar-chart-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    transition: all 0.2s;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-toggle::after {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .radar-chart-container {
        max-width: 100%;
    }
}

.cursor-pointer {
    cursor: pointer;
}

/* Анимация для нейронной сети */
.neural-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.2;
}

/* Стили для демо-блока */
.demo-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.demo-placeholder {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8898aa;
    position: relative;
}

/* Новые стили для компонентов */

/* Stats Section */
.stats-item {
    position: relative;
}

.stats-item .counter {
    display: inline-block;
    transition: all 0.3s ease;
}

.stats-item:hover .counter {
    transform: scale(1.1);
}

.stats-item .bg-white\/10 {
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stats-item .bg-white\/10::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.stats-item:hover .bg-white\/10::before {
    left: 100%;
}

/* Quick Start Section */
.quick-start-step {
    position: relative;
}

.quick-start-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transform: translateY(-50%);
    opacity: 0.3;
}

.quick-start-step:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .quick-start-step::after {
        display: none;
    }
}

/* Why Choose Section */
.why-choose-item .bg-gradient-to-br {
    position: relative;
    overflow: hidden;
}

.why-choose-item .bg-gradient-to-br::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s;
    opacity: 0;
}

.why-choose-item:hover .bg-gradient-to-br::before {
    transform: rotate(45deg) translate(50%, 50%);
    opacity: 1;
}

/* Security Section */
.security-feature .bg-white\/5 {
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.security-feature .bg-white\/5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.security-feature:hover .bg-white\/5::before {
    opacity: 1;
}

/* Улучшенные анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-countUp {
    animation: countUp 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Floating elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Gradient border animation */
.gradient-border {
    position: relative;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    padding: 2px;
    border-radius: 12px;
}

.gradient-border > div {
    background: white;
    border-radius: 10px;
    height: 100%;
    width: 100%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive styles */
@media (max-width: 768px) {
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .radar-chart-container {
        max-width: 100%;
    }
    
    .stats-item .counter {
        font-size: 2.5rem;
    }
    
    .quick-start-step .absolute {
        position: static !important;
        transform: none !important;
        margin: 0 auto 1rem auto;
    }
}

.cursor-pointer {
    cursor: pointer;
}

/* Диаграмма сравнения моделей */
#modelComparisonChart {
    max-height: 500px;
    width: 100%;
    margin: 0 auto;
}

.chart-container {
    position: relative;
    height: 500px;
    width: 100%;
    margin: 2rem auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    #modelComparisonChart {
        max-height: 400px;
    }
    
    .chart-container {
        height: 400px;
        padding: 0.5rem;
    }
    
    .chart-legend {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .chart-legend-item {
        padding: 0.2rem 0.5rem;
    }
    
    .chart-legend-color {
        width: 10px;
        height: 10px;
    }
} 