* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark theme */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-dark: #030712;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.8);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 1;
    flex-shrink: 0;
}

.logo svg {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    position: relative;
    flex: 1;
    justify-content: center;
    z-index: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.btn-primary {
    background: var(--gradient-1);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.nav-links a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Theme toggle button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-left: auto;
}

.theme-toggle-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    transition: transform 0.3s ease;
}

.theme-toggle-btn #themeIconSun,
.theme-toggle-btn #themeIconMoon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0 80px;
    overflow: hidden;
}

/* Full-width Logo Banner */
.logo-banner {
    width: 100%;
    padding: 0 0 40px;
    margin-top: -40px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 50%, rgba(240, 147, 251, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.logo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.logo-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: logoBannerFadeIn 1s ease-out;
    /* Оптимизация производительности */
    transform: translateZ(0);
    will-change: transform;
}

@keyframes logoBannerFadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.logo-wide {
    width: 100%;
    max-width: 1000px;
    height: auto;
    min-height: 180px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.2));
    animation: logoFloatWide 4s ease-in-out infinite;
    overflow: visible;
    /* Оптимизация производительности */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    /* SVG оптимизации */
    shape-rendering: geometricPrecision;
    image-rendering: -webkit-optimize-contrast;
}


@keyframes logoFloatWide {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-3);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.hero-logo svg {
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.3));
    transition: transform 0.3s ease;
}

.hero-logo svg:hover {
    transform: scale(1.1) rotate(5deg);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    text-decoration: none;
    display: inline-block;
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--bg-dark);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

a.btn-secondary {
    text-decoration: none;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Chat Preview */
.chat-preview {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .chat-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.chat-header {
    background: var(--gradient-1);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-avatar svg {
    width: 100%;
    height: 100%;
    padding: 8px;
}

.chat-name {
    font-weight: 600;
    font-size: 1.125rem;
}

.chat-status {
    font-size: 0.875rem;
    opacity: 0.9;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.message-avatar svg {
    width: 100%;
    height: 100%;
    padding: 4px;
}

.bot-message .message-content {
    background: var(--bg-secondary);
    padding: 0.875rem 1.125rem;
    border-radius: 12px 12px 12px 4px;
    max-width: 80%;
}

.user-message .message-content {
    background: var(--gradient-1);
    color: white;
    padding: 0.875rem 1.125rem;
    border-radius: 12px 12px 4px 12px;
    max-width: 80%;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.875rem 1.125rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Features */
.features {
    background: var(--bg-secondary);
}

[data-theme="dark"] .features {
    background: var(--bg-primary);
}

/* AI News Section */
.ai-news {
    background: var(--bg-secondary);
    padding: 80px 0;
}

[data-theme="dark"] .ai-news {
    background: var(--bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.news-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

@media (max-width: 768px) {
    .news-card {
        padding: 1.25rem;
    }
}

[data-theme="dark"] .news-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.news-card-image-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    background: var(--gradient-1);
}

.news-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    background: var(--gradient-1);
}

.news-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-content {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.news-card-full-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    display: block;
}

.news-card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.news-card-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.news-card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-card-link:hover {
    color: var(--primary-dark);
}

.news-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.news-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

[data-theme="dark"] .feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    background: white;
}

[data-theme="dark"] .how-it-works {
    background: var(--bg-primary);
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    width: 100px;
    height: 2px;
    background: var(--gradient-1);
    margin-top: 2rem;
    display: none;
}

/* Bots */
.bots {
    background: var(--bg-secondary);
}

[data-theme="dark"] .bots {
    background: var(--bg-primary);
}

.bots-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.bots-sync-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.bots-sync-actions .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

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

.bot-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="dark"] .bot-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.bot-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.bot-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-1);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bot-card-actions {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bot-card:hover .bot-card-actions {
    opacity: 1;
}

.bot-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.bot-edit-btn {
    background: rgba(99, 102, 241, 0.9);
    color: white;
}

.bot-edit-btn:hover {
    background: rgba(99, 102, 241, 1);
    transform: scale(1.1);
}

.bot-delete-btn {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.bot-delete-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.bot-card .btn-primary,
.bot-card a.btn-primary {
    margin-top: 1rem;
    text-decoration: none;
    display: inline-block;
}

.bot-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--bg-secondary);
}

.bot-avatar-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bot-avatar-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bot-avatar-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bot-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bot-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.bot-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.bot-features li {
    padding: 0.5rem 0;
}

/* Contact/CTA */
.contact {
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.contact .section-title,
.contact .section-description {
    color: white;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.footer .logo {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    height: 80vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

[data-theme="dark"] .modal-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-chat {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-input-container {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}

.modal-input {
    flex: 1;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.modal-input:focus {
    border-color: var(--primary-color);
}

.modal-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

.modal-content-large {
    max-width: 700px;
    height: auto;
    max-height: 90vh;
}

.modal-content-small {
    max-width: 450px;
    height: auto;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input[type="text"],
[data-theme="dark"] .form-group input[type="password"],
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Icon Upload Styles */
.icon-upload-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.icon-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    flex-shrink: 0;
    overflow: hidden;
}

.icon-preview-placeholder {
    font-size: 3rem;
    text-align: center;
}

.icon-upload-options {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.icon-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.icon-upload-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.icon-upload-options input[type="text"] {
    margin: 0;
}

.btn-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-icon-small:hover {
    background: var(--text-secondary);
    color: white;
    border-color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        padding: 50px 0 80px;
    }
    
    .logo-banner {
        padding: 0 0 30px;
        margin-top: -35px;
    }
    
    .logo-wide {
        max-width: 100%;
        min-height: 150px;
    }
    
    .logo-wide text {
        font-size: 36px !important;
    }
    
    .logo-wide text:nth-of-type(2) {
        font-size: 14px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-logo svg {
        width: 100px;
        height: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-connector {
        display: block;
        width: 2px;
        height: 60px;
        margin: 1rem auto;
    }
    
    .bot-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 0 80px;
    }
    
    .logo-banner {
        padding: 0 0 20px;
        margin-top: -30px;
        overflow: hidden;
    }
    
    .logo-banner-content {
        padding: 0 10px;
    }
    
    .logo-wide {
        min-height: 140px;
        max-width: 100%;
        width: 100%;
        overflow: visible;
    }
    
    /* Скрываем боковые декоративные элементы на мобильных */
    .logo-decor-left,
    .logo-decor-right {
        display: none;
    }
    
    /* Скрываем частицы на мобильных */
    .logo-particle {
        display: none;
    }
    
    /* Уменьшаем размер текста */
    .logo-title {
        font-size: 32px !important;
    }
    
    .logo-subtitle {
        font-size: 11px !important;
    }
    
    /* Центрируем текст */
    .logo-title,
    .logo-subtitle {
        x: 50% !important;
    }
    
    /* Уменьшаем и центрируем центральный символ на мобильных */
    .logo-center {
        transform: translate(250, 50) scale(0.65) !important;
    }
    
    /* Замедляем анимации для мобильных устройств */
    .logo-wide {
        animation: logoFloatWide 16s ease-in-out infinite;
    }
    
    .gradient-text {
        animation: textGradient 15s ease infinite;
    }
    
    .hero::before {
        animation: gradientShift 30s ease infinite;
    }
    
    .btn-primary {
        animation: gradientShift 15s ease infinite;
    }
    
    .hero-logo {
        animation: logoFloat 12s ease-in-out infinite;
    }
    
    .chat-header {
        animation: gradientShift 25s ease infinite;
    }
    
    /* Мобильное меню */
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
        animation: slideDown 0.3s ease;
        transform: none;
    }
    
    [data-theme="dark"] .nav-links {
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a,
    .nav-links button {
        width: 100%;
        display: block;
        padding: 1rem;
        text-align: center;
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .nav-links a:hover,
    .nav-links button:hover {
        background: var(--bg-secondary);
    }
    
    .nav-links a.btn-primary {
        margin: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .bots-grid {
        grid-template-columns: 1fr;
    }
    
    .bots-sync-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bots-sync-actions .btn {
        width: 100%;
        margin: 0 0 0.5rem 0 !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ENHANCED ANIMATIONS ==================== */

/* Fade in from bottom animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in from left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in from right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale in animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Gradient animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Rotate animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Glow animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.8), 0 0 40px rgba(139, 92, 246, 0.5);
    }
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ==================== ENHANCED ELEMENT STYLES ==================== */

/* Animated gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(240, 147, 251, 0.1) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    z-index: -1;
}

/* Enhanced navbar */
.navbar {
    animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hero title */
.hero-title {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* Enhanced feature cards */
.feature-card {
    animation: fadeInUp 0.6s ease both;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.feature-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Enhanced bot cards */
.bot-card {
    animation: scaleIn 0.6s ease both;
    position: relative;
    overflow: hidden;
}

.bot-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.bot-card:hover::after {
    width: 300px;
    height: 300px;
}

.bot-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bot-avatar {
    transition: transform 0.5s ease, filter 0.3s ease;
}

.bot-card:hover .bot-avatar {
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 10px 20px rgba(99, 102, 241, 0.3));
}

/* Enhanced buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    animation: glow 2s ease infinite;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced stats */
.stat-number {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat:hover .stat-number {
    transform: scale(1.1);
    animation: pulse 1s ease infinite;
}

/* Enhanced steps */
.step {
    position: relative;
    animation: fadeInUp 0.8s ease both;
}

.step-number {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.2) rotate(5deg);
    animation: pulse 1s ease infinite;
}

.step-connector {
    position: relative;
    overflow: hidden;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    animation: shimmer 2s infinite;
}

/* Enhanced chat preview */
.chat-preview {
    animation: scaleIn 0.8s ease 1s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.message {
    animation: fadeInLeft 0.4s ease;
}

.user-message {
    animation: fadeInRight 0.4s ease;
}

/* Enhanced modal */
.modal.active .modal-content {
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Enhanced form inputs */
.form-group input,
.form-group textarea,
.form-group select {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

/* Enhanced section headers */
.section-header {
    animation: fadeInUp 0.8s ease both;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: scaleIn 0.8s ease 0.5s both;
}

/* Enhanced footer */
.footer-section {
    animation: fadeInUp 0.6s ease both;
}

.footer-section a {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-section a:hover {
    transform: translateX(5px);
}

/* Enhanced logo */
.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo svg {
    transition: transform 0.5s ease;
}

.logo:hover svg {
    transform: rotate(360deg);
}

/* Pulse animation for badges */
.featured-badge {
    animation: pulse 2s ease infinite;
}

/* Enhanced gradient orbs */
.gradient-orb {
    animation: float 20s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

/* Enhanced stats cards */
.stat-card {
    animation: scaleIn 0.6s ease both;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.stat-icon {
    animation: bounce 2s ease infinite;
}

/* Enhanced empty state */
.empty-state {
    animation: fadeInUp 0.8s ease;
}

.empty-state-icon {
    animation: bounce 2s ease infinite;
}

/* Loading shimmer effect */
@keyframes loadingShimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: loadingShimmer 2s infinite;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced contact section */
.contact {
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

/* Enhanced mobile menu */
.nav-links.active {
    animation: slideDown 0.3s ease;
}

/* Text gradient animation */
@keyframes textGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-text {
    background-size: 200% 200%;
    animation: textGradient 3s ease infinite;
}

/* Enhanced bot card actions */
.bot-action-btn {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bot-action-btn:hover {
    transform: scale(1.2) rotate(5deg);
}

.bot-edit-btn:hover {
    animation: pulse 0.5s ease;
}

.bot-delete-btn:hover {
    animation: shake 0.5s ease;
}

/* Enhanced typing indicator */
.typing-indicator span {
    animation: typing 1.4s infinite, bounce 1.4s infinite;
}

/* Enhanced chat header */
.chat-header {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced section transitions */
section {
    position: relative;
    transition: all 0.3s ease;
}

/* Enhanced stats number counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value {
    animation: countUp 0.6s ease;
}

/* Enhanced icon upload */
.icon-upload-btn {
    position: relative;
    overflow: hidden;
}

.icon-upload-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.icon-upload-btn:hover::before {
    width: 200px;
    height: 200px;
}

/* Enhanced modal input */
.modal-input:focus {
    animation: pulse 0.5s ease;
}

.modal-send-btn {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-send-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.modal-send-btn:active {
    transform: scale(0.95) rotate(0deg);
}

/* Enhanced step connectors on desktop */
@media (min-width: 769px) {
    .step-connector {
        position: relative;
    }
    
    .step-connector::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--gradient-1);
        background-size: 200% 100%;
        animation: gradientShift 3s ease infinite;
        transform: translateY(-50%);
    }
    
    .step-connector::after {
        content: '→';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 0 10px;
        color: var(--primary-color);
        font-weight: bold;
        animation: pulse 2s ease infinite;
    }
}

/* Stagger animation for grid items */
.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.5s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.6s; }

.bots-grid .bot-card:nth-child(1) { animation-delay: 0.1s; }
.bots-grid .bot-card:nth-child(2) { animation-delay: 0.2s; }
.bots-grid .bot-card:nth-child(3) { animation-delay: 0.3s; }
.bots-grid .bot-card:nth-child(4) { animation-delay: 0.4s; }
.bots-grid .bot-card:nth-child(5) { animation-delay: 0.5s; }
.bots-grid .bot-card:nth-child(6) { animation-delay: 0.6s; }

.stats-grid .stat-card:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.4s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: 0.5s; }
.stats-grid .stat-card:nth-child(6) { animation-delay: 0.6s; }

/* Admin Panel Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-card:nth-child(6) {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 3rem;
    line-height: 1;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

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

.chart-container {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.chart-container h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.chart-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

[data-theme="dark"] .chart-placeholder {
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
}

.chart-placeholder::before {
    content: "📊 График будет здесь";
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-charts {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.6s !important;
    }
    
    .gradient-orb {
        animation-duration: 15s !important;
    }
    
    /* Disable cursor trail on mobile */
    .cursor-trail {
        display: none !important;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced loading states */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
}

/* Enhanced selection styling */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* Enhanced backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
    .navbar {
        backdrop-filter: blur(20px);
    }
    
    .modal {
        backdrop-filter: blur(10px);
    }
}

/* Enhanced 3D transforms for supported browsers */
@supports (transform-style: preserve-3d) {
    .feature-card:hover {
        transform-style: preserve-3d;
    }
    
    .bot-card:hover {
        transform-style: preserve-3d;
    }
}

