/* =========================================
   SECTION 05: RELIABILITY (СВЕТЛЫЙ ПРЕМИУМ)
   ========================================= */

/* КРИТИЧНО: Переопределяем глобальный padding от .app-frame */
#vis-reliability.app-frame {
    padding: 0 !important;
}

#vis-reliability {
    background: #EAEAEA;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Subtle grid pattern */
#vis-reliability::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.reliability-wrapper {
    width: 100%;
    height: 100%;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.reliability-header {
    text-align: center;
}

.reliability-header h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.reliability-header p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #666666;
    margin: 0;
}

/* === EXECUTION PIPELINE === */
.execution-pipeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    flex: 1;
    justify-content: center;
}

/* Connection line - vertical */
.execution-pipeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 12%;
    bottom: 12%;
    width: 3px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(16, 185, 129, 0.2) 20%,
            rgba(16, 185, 129, 0.4) 50%,
            rgba(16, 185, 129, 0.2) 80%,
            transparent 100%);
    transform: translateX(-50%);
    z-index: 0;
    border-radius: 2px;
}

/* === STAGE NODE === */
.stage-node {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.stage-node:hover {
    transform: translateX(6px) scale(1.02);
}

.stage-node:nth-child(1) {
    animation: stage-pulse 3s ease-in-out infinite;
}

.stage-node:nth-child(2) {
    animation: stage-pulse 3s ease-in-out infinite;
    animation-delay: -1s;
}

.stage-node:nth-child(3) {
    animation: stage-pulse 3s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes stage-pulse {

    0%,
    100% {
        opacity: 0.95;
    }

    50% {
        opacity: 1;
    }
}

/* Node container */
.stage-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 2px solid rgba(16, 185, 129, 0.25);
    padding: 16px 18px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stage-node:hover .stage-container {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow:
        0 12px 40px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Shimmer effect */
.stage-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.6s;
}

.stage-node:hover .stage-container::before {
    left: 100%;
}

/* Stage number */
.stage-number {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
    position: relative;
}

.stage-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

/* Stage icon */
.stage-icon {
    font-size: 34px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Stage content */
.stage-content {
    flex: 1;
}

/* Stage title */
.stage-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

/* Stage description */
.stage-desc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #666666;
    font-weight: 500;
}

/* === STATUS INDICATORS === */
.status-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.status-item:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow:
        0 0 0 3px rgba(16, 185, 129, 0.2),
        0 0 12px rgba(16, 185, 129, 0.4);
    animation: indicator-pulse 2s ease-in-out infinite;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.1);
}

@keyframes indicator-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

.status-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: -0.1px;
}

/* Note */
.reliability-note {
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #666666;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid #10b981;
    max-width: 400px;
    margin: 0 auto;
}

.reliability-note strong {
    color: #1A1A1A;
    font-weight: 700;
}