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

:root {
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Security: Prevent text selection */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    height: 100vh;
    font-weight: 300;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Security: Allow selection only for text content */
.faq-answer, .ai-description, .intro-subtitle, .feature-text {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Security: Prevent image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Security: Prevent right-click context menu */
body {
    context-menu: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bot-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.menu-btn {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.3s var(--ease-out-quad);
}

.menu-btn:hover {
    opacity: 1;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-quad);
}

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

.menu-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: rgba(20, 20, 20, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 25px 40px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out-quad);
}

.menu-overlay.active .menu-content {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 5px;
    transition: opacity 0.3s var(--ease-out-quad);
}

.close-btn:hover {
    opacity: 1;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s var(--ease-out-quad);
    border: 1px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.menu-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

/* Tab Content */
.tab-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-quad);
}

.tab-content.active {
    opacity: 1;
    visibility: visible;
}

.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 80px 25px 40px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out-quad);
}

.tab-pane.active {
    transform: translateX(0);
}

.tab-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 5px;
    transition: opacity 0.3s var(--ease-out-quad);
}

.back-btn:hover {
    opacity: 1;
}

.tab-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* FAQ Styles */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 5px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.faq-question {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #fff;
}

.faq-answer {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.faq-footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.faq-footer-text {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.faq-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out-quad);
}

.faq-contact-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Presentation Styles */
.presentation-content {
    text-align: center;
    padding: 60px 20px;
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.presentation-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    color: #4a90e2;
}

.presentation-content p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.presentation-subtext {
    font-size: 0.9rem !important;
    opacity: 0.6 !important;
    max-width: 250px;
    line-height: 1.4;
}

/* Slider Container */
.slider-container {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    position: relative;
}

.slide {
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px 25px 70px;
    position: relative;
}

.slide-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Slide 1 - Intro */
.slide-1 {
    background: linear-gradient(135deg, #000 0%, #111 100%);
}

.intro-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.intro-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.5;
    font-weight: 300;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 50px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-50px);
    opacity: 0;
    animation: slideInRight 0.6s var(--ease-out-quad) forwards;
}

.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.4s; }
.feature:nth-child(3) { animation-delay: 0.6s; }

.feature-icon {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.feature-text {
    font-size: 0.9rem;
    text-align: left;
    font-weight: 400;
}

/* Telegram Button Container */
.telegram-btn-container {
    margin-top: 30px;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out-quad);
    backdrop-filter: blur(10px);
}

.telegram-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* AI Slides */
.ai-logo-link {
    display: inline-block;
    margin-bottom: 25px;
    transition: transform 0.3s var(--ease-out-quad);
}

.ai-logo-link:hover {
    transform: scale(1.05);
}

.ai-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
}

.ai-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-quad) 0.2s forwards;
}

.ai-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.7;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-quad) 0.4s forwards;
}

.ai-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.8;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-quad) 0.6s forwards;
}

.use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 350px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out-quad) 0.8s forwards;
}

.use-case {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Slide-specific backgrounds */
.slide-2 {
    background: 
        linear-gradient(135deg, #1a1a1a 0%, #1e3a8a 50%, #3b82f6 100%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* ChatGPT - ОБНОВЛЕННЫЙ ФОН: более светлый, с черными акцентами */
.slide-3 {
    background: 
        linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 40%, #c0c0c0 100%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    position: relative;
    color: #1a1a1a; /* Черный текст для контраста */
}

/* Переопределение цвета текста для светлого фона */
.slide-3 .ai-title,
.slide-3 .ai-subtitle,
.slide-3 .ai-description,
.slide-3 .use-case {
    color: #1a1a1a;
}

.slide-3 .ai-description {
    opacity: 0.9;
}

.slide-3 .use-case {
    background: rgba(0, 0, 0, 0.1); /* Темный фон для тегов */
    border-color: rgba(0, 0, 0, 0.2);
}

/* Удаляем свечение и рамку для лого ChatGPT */
.slide-3 .ai-logo {
    border-color: transparent; /* Убрано */
    box-shadow: none; /* Убрано */
    filter: brightness(1) contrast(1); /* Сброс фильтра, если нужно, чтобы лого выглядело ярче на светлом фоне */
}


.slide-4 {
    background: 
        linear-gradient(135deg, #1a1a1a 0%, #8b7355 50%, #a89070 100%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

/* Pagination Dots */
.pagination {
    position: fixed;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 1000;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quad);
}

/* Изменение цвета точек на светлом фоне слайда 3 */
.slide-3 + .pagination .dot {
    background: rgba(0, 0, 0, 0.3);
}

.slide-3 + .pagination .dot.active {
    background: #1a1a1a;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Animations */
@keyframes slideInRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .header {
        padding: 12px 15px;
    }
    
    .intro-title {
        font-size: 1.8rem;
    }
    
    .slide {
        padding: 60px 20px 60px;
    }
    
    .ai-logo {
        height: 50px;
    }
    
    .menu-content {
        width: 100%;
    }
    
    .faq-items {
        height: calc(100vh - 120px);
    }
}

/* Smooth transitions */
.slide:not(.active) .slide-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out-quad);
}

.slide.active .slide-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar for FAQ */
.faq-items::-webkit-scrollbar {
    width: 4px;
}

.faq-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.faq-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.faq-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Security: Hide from search engines */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Оптимизация и плавность: Общее улучшение с помощью will-change */
.slider-container,
.slide,
.menu-overlay,
.tab-content,
.dot,
.menu-content {
    will-change: transform, opacity, scroll-position;
}