/* Основные настройки скролла */
html {
    scroll-behavior: smooth;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617; 
}
::-webkit-scrollbar-thumb {
    background: #1e293b; 
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.15);
}
::-webkit-scrollbar-thumb:hover {
    background: #334155; 
}

/* Тонкая кибер-сетка на фоне для B2B эстетики */
.bg-cyber-grid {
    background-size: 48px 48px;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
}

/* Утилиты для анимаций появления при скролле (Progressive Enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

body.js-reveal-ready .reveal:not(.active) {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-reveal-ready .reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Анимированный градиентный текст */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Плавающие элементы */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float 7.5s ease-in-out infinite 1.5s;
}

/* Пульсация свечения */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.18); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.45); }
}
.animate-pulse-glow {
    animation: pulse-glow 4s infinite;
}

/* Эффект прожектора на карточках (Brand Sky + Indigo) */
.spotlight-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(2, 6, 23, 0.8), 0 0 25px -5px rgba(14, 165, 233, 0.15);
}
.spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(56, 189, 248, 0.55),
        rgba(99, 102, 241, 0.2) 35%,
        transparent 60%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.spotlight-card:hover::before {
    opacity: 1;
}

/* Размытый фон для навигации */
.glass-nav {
    background: rgba(9, 14, 28, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

/* Интерактивные чипы выбора услуги в форме заявки */
.service-chip {
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}
.service-chip.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.25));
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}

/* Стили чат-бота */
#chat-window.open {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Live Demo Navbar Badge Breathing Glow Animation */
@keyframes livePulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.35), inset 0 0 6px rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.45);
        color: #f87171;
    }
    50% {
        box-shadow: 0 0 22px rgba(239, 68, 68, 0.75), inset 0 0 10px rgba(239, 68, 68, 0.25);
        border-color: rgba(248, 113, 113, 0.95);
        color: #ffffff;
    }
}

.live-badge-glow {
    animation: livePulseGlow 2.2s infinite ease-in-out;
}



.mic-active {
    color: #ef4444 !important;
    animation: pulse 1.5s infinite;
}

.typing-indicator span {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #38bdf8;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
    margin: 0 2px;
}
.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-4px); opacity: 1; }
}


/* ==========================================================================
   LIVE DEMO STYLES (Электронды кезек + QR-Сертификат)
   ========================================================================== */

/* Glowing Section Laser Divider */
.section-laser-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.45) 35%, rgba(99, 102, 241, 0.65) 50%, rgba(56, 189, 248, 0.45) 65%, transparent 100%);
    position: relative;
}
.section-laser-divider::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.6) 0%, transparent 75%);
    filter: blur(2px);
}

/* Button Shimmer Sweep */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: shimmerSweep 4.5s infinite;
    pointer-events: none;
}
@keyframes shimmerSweep {
    0% { left: -60%; }
    35%, 100% { left: 130%; }
}

/* Sandbox Tab Buttons */
.sandbox-tab.active {
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 8px 25px -4px rgba(14, 165, 233, 0.45);
}

/* Ticket Call Flash Animation */
@keyframes ticketFlash {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    25% { transform: scale(1.04); box-shadow: 0 0 35px rgba(16, 185, 129, 0.55); }
    50% { transform: scale(0.99); }
    75% { transform: scale(1.02); box-shadow: 0 0 25px rgba(56, 189, 248, 0.45); }
}
.ticket-calling {
    animation: ticketFlash 1.2s ease-in-out 2;
}

/* Thermal Paper Queue Ticket Simulation */
.kiosk-slot {
    width: 86%;
    height: 9px;
    background: #020617;
    border-radius: 9999px;
    margin: 0 auto -5px auto;
    position: relative;
    z-index: 10;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid #1e293b;
}

.paper-ticket-card {
    background: #ffffff;
    color: #0f172a;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 20px 18px 14px 18px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    transform-origin: top center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.ticket-active-glow {
    box-shadow: 0 0 0 3px #10b981, 0 20px 35px -8px rgba(16, 185, 129, 0.5) !important;
    animation: ticketBounce 1.5s ease-in-out infinite;
}

@keyframes ticketBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.paper-ticket-zigzag {
    height: 12px;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 6px, transparent 0) 0 0,
                linear-gradient(-135deg, #ffffff 6px, transparent 0) 0 0;
    background-repeat: repeat-x;
    background-size: 12px 12px;
    margin-top: -1px;
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}

@keyframes printSlide {
    0% {
        transform: translateY(-30px) scaleY(0.7);
        opacity: 0.2;
    }
    45% {
        transform: translateY(8px) scaleY(1.03);
        opacity: 0.95;
    }
    70% {
        transform: translateY(-2px) scaleY(0.99);
    }
    100% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
}

.ticket-print-animation {
    animation: printSlide 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.rating-star {
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Live Demo Navbar Badge Breathing Glow Animation */
@keyframes livePulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.35), inset 0 0 6px rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.45);
        color: #f87171;
    }
    50% {
        box-shadow: 0 0 22px rgba(239, 68, 68, 0.75), inset 0 0 10px rgba(239, 68, 68, 0.25);
        border-color: rgba(248, 113, 113, 0.95);
        color: #ffffff;
    }
}

.live-badge-glow {
    animation: livePulseGlow 2.2s infinite ease-in-out;
}


