/* ===================================================
   home-ui.css — runtime states + custom animations
   =================================================== */

/* ── Body padding for fixed header (36px infobar + 64px nav) ── */
body.x1010-home { padding-top: 100px; }

/* ═══════════════════════════════════════════
   SLIDER
═══════════════════════════════════════════ */
.lw-slider__tab {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

/* Pill state */
.lw-tab-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1.125rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}
.lw-slider__tab:hover:not(.is-active) .lw-tab-pill {
    background-color: #e2e8f0;
    color: #475569;
}
.lw-slider__tab.is-active .lw-tab-pill {
    background-color: #7c3aed;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

/* Dark section pill variant */
.lw-slider--dark .lw-tab-pill {
    background-color: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
}
.lw-slider--dark .lw-slider__tab:hover:not(.is-active) .lw-tab-pill {
    background-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
}
.lw-slider--dark .lw-slider__tab.is-active .lw-tab-pill {
    background-color: #7c3aed;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.25);
}

/* Slide hidden */
.lw-slider__slide[hidden] { display: none; }

/* Стабильная высота viewport на десктопе — не зависит от контента слайда */
@media (min-width: 1024px) {
    .lw-slider .lw-slider__slide > div {
        min-height: 520px;
        align-content: center; /* центрирует строку grid вертикально в контейнере */
    }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
@keyframes orb-float {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(26px,-18px) scale(1.05); }
    66%      { transform: translate(-18px,14px) scale(0.95); }
}
.hero-orb-1 { animation: orb-float 15s ease-in-out infinite; }
.hero-orb-2 { animation: orb-float 20s ease-in-out infinite reverse; }
.hero-orb-3 { animation: orb-float 12s ease-in-out infinite 5s; }
.hero-orb-4 { animation: orb-float 17s ease-in-out infinite 2s reverse; }

/* Grid overlay */
.hero-grid-overlay {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gradient-text-animate {
    background-size: 200% auto;
    animation: gradient-shift 6s ease infinite;
}

/* Badge dot pulse */
@keyframes badge-pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}
.badge-dot { animation: badge-pulse 2.4s ease-in-out infinite; }

/* CTA shimmer effect */
@keyframes btn-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: btn-shimmer 2.8s ease-in-out infinite;
    border-radius: inherit;
}

/* Video glow pulse */
@keyframes video-glow {
    0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
    50%      { box-shadow: 0 0 40px 4px rgba(124,58,237,0.2); }
}
.video-glow { animation: video-glow 5s ease-in-out infinite; }

/* ═══════════════════════════════════════════
   SECTION PATTERNS
═══════════════════════════════════════════ */
/* Dot pattern for slate sections */
.section-dots-bg {
    background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Stats section noise grain */
.stats-noise::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   TOGGLE
═══════════════════════════════════════════ */
.lw-toggle__ui {
    background-color: #e2e8f0;
    transition: background-color 0.25s ease;
}
.lw-toggle__thumb {
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.lw-toggle__input:checked ~ .lw-toggle__ui,
.lw-toggle__input:checked + .lw-toggle__ui {
    background-color: #7c3aed;
}
.lw-toggle__input:checked ~ .lw-toggle__ui .lw-toggle__thumb,
.lw-toggle__input:checked + .lw-toggle__ui .lw-toggle__thumb {
    transform: translateX(20px);
}
.lw-toggle__input:focus + .lw-toggle__ui {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   AI SECTION
═══════════════════════════════════════════ */
.ai-dot { display: inline-block; animation: ai-bounce 1.3s infinite; }
.ai-dot:nth-child(2) { animation-delay: 0.16s; }
.ai-dot:nth-child(3) { animation-delay: 0.32s; }
@keyframes ai-bounce {
    0%,80%,100% { transform: translateY(0); opacity: 0.6; }
    40%         { transform: translateY(-5px); opacity: 1; }
}

@keyframes ai-glow-pulse {
    0%,100% { box-shadow: 0 0 0 1px rgba(124,58,237,0.25), 0 0 30px rgba(124,58,237,0.08); }
    50%      { box-shadow: 0 0 0 1px rgba(124,58,237,0.5), 0 0 50px rgba(124,58,237,0.2); }
}
.ai-chat-glow { animation: ai-glow-pulse 4s ease-in-out infinite; }

/* ═══════════════════════════════════════════
   SOLUTIONS CATALOG
═══════════════════════════════════════════ */
.lw-solutions-catalog__viewport {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #7c3aed transparent;
}
.lw-solutions-catalog__viewport::-webkit-scrollbar { height: 3px; }
.lw-solutions-catalog__viewport::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 4px;
}

/* Card hover lift */
.lw-catalog-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lw-catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.13), 0 8px 16px rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════
   HEADER: кнопки авторизации — violet override
═══════════════════════════════════════════ */
.lw-site-header .top-line-btn--primary {
    background: #7c3aed;
    border-color: transparent;
}
.lw-site-header .top-line-btn--primary:hover { background: #6d28d9; }
.lw-site-header .top-line-btn--cta {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* ═══════════════════════════════════════════
   MOCK ELEMENTS
═══════════════════════════════════════════ */
@keyframes card-glow {
    0%,100% { box-shadow: 0 4px 24px rgba(124,58,237,0.08); }
    50%      { box-shadow: 0 4px 40px rgba(124,58,237,0.22); }
}
.mock-glow { animation: card-glow 5s ease-in-out infinite; }

/* ═══════════════════════════════════════════
   SECTION NUMBERS
═══════════════════════════════════════════ */
.section-num {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: #f1f5f9;
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}
