/* Showcase Lab — интерактивные демо IT-Aegis */

.showcase-lab__badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t4w-primary);
    background: rgba(232, 184, 74, 0.12);
    border: 1px solid rgba(232, 184, 74, 0.28);
}

.showcase-lab__tabs {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
}

.showcase-lab__tab {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.showcase-lab__tab:hover {
    border-color: rgba(232, 184, 74, 0.35);
    background: rgba(30, 41, 59, 0.75);
}

.showcase-lab__tab.is-active {
    border-color: var(--t4w-primary);
    background: rgba(232, 184, 74, 0.08);
    box-shadow: 0 0 0 1px rgba(232, 184, 74, 0.15);
}

.showcase-lab__tab-icon {
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(232, 184, 74, 0.12);
    color: var(--t4w-primary);
    font-size: 0.95rem;
}

.showcase-lab__tab-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.showcase-lab__tab-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--t4w-muted, #94a3b8);
    line-height: 1.35;
}

.showcase-lab__stage {
    position: relative;
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 184, 74, 0.08), transparent 60%),
        linear-gradient(165deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.showcase-lab__panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
    pointer-events: none;
}

.showcase-lab__panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.showcase-lab__canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    touch-action: none;
}

.showcase-lab__hud {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    pointer-events: none;
    z-index: 2;
}

.showcase-lab__hud span {
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.showcase-lab__hint {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.9);
    pointer-events: none;
}

/* Live data panel */
.showcase-lab__live {
    padding: 1.25rem 1.25rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.showcase-lab__live-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.showcase-lab__live-stat {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-lab__live-stat strong {
    display: block;
    font-size: 1.15rem;
    color: var(--t4w-primary);
    font-variant-numeric: tabular-nums;
}

.showcase-lab__live-stat span {
    font-size: 0.72rem;
    color: #94a3b8;
}

.showcase-lab__live-chart {
    flex: 1;
    min-height: 140px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-lab__event-log {
    margin-top: 0.75rem;
    max-height: 110px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.68rem;
    line-height: 1.5;
    padding: 0.5rem 0.65rem;
    color: #94a3b8;
}

.showcase-lab__event-log div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: showcase-log-in 0.35s ease;
}

.showcase-lab__event-log .ok { color: #4ade80; }
.showcase-lab__event-log .warn { color: #fbbf24; }

@keyframes showcase-log-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modern UI playground */
.showcase-lab__playground {
    padding: 1.15rem;
    height: 100%;
    overflow-y: auto;
}

.showcase-play__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.showcase-play__card {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s, transform 0.25s;
}

.showcase-play__card:hover {
    border-color: rgba(232, 184, 74, 0.35);
}

.showcase-play__card--glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.12);
}

.showcase-play__card--wide {
    grid-column: 1 / -1;
}

.showcase-play__card i {
    color: var(--t4w-primary);
    margin-bottom: 0.35rem;
}

.showcase-play__card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
}

.showcase-play__card p {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0;
}

.showcase-play__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.showcase-play__btn,
.showcase-play__link,
.showcase-play__copy {
    border: 0;
    background: none;
    color: var(--t4w-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.showcase-play__btn {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(232, 184, 74, 0.15);
    border: 1px solid rgba(232, 184, 74, 0.35);
    text-decoration: none;
}

.showcase-play__toasts {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.showcase-play__toast {
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    font-size: 0.72rem;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(232, 184, 74, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    animation: showcase-toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes showcase-toast-in {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.showcase-play__toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.showcase-play__toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.showcase-play__toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #334155;
    transition: background 0.25s;
}

.showcase-play__toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-play__toggle input:checked + .showcase-play__toggle-track {
    background: var(--t4w-primary);
}

.showcase-play__toggle input:checked + .showcase-play__toggle-track::after {
    transform: translateX(20px);
}

.showcase-play__mini-note {
    font-size: 0.68rem;
    color: #64748b;
    margin: 0.5rem 0 0;
}

.showcase-play__skeleton span {
    display: block;
    height: 10px;
    border-radius: 4px;
    margin-bottom: 0.45rem;
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: showcase-shimmer 1.2s infinite;
}

.showcase-play__skeleton span:nth-child(1) { width: 92%; }
.showcase-play__skeleton span:nth-child(2) { width: 78%; }
.showcase-play__skeleton span:nth-child(3) { width: 55%; margin-bottom: 0; }

@keyframes showcase-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.showcase-play__loaded {
    font-size: 0.78rem;
    color: #e2e8f0;
    animation: showcase-toast-in 0.35s ease;
}

.showcase-play__counter strong {
    display: block;
    font-size: 1.5rem;
    color: var(--t4w-primary);
    font-variant-numeric: tabular-nums;
}

.showcase-play__counter span {
    font-size: 0.72rem;
    color: #94a3b8;
}

.showcase-play__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.showcase-play__tags span {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    background: rgba(232, 184, 74, 0.1);
    border: 1px solid rgba(232, 184, 74, 0.2);
    transition: transform 0.2s;
}

.showcase-play__tags span:hover {
    transform: scale(1.06);
}

.showcase-play__code {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.68rem;
    color: #94a3b8;
}

.showcase-lab__playground.is-dimmed {
    filter: brightness(0.82);
}

/* Forms panel */
.showcase-lab__forms {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    max-width: 420px;
    margin: 0 auto;
}

.showcase-forms__steps {
    display: flex;
    gap: 0.5rem;
}

.showcase-forms__step {
    flex: 1;
    text-align: center;
    font-size: 0.68rem;
    color: #64748b;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #334155;
    transition: border-color 0.3s, color 0.3s;
}

.showcase-forms__step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    background: #334155;
    margin-right: 0.25rem;
}

.showcase-forms__step.is-active {
    color: var(--t4w-primary);
    border-color: var(--t4w-primary);
}

.showcase-forms__step.is-active span {
    background: var(--t4w-primary);
    color: #0f172a;
}

.showcase-forms__step.is-done {
    color: #4ade80;
    border-color: #4ade80;
}

.showcase-forms__step.is-done span {
    background: #4ade80;
    color: #0f172a;
}

.showcase-forms__field {
    position: relative;
    display: block;
}

.showcase-forms__field input {
    width: 100%;
    padding: 1rem 2rem 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    font-size: 0.85rem;
}

.showcase-forms__field > span {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #64748b;
    pointer-events: none;
    transition: top 0.2s, font-size 0.2s, color 0.2s;
}

.showcase-forms__field input:focus + span,
.showcase-forms__field input:not(:placeholder-shown) + span {
    top: 0.45rem;
    font-size: 0.65rem;
    color: var(--t4w-primary);
}

.showcase-forms__field i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
}

.showcase-forms__field.is-valid input { border-color: #4ade80; }
.showcase-forms__field.is-valid i { color: #4ade80; }
.showcase-forms__field.is-invalid input { border-color: #f87171; }
.showcase-forms__field.is-invalid i { color: #f87171; }

.showcase-forms__progress {
    height: 4px;
    border-radius: 999px;
    background: #334155;
    overflow: hidden;
}

.showcase-forms__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--t4w-primary), #fde047);
    border-radius: inherit;
    transition: width 0.5s ease;
}

.showcase-forms__hint {
    text-align: center;
    font-size: 0.72rem;
    color: #64748b;
    margin: 0;
}

/* PWA panel */
.showcase-lab__pwa {
    padding: 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.showcase-pwa__phone {
    width: 168px;
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(145deg, #334155, #1e293b);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.showcase-pwa__screen {
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    min-height: 280px;
}

.showcase-pwa__bar {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0.65rem;
    font-size: 0.6rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.25);
}

.showcase-pwa__app {
    padding: 1.5rem 1rem;
    text-align: center;
}

.showcase-pwa__app img {
    margin-bottom: 0.5rem;
}

.showcase-pwa__app strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.showcase-pwa__app p {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.showcase-pwa__install {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0f172a;
    background: var(--t4w-primary);
    cursor: pointer;
}

.showcase-pwa__install.is-installed {
    background: #4ade80;
}

.showcase-pwa__features {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 220px;
}

.showcase-pwa__features li {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.showcase-pwa__features i {
    color: #4ade80;
    margin-right: 0.35rem;
    width: 1rem;
}

/* UI motion panel — legacy, kept for reference */
.showcase-lab__ui {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-content: center;
    height: 100%;
}

.showcase-lab__ui-card {
    padding: 1.1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s, border-color 0.35s;
    animation: showcase-float 4s ease-in-out infinite;
}

.showcase-lab__ui-card:nth-child(2) { animation-delay: -1s; }
.showcase-lab__ui-card:nth-child(3) { animation-delay: -2s; }
.showcase-lab__ui-card:nth-child(4) { animation-delay: -3s; }

.showcase-lab__ui-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(232, 184, 74, 0.45);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.showcase-lab__ui-card i {
    font-size: 1.25rem;
    color: var(--t4w-primary);
    margin-bottom: 0.5rem;
}

.showcase-lab__ui-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.showcase-lab__ui-card p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.showcase-lab__ui-btn {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.25rem;
    padding: 0.65rem 1.25rem;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #0f172a;
    background: linear-gradient(135deg, #fde047, var(--t4w-primary));
    box-shadow: 0 4px 20px rgba(232, 184, 74, 0.35);
    animation: showcase-pulse 2.5s ease-in-out infinite;
    cursor: default;
}

@keyframes showcase-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes showcase-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(232, 184, 74, 0.35); }
    50% { box-shadow: 0 4px 28px rgba(232, 184, 74, 0.55); }
}

/* Security panel */
.showcase-lab__security {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    height: 100%;
    text-align: center;
}

.showcase-lab__shield {
    width: 88px;
    height: 88px;
    color: var(--t4w-primary);
    filter: drop-shadow(0 0 24px rgba(232, 184, 74, 0.45));
    animation: showcase-shield 3s ease-in-out infinite;
}

@keyframes showcase-shield {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 24px rgba(232, 184, 74, 0.45)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 32px rgba(232, 184, 74, 0.65)); }
}

.showcase-lab__security-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    width: 100%;
    max-width: 420px;
    text-align: left;
}

.showcase-lab__security-item {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-lab__security-item i {
    color: #4ade80;
    margin-right: 0.35rem;
}

.showcase-lab__mini-captcha {
    width: 100%;
    max-width: 300px;
    transform: scale(0.92);
    transform-origin: top center;
}

/* Integrations panel */
.showcase-lab__flow {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-lab__flow-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.showcase-lab__flow-node {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    min-width: 72px;
    animation: showcase-node-pulse 2s ease-in-out infinite;
}

.showcase-lab__flow-node i {
    display: block;
    font-size: 1.1rem;
    color: var(--t4w-primary);
    margin-bottom: 0.25rem;
}

.showcase-lab__flow-node span {
    font-size: 0.72rem;
    font-weight: 600;
}

.showcase-lab__flow-node:nth-child(1) { animation-delay: 0s; }
.showcase-lab__flow-node:nth-child(3) { animation-delay: 0.4s; }
.showcase-lab__flow-node:nth-child(5) { animation-delay: 0.8s; }
.showcase-lab__flow-node:nth-child(7) { animation-delay: 1.2s; }

.showcase-lab__flow-arrow {
    color: rgba(232, 184, 74, 0.6);
    font-size: 0.85rem;
}

@keyframes showcase-node-pulse {
    0%, 100% { border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
    50% { border-color: rgba(232, 184, 74, 0.5); box-shadow: 0 0 16px rgba(232, 184, 74, 0.15); }
}

.showcase-lab__chips {
    margin-top: 0.5rem;
}

.showcase-lab__chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    height: 100%;
}

.showcase-lab__chip i {
    color: var(--t4w-primary);
}

@media (max-width: 991.98px) {
    .showcase-lab__flow-track {
        flex-direction: column;
        align-items: stretch;
        max-width: 13rem;
        margin-left: auto;
        margin-right: auto;
    }

    .showcase-lab__flow-arrow {
        align-self: center;
        transform: rotate(90deg);
        line-height: 1;
        padding: 0.15rem 0;
    }

    .showcase-lab__flow-node {
        width: 100%;
    }

    .showcase-lab__tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scrollbar-width: thin;
    }

    .showcase-lab__tab {
        flex: 0 0 220px;
    }

    .showcase-lab__stage {
        min-height: 320px;
    }

    .showcase-play__grid {
        grid-template-columns: 1fr;
    }

    .showcase-lab__pwa {
        flex-direction: column;
    }

    .showcase-lab__live-stats {
        grid-template-columns: 1fr;
    }

    .showcase-lab__security-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-lab__ui-card,
    .showcase-lab__shield,
    .showcase-lab__flow-node,
    .showcase-lab__ui-btn {
        animation: none;
    }
}
