/* ══════════════════════════════════════════════════════════
   СТИЛИ СТАРТОВОЙ СТРАНИЦЫ (start.html)
   Эффекты Авроры, стеклянные панели, мокапы и интерактивные элементы
   ══════════════════════════════════════════════════════════ */

/* Базовые параметры коробочной модели */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Базовые стили тела документа */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    margin: 0;
    overflow-x: hidden;
}

/* ── Dribbble-style Aurora Background (Фоновые живые градиентные пятна) ── */
.aurora-wrapper {
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.5;
    animation: blob-float 20s infinite alternate ease-in-out;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #bfdbfe;
}

.blob-2 {
    top: 20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: #e9d5ff;
    animation-delay: -5s;
}

.blob-3 {
    bottom: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: #c7d2fe;
    animation-delay: -10s;
}

/* Анимация плавного парения фоновых пятен авроры */
@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(5%, 10%) scale(1.1) rotate(5deg);
    }

    66% {
        transform: translate(-5%, 5%) scale(0.9) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

/* Радиальная фоновая сетка поверх авроры */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, 0.2) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Стеклянный матовый эффект верхней навигационной панели */
.nav-glass {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Анимация плавного появления блоков снизу вверх */
@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.anim-up {
    animation: reveal-up 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Десктоп Мокап (Оболочка окна программы на главном экране) ── */
.mockup-showcase-wrapper {
    position: relative;
    padding: 10px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 40px 80px -20px rgba(37, 99, 235, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.mockup-window {
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Внутренний контейнер прокрутки мокапа рабочего стола */
.desktop-scroll-inner {
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    width: max-content;
    min-width: 100%;
}

/* Горизонтальный сдвиг по наведению применяем только на устройствах с точным указателем (мышь) и достаточной шириной */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    .mockup-showcase-wrapper:hover .desktop-scroll-inner {
        transform: translateX(-220px);
    }
}

/* Контейнер рабочей области мокапа: на тач-экранах свайпается горизонтально, на широких плавно сдвигается */
.mockup-touch-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Отступ при якорном переходе с учетом фиксированной шапки */
.start-tab-panel {
    scroll-margin-top: 96px;
}

/* Анимация плавного переключения интерактивных вкладок */
@keyframes tab-panel-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.start-tab-panel.is-tab-entering {
    animation: tab-panel-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Адаптивное позиционирование плавающих мини-карточек в прикладных сценариях без выхода за край мобильного экрана */
.floating-scenario-card {
    position: relative;
    margin: -36px auto 0 auto;
    z-index: 30;
}

@media (min-width: 768px) {
    .floating-scenario-card {
        position: absolute;
        margin: 0;
    }
    .floating-scenario-card--left {
        left: -2.5rem;
        bottom: 1rem;
    }
    .floating-scenario-card--right-mid {
        right: -2.5rem;
        bottom: 2.5rem;
    }
    .floating-scenario-card--left-mid {
        left: -2.5rem;
        top: 13.5rem;
    }
    .floating-scenario-card--right-low {
        right: -2.5rem;
        bottom: 1.5rem;
    }
}

/* Стилизация активной вкладки навигации стартовой страницы */
.start-nav-tab {
    position: relative;
    cursor: pointer;
}

.start-nav-tab[aria-selected="true"] {
    background-color: rgba(239, 246, 255, 0.95);
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.9);
}

/* Выравнивание сдвинутых колонок на десктопе */
@media (min-width: 1024px) {
    .shift-right-50-lg {
        transform: translateX(50px) !important;
    }
}

/* Градиентные заголовки */
.text-gradient-hero {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #059669 0%, #2563eb 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-amber {
    background: linear-gradient(135deg, #ea580c 0%, #d97706 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Стилизация скроллбара в мокапах */
.mockup-scroll::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.mockup-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.mockup-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Плашки-заголовки колонок в мокапе */
.real-plate {
    background: linear-gradient(to bottom, #ff9b50, #ff842a);
    border-radius: 4px;
    color: white;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.real-plate-blue {
    background: linear-gradient(to bottom, #42a5f5, #2196f3);
}

.real-plate-green {
    background: linear-gradient(to bottom, #66bb6a, #4caf50);
}

.real-plate-purple {
    background: linear-gradient(to bottom, #ab47bc, #8e24aa);
}

/* Карточки задач в мокапе */
.real-task-card {
    background: white;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 11px;
    border-left: 2px solid transparent;
}

.real-badge-prosr {
    color: #ef4444;
    background: #fee2e2;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
}

/* ── Дымчатые фоновые иллюстрации в разделах (Zig-Zag Smoke) ── */
.bg-smoke-left {
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(calc(-50% - 200px));
    width: 700px;
    height: 700px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.bg-smoke-right {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(calc(-50% - 200px));
    width: 700px;
    height: 700px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ── Мокап смартфона (Mobile Device Frame) ── */
.mobile-device {
    width: 320px;
    height: 650px;
    background: #f8fafc;
    border: 8px solid #ffffff;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #ffffff;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 20;
}

/* Чекбоксы чек-листов в мокапах лендинга */
.cl-check {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 3px;
    background: white;
    display: grid;
    place-content: center;
    flex-shrink: 0;
}

.cl-check:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.cl-check:checked::before {
    content: "";
    width: 8px;
    height: 8px;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background: white;
}

/* Постепенное появление блоков по мере прокрутки (при активном JS) */
html.js-start-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js-start-ready .reveal.active {
    opacity: 1;
    transform: translateY(0);
}
